code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
<html><body> <h4>Windows 10 x64 (18363.900)</h4><br> <h2>_WHEA_GENERIC_ERROR_DESCRIPTOR_V2</h2> <font face="arial"> +0x000 Type : Uint2B<br> +0x002 Reserved : UChar<br> +0x003 Enabled : UChar<br> +0x004 ErrStatusBlockLength : Uint4B<br> +0x008 RelatedErrorSourceId : Uint4B<br> +0x00c ErrStatusAddressSpaceID : UChar<br> +0x00d ErrStatusAddressBitWidth : UChar<br> +0x00e ErrStatusAddressBitOffset : UChar<br> +0x00f ErrStatusAddressAccessSize : UChar<br> +0x010 ErrStatusAddress : <a href="./_LARGE_INTEGER.html">_LARGE_INTEGER</a><br> +0x018 Notify : <a href="./_WHEA_NOTIFICATION_DESCRIPTOR.html">_WHEA_NOTIFICATION_DESCRIPTOR</a><br> +0x034 ReadAckAddressSpaceID : UChar<br> +0x035 ReadAckAddressBitWidth : UChar<br> +0x036 ReadAckAddressBitOffset : UChar<br> +0x037 ReadAckAddressAccessSize : UChar<br> +0x038 ReadAckAddress : <a href="./_LARGE_INTEGER.html">_LARGE_INTEGER</a><br> +0x040 ReadAckPreserveMask : Uint8B<br> +0x048 ReadAckWriteMask : Uint8B<br> </font></body></html>
epikcraw/ggool
public/Windows 10 x64 (18363.900)/_WHEA_GENERIC_ERROR_DESCRIPTOR_V2.html
HTML
mit
1,100
var async = require('async'); function captainHook(schema) { // Pre-Save Setup schema.pre('validate', function (next) { var self = this; this._wasNew = this.isNew; if (this.isNew) { this.runPreMethods(schema.preCreateMethods, self, function(){ next(); }); } else { this.runPreMethods(schema.preUpdateMethods, self, function(){ next(); }); } }); // Post-Save Setup schema.post('save', function () { var self = this; if (this._wasNew) { this.runPostMethods(schema.postCreateMethods, self); } else { this.runPostMethods(schema.postUpdateMethods, self); } }); /** * Pre-Hooks * These hooks run before an instance has been created / updated */ schema.methods.runPreMethods = function(methods, self, callback){ async.eachSeries(methods, function(fn, cb) { fn(self, cb); }, function(err){ if (err){ throw err; } callback(); }); }; // Pre-Create Methods schema.preCreateMethods = []; schema.preCreate = function(fn){ schema.preCreateMethods.push(fn); }; // Pre-Update Methods schema.preUpdateMethods = []; schema.preUpdate = function(fn){ schema.preUpdateMethods.push(fn); }; /** * Post-Hooks * These hooks run after an instance has been created / updated */ schema.methods.runPostMethods = function(methods, self){ async.eachSeries(methods, function(fn, cb) { fn(self, cb); }, function(err){ if (err){ throw err; } }); }; // Post-Create Methods schema.postCreateMethods = []; schema.postCreate = function(fn){ schema.postCreateMethods.push(fn); }; // Post-Update Methods schema.postUpdateMethods = []; schema.postUpdate = function(fn){ schema.postUpdateMethods.push(fn); }; } module.exports = captainHook;
hackley/captain-hook
lib/index.js
JavaScript
mit
1,881
/** * Copyright (c) <2016> granada <[email protected]> * * This source code is licensed under the MIT license. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * Run javascript using Mozilla's JavaScript engine: Spider Monkey. * Spider monkey version 38 is used. * https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey */ #pragma once #include <mutex> #include <map> #include "cpprest/json.h" #include "granada/defaults.h" #include "runner.h" #include "jsapi.h" using namespace JS; namespace granada{ namespace runner{ /** * Run javascript using Mozilla's JavaScript engine: Spider Monkey. * Spider monkey version 38 is used. * https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey * * Recommendation: read Mozilla performance docummentation and specialy * the Memory profiling and leak detection tools * https://developer.mozilla.org/en-US/docs/Mozilla/Performance * * If you are using Valgrind to detect memory leaks please read: * https://developer.mozilla.org/en-US/docs/Mozilla/Testing/Valgrind */ class SpiderMonkeyJavascriptRunner : public Runner { public: /** * Constructor. */ SpiderMonkeyJavascriptRunner(){ Init(); }; /** * Destructor. */ virtual ~SpiderMonkeyJavascriptRunner(){ Destroy(); }; /** * @override * Run given javascript script and returns the return/response * of the script in form of string. * * @param _script Javascript script. * @return Return/Response returned by the script run. */ std::string Run(const std::string& _script); /** * Returns a pointer to the collection of functions * that can be called from the script/executable. * @return Pointer to the collection of functions * that can be called from the script/executable. */ virtual std::shared_ptr<granada::Functions> functions(){ return SpiderMonkeyJavascriptRunner::functions_; }; /** * Returns a vector with the extensions of the scripts/executables * Extensions examples: ["js"], ["sh"], ["exe"], ["js","sh"] * @return Vector with the extensions. */ virtual std::vector<std::string> extensions(){ return SpiderMonkeyJavascriptRunner::extensions_; }; protected: /* The class of the global object. */ static JSClass global_class_; /** * Pointer to the collection of the c++ functions * that can be called from the javascript. */ static std::shared_ptr<granada::Functions> functions_; /** * Array with the extensions of the scripts/executables, * will be inserted in the extensions_ vector. * Extensions examples: ["js"], ["sh"], ["exe"], ["js","sh"] */ static std::string extensions_arr_[1]; /** * Vector with the extensions of the scripts/executables, * its content comes from the extensions_arr_ array. * Extensions examples: ["js"], ["sh"], ["exe"], ["js","sh"] */ static std::vector<std::string> extensions_; /** * Runner initialization error stringified json. * Used to respond in the Run functions when there is * such error. */ const std::string runner_initialization_error_ = "{\"" + default_strings::runner_error + "\":\"" + default_errors::runner_initialization_error + "\"}"; /** * Initializes the JS engine so that further operations can be performed. * It is currently not possible to initialize this runner multiple times * without calling Destroy() method. */ void Init(); /** * Free all resources used by the JS engine, * not associated with specific runtimes. */ void Destroy(); /** * Wraps the c++ functions that called from the javascript, so the arguments * are parsed to a web::json::value and the return to the javascript is * also a JSON object. * * @param cx Mozilla spidermonkey JSContext. A context can run scripts. * https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSRuntime * @param argc Number of argument. (2nd argument of JSNative). * @param vp A pointer to the argument value array. * Arguments that the script is passing to the function, includes the * name of the function to call. See functions() to retrieve the * functions collection. * @return False if there has been an error, true, if everything went OK. */ static bool FunctionWrapper(JSContext *cx, unsigned argc, JS::Value *vp); }; } }
webappsdk/granada
Release/include/granada/runner/spidermonkey_javascript_runner.h
C
mit
6,336
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> /* Body style, for the entire document */ body { background: #F3F3F4; color: #1E1E1F; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; padding: 0; margin: 0; } /* Header1 style, used for the main title */ h1 { padding: 10px 0px 10px 10px; font-size: 21pt; background-color: #E2E2E2; border-bottom: 1px #C1C1C2 solid; color: #201F20; margin: 0; font-weight: normal; } /* Header2 style, used for "Overview" and other sections */ h2 { font-size: 18pt; font-weight: normal; padding: 15px 0 5px 0; margin: 0; } /* Header3 style, used for sub-sections, such as project name */ h3 { font-weight: normal; font-size: 15pt; margin: 0; padding: 15px 0 5px 0; background-color: transparent; } h4 { font-weight: normal; font-size: 12pt; margin: 0; padding: 0 0 0 0; background-color: transparent; } /* Color all hyperlinks one color */ a { color: #1382CE; } /* Paragraph text (for longer informational messages) */ p { font-size: 10pt; } /* Table styles */ table { border-spacing: 0 0; border-collapse: collapse; font-size: 10pt; } table th { background: #E7E7E8; text-align: left; text-decoration: none; font-weight: normal; padding: 3px 6px 3px 6px; } table td { vertical-align: top; padding: 3px 6px 5px 5px; margin: 0px; border: 1px solid #E7E7E8; background: #F7F7F8; } .NoBreakingChanges { color: darkgreen; font-weight:bold; } .FewBreakingChanges { color: orange; font-weight:bold; } .ManyBreakingChanges { color: red; font-weight:bold; } .BreakDetails { margin-left: 30px; } .CompatMessage { font-style: italic; font-size: 10pt; } .GoodMessage { color: darkgreen; } /* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */ .localLink { color: #1E1E1F; background: #EEEEED; text-decoration: none; } .localLink:hover { color: #1382CE; background: #FFFF99; text-decoration: none; } /* Center text, used in the over views cells that contain message level counts */ .textCentered { text-align: center; } /* The message cells in message tables should take up all avaliable space */ .messageCell { width: 100%; } /* Padding around the content after the h1 */ #content { padding: 0px 12px 12px 12px; } /* The overview table expands to width, with a max width of 97% */ #overview table { width: auto; max-width: 75%; } /* The messages tables are always 97% width */ #messages table { width: 97%; } /* All Icons */ .IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded { min-width: 18px; min-height: 18px; background-repeat: no-repeat; background-position: center; } /* Success icon encoded */ .IconSuccessEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+eMgQ77v3Xf3Pe51YKGqqisAEwCR1TIAsiAIblSo6xrdHeJR85Xle3mdmCQKb0PsfqyxxzM8K15HZADl/H5+sHpZwYfxyRjTs+kWwKBx8yoHd2mRiuzF8mkJniWH/13u3Fjrs/EdhsdDFHGB/DLXEJBDLh1MWPAhPo1BLB4WX5yQywHR+m3tVe/t97D52CB/ziG0nIgD/qDuYg8WuCcVZ2YGwlJ3YDugkpR/VNcAEx6GEKhERSr71FuO4YCM4XBdwKvecjIlkSnsO0Hyp/GxSeJAdzBKzpOtnPwyyiPdAZhpZptT04tU+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==); } /* Information icon encoded */ .IconInfoEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=); } /* Warning icon encoded */ .IconWarningEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==); } /* Error icon encoded */ .IconErrorEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=); } </style> </head> <body> <h1 _locid="PortabilityReport">.NET Portability Report</h1> <div id="content"> <div id="submissionId" style="font-size:8pt;"> <p> <i> Submission Id&nbsp; bb8d7042-cb83-4cfc-8990-5ac10ae99860 </i> </p> </div> <h2 _locid="SummaryTitle"> <a name="Portability Summary"></a>Portability Summary </h2> <div id="summary"> <table> <tbody> <tr> <th>Assembly</th> <th>ASP.NET 5,Version=v1.0</th> <th>Windows,Version=v8.1</th> <th>.NET Framework,Version=v4.6</th> <th>Windows Phone,Version=v8.1</th> </tr> <tr> <td><strong><a href="#Assembly-CSharp">Assembly-CSharp</a></strong></td> <td class="text-center">97.60 %</td> <td class="text-center">91.98 %</td> <td class="text-center">100.00 %</td> <td class="text-center">91.98 %</td> </tr> </tbody> </table> </div> <div id="details"> <a name="Assembly-CSharp"><h3>Assembly-CSharp</h3></a> <table> <tbody> <tr> <th>Target type</th> <th>ASP.NET 5,Version=v1.0</th> <th>Windows,Version=v8.1</th> <th>.NET Framework,Version=v4.6</th> <th>Windows Phone,Version=v8.1</th> <th>Recommended changes</th> </tr> <tr> <td>System.Array</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Sort``2(``0[],``1[],System.Int32,System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.ArrayList</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Clear</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Count</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Item(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetEnumerator</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Insert(System.Int32,System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">RemoveAt(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Generic.List`1</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ConvertAll``1(System.Converter{`0,``0})</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ForEach(System.Action{`0})</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Hashtable</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Add(System.Object,System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Clone</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Contains(System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ContainsKey(System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Count</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Item(System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Keys</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Values</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetEnumerator</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Remove(System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Item(System.Object,System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Converter`2</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage. Implement conversion code yourself if needed.</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Object,System.IntPtr)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage. Implement conversion code yourself if needed.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Delegate</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use MethodInfo.CreateDelegate</td> </tr> <tr> <td style="padding-left:2em">CreateDelegate(System.Type,System.Object,System.Reflection.MethodInfo)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use MethodInfo.CreateDelegate</td> </tr> <tr> <td style="padding-left:2em">CreateDelegate(System.Type,System.Object,System.String,System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use MethodInfo.CreateDelegate</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.Process</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_StartInfo</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Start</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Start(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.ProcessStartInfo</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_FileName(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Environment</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetFolderPath(System.Environment.SpecialFolder)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Environment.SpecialFolder</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Globalization.CultureInfo</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">CreateSpecificCulture(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Globalization.TextInfo</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ToTitleCase(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IConvertible</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.BinaryReader</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.BinaryWriter</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.Directory</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">CreateDirectory(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Delete(System.String,System.Boolean)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Exists(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetCurrentDirectory</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetDirectories(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetDirectories(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetFiles(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetFiles(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetLogicalDrives</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.DirectoryInfo</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Name</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Parent</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Root</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetDirectories</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetFiles</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetFiles(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetFiles(System.String,System.IO.SearchOption)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ToString</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.File</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">AppendAllText(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">AppendText(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Create(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">CreateText(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Delete(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Exists(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetLastWriteTime(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Open(System.String,System.IO.FileMode)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">OpenRead(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">OpenText(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">OpenWrite(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ReadAllBytes(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ReadAllLines(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use File.ReadLines()</td> </tr> <tr> <td style="padding-left:2em">ReadAllText(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WriteAllBytes(System.String,System.Byte[])</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WriteAllLines(System.String,System.String[])</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use File.WriteAllLines(String, Ienumerable &lt;System.String&gt;) instead</td> </tr> <tr> <td style="padding-left:2em">WriteAllText(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.FileAccess</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.FileInfo</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">AppendText</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">CopyTo(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">CopyTo(System.String,System.Boolean)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Create</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">CreateText</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Decrypt</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Delete</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Encrypt</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Directory</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_DirectoryName</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Exists</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_IsReadOnly</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use File.GetAttributes(), check (fileInfo.Attributes &amp; FileAttributes.ReadOnly) == FileAttributes.ReadOnly</td> </tr> <tr> <td style="padding-left:2em">get_Length</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Name</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">MoveTo(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Open(System.IO.FileMode)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Open(System.IO.FileMode,System.IO.FileAccess)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Open(System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">OpenRead</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">OpenText</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">OpenWrite</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Replace(System.String,System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Replace(System.String,System.String,System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_IsReadOnly(System.Boolean)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use fileInfo.Attributes = fileInfo.Attributes | FileAttributes.ReadOnly to set read only, fileInfo.Attributes = fileInfo.Attributes &amp; ~FileAttributes.ReadOnly … to clear it.</td> </tr> <tr> <td style="padding-left:2em">ToString</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.FileMode</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.FileShare</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.FileStream</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String,System.IO.FileMode)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">EndRead(System.IAsyncResult)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">EndWrite(System.IAsyncResult)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Flush</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_CanRead</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_CanSeek</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_CanWrite</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_IsAsync</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Length</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Name</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Position</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Lock(System.Int64,System.Int64)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Read(System.Byte[],System.Int32,System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ReadByte</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Seek(System.Int64,System.IO.SeekOrigin)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Position(System.Int64)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">SetLength(System.Int64)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Unlock(System.Int64,System.Int64)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Write(System.Byte[],System.Int32,System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WriteByte(System.Byte)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.FileSystemInfo</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Extension</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_FullName</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_LastWriteTime</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.MemoryStream</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use an overload that supplies a buffer and maintain that buffer outside of memory stream. If you need the internal buffer, create a copy via .ToArray();</td> </tr> <tr> <td style="padding-left:2em">GetBuffer</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use an overload that supplies a buffer and maintain that buffer outside of memory stream. If you need the internal buffer, create a copy via .ToArray();</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.Path</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">DirectorySeparatorChar</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.SearchOption</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.Stream</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.StreamReader</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use File.OpenText, or use File.Open to get a Stream then pass it to StreamReader constructor</td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.StreamWriter</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use File.Open to get a Stream then pass it to StreamWriter constructor</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String,System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use File.Open to get a Stream then pass it to StreamWriter constructor</td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.TextWriter</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.MarshalByRefObject</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.Security.RemoteCertificateValidationCallback</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Not supported for HTTP - use new Handler and ignorable server certificate errors instead</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Object,System.IntPtr)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Not supported for HTTP - use new Handler and ignorable server certificate errors instead</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.Security.SslPolicyErrors</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Not supported for HTTP - use new Handler and ignorable server certificate errors instead</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.ServicePointManager</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient, System.Net.Http.HttpClientHandler and System.Net.Http.WinHttpHandler types instead</td> </tr> <tr> <td style="padding-left:2em">set_ServerCertificateValidationCallback(System.Net.Security.RemoteCertificateValidationCallback)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient, System.Net.Http.HttpClientHandler and System.Net.Http.WinHttpHandler types instead</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.WebClient</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use HttpClient instead</td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use HttpClient instead</td> </tr> <tr> <td style="padding-left:2em">add_DownloadFileCompleted(System.ComponentModel.AsyncCompletedEventHandler)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">DownloadFileAsync(System.Uri,System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use HttpClient instead</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.Assembly</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>typeof(CurrentType).GetTypeInfo().Assembly</td> </tr> <tr> <td style="padding-left:2em">GetExecutingAssembly</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>typeof(CurrentType).GetTypeInfo().Assembly</td> </tr> <tr> <td style="padding-left:2em">GetTypes</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Assembly.DefinedTypes</td> </tr> <tr> <td style="padding-left:2em">LoadFrom(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use AssemblyLoadContext</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.Binder</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use an overload that does not take a Binder.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.BindingFlags</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.ParameterModifier</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use an overload that does not take a ParameterModifier array.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.InteropServices.COMException</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ToString</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.Serialization.Formatters.Binary.BinaryFormatter</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Deserialize(System.IO.Stream)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Serialize(System.IO.Stream,System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Cryptography.HashAlgorithm</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ComputeHash(System.Byte[])</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Cryptography.MD5CryptoServiceProvider</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Cryptography.X509Certificates.X509Certificate</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Cryptography.X509Certificates.X509Chain</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.String</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Copy(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Intern(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Text.Encoding</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ASCII</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.Thread</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_CurrentThread</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_CurrentCulture(System.Globalization.CultureInfo)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Type</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Assembly</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().Assembly</td> </tr> <tr> <td style="padding-left:2em">get_BaseType</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().BaseType</td> </tr> <tr> <td style="padding-left:2em">get_IsEnum</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsEnum</td> </tr> <tr> <td style="padding-left:2em">get_IsGenericType</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsGenericType</td> </tr> <tr> <td style="padding-left:2em">get_IsValueType</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsValueType</td> </tr> <tr> <td style="padding-left:2em">GetConstructor(System.Reflection.BindingFlags,System.Reflection.Binder,System.Type[],System.Reflection.ParameterModifier[])</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use GetConstructor(Type[]) to search for public constructors by parameter type or filter the results of GetConstructors(BindingFlags) using LINQ for other queries.</td> </tr> <tr> <td style="padding-left:2em">GetConstructor(System.Type[])</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetField(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetField(System.String,System.Reflection.BindingFlags)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetFields</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetFields(System.Reflection.BindingFlags)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetGenericArguments</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetInterface(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetInterfaces</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetMethod(System.String,System.Reflection.BindingFlags)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Equivalent available: Add using for System.Reflection, and reference System.Reflection.TypeExtensions </td> </tr> <tr> <td style="padding-left:2em">GetMethod(System.String,System.Type[])</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetMethods</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetMethods(System.Reflection.BindingFlags)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetProperties</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetProperty(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetType</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">InvokeMember(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object,System.Object[])</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Find member and use appropriate invocation method based off BindingFlags values used in original call (varies by type of member)</td> </tr> <tr> <td style="padding-left:2em">IsAssignableFrom(System.Type)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">IsSubclassOf(System.Type)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsSubclassOf</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Xml.Formatting</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Xml.XmlAttribute</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Value</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Xml.XmlAttributeCollection</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ItemOf(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Xml.XmlDocument</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetElementsByTagName(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Load(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Load(System.IO.Stream) overload</td> </tr> <tr> <td style="padding-left:2em">LoadXml(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Xml.XmlElement</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Attributes</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_InnerXml</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Name</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ParentNode</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetElementsByTagName(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">HasAttribute(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">SetAttribute(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Xml.XmlNode</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Attributes</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ChildNodes</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_FirstChild</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_HasChildNodes</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_InnerText</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_InnerXml</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Item(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Name</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_NextSibling</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_NodeType</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_OuterXml</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ParentNode</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Xml.XmlNodeList</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Count</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ItemOf(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetEnumerator</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Xml.XmlTextWriter</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String,System.Text.Encoding)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Formatting(System.Xml.Formatting)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Indentation(System.Int32)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_IndentChar(System.Char)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WriteEndDocument</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WriteEndElement</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WriteStartDocument</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WriteString(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </tbody> </table> <p> <a href="#Portability Summary">Back to Summary</a> </p> </div> </div> </body> </html>
kuhlenh/port-to-core
Reports/ks/ksp_mods_090.1.0.4/Assembly-CSharp-net35.html
HTML
mit
152,776
<?php function formatBytes($bytes, $precision = 2) { $units = array('B', 'KB', 'MB', 'GB', 'TB'); $bytes = max($bytes, 0); $pow = floor(($bytes ? log($bytes) : 0) / log(1024)); $pow = min($pow, count($units) - 1); $bytes /= pow(1024, $pow); return round($bytes, $precision) . ' ' . $units[$pow]; } function secondsToTime($seconds) { $dtF = new DateTime("@0"); $dtT = new DateTime("@$seconds"); return $dtF->diff($dtT)->format('%a days'); } function pagination($query,$per_page=10,$page=1,$url='?'){ global $con; $query = "SELECT COUNT(*) as `num` FROM {$query}"; $row = mysqli_fetch_array(mysqli_query($con,$query)); $total = $row['num']; $adjacents = "2"; $prevlabel = "&lsaquo; Prev"; $nextlabel = "Next &rsaquo;"; $lastlabel = "Last &rsaquo;&rsaquo;"; $page = ($page == 0 ? 1 : $page); $start = ($page - 1) * $per_page; $prev = $page - 1; $next = $page + 1; $lastpage = ceil($total/$per_page); $lpm1 = $lastpage - 1; // //last page minus 1 $pagination = ""; if($lastpage > 1){ $pagination .= "<ul class='pagination'>"; $pagination .= "<li class='page_info'>Page {$page} of {$lastpage}</li>"; if ($page > 1) $pagination.= "<li><a href='{$url}page={$prev}'>{$prevlabel}</a></li>"; if ($lastpage < 7 + ($adjacents * 2)){ for ($counter = 1; $counter <= $lastpage; $counter++){ if ($counter == $page) $pagination.= "<li><a class='current'>{$counter}</a></li>"; else $pagination.= "<li><a href='{$url}page={$counter}'>{$counter}</a></li>"; } } elseif($lastpage > 5 + ($adjacents * 2)){ if($page < 1 + ($adjacents * 2)) { for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++){ if ($counter == $page) $pagination.= "<li><a class='current'>{$counter}</a></li>"; else $pagination.= "<li><a href='{$url}page={$counter}'>{$counter}</a></li>"; } $pagination.= "<li class='dot'>...</li>"; $pagination.= "<li><a href='{$url}page={$lpm1}'>{$lpm1}</a></li>"; $pagination.= "<li><a href='{$url}page={$lastpage}'>{$lastpage}</a></li>"; } elseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2)) { $pagination.= "<li><a href='{$url}page=1'>1</a></li>"; $pagination.= "<li><a href='{$url}page=2'>2</a></li>"; $pagination.= "<li class='dot'>...</li>"; for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++) { if ($counter == $page) $pagination.= "<li><a class='current'>{$counter}</a></li>"; else $pagination.= "<li><a href='{$url}page={$counter}'>{$counter}</a></li>"; } $pagination.= "<li class='dot'>..</li>"; $pagination.= "<li><a href='{$url}page={$lpm1}'>{$lpm1}</a></li>"; $pagination.= "<li><a href='{$url}page={$lastpage}'>{$lastpage}</a></li>"; } else { $pagination.= "<li><a href='{$url}page=1'>1</a></li>"; $pagination.= "<li><a href='{$url}page=2'>2</a></li>"; $pagination.= "<li class='dot'>..</li>"; for ($counter = $lastpage - (2 + ($adjacents * 2)); $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "<li><a class='current'>{$counter}</a></li>"; else $pagination.= "<li><a href='{$url}page={$counter}'>{$counter}</a></li>"; } } } if ($page < $counter - 1) { $pagination.= "<li><a href='{$url}page={$next}'>{$nextlabel}</a></li>"; $pagination.= "<li><a href='{$url}page=$lastpage'>{$lastlabel}</a></li>"; } $pagination.= "</ul>"; } return $pagination; } function statustorrent($intstatus) { if( $intstatus == 1 ) return "Waiting to verify local files"; if( $intstatus == 2 ) return "Verifying local files"; if( $intstatus == 4 ) return "<font color=\"#DBA901\">Downloading</font>"; if( $intstatus == 6 ) return "<font color=\"green\">Seeding</font>"; if( $intstatus == 0 ) return "<font color=\"red\">Stopped</font>"; if( $intstatus == 5 ) return "Queued for seeding"; if( $intstatus == 3 ) return "Queued for download"; } function colorratio($ratio) { if( $ratio >= 1 ) $color = '#006600'; elseif( $ratio == 1 ) $color = '#33FF00'; elseif( $ratio >= 0.8 ) $color = '#FF9900'; elseif( $ratio >= 0.5 ) $color = '#FF3300'; elseif( $ratio >= 0 ) $color = '#FF0000 '; return "<font color=\"$color\">$ratio</font>"; } function rateupload($rate) { if( $rate > 0 ) return "<img src=\"mos-css/img/arrow_large_up.png\" title=\"".formatBytes($rate)."/s\">"; } ?>
gpires/BroadApi
class/functions.php
PHP
mit
5,568
# LearningAkkaJava A distributed key value database. My journey through the Learning Akka book by Jason Goodwin.
dazito/LearningAkkaJavaServer
README.md
Markdown
mit
115
# Namespace for library module P3 module TV # Settings for P3 TV class Settings attr_accessor :path DEFAULT_PATH = File::expand_path( "~/.p3tv/p3tv" ) EPISODES_JSON = 'episodes.json' DEFAULTS = { :library_path => '~/Movies/P3TV', :download_path => '~/Downloads', :delete_duplicate_downloads => false, :overwrite_duplicates => false, :allowed_types => ['.avi', '.mkv', '.mp4'], :language => 'en', :subtitles => ['.srt'], :high_def => true, :verbose => false, :dry_run => false, :series => [] } def self.exists?( path = DEFAULT_PATH ) File::exist?( path ) end def self.create_default!( path = DEFAULT_PATH ) raise "a settings file already exists. please delete #{path} first" if exists?( path ) FileUtils::mkdir_p( File::dirname( path ) ) settings = Settings.new( path ) DEFAULTS.each do | key, value | settings[ key ] = value end settings.save! end def self.set!( key, value, path = DEFAULT_PATH ) settings = Settings.new( path ) settings[ key ] = value settings.save! end def initialize( path = DEFAULT_PATH ) @path = path @values = {} @episodes = {} return unless File::exists?( @path ) FileUtils::mkdir_p( File::dirname( @path ) ) f = File::open( @path, 'r' ) @values = JSON.parse(f.read, symbolize_names: true) f.close self[:library_path] = File::expand_path( self[:library_path ] ) FileUtils::mkdir_p( self[:library_path] ) self[:download_path] = File::expand_path( self[:download_path ] ) self[:series].uniq! if( self[:overwrite_duplicates] and self[:delete_duplicate_downloads] ) raise "you cannot have 'overwrite_duplicates' and 'delete_duplicate_downloads' both set to true" end end def to_h @values end def []( key ) @values[ key.to_sym ] end def []=( key, value ) @values[ key.to_sym ] = value self.save! end def supported_paths_in_dir(dir = self[:download_path]) glob = File.join(dir, '**/*') all_file_paths = Dir.glob(glob) all_file_paths.select do |file_path| supported_file_extension?(file_path) end end def supported_file_extension?(path) return ( self[:allowed_types].include?( File::extname( path ) ) or self[:allowed_types].include?( File::extname( path ) ) ) end def get_series( seriesid ) return self[:series].detect{|s| s[:id] == seriesid } end def download_url!( url, path ) # http://stackoverflow.com/questions/2515931/how-can-i-download-a-file-from-a-url-and-save-it-in-rails return path if File::exists?( path ) begin download = open( url ) IO.copy_stream( download, path ) rescue => e return "" end return path end def download_banners!( banners, path ) FileUtils::mkdir_p( File::dirname( path ) ) return if banners.empty? banner = banners.detect{|b| b.url.length } return "" unless banner return download_url!( banner.url, path ) end def episodes( seriesid ) unless @episodes.has_key?( seriesid ) episode_file = File::join( series_dir( seriesid ), EPISODES_JSON ) if( File::exists?( episode_file ) ) f = File::open( episode_file ) @episodes[ seriesid ] = JSON::parse( f.read, :symbolize_names => true ) end end return @episodes[ seriesid ] end def each_series_episode_file_status( seriesid, search, downloads, library ) today = Date::today.to_s series_hash = self[:series].detect{|s| s[:id] == seriesid} return unless series_hash episodes( seriesid ).each do | episode_hash | next if episode_hash[:season_number] == 0 ep_file = P3::TV::EpisodeFile.new ep_file.series_id = episode_hash[:id] ep_file.series = series_hash[:name] ep_file.season = episode_hash[:season_number] ep_file.episode = episode_hash[:number] ep_file.title = episode_hash[:name] ep_file.air_date = episode_hash[:air_date] ep_file.thumbnail = episode_hash[:thumb_path] if( ( ep_file.air_date == nil ) or ( ep_file.air_date > today ) ) ep_file.percent_done = 0 ep_file.status = :upcoming ep_file.path = '' elsif( library.exists?( ep_file ) ) ep_file.percent_done = 1 ep_file.status = :cataloged ep_file.path = library.episode_path( ep_file ) elsif( download_path = downloads.get_path_if_exists( ep_file ) ) ep_file.percent_done = 1 ep_file.status = :downloaded ep_file.path = download_path elsif( torrent = downloads.get_torrent_if_exists( ep_file ) ) ep_file.percent_done = torrent['percentDone'] ep_file.status = :downloading ep_file.path = '' elsif( magnet_link = search.get_magnet_link_if_exists( ep_file ) ) ep_file.percent_done = 0 ep_file.status = :available ep_file.path = magnet_link else ep_file.percent_done = 0 ep_file.status = :missing ep_file.path = '' end yield( ep_file ) end end def series_dir( seriesid ) return File::join( File::dirname( @path ), 'series', seriesid ) end def download_episodes!( series ) meta_path = series_dir( series.id ) episodes = [] series.episodes.each do |episode| episode_hash = episode.to_h episode_hash[:thumb_path] = download_url!( episode_hash[:thumb], File::join( meta_path, "#{episode.id}.jpg" ) ) episodes << episode_hash end f = File::open( File::join( meta_path, EPISODES_JSON ), 'w' ) f.puts JSON::pretty_generate( episodes ) f.close() @episodes.delete( series.id ) #clear the cache end def add_series!( series ) meta_path = series_dir( series.id ) hash = series.to_h hash[:banners] = {} hash[:banners][:poster] = download_banners!(series.posters( self[:language] ), File::join( meta_path, 'poster.jpg' ) ) hash[:banners][:banner] = download_banners!( series.series_banners( self[:language] ), File::join( meta_path, 'banner.jpg' ) ) download_episodes!( series ) remove_series!( hash[:id] ) self[:series] << hash leading_the = /^The / self[:series].sort!{|a,b| a[:name].gsub(leading_the,'') <=> b[:name].gsub(leading_the,'') } self.save! end def update_series!( series ) return unless series.status == "Continuing" ep = self.episodes( series.id ) return unless( ep ) ep.select!{|e| e[:air_date] } ep.sort!{|a,b| b[:air_date] <=> a[:air_date] } #newest episode first today = Date::today.to_s if( ep.empty? or ( ep[0][:air_date] < today ) ) download_episodes!( series ) end end def remove_series!( seriesid ) self[:series].reject!{|s| s[:id] == seriesid } self.save! end def save! f = File::open( @path, 'w' ) f.puts( JSON::pretty_generate( @values ) ) f.close end end end end
poulh/tvtime
lib/p3-tv/settings.rb
Ruby
mit
7,815
import * as React from 'react'; function CubeIcon(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" {...props} > <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4" /> </svg> ); } export default CubeIcon;
dreamyguy/gitinsight
frontend/src/components/primitives/Icon/Cube.js
JavaScript
mit
442
<ion-header> <ion-navbar> <ion-title>{{'Wallet Color' | translate}}</ion-title> </ion-navbar> </ion-header> <ion-content class="wallet-color-count wallet-color-default"> <ion-list radio-group [(ngModel)]="currentColorIndex"> <ion-item *ngFor="let i of colorCount"> <ion-label> <span class="settings-color-block wallet-color-{{i}}"></span> </ion-label> <ion-radio (click)="save(i)" [value]="i"></ion-radio> </ion-item> </ion-list> </ion-content>
bitjson/copay
src/pages/settings/wallet-settings/wallet-color/wallet-color.html
HTML
mit
495
INCLUDE "hardware.inc" INCLUDE "header.inc" SECTION "Main",HOME ;-------------------------------------------------------------------------- ;- Main() - ;-------------------------------------------------------------------------- Main: ld a,$80 ld [rNR52],a ld a,$FF ld [rNR51],a ld a,$77 ld [rNR50],a ld a,$C0 ld [rNR11],a ld a,$E0 ld [rNR12],a ld a,$00 ld [rNR13],a ld a,$87 ld [rNR14],a ;-------------------------------- ld a,LCDCF_ON ld [rLCDC],a REPT 100 ld b,140 call wait_ly ld b,139 call wait_ly ENDR ;-------------------------------- ld a,0 ld [rIF],a ld a,IEF_HILO ld [rIE],a ;-------------------------------- ei .end: ld b,1 call wait_ly ld b,0 call wait_ly ld a,$00 ld [rP1],a ld a,$30 ld [rP1],a inc a inc a inc a inc a inc a jr .end
AntonioND/gbc-hw-tests
interrupts/joy_interrupt_manual_delay/main.asm
Assembly
mit
877
# module Hello class Identity < ActiveRecord::Base module Password extend ActiveSupport::Concern included do validates_presence_of :email, :password, if: :is_password? # email validates_email_format_of :email, if: :is_password? validates_uniqueness_of :email, message: 'already exists', if: :is_password? puts "username should be unique too".on_red # password validates_length_of :password, in: 4..200, too_long: 'pick a longer password', too_short: 'pick a shorter password', if: :is_password? end def is_password? strategy.to_s.inquiry.password? end module ClassMethods def encrypt(unencrypted_string) Digest::MD5.hexdigest(unencrypted_string) end end def should_reset_token? token_digested_at.blank? || token_digested_at < 7.days.ago end def reset_token uuid = SecureRandom.hex(8) # probability = 1 / (16 ** 16) digest = self.class.encrypt(uuid) update(token_digest: digest, token_digested_at: 1.second.ago) return uuid end def invalidate_token update(token_digest: nil, token_digested_at: nil) end private end end # end
stulzer/hello
app/models/concerns/identity/password.rb
Ruby
mit
1,455
<!DOCTYPE html> <html ng-app="myApp"> <head> <script src="http://code.angularjs.org/1.2.16/angular.min.js"></script> <script src="http://code.angularjs.org/1.2.16/angular-route.min.js"></script> <script src="/ng-tools/src/module.js"></script> <script src="/ng-tools/src/mark-current-links.js"></script> <script> console.log("app loaded"); var app = angular.module('myApp', ['ngRoute', 'ngTools']); app.config(function ($routeProvider, $locationProvider) { $locationProvider.html5Mode(true); //Setting HTML5 Location Mode var routes = [ { route:'/1', resolve: {template: '<h2>view 1</h2>'}}, { route:'/2', resolve: {template: '<h2>view 2</h2>', reloadOnSearch: false}}, { route:'/3', resolve: {template: '<h2>view 2</h2>', reloadOnSearch: false}} ]; routes.forEach(function(routeDef){ $routeProvider.when(routeDef.route, routeDef.resolve); }); }); app.controller('mainCtrl', function ($scope) { $scope.routes = [1,2,3]; $scope.addLink = function () { $scope.routes.push($scope.routes.length + 1); }; }) </script> <style type="text/css"> a.current p{ background-color: lightblue; } </style> </head> <body ng-controller="mainCtrl" mark-current-links> <a ng-repeat="link in routes" href="/{{ link }}"><p>Route {{link}}</p></a> <button ng-click="addLink()">add link</button> </body> </html>
capaj/ng-tools
showcase/markCurrentLinks.html
HTML
mit
1,586
var repl = require('repl'); var server = repl.start({}); var con = server.context; con.name='zfpx'; con.age = 5; con.grow = function(){ return ++con.age; }
liushaohua/node-demo
part01/repl.js
JavaScript
mit
160
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_92) on Sat Oct 22 19:44:39 CEST 2016 --> <title>Uses of Package com.vangav.backend.exceptions</title> <meta name="date" content="2016-10-22"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Package com.vangav.backend.exceptions"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li class="navBarCell1Rev">Use</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/vangav/backend/exceptions/package-use.html" target="_top">Frames</a></li> <li><a href="package-use.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h1 title="Uses of Package com.vangav.backend.exceptions" class="title">Uses of Package<br>com.vangav.backend.exceptions</h1> </div> <div class="contentContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../com/vangav/backend/exceptions/package-summary.html">com.vangav.backend.exceptions</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#com.vangav.backend.exceptions">com.vangav.backend.exceptions</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#com.vangav.backend.exceptions.handlers">com.vangav.backend.exceptions.handlers</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#com.vangav.backend.play_framework.request">com.vangav.backend.play_framework.request</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#com.vangav.backend.play_framework.request.response">com.vangav.backend.play_framework.request.response</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.vangav.backend.exceptions"> <!-- --> </a> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../com/vangav/backend/exceptions/package-summary.html">com.vangav.backend.exceptions</a> used by <a href="../../../../com/vangav/backend/exceptions/package-summary.html">com.vangav.backend.exceptions</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../com/vangav/backend/exceptions/class-use/VangavException.html#com.vangav.backend.exceptions">VangavException</a> <div class="block">VangavException is the parent exception class for all exceptions</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../com/vangav/backend/exceptions/class-use/VangavException.ExceptionClass.html#com.vangav.backend.exceptions">VangavException.ExceptionClass</a> <div class="block">ExceptionClass sub-type for an exception defining the logical source of the exception this helps classifying the exception</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../com/vangav/backend/exceptions/class-use/VangavException.ExceptionType.html#com.vangav.backend.exceptions">VangavException.ExceptionType</a> <div class="block">ExceptionType exception types for child classes</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.vangav.backend.exceptions.handlers"> <!-- --> </a> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../com/vangav/backend/exceptions/package-summary.html">com.vangav.backend.exceptions</a> used by <a href="../../../../com/vangav/backend/exceptions/handlers/package-summary.html">com.vangav.backend.exceptions.handlers</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../com/vangav/backend/exceptions/class-use/VangavException.ExceptionType.html#com.vangav.backend.exceptions.handlers">VangavException.ExceptionType</a> <div class="block">ExceptionType exception types for child classes</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.vangav.backend.play_framework.request"> <!-- --> </a> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../com/vangav/backend/exceptions/package-summary.html">com.vangav.backend.exceptions</a> used by <a href="../../../../com/vangav/backend/play_framework/request/package-summary.html">com.vangav.backend.play_framework.request</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../com/vangav/backend/exceptions/class-use/VangavException.html#com.vangav.backend.play_framework.request">VangavException</a> <div class="block">VangavException is the parent exception class for all exceptions</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.vangav.backend.play_framework.request.response"> <!-- --> </a> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../com/vangav/backend/exceptions/package-summary.html">com.vangav.backend.exceptions</a> used by <a href="../../../../com/vangav/backend/play_framework/request/response/package-summary.html">com.vangav.backend.play_framework.request.response</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../com/vangav/backend/exceptions/class-use/VangavException.html#com.vangav.backend.play_framework.request.response">VangavException</a> <div class="block">VangavException is the parent exception class for all exceptions</div> </td> </tr> </tbody> </table> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li class="navBarCell1Rev">Use</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/vangav/backend/exceptions/package-use.html" target="_top">Frames</a></li> <li><a href="package-use.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
vangav/vos_backend
doc/com/vangav/backend/exceptions/package-use.html
HTML
mit
9,618
--- layout: page title: Library Students categories: [] tags: [] status: draft type: page published: false meta: _edit_last: '1' --- [nggallery id=8]<br /><br />
nu-lts/jekyll-snippets
_pages/2012-09-18-library-students.html
HTML
mit
164
// // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved // LICENSE: Atomic Game Engine Editor and Tools EULA // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for // license information: https://github.com/AtomicGameEngine/AtomicGameEngine // #include <Atomic/Core/ProcessUtils.h> #include <Atomic/IO/Log.h> #include <Atomic/IO/FileSystem.h> #include <Atomic/Engine/Engine.h> #include <Atomic/Resource/ResourceCache.h> #include <ToolCore/ToolSystem.h> #include <ToolCore/ToolEnvironment.h> #include <ToolCore/Build/BuildSystem.h> #include <ToolCore/License/LicenseEvents.h> #include <ToolCore/License/LicenseSystem.h> #include <ToolCore/Command/Command.h> #include <ToolCore/Command/CommandParser.h> #include "AtomicTool.h" DEFINE_APPLICATION_MAIN(AtomicTool::AtomicTool); using namespace ToolCore; namespace AtomicTool { AtomicTool::AtomicTool(Context* context) : Application(context), deactivate_(false) { } AtomicTool::~AtomicTool() { } void AtomicTool::Setup() { const Vector<String>& arguments = GetArguments(); for (unsigned i = 0; i < arguments.Size(); ++i) { if (arguments[i].Length() > 1) { String argument = arguments[i].ToLower(); String value = i + 1 < arguments.Size() ? arguments[i + 1] : String::EMPTY; if (argument == "--cli-data-path") { if (!value.Length()) ErrorExit("Unable to parse --cli-data-path"); cliDataPath_ = AddTrailingSlash(value); } else if (argument == "--activate") { if (!value.Length()) ErrorExit("Unable to parse --activation product key"); activationKey_ = value; } else if (argument == "--deactivate") { deactivate_ = true; } } } engineParameters_["Headless"] = true; engineParameters_["LogLevel"] = LOG_INFO; // no default resources (will be initialized later) engineParameters_["ResourcePaths"] = ""; } void AtomicTool::HandleCommandFinished(StringHash eventType, VariantMap& eventData) { GetSubsystem<Engine>()->Exit(); } void AtomicTool::HandleCommandError(StringHash eventType, VariantMap& eventData) { String error = "Command Error"; const String& message = eventData[CommandError::P_MESSAGE].ToString(); if (message.Length()) error = message; ErrorExit(error); } void AtomicTool::HandleLicenseEulaRequired(StringHash eventType, VariantMap& eventData) { ErrorExit("\nActivation Required: Please run: atomic-cli activate\n"); } void AtomicTool::HandleLicenseActivationRequired(StringHash eventType, VariantMap& eventData) { ErrorExit("\nActivation Required: Please run: atomic-cli activate\n"); } void AtomicTool::HandleLicenseSuccess(StringHash eventType, VariantMap& eventData) { if (command_.Null()) { GetSubsystem<Engine>()->Exit(); return; } command_->Run(); } void AtomicTool::HandleLicenseError(StringHash eventType, VariantMap& eventData) { ErrorExit("\nActivation Required: Please run: atomic-cli activate\n"); } void AtomicTool::HandleLicenseActivationError(StringHash eventType, VariantMap& eventData) { String message = eventData[LicenseActivationError::P_MESSAGE].ToString(); ErrorExit(message); } void AtomicTool::HandleLicenseActivationSuccess(StringHash eventType, VariantMap& eventData) { LOGRAW("\nActivation successful, thank you!\n\n"); GetSubsystem<Engine>()->Exit(); } void AtomicTool::DoActivation() { LicenseSystem* licenseSystem = GetSubsystem<LicenseSystem>(); if (!licenseSystem->ValidateKey(activationKey_)) { ErrorExit(ToString("\nProduct key \"%s\" is invalid, keys are in the form ATOMIC-XXXX-XXXX-XXXX-XXXX\n", activationKey_.CString())); return; } licenseSystem->LicenseAgreementConfirmed(); SubscribeToEvent(E_LICENSE_ACTIVATIONERROR, HANDLER(AtomicTool, HandleLicenseActivationError)); SubscribeToEvent(E_LICENSE_ACTIVATIONSUCCESS, HANDLER(AtomicTool, HandleLicenseActivationSuccess)); licenseSystem->RequestServerActivation(activationKey_); } void AtomicTool::HandleLicenseDeactivationError(StringHash eventType, VariantMap& eventData) { String message = eventData[LicenseDeactivationError::P_MESSAGE].ToString(); ErrorExit(message); } void AtomicTool::HandleLicenseDeactivationSuccess(StringHash eventType, VariantMap& eventData) { LOGRAW("\nDeactivation successful\n\n"); GetSubsystem<Engine>()->Exit(); } void AtomicTool::DoDeactivation() { LicenseSystem* licenseSystem = GetSubsystem<LicenseSystem>(); if (!licenseSystem->LoadLicense()) { ErrorExit("\nNot activated"); return; } if (!licenseSystem->Deactivate()) { ErrorExit("\nNot activated\n"); return; } SubscribeToEvent(E_LICENSE_DEACTIVATIONERROR, HANDLER(AtomicTool, HandleLicenseDeactivationError)); SubscribeToEvent(E_LICENSE_DEACTIVATIONSUCCESS, HANDLER(AtomicTool, HandleLicenseDeactivationSuccess)); } void AtomicTool::Start() { // Subscribe to events SubscribeToEvent(E_COMMANDERROR, HANDLER(AtomicTool, HandleCommandError)); SubscribeToEvent(E_COMMANDFINISHED, HANDLER(AtomicTool, HandleCommandFinished)); SubscribeToEvent(E_LICENSE_EULAREQUIRED, HANDLER(AtomicTool, HandleLicenseEulaRequired)); SubscribeToEvent(E_LICENSE_ACTIVATIONREQUIRED, HANDLER(AtomicTool, HandleLicenseActivationRequired)); SubscribeToEvent(E_LICENSE_ERROR, HANDLER(AtomicTool, HandleLicenseError)); SubscribeToEvent(E_LICENSE_SUCCESS, HANDLER(AtomicTool, HandleLicenseSuccess)); const Vector<String>& arguments = GetArguments(); ToolSystem* tsystem = new ToolSystem(context_); context_->RegisterSubsystem(tsystem); ToolEnvironment* env = new ToolEnvironment(context_); context_->RegisterSubsystem(env); //#ifdef ATOMIC_DEV_BUILD if (!env->InitFromJSON()) { ErrorExit(ToString("Unable to initialize tool environment from %s", env->GetDevConfigFilename().CString())); return; } if (!cliDataPath_.Length()) { cliDataPath_ = env->GetRootSourceDir() + "/Resources/"; } //#endif ResourceCache* cache = GetSubsystem<ResourceCache>(); cache->AddResourceDir(env->GetCoreDataDir()); cache->AddResourceDir(env->GetPlayerDataDir()); tsystem->SetCLI(); tsystem->SetDataPath(cliDataPath_); if (activationKey_.Length()) { DoActivation(); return; } else if (deactivate_) { DoDeactivation(); return; } BuildSystem* buildSystem = GetSubsystem<BuildSystem>(); SharedPtr<CommandParser> parser(new CommandParser(context_)); SharedPtr<Command> cmd(parser->Parse(arguments)); if (!cmd) { String error = "No command found"; if (parser->GetErrorMessage().Length()) error = parser->GetErrorMessage(); ErrorExit(error); return; } if (cmd->RequiresProjectLoad()) { FileSystem* fileSystem = GetSubsystem<FileSystem>(); String projectDirectory = fileSystem->GetCurrentDir(); Vector<String> projectFiles; fileSystem->ScanDir(projectFiles, projectDirectory, "*.atomic", SCAN_FILES, false); if (!projectFiles.Size()) { ErrorExit(ToString("No .atomic project file in %s", projectDirectory.CString())); return; } else if (projectFiles.Size() > 1) { ErrorExit(ToString("Multiple .atomic project files found in %s", projectDirectory.CString())); return; } String projectFile = projectDirectory + "/" + projectFiles[0]; if (!tsystem->LoadProject(projectFile)) { //ErrorExit(ToString("Failed to load project: %s", projectFile.CString())); //return; } // Set the build path String buildFolder = projectDirectory + "/" + "Build"; buildSystem->SetBuildPath(buildFolder); if (!fileSystem->DirExists(buildFolder)) { fileSystem->CreateDir(buildFolder); if (!fileSystem->DirExists(buildFolder)) { ErrorExit(ToString("Failed to create build folder: %s", buildFolder.CString())); return; } } } command_ = cmd; // BEGIN LICENSE MANAGEMENT if (cmd->RequiresLicenseValidation()) { GetSubsystem<LicenseSystem>()->Initialize(); } else { if (command_.Null()) { GetSubsystem<Engine>()->Exit(); return; } command_->Run(); } // END LICENSE MANAGEMENT } void AtomicTool::Stop() { } void AtomicTool::ErrorExit(const String& message) { engine_->Exit(); // Close the rendering window exitCode_ = EXIT_FAILURE; // Only for WIN32, otherwise the error messages would be double posted on Mac OS X and Linux platforms if (!message.Length()) { #ifdef WIN32 Atomic::ErrorExit(startupErrors_.Length() ? startupErrors_ : "Application has been terminated due to unexpected error.", exitCode_); #endif } else Atomic::ErrorExit(message, exitCode_); } }
nonconforme/AtomicGameEngine
Source/AtomicTool/AtomicTool.cpp
C++
mit
9,385
/* * boatWithSupport.cpp * * Created on: 16 de Abr de 2013 * Author: Windows */ #include "BoatWithSupport.h" BoatWithSupport::BoatWithSupport(int extraCapacity) : Boat() { extraCap = extraCapacity; lastMaxCap = 0; lastTransported = 0; } BoatWithSupport::BoatWithSupport(int capacity, int extraCapacity) : Boat(capacity) { extraCap = extraCapacity; lastMaxCap = 0; lastTransported = 0; } int BoatWithSupport::getExtraCapacity() { return extraCap; } int BoatWithSupport::getMaxCapacity() { return this->maxCapacity + this->extraCap; } BoatWithSupport::~BoatWithSupport() { // TODO Auto-generated destructor stub } void BoatWithSupport::reset() { this->transportedQuantity = lastTransported; this->maxCapacity = lastMaxCap; } void BoatWithSupport::resize() { this->lastMaxCap = this->maxCapacity; this->maxCapacity = this->extraCap; lastTransported = this->transportedQuantity; this->transportedQuantity = this->extraCap; }
jnadal/CAL
Projecto 1/codigo/source/BoatWithSupport.cpp
C++
mit
1,007
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "corponovo.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the # issue is really that Django is missing to avoid masking other # exceptions on Python 2. try: import django except ImportError: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) raise execute_from_command_line(sys.argv)
hhalmeida/corponovo
manage.py
Python
mit
807
import time t1=.3 t2=.1 path="~/Dropbox/Ingenieria/asignaturas_actuales" time.sleep(t2) keyboard.send_key("<f6>") time.sleep(t2) keyboard.send_keys(path) time.sleep(t1) keyboard.send_key("<enter>")
andresgomezvidal/autokey_scripts
data/General/file manager/asignaturas_actuales.py
Python
mit
200
package org.bitbucket.ytimes.client.main; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * Created by andrey on 27.05.17. */ public class Main { public static void main( String[] args ) throws Exception { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("root-context.xml"); } }
ytimesru/kkm-pc-client
src/main/java/org/bitbucket/ytimes/client/main/Main.java
Java
mit
372
require 'oplogjam/noop' require 'oplogjam/insert' require 'oplogjam/update' require 'oplogjam/delete' require 'oplogjam/command' require 'oplogjam/apply_ops' module Oplogjam InvalidOperation = Class.new(ArgumentError) class Operation def self.from(bson) op = bson.fetch(OP, UNKNOWN) case op when N then Noop.from(bson) when I then Insert.from(bson) when U then Update.from(bson) when D then Delete.from(bson) when C if bson.fetch(O, {}).key?(APPLY_OPS) ApplyOps.from(bson) else Command.from(bson) end else raise InvalidOperation, "invalid operation: #{bson}" end end end end
mudge/oplogjam
lib/oplogjam/operation.rb
Ruby
mit
698
from charmhelpers.core.hookenv import ( config, unit_get, ) from charmhelpers.contrib.network.ip import ( get_address_in_network, is_address_in_network, is_ipv6, get_ipv6_addr, ) from charmhelpers.contrib.hahelpers.cluster import is_clustered PUBLIC = 'public' INTERNAL = 'int' ADMIN = 'admin' _address_map = { PUBLIC: { 'config': 'os-public-network', 'fallback': 'public-address' }, INTERNAL: { 'config': 'os-internal-network', 'fallback': 'private-address' }, ADMIN: { 'config': 'os-admin-network', 'fallback': 'private-address' } } def canonical_url(configs, endpoint_type=PUBLIC): ''' Returns the correct HTTP URL to this host given the state of HTTPS configuration, hacluster and charm configuration. :configs OSTemplateRenderer: A config tempating object to inspect for a complete https context. :endpoint_type str: The endpoint type to resolve. :returns str: Base URL for services on the current service unit. ''' scheme = 'http' if 'https' in configs.complete_contexts(): scheme = 'https' address = resolve_address(endpoint_type) if is_ipv6(address): address = "[{}]".format(address) return '%s://%s' % (scheme, address) def resolve_address(endpoint_type=PUBLIC): resolved_address = None if is_clustered(): if config(_address_map[endpoint_type]['config']) is None: # Assume vip is simple and pass back directly resolved_address = config('vip') else: for vip in config('vip').split(): if is_address_in_network( config(_address_map[endpoint_type]['config']), vip): resolved_address = vip else: if config('prefer-ipv6'): fallback_addr = get_ipv6_addr() else: fallback_addr = unit_get(_address_map[endpoint_type]['fallback']) resolved_address = get_address_in_network( config(_address_map[endpoint_type]['config']), fallback_addr) if resolved_address is None: raise ValueError('Unable to resolve a suitable IP address' ' based on charm state and configuration') else: return resolved_address
jiasir/openstack-trove
lib/charmhelpers/contrib/openstack/ip.py
Python
mit
2,332
# js-base
dingchaolin/js-base
README.md
Markdown
mit
9
package alexp.blog.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import alexp.blog.repository.*; import alexp.blog.model.Schedule; @Service("ScheduleService") public class ScheduleServiceImpl implements ScheduleService{ @Autowired private ScheduleRepository schedulerepository; @Override public Schedule getSchedule(String username) { // TODO Auto-generated method stub System.out.println("I am in service"); return schedulerepository.findByUsernameIgnoreCase(username); } }
ericjin527/MockInterview
src/main/java/alexp/blog/service/ScheduleServiceImpl.java
Java
mit
569
export default { queryRouteList: '/routes', queryUserInfo: '/user', logoutUser: '/user/logout', loginUser: 'POST /user/login', queryUser: '/user/:id', queryUserList: '/users', updateUser: 'Patch /user/:id', createUser: 'POST /user', removeUser: 'DELETE /user/:id', removeUserList: 'POST /users/delete', queryPostList: '/posts', queryDashboard: '/dashboard', }
zuiidea/antd-admin
src/services/api.js
JavaScript
mit
388
import Controller from '@ember/controller'; import { debounce } from '@ember/runloop'; import fetch from 'fetch'; import RSVP from 'rsvp'; export default class extends Controller { searchRepo(term) { return new RSVP.Promise((resolve, reject) => { debounce(_performSearch, term, resolve, reject, 600); }); } } function _performSearch(term, resolve, reject) { let url = `https://api.github.com/search/repositories?q=${term}`; fetch(url).then((resp) => resp.json()).then((json) => resolve(json.items), reject); }
cibernox/ember-power-select
tests/dummy/app/templates/snippets/debounce-searches-1-js.js
JavaScript
mit
534
<html> <head> <title>User agent detail - Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11) /Kyocera-E4000</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> </head> <body> <div class="container"> <div class="section"> <h1 class="header center orange-text">User agent detail</h1> <div class="row center"> <h5 class="header light"> Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11) /Kyocera-E4000 </h5> </div> </div> <div class="section"> <table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Source result (test suite)</th></tr><tr><td>ua-parser/uap-core<br /><small>vendor/thadafinser/uap-core/tests/test_device.yaml</small></td><td> </td><td> </td><td> </td><td style="border-left: 1px solid #555">Kyocera</td><td>E4000</td><td></td><td></td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-test">Detail</a> <!-- Modal Structure --> <div id="modal-test" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Testsuite result detail</h4> <p><pre><code class="php">Array ( [user_agent_string] => Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11) /Kyocera-E4000 [family] => Kyocera E4000 [brand] => Kyocera [model] => E4000 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapPhp<br /><small>6012</small></td><td>IEMobile 7.11</td><td>Trident 3.1</td><td>WinCE </td><td style="border-left: 1px solid #555"></td><td></td><td>Mobile Phone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.023</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-215ac98d-ccf8-4615-916e-5a819d6a59c9">Detail</a> <!-- Modal Structure --> <div id="modal-215ac98d-ccf8-4615-916e-5a819d6a59c9" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>BrowscapPhp result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^mozilla\/4\.0 \(compatible.*; msie 6\.0; windows ce; iemobile.7\.11.*$/ [browser_name_pattern] => mozilla/4.0 (compatible*; msie 6.0; windows ce; iemobile?7.11* [parent] => IEMobile 7.11 [comment] => IEMobile 7.11 [browser] => IEMobile [browser_type] => Browser [browser_bits] => 32 [browser_maker] => Microsoft Corporation [browser_modus] => unknown [version] => 7.11 [majorver] => 7 [minorver] => 11 [platform] => WinCE [platform_version] => unknown [platform_description] => Windows CE [platform_bits] => 32 [platform_maker] => Microsoft Corporation [alpha] => [beta] => [win16] => [win32] => [win64] => [frames] => 1 [iframes] => 1 [tables] => 1 [cookies] => 1 [backgroundsounds] => 1 [javascript] => 1 [vbscript] => 1 [javaapplets] => 1 [activexcontrols] => 1 [ismobiledevice] => 1 [istablet] => [issyndicationreader] => [crawler] => [cssversion] => 2 [aolversion] => 0 [device_name] => general Mobile Phone [device_maker] => unknown [device_type] => Mobile Phone [device_pointing_method] => unknown [device_code_name] => general Mobile Phone [device_brand_name] => unknown [renderingengine_name] => Trident [renderingengine_version] => 3.1 [renderingengine_description] => For Internet Explorer since version 4.0 and embedded WebBrowser controls (such as Internet Explorer shells, Maxthon and some media players). [renderingengine_maker] => Microsoft Corporation ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>DonatjUAParser<br /><small>v0.5.0</small></td><td>IEMobile 7.11</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661">Detail</a> <!-- Modal Structure --> <div id="modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>DonatjUAParser result detail</h4> <p><pre><code class="php">Array ( [platform] => Windows [browser] => IEMobile [version] => 7.11 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>NeutrinoApiCom<br /><small></small></td><td>IE Mobile 7.11</td><td><i class="material-icons">close</i></td><td>Windows </td><td style="border-left: 1px solid #555">Kyocera</td><td>E4000</td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.21202</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc">Detail</a> <!-- Modal Structure --> <div id="modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>NeutrinoApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [mobile_screen_height] => 320 [is_mobile] => 1 [type] => mobile-browser [mobile_brand] => Kyocera [mobile_model] => E4000 [version] => 7.11 [is_android] => [browser_name] => IE Mobile [operating_system_family] => Windows [operating_system_version] => [is_ios] => [producer] => Microsoft Corporation. [operating_system] => Windows CE [mobile_screen_width] => 240 [mobile_browser] => Microsoft Mobile Explorer ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>PiwikDeviceDetector<br /><small>3.5.2</small></td><td>IE Mobile 7.11</td><td>Trident </td><td>Windows CE </td><td style="border-left: 1px solid #555">Kyocera</td><td>E4000</td><td>smartphone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.004</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-21638055-738d-46ba-a1b1-f5114bc26475">Detail</a> <!-- Modal Structure --> <div id="modal-21638055-738d-46ba-a1b1-f5114bc26475" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>PiwikDeviceDetector result detail</h4> <p><pre><code class="php">Array ( [client] => Array ( [type] => browser [name] => IE Mobile [short_name] => IM [version] => 7.11 [engine] => Trident ) [operatingSystem] => Array ( [name] => Windows CE [short_name] => WCE [version] => [platform] => ) [device] => Array ( [brand] => KY [brandName] => Kyocera [model] => E4000 [device] => 1 [deviceName] => smartphone ) [bot] => [extra] => Array ( [isBot] => [isBrowser] => 1 [isFeedReader] => [isMobileApp] => [isPIM] => [isLibrary] => [isMediaPlayer] => [isCamera] => [isCarBrowser] => [isConsole] => [isFeaturePhone] => [isPhablet] => [isPortableMediaPlayer] => [isSmartDisplay] => [isSmartphone] => 1 [isTablet] => [isTV] => [isDesktop] => [isMobile] => 1 [isTouchEnabled] => ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.0</small></td><td>Internet Explorer 6.0</td><td><i class="material-icons">close</i></td><td>Windows CE</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-5415e7f2-ef7b-434c-abe0-b71ba9f6707c">Detail</a> <!-- Modal Structure --> <div id="modal-5415e7f2-ef7b-434c-abe0-b71ba9f6707c" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>SinergiBrowserDetector result detail</h4> <p><pre><code class="php">Array ( [browser] => Sinergi\BrowserDetector\Browser Object ( [userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11) /Kyocera-E4000 ) [name:Sinergi\BrowserDetector\Browser:private] => Internet Explorer [version:Sinergi\BrowserDetector\Browser:private] => 6.0 [isRobot:Sinergi\BrowserDetector\Browser:private] => [isChromeFrame:Sinergi\BrowserDetector\Browser:private] => ) [operatingSystem] => Sinergi\BrowserDetector\Os Object ( [name:Sinergi\BrowserDetector\Os:private] => Windows [version:Sinergi\BrowserDetector\Os:private] => CE [isMobile:Sinergi\BrowserDetector\Os:private] => [userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11) /Kyocera-E4000 ) ) [device] => Sinergi\BrowserDetector\Device Object ( [name:Sinergi\BrowserDetector\Device:private] => unknown [userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11) /Kyocera-E4000 ) ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UAParser<br /><small>v3.4.5</small></td><td>IE Mobile 7.11</td><td><i class="material-icons">close</i></td><td>Windows CE </td><td style="border-left: 1px solid #555">Kyocera</td><td>E4000</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.002</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b">Detail</a> <!-- Modal Structure --> <div id="modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">UAParser\Result\Client Object ( [ua] => UAParser\Result\UserAgent Object ( [major] => 7 [minor] => 11 [patch] => [family] => IE Mobile ) [os] => UAParser\Result\OperatingSystem Object ( [major] => [minor] => [patch] => [patchMinor] => [family] => Windows CE ) [device] => UAParser\Result\Device Object ( [brand] => Kyocera [model] => E4000 [family] => Kyocera E4000 ) [originalUserAgent] => Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11) /Kyocera-E4000 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentStringCom<br /><small></small></td><td>IE Mobile 7.11</td><td><i class="material-icons">close</i></td><td>Windows CE </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.06001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-9cdd8b45-a2eb-406b-bd27-7e48af38ffd4">Detail</a> <!-- Modal Structure --> <div id="modal-9cdd8b45-a2eb-406b-bd27-7e48af38ffd4" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentStringCom result detail</h4> <p><pre><code class="php">stdClass Object ( [agent_type] => Browser [agent_name] => IE Mobile [agent_version] => 7.11 [os_type] => Windows [os_name] => Windows CE [os_versionName] => [os_versionNumber] => [os_producer] => [os_producerURL] => [linux_distibution] => Null [agent_language] => [agent_languageTag] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small></td><td>Internet Explorer Mobile </td><td> </td><td>Windows </td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.40604</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-9795f66f-7271-430e-973a-a5c0e14dc35a">Detail</a> <!-- Modal Structure --> <div id="modal-9795f66f-7271-430e-973a-a5c0e14dc35a" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhatIsMyBrowserCom result detail</h4> <p><pre><code class="php">stdClass Object ( [operating_system_name] => Windows [simple_sub_description_string] => [simple_browser_string] => Internet Explorer Mobile on Windows CE [browser_version] => [extra_info] => Array ( ) [operating_platform] => [extra_info_table] => Array ( ) [layout_engine_name] => [detected_addons] => Array ( ) [operating_system_flavour_code] => [hardware_architecture] => [operating_system_flavour] => [operating_system_frameworks] => Array ( ) [browser_name_code] => internet-explorer-mobile [operating_system_version] => CE [simple_operating_platform_string] => [is_abusive] => [layout_engine_version] => [browser_capabilities] => Array ( ) [operating_platform_vendor_name] => [operating_system] => Windows CE [operating_system_version_full] => [operating_platform_code] => [browser_name] => Internet Explorer Mobile [operating_system_name_code] => windows [user_agent] => Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11) /Kyocera-E4000 [browser_version_full] => [browser] => Internet Explorer Mobile ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhichBrowser<br /><small>2.0.10</small></td><td>Mobile Internet Explorer 6.0</td><td> </td><td>Windows Mobile 6.1</td><td style="border-left: 1px solid #555"></td><td>/Kyocera-E4000</td><td>mobile:smart</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.014</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4">Detail</a> <!-- Modal Structure --> <div id="modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhichBrowser result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [name] => Mobile Internet Explorer [version] => 6.0 [type] => browser ) [os] => Array ( [name] => Windows Mobile [version] => 6.1 ) [device] => Array ( [type] => mobile [subtype] => smart [model] => /Kyocera-E4000 ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Woothee<br /><small>v1.2.0</small></td><td>Internet Explorer 6.0</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-3f285ff5-314b-4db4-9948-54572e92e7b6">Detail</a> <!-- Modal Structure --> <div id="modal-3f285ff5-314b-4db4-9948-54572e92e7b6" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Woothee result detail</h4> <p><pre><code class="php">Array ( [name] => Internet Explorer [vendor] => Microsoft [version] => 6.0 [category] => smartphone [os] => Windows CE [os_version] => CE ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Wurfl<br /><small>1.6.4</small></td><td>IE Mobile </td><td><i class="material-icons">close</i></td><td>Windows Mobile </td><td style="border-left: 1px solid #555">Kyocera</td><td>E4000</td><td>Feature Phone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.055</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-1a1aee36-7ce7-4111-a391-8e2c501f1532">Detail</a> <!-- Modal Structure --> <div id="modal-1a1aee36-7ce7-4111-a391-8e2c501f1532" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Wurfl result detail</h4> <p><pre><code class="php">Array ( [virtual] => Array ( [is_android] => false [is_ios] => false [is_windows_phone] => false [is_app] => false [is_full_desktop] => false [is_largescreen] => false [is_mobile] => true [is_robot] => false [is_smartphone] => false [is_touchscreen] => false [is_wml_preferred] => false [is_xhtmlmp_preferred] => true [is_html_preferred] => false [advertised_device_os] => Windows Mobile [advertised_device_os_version] => [advertised_browser] => IE Mobile [advertised_browser_version] => [complete_device_name] => Kyocera E4000 [form_factor] => Feature Phone [is_phone] => true [is_app_webview] => false ) [all] => Array ( [brand_name] => Kyocera [model_name] => E4000 [unique] => true [ununiqueness_handler] => [is_wireless_device] => true [device_claims_web_support] => true [has_qwerty_keyboard] => false [can_skip_aligned_link_row] => true [uaprof] => [uaprof2] => [uaprof3] => [nokia_series] => 0 [nokia_edition] => 0 [device_os] => Windows Mobile OS [mobile_browser] => Microsoft Mobile Explorer [mobile_browser_version] => 7.6 [device_os_version] => 6.0 [pointing_method] => [release_date] => 2008_august [marketing_name] => [model_extra_info] => [nokia_feature_pack] => 0 [can_assign_phone_number] => true [is_tablet] => false [manufacturer_name] => [is_bot] => false [is_google_glass] => false [proportional_font] => false [built_in_back_button_support] => false [card_title_support] => true [softkey_support] => false [table_support] => true [numbered_menus] => false [menu_with_select_element_recommended] => false [menu_with_list_of_links_recommended] => true [icons_on_menu_items_support] => false [break_list_of_links_with_br_element_recommended] => true [access_key_support] => false [wrap_mode_support] => false [times_square_mode_support] => false [deck_prefetch_support] => false [elective_forms_recommended] => true [wizards_recommended] => false [image_as_link_support] => false [insert_br_element_after_widget_recommended] => false [wml_can_display_images_and_text_on_same_line] => false [wml_displays_image_in_center] => false [opwv_wml_extensions_support] => false [wml_make_phone_call_string] => wtai://wp/mc; [chtml_display_accesskey] => false [emoji] => false [chtml_can_display_images_and_text_on_same_line] => false [chtml_displays_image_in_center] => false [imode_region] => none [chtml_make_phone_call_string] => tel: [chtml_table_support] => true [xhtml_honors_bgcolor] => true [xhtml_supports_forms_in_table] => true [xhtml_support_wml2_namespace] => false [xhtml_autoexpand_select] => false [xhtml_select_as_dropdown] => false [xhtml_select_as_radiobutton] => false [xhtml_select_as_popup] => false [xhtml_display_accesskey] => false [xhtml_supports_invisible_text] => false [xhtml_supports_inline_input] => false [xhtml_supports_monospace_font] => false [xhtml_supports_table_for_layout] => true [xhtml_supports_css_cell_table_coloring] => true [xhtml_format_as_css_property] => true [xhtml_format_as_attribute] => false [xhtml_nowrap_mode] => false [xhtml_marquee_as_css_property] => true [xhtml_readable_background_color1] => #FFFFFF [xhtml_readable_background_color2] => #FFFFFF [xhtml_allows_disabled_form_elements] => false [xhtml_document_title_support] => true [xhtml_preferred_charset] => utf8 [opwv_xhtml_extensions_support] => false [xhtml_make_phone_call_string] => tel: [xhtmlmp_preferred_mime_type] => application/xhtml+xml [xhtml_table_support] => true [xhtml_send_sms_string] => none [xhtml_send_mms_string] => none [xhtml_file_upload] => not_supported [cookie_support] => true [accept_third_party_cookie] => true [xhtml_supports_iframe] => full [xhtml_avoid_accesskeys] => false [xhtml_can_embed_video] => none [ajax_support_javascript] => true [ajax_manipulate_css] => false [ajax_support_getelementbyid] => false [ajax_support_inner_html] => false [ajax_xhr_type] => none [ajax_manipulate_dom] => false [ajax_support_events] => false [ajax_support_event_listener] => false [ajax_preferred_geoloc_api] => none [xhtml_support_level] => 3 [preferred_markup] => html_wi_oma_xhtmlmp_1_0 [wml_1_1] => true [wml_1_2] => true [wml_1_3] => true [html_wi_w3_xhtmlbasic] => true [html_wi_oma_xhtmlmp_1_0] => true [html_wi_imode_html_1] => true [html_wi_imode_html_2] => true [html_wi_imode_html_3] => true [html_wi_imode_html_4] => false [html_wi_imode_html_5] => false [html_wi_imode_htmlx_1] => false [html_wi_imode_htmlx_1_1] => false [html_wi_imode_compact_generic] => false [html_web_3_2] => true [html_web_4_0] => true [voicexml] => false [multipart_support] => false [total_cache_disable_support] => false [time_to_live_support] => false [resolution_width] => 240 [resolution_height] => 320 [columns] => 15 [max_image_width] => 228 [max_image_height] => 280 [rows] => 7 [physical_screen_width] => 27 [physical_screen_height] => 27 [dual_orientation] => false [density_class] => 1.0 [wbmp] => true [bmp] => false [epoc_bmp] => false [gif_animated] => true [jpg] => true [png] => true [tiff] => false [transparent_png_alpha] => false [transparent_png_index] => false [svgt_1_1] => false [svgt_1_1_plus] => false [greyscale] => false [gif] => true [colors] => 4096 [webp_lossy_support] => false [webp_lossless_support] => false [post_method_support] => true [basic_authentication_support] => true [empty_option_value_support] => true [emptyok] => false [nokia_voice_call] => false [wta_voice_call] => false [wta_phonebook] => false [wta_misc] => false [wta_pdc] => false [https_support] => true [phone_id_provided] => false [max_data_rate] => 200 [wifi] => true [sdio] => false [vpn] => false [has_cellular_radio] => true [max_deck_size] => 16384 [max_url_length_in_requests] => 256 [max_url_length_homepage] => 0 [max_url_length_bookmark] => 0 [max_url_length_cached_page] => 0 [max_no_of_connection_settings] => 0 [max_no_of_bookmarks] => 0 [max_length_of_username] => 0 [max_length_of_password] => 0 [max_object_size] => 0 [downloadfun_support] => false [directdownload_support] => true [inline_support] => false [oma_support] => false [ringtone] => true [ringtone_3gpp] => false [ringtone_midi_monophonic] => true [ringtone_midi_polyphonic] => true [ringtone_imelody] => false [ringtone_digiplug] => false [ringtone_compactmidi] => false [ringtone_mmf] => false [ringtone_rmf] => false [ringtone_xmf] => false [ringtone_amr] => false [ringtone_awb] => false [ringtone_aac] => false [ringtone_wav] => true [ringtone_mp3] => false [ringtone_spmidi] => false [ringtone_qcelp] => false [ringtone_voices] => 16 [ringtone_df_size_limit] => 0 [ringtone_directdownload_size_limit] => 0 [ringtone_inline_size_limit] => 0 [ringtone_oma_size_limit] => 0 [wallpaper] => true [wallpaper_max_width] => 176 [wallpaper_max_height] => 220 [wallpaper_preferred_width] => 176 [wallpaper_preferred_height] => 220 [wallpaper_resize] => none [wallpaper_wbmp] => false [wallpaper_bmp] => false [wallpaper_gif] => true [wallpaper_jpg] => true [wallpaper_png] => true [wallpaper_tiff] => false [wallpaper_greyscale] => false [wallpaper_colors] => 8 [wallpaper_df_size_limit] => 0 [wallpaper_directdownload_size_limit] => 0 [wallpaper_inline_size_limit] => 0 [wallpaper_oma_size_limit] => 0 [screensaver] => false [screensaver_max_width] => 0 [screensaver_max_height] => 0 [screensaver_preferred_width] => 0 [screensaver_preferred_height] => 0 [screensaver_resize] => none [screensaver_wbmp] => false [screensaver_bmp] => false [screensaver_gif] => false [screensaver_jpg] => false [screensaver_png] => false [screensaver_greyscale] => false [screensaver_colors] => 2 [screensaver_df_size_limit] => 0 [screensaver_directdownload_size_limit] => 0 [screensaver_inline_size_limit] => 0 [screensaver_oma_size_limit] => 0 [picture] => false [picture_max_width] => 0 [picture_max_height] => 0 [picture_preferred_width] => 0 [picture_preferred_height] => 0 [picture_resize] => none [picture_wbmp] => false [picture_bmp] => false [picture_gif] => false [picture_jpg] => false [picture_png] => false [picture_greyscale] => false [picture_colors] => 2 [picture_df_size_limit] => 0 [picture_directdownload_size_limit] => 0 [picture_inline_size_limit] => 0 [picture_oma_size_limit] => 0 [video] => true [oma_v_1_0_forwardlock] => false [oma_v_1_0_combined_delivery] => false [oma_v_1_0_separate_delivery] => false [streaming_video] => true [streaming_3gpp] => true [streaming_mp4] => true [streaming_mov] => false [streaming_video_size_limit] => 0 [streaming_real_media] => none [streaming_flv] => false [streaming_3g2] => true [streaming_vcodec_h263_0] => 10 [streaming_vcodec_h263_3] => -1 [streaming_vcodec_mpeg4_sp] => -1 [streaming_vcodec_mpeg4_asp] => -1 [streaming_vcodec_h264_bp] => -1 [streaming_acodec_amr] => nb [streaming_acodec_aac] => none [streaming_wmv] => 7 [streaming_preferred_protocol] => rtsp [streaming_preferred_http_protocol] => none [wap_push_support] => false [connectionless_service_indication] => false [connectionless_service_load] => false [connectionless_cache_operation] => false [connectionoriented_unconfirmed_service_indication] => false [connectionoriented_unconfirmed_service_load] => false [connectionoriented_unconfirmed_cache_operation] => false [connectionoriented_confirmed_service_indication] => false [connectionoriented_confirmed_service_load] => false [connectionoriented_confirmed_cache_operation] => false [utf8_support] => true [ascii_support] => false [iso8859_support] => false [expiration_date] => false [j2me_cldc_1_0] => false [j2me_cldc_1_1] => false [j2me_midp_1_0] => false [j2me_midp_2_0] => false [doja_1_0] => false [doja_1_5] => false [doja_2_0] => false [doja_2_1] => false [doja_2_2] => false [doja_3_0] => false [doja_3_5] => false [doja_4_0] => false [j2me_jtwi] => false [j2me_mmapi_1_0] => false [j2me_mmapi_1_1] => false [j2me_wmapi_1_0] => false [j2me_wmapi_1_1] => false [j2me_wmapi_2_0] => false [j2me_btapi] => false [j2me_3dapi] => false [j2me_locapi] => false [j2me_nokia_ui] => false [j2me_motorola_lwt] => false [j2me_siemens_color_game] => false [j2me_siemens_extension] => false [j2me_heap_size] => 0 [j2me_max_jar_size] => 0 [j2me_storage_size] => 0 [j2me_max_record_store_size] => 0 [j2me_screen_width] => 0 [j2me_screen_height] => 0 [j2me_canvas_width] => 0 [j2me_canvas_height] => 0 [j2me_bits_per_pixel] => 0 [j2me_audio_capture_enabled] => false [j2me_video_capture_enabled] => false [j2me_photo_capture_enabled] => false [j2me_capture_image_formats] => none [j2me_http] => false [j2me_https] => false [j2me_socket] => false [j2me_udp] => false [j2me_serial] => false [j2me_gif] => false [j2me_gif89a] => false [j2me_jpg] => false [j2me_png] => false [j2me_bmp] => false [j2me_bmp3] => false [j2me_wbmp] => false [j2me_midi] => false [j2me_wav] => false [j2me_amr] => false [j2me_mp3] => false [j2me_mp4] => false [j2me_imelody] => false [j2me_rmf] => false [j2me_au] => false [j2me_aac] => false [j2me_realaudio] => false [j2me_xmf] => false [j2me_wma] => false [j2me_3gpp] => false [j2me_h263] => false [j2me_svgt] => false [j2me_mpeg4] => false [j2me_realvideo] => false [j2me_real8] => false [j2me_realmedia] => false [j2me_left_softkey_code] => 0 [j2me_right_softkey_code] => 0 [j2me_middle_softkey_code] => 0 [j2me_select_key_code] => 0 [j2me_return_key_code] => 0 [j2me_clear_key_code] => 0 [j2me_datefield_no_accepts_null_date] => false [j2me_datefield_broken] => false [receiver] => false [sender] => false [mms_max_size] => 0 [mms_max_height] => 0 [mms_max_width] => 0 [built_in_recorder] => false [built_in_camera] => false [mms_jpeg_baseline] => false [mms_jpeg_progressive] => false [mms_gif_static] => false [mms_gif_animated] => false [mms_png] => false [mms_bmp] => false [mms_wbmp] => false [mms_amr] => false [mms_wav] => false [mms_midi_monophonic] => false [mms_midi_polyphonic] => false [mms_midi_polyphonic_voices] => 0 [mms_spmidi] => false [mms_mmf] => false [mms_mp3] => false [mms_evrc] => false [mms_qcelp] => false [mms_ota_bitmap] => false [mms_nokia_wallpaper] => false [mms_nokia_operatorlogo] => false [mms_nokia_3dscreensaver] => false [mms_nokia_ringingtone] => false [mms_rmf] => false [mms_xmf] => false [mms_symbian_install] => false [mms_jar] => false [mms_jad] => false [mms_vcard] => false [mms_vcalendar] => false [mms_wml] => false [mms_wbxml] => false [mms_wmlc] => false [mms_video] => false [mms_mp4] => false [mms_3gpp] => false [mms_3gpp2] => false [mms_max_frame_rate] => 0 [nokiaring] => false [picturemessage] => false [operatorlogo] => false [largeoperatorlogo] => false [callericon] => false [nokiavcard] => false [nokiavcal] => false [sckl_ringtone] => false [sckl_operatorlogo] => false [sckl_groupgraphic] => false [sckl_vcard] => false [sckl_vcalendar] => false [text_imelody] => false [ems] => false [ems_variablesizedpictures] => false [ems_imelody] => false [ems_odi] => false [ems_upi] => false [ems_version] => 0 [siemens_ota] => false [siemens_logo_width] => 101 [siemens_logo_height] => 29 [siemens_screensaver_width] => 101 [siemens_screensaver_height] => 50 [gprtf] => false [sagem_v1] => false [sagem_v2] => false [panasonic] => false [sms_enabled] => true [wav] => false [mmf] => false [smf] => false [mld] => false [midi_monophonic] => false [midi_polyphonic] => false [sp_midi] => false [rmf] => false [xmf] => false [compactmidi] => false [digiplug] => false [nokia_ringtone] => false [imelody] => false [au] => false [amr] => false [awb] => false [aac] => false [mp3] => true [voices] => 1 [qcelp] => false [evrc] => false [flash_lite_version] => [fl_wallpaper] => false [fl_screensaver] => false [fl_standalone] => false [fl_browser] => false [fl_sub_lcd] => false [full_flash_support] => false [css_supports_width_as_percentage] => true [css_border_image] => none [css_rounded_corners] => none [css_gradient] => none [css_spriting] => true [css_gradient_linear] => none [is_transcoder] => false [transcoder_ua_header] => user-agent [rss_support] => true [pdf_support] => false [progressive_download] => false [playback_vcodec_h263_0] => 10 [playback_vcodec_h263_3] => -1 [playback_vcodec_mpeg4_sp] => 0 [playback_vcodec_mpeg4_asp] => -1 [playback_vcodec_h264_bp] => -1 [playback_real_media] => none [playback_3gpp] => true [playback_3g2] => true [playback_mp4] => true [playback_mov] => false [playback_acodec_amr] => nb [playback_acodec_aac] => lc [playback_df_size_limit] => 0 [playback_directdownload_size_limit] => 0 [playback_inline_size_limit] => 0 [playback_oma_size_limit] => 0 [playback_acodec_qcelp] => false [playback_wmv] => 7 [hinted_progressive_download] => false [html_preferred_dtd] => xhtml_mp1 [viewport_supported] => false [viewport_width] => [viewport_userscalable] => [viewport_initial_scale] => [viewport_maximum_scale] => [viewport_minimum_scale] => [mobileoptimized] => true [handheldfriendly] => false [canvas_support] => none [image_inlining] => false [is_smarttv] => false [is_console] => false [nfc_support] => false [ux_full_desktop] => false [jqm_grade] => C [is_sencha_touch_ok] => false [controlcap_is_smartphone] => default [controlcap_is_ios] => default [controlcap_is_android] => default [controlcap_is_robot] => default [controlcap_is_app] => default [controlcap_advertised_device_os] => default [controlcap_advertised_device_os_version] => default [controlcap_advertised_browser] => default [controlcap_advertised_browser_version] => default [controlcap_is_windows_phone] => default [controlcap_is_full_desktop] => default [controlcap_is_largescreen] => default [controlcap_is_mobile] => default [controlcap_is_touchscreen] => default [controlcap_is_wml_preferred] => default [controlcap_is_xhtmlmp_preferred] => default [controlcap_is_html_preferred] => default [controlcap_form_factor] => default [controlcap_complete_device_name] => default ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr></table> </div> <div class="section"> <h1 class="header center orange-text">About this comparison</h1> <div class="row center"> <h5 class="header light"> The primary goal of this project is simple<br /> I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br /> <br /> The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br /> <br /> You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br /> <br /> The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a> </h5> </div> </div> <div class="card"> <div class="card-content"> Comparison created <i>2016-02-13 13:36:23</i> | by <a href="https://github.com/ThaDafinser">ThaDafinser</a> </div> </div> </div> <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.1.1/list.min.js"></script> <script> $(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); }); </script> </body> </html>
ThaDafinser/UserAgentParserComparison
v4/user-agent-detail/9e/83/9e83503e-6e95-43b7-b451-772876a987e9.html
HTML
mit
45,638
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_24) on Mon Apr 01 21:56:34 EDT 2013 --> <TITLE> BooleanExpressionType (ATG Java API) </TITLE> <META NAME="date" CONTENT="2013-04-01"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="BooleanExpressionType (ATG Java API)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../../atg/search/routing/command/search/BaseValidation.html" title="class in atg.search.routing.command.search"><B>PREV CLASS</B></A>&nbsp; &nbsp;<A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.BooleanExpressionTypeEditor.html" title="class in atg.search.routing.command.search"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?atg/search/routing/command/search/BooleanExpressionType.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="BooleanExpressionType.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> atg.search.routing.command.search</FONT> <BR> Class BooleanExpressionType</H2> <PRE> java.lang.Object <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../atg/core/util/Enum.html" title="class in atg.core.util">atg.core.util.Enum</A> <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>atg.search.routing.command.search.BooleanExpressionType</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.Comparable</DD> </DL> <HR> <DL> <DT><PRE>public class <B>BooleanExpressionType</B><DT>extends <A HREF="../../../../../atg/core/util/Enum.html" title="class in atg.core.util">Enum</A></DL> </PRE> <P> Types of boolean expressions <P> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#atg.search.routing.command.search.BooleanExpressionType">Serialized Form</A></DL> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <A NAME="nested_class_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Nested Class Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.BooleanExpressionTypeEditor.html" title="class in atg.search.routing.command.search">BooleanExpressionType.BooleanExpressionTypeEditor</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp;<A NAME="nested_classes_inherited_from_class_atg.core.util.Enum"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Nested classes/interfaces inherited from class atg.core.util.<A HREF="../../../../../atg/core/util/Enum.html" title="class in atg.core.util">Enum</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../atg/core/util/Enum.EnumEditor.html" title="class in atg.core.util">Enum.EnumEditor</A>, <A HREF="../../../../../atg/core/util/Enum.LocaleEnumEditor.html" title="class in atg.core.util">Enum.LocaleEnumEditor</A></CODE></TD> </TR> </TABLE> &nbsp; <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;<A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html" title="class in atg.search.routing.command.search">BooleanExpressionType</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html#AND">AND</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html#CLASS_VERSION">CLASS_VERSION</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Class version string</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;<A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html" title="class in atg.search.routing.command.search">BooleanExpressionType</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html#NOT">NOT</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;<A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html" title="class in atg.search.routing.command.search">BooleanExpressionType</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html#OR">OR</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;<A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html" title="class in atg.search.routing.command.search">BooleanExpressionType</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html#valueOf(java.lang.String)">valueOf</A></B>(java.lang.String&nbsp;pName)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_atg.core.util.Enum"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class atg.core.util.<A HREF="../../../../../atg/core/util/Enum.html" title="class in atg.core.util">Enum</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../atg/core/util/Enum.html#compareTo(java.lang.Object)">compareTo</A>, <A HREF="../../../../../atg/core/util/Enum.html#getEnumClassInfo(java.lang.Class)">getEnumClassInfo</A>, <A HREF="../../../../../atg/core/util/Enum.html#getOrdinal()">getOrdinal</A>, <A HREF="../../../../../atg/core/util/Enum.html#iterator()">iterator</A>, <A HREF="../../../../../atg/core/util/Enum.html#iterator(java.lang.Class)">iterator</A>, <A HREF="../../../../../atg/core/util/Enum.html#lookup(java.lang.Class, int)">lookup</A>, <A HREF="../../../../../atg/core/util/Enum.html#lookup(java.lang.Class, java.lang.String)">lookup</A>, <A HREF="../../../../../atg/core/util/Enum.html#lookup(int)">lookup</A>, <A HREF="../../../../../atg/core/util/Enum.html#lookup(java.lang.String)">lookup</A>, <A HREF="../../../../../atg/core/util/Enum.html#readResolve()">readResolve</A>, <A HREF="../../../../../atg/core/util/Enum.html#toString()">toString</A></CODE></TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> </TR> </TABLE> &nbsp; <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Field Detail</B></FONT></TH> </TR> </TABLE> <A NAME="CLASS_VERSION"><!-- --></A><H3> CLASS_VERSION</H3> <PRE> public static java.lang.String <B>CLASS_VERSION</B></PRE> <DL> <DD>Class version string <P> <DL> </DL> </DL> <HR> <A NAME="OR"><!-- --></A><H3> OR</H3> <PRE> public static final <A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html" title="class in atg.search.routing.command.search">BooleanExpressionType</A> <B>OR</B></PRE> <DL> <DL> </DL> </DL> <HR> <A NAME="AND"><!-- --></A><H3> AND</H3> <PRE> public static final <A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html" title="class in atg.search.routing.command.search">BooleanExpressionType</A> <B>AND</B></PRE> <DL> <DL> </DL> </DL> <HR> <A NAME="NOT"><!-- --></A><H3> NOT</H3> <PRE> public static final <A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html" title="class in atg.search.routing.command.search">BooleanExpressionType</A> <B>NOT</B></PRE> <DL> <DL> </DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="valueOf(java.lang.String)"><!-- --></A><H3> valueOf</H3> <PRE> public static <A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.html" title="class in atg.search.routing.command.search">BooleanExpressionType</A> <B>valueOf</B>(java.lang.String&nbsp;pName)</PRE> <DL> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../../atg/search/routing/command/search/BaseValidation.html" title="class in atg.search.routing.command.search"><B>PREV CLASS</B></A>&nbsp; &nbsp;<A HREF="../../../../../atg/search/routing/command/search/BooleanExpressionType.BooleanExpressionTypeEditor.html" title="class in atg.search.routing.command.search"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?atg/search/routing/command/search/BooleanExpressionType.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="BooleanExpressionType.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>
Smolations/more-dash-docsets
docsets/ATG 10.2.docset/Contents/Resources/Documents/atg/search/routing/command/search/BooleanExpressionType.html
HTML
mit
16,230
import controller from './controller'; import template from './template.pug'; routes.$inject = ['$stateProvider', '$urlRouterProvider']; export default function routes($stateProvider, $urlRouterProvider){ $stateProvider.state('main.item', { url: '/:id/item', template: template, controllerAs: 'ctrl', controller: controller }) }
bfunc/AngularWebpack
src/main/item/routes.js
JavaScript
mit
346
import { OnInit, SimpleChanges, OnChanges } from '@angular/core'; import { Validator, AbstractControl } from '@angular/forms'; export declare class NotEqualValidator implements Validator, OnInit, OnChanges { notEqual: any; private validator; private onChange; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; validate(c: AbstractControl): { [key: string]: any; }; registerOnValidatorChange(fn: () => void): void; }
Dackng/eh-unmsm-client
node_modules/ng2-validation/dist/not-equal/directive.d.ts
TypeScript
mit
467
html, body{ width: 100%; height: 100%; padding: 0px; margin: 0px; font: 14px 'Merriweather', 'serif'; color: rgb(20, 20, 20); } body, header{ display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; } body{ flex-flow: row wrap; -webkit-box-pack: flex-start; -moz-box-pack: flex-start; -ms-flex-pack: flex-start; -webkit-justify-content: flex-start; justify-content: flex-start; -webkit-box-align: stretch; -moz-box-align: stretch; -ms-flex-align: stretch; -webkit-align-items: stretch; align-items: stretch; flex-grow: 2; } header{ flex-flow: column nowrap; -webkit-box-pack: flex-start; -moz-box-pack: flex-start; -ms-flex-pack: flex-start; -webkit-justify-content: flex-start; justify-content: flex-start; -webkit-box-align: center; -moz-box-align: center; -ms-flex-align: center; -webkit-align-items: center; align-items: center; flex-grow: 1; text-align: center; min-width: 300px; } header, header > div{ -webkit-flex: 1; -ms-flex: 1; flex: 1; } header > div > div:first-child, header > div > div:last-child, main > div > *:first-child { margin-top: 40px; } main { -webkit-flex: 2; -ms-flex: 2; flex: 2; } nav { padding-top: 2em; } blockquote > * { -moz-box-sizing: border-box; box-sizing: border-box; margin: 1em 0px 1.75em 2.2em; padding: 10px 0 0 1.75em; border-left: #4A4A4A 0.4em solid; font-size: 1.5em; font-family: 'Open Sans','sans-sherif'; color: rgb(97, 97, 97); } p { padding-bottom: 1.75em; } input { padding: 5px 5px 2px 5px; min-width: 150px; font-size: 1.25em; font-family: monospace; letter-spacing: -0.05em; line-height: 1em; } .container{ display:block; width:90%; margin:auto; } .small-container{ display:block; width:97%; margin:auto; } .content{ line-height: 1.75em; padding-bottom: 50px; } h1, h2, h3 { font-family: 'Open Sans','sans-sherif'; text-transform: uppercase; padding-bottom: .45em; } h1{ font-size: 3.5em; line-height: .85em; } h2{ font-size: 2.35em; line-height: 1em; } h3{ font-size: 1.5em; line-height: 1.25em; } ul, ol { list-style-position: inside; padding-top: .75em; padding-bottom: .75em; } img { display: block; width: 40%; margin: auto; padding-top: .75em; padding-bottom: .75em; } small{ font: .75em 'Open Sans', 'sans-sherif'; text-transform: uppercase; } a{ font-family: 'Open Sans','sans-sherif'; text-decoration: none; color: rgb(180, 129, 0); } code, kbd, pre, samp { font-family: monospace, serif; font-size: 1em; margin-bottom: 1em; } .title{ font-family: 'Open Sans','sans-sherif'; text-transform: uppercase; letter-spacing: .05em; } .pagination{ margin-bottom: 20px; text-align: center; } .nav > li{ list-style-type: none; } .bottom-links{ text-align: center; margin-bottom: 30px; display:none; } @media all and (max-width:825px) { h1{font-size: 3em;} h2{font-size: 2em;} h3{font-size: 1.25em;} } @media all and (max-width:700px) { .bottom-links{ display:block;} .top-links{ display:none;} } @media all and (max-width:350px) { h1{font-size: 2.5em;} h2{font-size: 1.75em;} h3{font-size: 1.15em;} }
rtrigoso/ghost-somepolymath
content/themes/default/assets/css/stylesheet.css
CSS
mit
3,250
var config = require('./config') var webpack = require('webpack') var merge = require('webpack-merge') var utils = require('./utils') var baseWebpackConfig = require('./webpack.base.conf') var HtmlWebpackPlugin = require('html-webpack-plugin') var FriendlyErrors = require('friendly-errors-webpack-plugin') // add hot-reload related code to entry chunks Object.keys(baseWebpackConfig.entry).forEach(function (name) { baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name]) }) module.exports = merge(baseWebpackConfig, { module: { loaders: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) }, // eval-source-map is faster for development devtool: '#eval-source-map', plugins: [ new webpack.DefinePlugin({ 'process.env': config.dev.env }), // https://github.com/glenjamin/webpack-hot-middleware#installation--usage new webpack.optimize.OccurrenceOrderPlugin(), new webpack.HotModuleReplacementPlugin(), new webpack.NoErrorsPlugin(), // https://github.com/ampedandwired/html-webpack-plugin new HtmlWebpackPlugin({ filename: 'example/index.html', template: 'example/index.html', inject: true }), new FriendlyErrors() ] })
sunpeijun/component
build/webpack.dev.conf.js
JavaScript
mit
1,248
var margin = {top: 0, right: 0, bottom: 0, left: 130}, width = 1500 - margin.right - margin.left, height = 470 - margin.top - margin.bottom; var i = 0, duration = 750, root; var tree = d3.layout.tree() .size([height, width]); var diagonal = d3.svg.diagonal() .projection(function(d) { return [d.y, d.x]; }); var svg = d3.select("#treeplot").append("svg") .attr("width", width + margin.right + margin.left) .attr("height", height + margin.top + margin.bottom) .append("g") .attr("transform", "translate(" + margin.left + "," + margin.top + ")"); d3.json("/pattern_discovery/data?id={{selections.current_dataset}}", function(error, flare) { if (error) throw error; $("#wait").empty(); root = flare; root.x0 = height / 2; root.y0 = 0; function collapse(d) { if (d.children) { d._children = d.children; d._children.forEach(collapse); d.children = null; } } root.children.forEach(collapse); update(root); }); d3.select(self.frameElement).style("height", "800px"); function update(source) { // Compute the new tree layout. var nodes = tree.nodes(root).reverse(), links = tree.links(nodes); // Normalize for fixed-depth. nodes.forEach(function(d) { d.y = d.depth * 300; }); // Update the nodes… var node = svg.selectAll("g.node") .data(nodes, function(d) { return d.id || (d.id = ++i); }); // Enter any new nodes at the parent's previous position. var nodeEnter = node.enter().append("g") .attr("class", "node") .attr("transform", function(d) { return "translate(" + source.y0 + "," + source.x0 + ")"; }) .on("click", click); nodeEnter.append("circle") .attr("r", 1e-6) .style("fill", function(d) { return d._children ? "lightsteelblue" : "#fff"; }); nodeEnter.append("text") .attr("x", function(d) { return d.children || d._children ? -10 : 10; }) .attr("dy", ".35em") .attr("text-anchor", function(d) { return d.children || d._children ? "end" : "start"; }) .text(function(d) { return d.name; }) .style("fill-opacity", 1e-6); // Transition nodes to their new position. var nodeUpdate = node.transition() .duration(duration) .attr("transform", function(d) { return "translate(" + d.y + "," + d.x + ")"; }); nodeUpdate.select("circle") .attr("r", 4.5) .style("fill", function(d) { return d._children ? "lightsteelblue" : "#fff"; }); nodeUpdate.select("text") .style("fill-opacity", 1); // Transition exiting nodes to the parent's new position. var nodeExit = node.exit().transition() .duration(duration) .attr("transform", function(d) { return "translate(" + source.y + "," + source.x + ")"; }) .remove(); nodeExit.select("circle") .attr("r", 1e-6); nodeExit.select("text") .style("fill-opacity", 1e-6); // Update the links… var link = svg.selectAll("path.link") .data(links, function(d) { return d.target.id; }); // Enter any new links at the parent's previous position. link.enter().insert("path", "g") .attr("class", "link") .attr("d", function(d) { var o = {x: source.x0, y: source.y0}; return diagonal({source: o, target: o}); }); // Transition links to their new position. link.transition() .duration(duration) .attr("d", diagonal); // Transition exiting nodes to the parent's new position. link.exit().transition() .duration(duration) .attr("d", function(d) { var o = {x: source.x, y: source.y}; return diagonal({source: o, target: o}); }) .remove(); // Stash the old positions for transition. nodes.forEach(function(d) { d.x0 = d.x; d.y0 = d.y; }); } // Toggle children on click. function click(d) { if (d.children) { d._children = d.children; d.children = null; } else { d.children = d._children; d._children = null; } update(d); }
lzlarryli/limelight
app/templates/js/treeplot.js
JavaScript
mit
4,263
require 'rubygems' gem 'rspec', '>= 1.2.8' require 'spec' require File.join(File.dirname(__FILE__), '..', 'lib', 'almaz') require 'base64' require 'timecop' require 'logger' Spec::Runner.configure do |config| config.before(:all) { result = RedisRunner.start_detached raise("Could not start redis-server, aborting") unless result # yeah, this sucks, but it seems like sometimes we try to connect too quickly w/o it sleep 1 # use database 15 for testing so we dont accidentally step on real data @db = Redis.new(:db => 15) #, :logger => Logger.new(STDOUT), :debug => true) } config.after(:each) { @db.flushdb } config.after(:all) { begin @db.quit ensure RedisRunner.stop rescue 'Oops' end } end def encode_credentials(username, password) "Basic " + Base64.encode64("#{username}:#{password}") end class ExampleSinatraApp < Sinatra::Base get '/awesome/controller' do 'wooo hoo' end end
jpoz/almaz
spec/spec_helper.rb
Ruby
mit
973
import { EventBus } from '../wires/event_bus'; class EventStore { constructor(storeAdapter) { this.adapter = storeAdapter; } appendToStream(streamId, expectedVersion, events) { if (events.length === 0) { return; } events.forEach(function(event) { this.adapter.append(streamId, expectedVersion, event); EventBus.publish('domain.'+streamId+'.'+event.name, event); expectedVersion++; }, this); } loadEventStream(streamId) { var version = 0, events = [], records = this.readEventStream(streamId, 0, null); records.forEach(function(r) { version = r.version; events.push(r.data); }); return new EventStream(streamId, events, version); } readEventStream(streamId, skipEvents, maxCount) { return this.adapter.read(streamId, skipEvents, maxCount); } } class EventStream { constructor(streamId, events, version) { this.streamId = streamId; this.events = events; this.version = version; } } export { EventStore, EventStream };
goldoraf/osef
src/storage/event_store.js
JavaScript
mit
1,162
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace _02_Convert_from_base_N_to_base_10 { public class ConvertFromBaseNToBase10 { public static void Main() { string[] parameters = Console.ReadLine() .Split() .ToArray(); int toBase = int.Parse(parameters[0]); List<int> number = parameters[1].Select(x => (int)(x - '0')).ToList(); BigInteger result = number[number.Count - 1] + (number[number.Count - 2] * toBase); int index = 0; int pow = number.Count - 1; while (pow > 1) { result += number[index] * PowerNumber(toBase, pow); index++; pow--; } Console.WriteLine(result); } public static BigInteger PowerNumber(int toBase, int pow) { BigInteger poweredNumber = toBase; for (int i = 1; i < pow; i++) { poweredNumber *= toBase; } return poweredNumber; } } }
akkirilov/SoftUniProject
01_ProgrammingFundamentals/Homeworks/09_Strings-Ex/02_Convert from base-N to base-10/ConvertFromBaseNToBase10.cs
C#
mit
1,199
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Collections; using System.Threading; namespace Joddgewe { public partial class Form1 : Form { private string filenameOrto; public Form1() { InitializeComponent(); toolStripStatusLabel1.Text = "Venter på at brukeren skal åpne ortofoto..."; } private void openToolStripMenuItem_Click(object sender, EventArgs e) { addFiles(); } private void closeToolStripMenuItem_Click(object sender, EventArgs e) { closeApp(); } public void closeApp() { this.Dispose(); } public void addFiles() { Stream myStream; OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.Filter = "Ortofoto(*.tif;*.jpg;*.gif)|*.TIF;*.JPG;*.GIF"; openFileDialog1.FilterIndex = 3; openFileDialog1.RestoreDirectory = true; openFileDialog1.Multiselect = true; if (openFileDialog1.ShowDialog(this) == DialogResult.OK) { if ((myStream = openFileDialog1.OpenFile()) != null) { string[] files = openFileDialog1.FileNames; foreach (string file in files ) { Image bm = Image.FromFile(file); FileHandler fh = new FileHandler(file, bm.Width, bm.Height); bm.Dispose(); listBoxFiler.Items.Add(fh); } myStream.Close(); enableButtons(); toolStripStatusLabel1.Text = "Venter på at brukeren skal velge utformat..."; } myStream.Dispose(); lblVisEgenskaper.Visible = true; lblUtformat.Visible = true; } openFileDialog1.Dispose(); } private void removeFiles() { listBoxFiler.Items.Remove(listBoxFiler.SelectedItem); textBoxMMM.Text = ""; textBoxJGW.Text = ""; textBoxSOSI.Text = ""; } private void btnKonverter_Click(object sender, EventArgs e) { } private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { Form2 frm = new Form2(this); frm.ShowDialog(); } private void btnAdd_Click(object sender, EventArgs e) { addFiles(); } private void btnRemove_Click(object sender, EventArgs e) { removeFiles(); } private void listBoxFiler_SelectedIndexChanged(object sender, EventArgs e) { pictboxOrtofoto.Image.Dispose(); if (listBoxFiler.SelectedItems.Count == 0) { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); pictboxOrtofoto.Image = ((System.Drawing.Image)(resources.GetObject("pictboxOrtofoto.Image"))); } else { FileHandler fh = (FileHandler)listBoxFiler.SelectedItem; filenameOrto = fh.ToString(); try { pictboxOrtofoto.Image = (Bitmap)Image.FromFile(filenameOrto); displayStyringsfiler(); } catch { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); pictboxOrtofoto.Image = ((System.Drawing.Image)(resources.GetObject("pictboxOrtofoto.ErrorImage"))); } } if (listBoxFiler.Items.Count > 0) enableButtons(); else disableButtons(); } private void disableButtons() { radioButtonJGW.Enabled = false; radioButtonMMM.Enabled = false; radioButtonSOSI.Enabled = false; checkBoxFilliste.Enabled = false; btnFullfør.Enabled = false; } private void enableButtons() { radioButtonJGW.Enabled = true; radioButtonMMM.Enabled = true; radioButtonSOSI.Enabled = true; checkBoxFilliste.Enabled = true; if (radioButtonJGW.Checked || radioButtonMMM.Checked || radioButtonSOSI.Checked) btnFullfør.Enabled = true; } private void displayStyringsfiler() { try { FileHandler fh = (FileHandler) listBoxFiler.SelectedItem; textBoxJGW.Text = fh.toJGW(); textBoxMMM.Text = fh.toMMM(); textBoxSOSI.Text = fh.toSOSI(); } catch { textBoxMMM.Text = ""; textBoxJGW.Text = ""; textBoxSOSI.Text = ""; } } private void btnFullfør_Click(object sender, EventArgs e) { string fileList = ""; FileHandler fh1 = null; foreach (FileHandler fh in listBoxFiler.Items) { if (checkBoxFilliste.Checked) fileList += fh.ToString() + "\r\n"; if (radioButtonJGW.Checked) fh.writeToFile(FileHandler.TYPE_JGW); if (radioButtonMMM.Checked) fh.writeToFile(FileHandler.TYPE_MMM); if (radioButtonSOSI.Checked) fh.writeToFile(FileHandler.TYPE_SOSI); } try { fh1 = (FileHandler)listBoxFiler.Items[0]; } catch { } if (fh1 != null && checkBoxFilliste.Checked) { fh1.createFileList(fileList); } toolStripStatusLabel1.Text = "Suksess!"; MessageBox.Show("Ferdig med å konvertere!", "JoddGewe 0.1", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void radioButtonJGW_CheckedChanged(object sender, EventArgs e) { btnFullfør.Enabled = true; toolStripStatusLabel1.Text = "Klar til å konvertere styringsfiler!"; } private void radioButtonMMM_CheckedChanged(object sender, EventArgs e) { btnFullfør.Enabled = true; toolStripStatusLabel1.Text = "Klar til å konvertere styringsfiler!"; } private void radioButtonSOSI_CheckedChanged(object sender, EventArgs e) { btnFullfør.Enabled = true; toolStripStatusLabel1.Text = "Klar til å konvertere styringsfiler!"; } } }
avinet/joddgewe
Joddgewe/Form1.cs
C#
mit
7,184
package com.jnape.palatable.lambda.optics.prisms; import org.junit.Test; import java.util.HashMap; import java.util.LinkedHashMap; import static java.util.Arrays.asList; import static java.util.Collections.singleton; import static java.util.Collections.singletonMap; import static testsupport.assertion.PrismAssert.assertPrismLawfulness; public class MapPrismTest { @Test public void valueAtWithConstructor() { assertPrismLawfulness(MapPrism.valueAt(LinkedHashMap::new, "foo"), asList(new LinkedHashMap<>(), new LinkedHashMap<>(singletonMap("foo", 1)), new LinkedHashMap<>(singletonMap("bar", 2))), singleton(1)); } @Test public void valueAtWithoutConstructor() { assertPrismLawfulness(MapPrism.valueAt("foo"), asList(new HashMap<>(), new HashMap<>(singletonMap("foo", 1)), new HashMap<>(singletonMap("bar", 2))), singleton(1)); } }
palatable/lambda
src/test/java/com/jnape/palatable/lambda/optics/prisms/MapPrismTest.java
Java
mit
1,147
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 15l-5-5h3V9h4v4h3l-5 5z" }), 'AssignmentReturned');
AlloyTeam/Nuclear
components/icon/esm/assignment-returned.js
JavaScript
mit
355
(function () { 'use strict'; angular .module('app.home') .config(appRun); /* @ngInject */ function appRun($stateProvider) { $stateProvider .state('root.home', { url: '/', templateUrl: 'app/home/home.html', controller: 'Home', controllerAs: 'vm', }); } })();
hawkup/github-stars
angularjs/app/home/config.route.js
JavaScript
mit
326
using OTransport.Factory; using OTransport.Serializer.protobuf; namespace OTransport.Serializer.protobuf { public static class ObjectTransportAssemblyLine_protobufExtension { /// <summary> /// Use Protobuf Serialization to serialize objects /// </summary> /// <returns></returns> public static ObjectTransportAssemblyLine UseProtobufSerialization(this ObjectTransportAssemblyLine objectTranposrtAssemblyLine) { var protobufSerialization = new ProtobufSerializer(); objectTranposrtAssemblyLine.SetSerializer(protobufSerialization); return objectTranposrtAssemblyLine; } } }
RhynoVDS/ObjectTransport
Implementation/ObjectTransport.Serializer.protobuf/ObjectTransportAssemblyLine_protobufExtension.cs
C#
mit
682
import React from 'react'; import { Text, View, TextInput, } from 'react-native'; import newChallengeStyles from '../../styles/newChallenge/newChallengeStyles'; import mainStyles from '../../styles/main/mainStyles'; import ItemSelectView from './ItemSelectView'; const propTypes = { onChallengeUpdate: React.PropTypes.func, }; const prizeItemStyle = { marginTop: 10, labelFontSize: 22, iconFontSize: 30, iconColor: mainStyles.themeColors.textPrimary, }; class PrizeView extends React.Component { constructor(props) { super(props); this.state = { prize: null, customPrize: '', prizes: [ { label: 'Diner', style: prizeItemStyle }, { label: 'Drinks', style: prizeItemStyle }, { label: 'Gift', style: prizeItemStyle }, { label: 'Define your own', style: prizeItemStyle }, ], }; } setCustomPrize = (customPrize) => { this.setState({ customPrize }); this.props.onChallengeUpdate({ prize: customPrize }); } selectPrize = (prizeLabel) => { const prizes = this.state.prizes; prizes.forEach(prize => { if (prizeLabel === prize.label) { prize.style = { ...prizeItemStyle, iconColor: mainStyles.themeColors.primary }; } else { prize.style = { ...prizeItemStyle, opacity: 0.2 }; } }); this.setState({ prize: prizeLabel, prizes }); this.props.onChallengeUpdate({ prize: prizeLabel }); } render = () => ( <View style={newChallengeStyles.mainContainer}> <View style={newChallengeStyles.contentContainer}> <Text style={newChallengeStyles.titleFont}>Prize (optional)</Text> <View style={newChallengeStyles.itemsContainer} > {this.state.prizes.map(prize => (<ItemSelectView key={prize.label} label={prize.label} style={prize.style} onItemSelect={this.selectPrize} />) )} </View> {this.state.prize === 'Define your own' ? <View style={newChallengeStyles.settingInputContainer} > <TextInput style={newChallengeStyles.inputFont} placeholder="Birthday cake for Paul" placeholderTextColor={mainStyles.themeColors.textPrimary} onChangeText={this.setCustomPrize} value={this.state.customPrize} /> </View> : null} </View> </View> ); } PrizeView.propTypes = propTypes; export default PrizeView;
SamyZ/BoomApp
js/views/newChallenge/PrizeView.js
JavaScript
mit
2,598
# tuff One More Web Framework
tuffjs/tuff-chat
tuff-lib-devel/README.md
Markdown
mit
30
/* * Copyright (c) 2012 M. M. Naseri <[email protected]> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without limitation the rights to use, copy, modify, * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be included in all copies * or substantial portions of the Software. */ package com.agileapes.powerpack.string.exception; /** * @author Mohammad Milad Naseri ([email protected]) * @since 1.0 (2012/12/3, 17:47) */ public class NoMoreTextException extends DocumentReaderException { private static final long serialVersionUID = -1822455471711418794L; public NoMoreTextException() { } public NoMoreTextException(String message) { super(message); } }
agileapes/jpowerpack
string-tools/src/main/java/com/agileapes/powerpack/string/exception/NoMoreTextException.java
Java
mit
1,068
/* * The MIT License * * Copyright 2014 Kamnev Georgiy ([email protected]). * * Данная лицензия разрешает, безвозмездно, лицам, получившим копию данного программного * обеспечения и сопутствующей документации (в дальнейшем именуемыми "Программное Обеспечение"), * использовать Программное Обеспечение без ограничений, включая неограниченное право на * использование, копирование, изменение, объединение, публикацию, распространение, сублицензирование * и/или продажу копий Программного Обеспечения, также как и лицам, которым предоставляется * данное Программное Обеспечение, при соблюдении следующих условий: * * Вышеупомянутый копирайт и данные условия должны быть включены во все копии * или значимые части данного Программного Обеспечения. * * ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ», БЕЗ ЛЮБОГО ВИДА ГАРАНТИЙ, * ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, НО НЕ ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОЙ ПРИГОДНОСТИ, * СООТВЕТСТВИЯ ПО ЕГО КОНКРЕТНОМУ НАЗНАЧЕНИЮ И НЕНАРУШЕНИЯ ПРАВ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ * ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО ИСКАМ О ВОЗМЕЩЕНИИ УЩЕРБА, УБЫТКОВ * ИЛИ ДРУГИХ ТРЕБОВАНИЙ ПО ДЕЙСТВУЮЩИМ КОНТРАКТАМ, ДЕЛИКТАМ ИЛИ ИНОМУ, ВОЗНИКШИМ ИЗ, ИМЕЮЩИМ * ПРИЧИНОЙ ИЛИ СВЯЗАННЫМ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ * ИЛИ ИНЫМИ ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ. */ package xyz.cofe.lang2.parser.vref; import java.net.URL; import xyz.cofe.lang2.parser.BasicParserTest; import xyz.cofe.lang2.parser.L2Engine; import xyz.cofe.lang2.vm.Callable; import xyz.cofe.lang2.vm.Value; import org.junit.Test; import xyz.cofe.log.CLILoggers; /** * Тестирование парсера * @author gocha */ public class L2EngineVarRef2 extends BasicParserTest { protected L2Engine l2Engine = null; @Override protected Value parseExpressions(String source) { if( l2Engine==null ){ l2Engine = new L2Engine(); l2Engine.setMemory(memory); } return l2Engine.parse(source); } @Test public void varRef2(){ return; // TODO используется альтернативный способ поиска переменных // // String src = "var v = \"abc\";\n" // + "var obj = \n" // + " {\n" // + " f : function ( a )\n" // + " {\n" // + " a + v\n" // + " }\n" // + " };\n" // + "v = \"def\";\n" // + "obj.f( \"xcv\" )"; // String must = "xcvabc"; // // CLILoggers logger = new CLILoggers(); // URL logConf = L2EngineVarRefTest.class.getResource("L2EngineVarRefTest2.logconf.xml"); // logger.parseXmlConfig(logConf); // // assertParseExpressions(src, must); // // if( logger.getNamedHandler().containsKey("console") ){ // logger.removeHandlerFromRoot(logger.getNamedHandler().get("console")); // } } }
gochaorg/lang2
src/test/java/xyz/cofe/lang2/parser/vref/L2EngineVarRef2.java
Java
mit
4,141
import React, {PropTypes} from 'react'; import L from 'leaflet'; import gh from '../api/GitHubApi'; import RaisedButton from 'material-ui/RaisedButton'; const REPO_TIMESPAN = { ALLTIME: 0, THIRTYDAYS: 1, SIXTYDAYS: 2, ONEYEAR: 3 }; const defaultMapConfig = { options: { center: [ 39.7589, -84.1916 ], zoomControl: false, zoom: 4, maxZoom: 20, minZoom: 2, scrollwheel: false, infoControl: false, attributionControl: false }, tileLayer: { uri: 'http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png', options: { maxZoom: 18, id: '' } } }; class RepoUserHeatmap extends React.Component { constructor(props, context) { super(props, context); this.state = { timespan: REPO_TIMESPAN.THIRTYDAYS, data: [] }; this.initializeMap = this.initializeMap.bind(this); } componentDidMount() { this.initializeMap(); this.updateData(); gh.getTopRepos().then(data => { console.log('=== REPOS ==='); console.log(data); return gh.getContributors(data.data[0].full_name); }).then(contribs => { console.log('=== CONTRIBS ==='); console.log(contribs); return gh.getUser(contribs.data[0].login); }).then(user => { console.log('=== USER ==='); console.log(user); return gh.getRateLimit(); }).then(limit => { console.log('=== RATE LIMIT ==='); console.log(limit); }).catch(err => { console.log('ERROR:'); console.log(err); }); } componentWillUnmount() { this.map = null; } initializeMap() { if (this.map) { return; } this.map = L.map(this.mapDiv, this.props.mapOptions || defaultMapConfig.options); if (this.props.mapLayers && this.props.mapLayers.length > 0) { for (let i=0; i < this.props.mapLayers.length; i++) { this.props.mapLayers[i].addTo(this.map); } } else { L.tileLayer(defaultMapConfig.tileLayer.uri, defaultMapConfig.tileLayer.options).addTo(this.map); } } updateData() { } render() { return ( <div className="map-container"> <div className="os-map" ref={(div) => { this.mapDiv = div; }}></div> <RaisedButton label="Default" /> </div> ); } } RepoUserHeatmap.propTypes = { mapOptions: PropTypes.object, mapLayers: PropTypes.array }; export default RepoUserHeatmap;
jefferey/octoviz
src/components/views/RepoUserHeatmap.js
JavaScript
mit
2,707
package db; import db.*; public class test { public static void main(String[] args) { // TODO Auto-generated method stub Database.getInstance().register("111", "22"); // Database.getInstance().login("111", "22"); } }
MrGaoRen/secretProject
cw/src/db/test.java
Java
mit
232
# XHCustom XHCustom
magicalstar/XHCustom
README.md
Markdown
mit
20
:- module( jwt_enc, [ jwt_enc/4 % +Header, +Payload, ?Key, -Token ] ). /** <module> JSON Web Tokens (JWT): Encoding @author Wouter Beek @version 2015/06 */ :- use_module(library(apply)). :- use_module(library(base64)). :- use_module(library(sha)). :- use_module(library(jwt/jwt_util)). %! jwt_enc(+Header:dict, +Payload:dict, ?Key, -Token:atom) is det. jwt_enc(Header0, Payload0, Key, Token):- header_claims(Header0, Header), payload_claims(Payload0, Payload), maplist(atom_json_dict, [HeaderDec,PayloadDec], [Header,Payload]), maplist(base64url, [HeaderDec,PayloadDec], [HeaderEnc,PayloadEnc]), atomic_list_concat([HeaderEnc,PayloadEnc], ., SignWith), create_signature(Header, SignWith, Key, SignatureEnc), atomic_list_concat([SignWith,SignatureEnc], ., Token). %! create_signature(+Header:dict, +SignWith:atom, ?Key:dict, -Signature:atom) is det. create_signature(Header, _, _, ''):- Header.alg == "none", !. create_signature(Header, SignWith, Key, SignatureEnc):- !, hmac_algorithm_name(Header.alg, Alg), !, interpret_key(Header, Key, Secret), hmac_sha(Secret, SignWith, Hash, [algorithm(Alg)]), atom_codes(SignatureDec, Hash), base64url(SignatureDec, SignatureEnc). %! header_claims(+Old:dict, -New:dict) is det. header_claims(Old, New):- dict_add_default(Old, typ, "JWT", New). %! payload_claims(+Old:dict, -New:dict) is det. payload_claims(Old, New):- dict_add_default(Old, iss, "SWI-Prolog", Tmp), get_time(Now0), Now is floor(Now0), dict_add_default(Tmp, iat, Now, New).
wouterbeek/plJwt
prolog/jwt/jwt_enc.pl
Perl
mit
1,547
# jsCommon common javascript functionality.
rogovski/jsCommon
README.md
Markdown
mit
44
import java.security.Security; import java.util.Base64; import org.bouncycastle.crypto.BlockCipher; import org.bouncycastle.crypto.BufferedBlockCipher; import org.bouncycastle.crypto.engines.RijndaelEngine; import org.bouncycastle.crypto.modes.CBCBlockCipher; import org.bouncycastle.crypto.paddings.PKCS7Padding; import org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher; import org.bouncycastle.crypto.params.KeyParameter; import org.bouncycastle.crypto.params.ParametersWithIV; public class DotNet { static byte[] buffer = new byte[] { (byte)17, (byte)185, (byte)186, (byte)161, (byte)188, (byte)43, (byte)253, (byte)224, (byte)76, (byte)24, (byte)133, (byte)9, (byte)201, (byte)173, (byte)255, (byte)152, (byte)113, (byte)171, (byte)225, (byte)163, (byte)121, (byte)177, (byte)211, (byte)18, (byte)50, (byte)50, (byte)219, (byte)190, (byte)168, (byte)138, (byte)97, (byte)197 }; static byte[] initVector = new byte[] { (byte) 8, (byte) 173, (byte) 47, (byte) 130, (byte) 199, (byte) 242, (byte) 20, (byte) 211, (byte) 63, (byte) 47, (byte) 254, (byte) 173, (byte) 163, (byte) 245, (byte) 242, (byte) 232, (byte) 11, (byte) 244, (byte) 134, (byte) 249, (byte) 44, (byte) 123, (byte) 138, (byte) 109, (byte) 155, (byte) 173, (byte) 122, (byte) 76, (byte) 93, (byte) 125, (byte) 185, (byte) 66 }; public static String decrypt(byte[] key, byte[] initVector, byte[] encrypted) { try { BlockCipher engine = new RijndaelEngine(256); CBCBlockCipher cbc = new CBCBlockCipher(engine); BufferedBlockCipher cipher = new PaddedBufferedBlockCipher(cbc, new PKCS7Padding()); cipher.init(false, new ParametersWithIV(new KeyParameter(key), initVector)); int minSize = cipher.getOutputSize(encrypted.length); byte[] outBuf = new byte[minSize]; int length1 = cipher.processBytes(encrypted, 0, encrypted.length, outBuf, 0); int length2 = cipher.doFinal(outBuf, length1); int actualLength = length1 + length2; byte[] result = new byte[actualLength]; System.arraycopy(outBuf, 0, result, 0, result.length); return new String(result); } catch (Exception ex) { ex.printStackTrace(); } return null; } public static void main(String[] args) { Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); String sha64 = "SxTgWtrMjXY/dA50Kk20PkNeNLQ="; byte[] k = Base64.getDecoder().decode(sha64); System.out.println("Buffer :: "+Base64.getEncoder().encodeToString(buffer)+" --> length "+buffer.length); System.out.println("Key(Sha) :: "+Base64.getEncoder().encodeToString(k)+" --> length "+k.length); System.out.println("IV :: "+Base64.getEncoder().encodeToString(initVector)+" --> length "+initVector.length); System.out.println(decrypt(k, initVector, buffer)); } }
mseclab/AHE17
Token-Generator/src/main/java/DotNet.java
Java
mit
3,987
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("03. Printing Triangle")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("03. Printing Triangle")] [assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("c2d80a6e-c54c-4fc3-be24-ae9b7d912f09")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
delian1986/SoftUni-C-Sharp-repo
Old Courses/Programming Fundamentals Old/03. Methods/Methods/03. Printing Triangle/Properties/AssemblyInfo.cs
C#
mit
1,418
#pragma once #include "cinder/app/App.h" namespace reza { namespace paths { bool createDirectory( const ci::fs::path& path ); bool createDirectories( const ci::fs::path& path ); void createAssetDirectories(); ci::fs::path getWorkingPath(); ci::fs::path getPath( std::string path = "" ); ci::fs::path getPresetsPath( std::string path = "" ); ci::fs::path getDataPath( std::string path = "" ); ci::fs::path getAudioPath( std::string path = "" ); ci::fs::path getVideoPath( std::string path = "" ); ci::fs::path getFontsPath( std::string path = "" ); ci::fs::path getModelsPath( std::string path = "" ); ci::fs::path getImagesPath( std::string path = "" ); ci::fs::path getMatCapsPath( std::string path = "" ); ci::fs::path getPalettesPath( std::string path = "" ); ci::fs::path getRendersPath( std::string path = "" ); ci::fs::path getShadersPath( std::string path = "" ); } } // namespace reza::paths
rezaali/Cinder-Paths
src/Paths.h
C
mit
911
function lessThan (a, b) { return a < b } function main () { for (var i = 0; i < 10000; i++) { lessThan(1, 0x7fffffff) } for (var i = 0; i < 10000; i++) { lessThan(1, Infinity) } for (var i = 0; i < 10000; i++) { lessThan(1, 0x7fffffff) } } main()
bigeasy/hotspot
jit/less-than.js
JavaScript
mit
304
Netcat-like command agent for MCollective ========================================= Why? ---- Do you need to send commands to a daemon in plaintext over TCP? I do :-) That is the only purpose after this agent plugin, to be able to send commands in plaintext to some daemons. How does it work? ----------------- Simple, having MCollective daemon and this agent in all the needed hosts, there must be an entry in /etc/hosts for localhost and that's all. The plugin will open a socket to localhost <port> and send the command in plaintext, will read the answer from the daemon (or service) and report it back. In case of any ERRNO, will fail reporting the error message. Sample ------ ``` sergio@puppetagent02:~$ mco rpc netcat echocmd cmd="Are you there" port=8111 Discovering hosts using the mc method for 2 second(s) .... 4 * [ ============================================================> ] 4 / 4 puppetmaster Unknown Request Status Connection refused - connect(2) puppetagent02 Unknown Request Status Connection refused - connect(2) Summary of Message: I'm here = 2 Execution failed = 2 Finished processing 4 / 4 hosts in 46.03 ms ``` Author ------ [@tripledes](http://twitter.com/tripledes)
tripledes/mcollective-netcat-agent
README.md
Markdown
mit
1,290
<div class="dash-footer container"> <div class="row"> <div class="col-lg-12"> <hr> <p class="text-muted credit text-right">Powered by <a href="https://github.com/Runbook" target="_blank">Runbook</a>. All Rights Reserved.</p> </div> </div> </div> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="{{url_for('static', filename='js/bootstrap-multiselect.js')}}" type="text/javascript"></script> <script src="{{url_for('static', filename='js/list.min.js')}}" type="text/javascript"></script> <script src="{{url_for('static', filename='js/list.pagination.min.js')}}" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('.multiselect').multiselect({ enableCaseInsensitiveFiltering: true, filterBehavior: 'both', filterPlaceholder: 'Search', buttonClass: 'form-control', numberDisplayed: 1, maxHeight: 400, }); $('.select').multiselect({ buttonClass: 'form-control', enableCaseInsensitiveFiltering: true, filterBehavior: 'both', filterPlaceholder: 'Search', maxHeight: 400, }); $('.plan-select').multiselect({ buttonClass: 'form-control', maxHeight: 400, }); }); </script> {% for item in data['js_bottom'] %} {% include item %} {% endfor %} {% block js %}{% endblock %} </body> </html>
Runbook/runbook.io
src/web/templates/dash-footer.html
HTML
mit
1,555
/*! * hybridify-all <https://github.com/hybridables/hybridify-all> * * Copyright (c) 2015 Charlike Mike Reagent, contributors. * Released under the MIT license. */ 'use strict' var reduce = require('object.reduce') var hybridify = require('hybridify') /** * > Hybridifies all the selected functions in an object. * * **Example:** * * ```js * var hybridifyAll = require('hybridify-all') * var fs = require('fs') * * fs = hybridifyAll(fs) * fs.readFile(__filename, 'utf8', function(err, res) { * //=> err, res * }) * .then(function(res) { * //=> res * return fs.stat(__filename) * }) * .then(function(stat) { * assert.strictEqual(stat.size, fs.statSync(__filename).size) * }) * ``` * * @name hybridifyAll * @param {Object|Function} `<source>` the source object for the async functions * @param {Object|Function} `[dest]` the destination to set all the hybridified methods * @return {Object|Function} * @api public */ module.exports = function hybridifyAll (source, dest) { if (!source) { throw new Error('hybridify-all: should have at least 1 arguments') } if (typeOf(source) !== 'function' && typeOf(source) !== 'object') { throw new TypeError('hybridify-all: expect `source` be object|function') } dest = dest || {} if (typeof source === 'function') { dest = hybridify(source) } return Object.keys(source).length ? reduce(source, function (dest, fn, key) { if (typeof fn === 'function') { dest[key] = hybridify(fn) } return dest }, dest) : dest } /** * Get correct type of value * * @param {*} `val` * @return {String} * @api private */ function typeOf (val) { if (Array.isArray(val)) { return 'array' } if (typeof val !== 'object') { return typeof val } return Object.prototype.toString(val).slice(8, -1).toLowerCase() }
hybridables/hybridify-all
index.js
JavaScript
mit
1,844
/*! p5.dom.js v0.3.3 May 10, 2017 */ /** * <p>The web is much more than just canvas and p5.dom makes it easy to interact * with other HTML5 objects, including text, hyperlink, image, input, video, * audio, and webcam.</p> * <p>There is a set of creation methods, DOM manipulation methods, and * an extended p5.Element that supports a range of HTML elements. See the * <a href="https://github.com/processing/p5.js/wiki/Beyond-the-canvas"> * beyond the canvas tutorial</a> for a full overview of how this addon works. * * <p>Methods and properties shown in black are part of the p5.js core, items in * blue are part of the p5.dom library. You will need to include an extra file * in order to access the blue functions. See the * <a href="http://p5js.org/libraries/#using-a-library">using a library</a> * section for information on how to include this library. p5.dom comes with * <a href="http://p5js.org/download">p5 complete</a> or you can download the single file * <a href="https://raw.githubusercontent.com/lmccart/p5.js/master/lib/addons/p5.dom.js"> * here</a>.</p> * <p>See <a href="https://github.com/processing/p5.js/wiki/Beyond-the-canvas">tutorial: beyond the canvas</a> * for more info on how to use this libary.</a> * * @module p5.dom * @submodule p5.dom * @for p5.dom * @main */ (function (root, factory) { if (typeof define === 'function' && define.amd) define('p5.dom', ['p5'], function (p5) { (factory(p5));}); else if (typeof exports === 'object') factory(require('../p5')); else factory(root['p5']); }(this, function (p5) { // ============================================================================= // p5 additions // ============================================================================= /** * Searches the page for an element with the given ID, class, or tag name (using the '#' or '.' * prefixes to specify an ID or class respectively, and none for a tag) and returns it as * a p5.Element. If a class or tag name is given with more than 1 element, * only the first element will be returned. * The DOM node itself can be accessed with .elt. * Returns null if none found. You can also specify a container to search within. * * @method select * @param {String} name id, class, or tag name of element to search for * @param {String} [container] id, p5.Element, or HTML element to search within * @return {Object|p5.Element|Null} p5.Element containing node found * @example * <div ><code class='norender'> * function setup() { * createCanvas(100,100); * //translates canvas 50px down * select('canvas').position(100, 100); * } * </code></div> * <div ><code class='norender'> * // these are all valid calls to select() * var a = select('#moo'); * var b = select('#blah', '#myContainer'); * var c = select('#foo', b); * var d = document.getElementById('beep'); * var e = select('p', d); * </code></div> * */ p5.prototype.select = function (e, p) { var res = null; var container = getContainer(p); if (e[0] === '.'){ e = e.slice(1); res = container.getElementsByClassName(e); if (res.length) { res = res[0]; } else { res = null; } }else if (e[0] === '#'){ e = e.slice(1); res = container.getElementById(e); }else { res = container.getElementsByTagName(e); if (res.length) { res = res[0]; } else { res = null; } } if (res) { return wrapElement(res); } else { return null; } }; /** * Searches the page for elements with the given class or tag name (using the '.' prefix * to specify a class and no prefix for a tag) and returns them as p5.Elements * in an array. * The DOM node itself can be accessed with .elt. * Returns an empty array if none found. * You can also specify a container to search within. * * @method selectAll * @param {String} name class or tag name of elements to search for * @param {String} [container] id, p5.Element, or HTML element to search within * @return {Array} Array of p5.Elements containing nodes found * @example * <div class='norender'><code> * function setup() { * createButton('btn'); * createButton('2nd btn'); * createButton('3rd btn'); * var buttons = selectAll('button'); * * for (var i = 0; i < buttons.length; i++){ * buttons[i].size(100,100); * } * } * </code></div> * <div class='norender'><code> * // these are all valid calls to selectAll() * var a = selectAll('.moo'); * var b = selectAll('div'); * var c = selectAll('button', '#myContainer'); * var d = select('#container'); * var e = selectAll('p', d); * var f = document.getElementById('beep'); * var g = select('.blah', f); * </code></div> * */ p5.prototype.selectAll = function (e, p) { var arr = []; var res; var container = getContainer(p); if (e[0] === '.'){ e = e.slice(1); res = container.getElementsByClassName(e); } else { res = container.getElementsByTagName(e); } if (res) { for (var j = 0; j < res.length; j++) { var obj = wrapElement(res[j]); arr.push(obj); } } return arr; }; /** * Helper function for select and selectAll */ function getContainer(p) { var container = document; if (typeof p === 'string' && p[0] === '#'){ p = p.slice(1); container = document.getElementById(p) || document; } else if (p instanceof p5.Element){ container = p.elt; } else if (p instanceof HTMLElement){ container = p; } return container; } /** * Helper function for getElement and getElements. */ function wrapElement(elt) { if(elt.tagName === "INPUT" && elt.type === "checkbox") { var converted = new p5.Element(elt); converted.checked = function(){ if (arguments.length === 0){ return this.elt.checked; } else if(arguments[0]) { this.elt.checked = true; } else { this.elt.checked = false; } return this; }; return converted; } else if (elt.tagName === "VIDEO" || elt.tagName === "AUDIO") { return new p5.MediaElement(elt); } else if ( elt.tagName === "SELECT" ){ return createSelect( new p5.Element(elt) ); } else { return new p5.Element(elt); } } /** * Removes all elements created by p5, except any canvas / graphics * elements created by createCanvas or createGraphics. * Event handlers are removed, and element is removed from the DOM. * @method removeElements * @example * <div class='norender'><code> * function setup() { * createCanvas(100, 100); * createDiv('this is some text'); * createP('this is a paragraph'); * } * function mousePressed() { * removeElements(); // this will remove the div and p, not canvas * } * </code></div> * */ p5.prototype.removeElements = function (e) { for (var i=0; i<this._elements.length; i++) { if (!(this._elements[i].elt instanceof HTMLCanvasElement)) { this._elements[i].remove(); } } }; /** * Helpers for create methods. */ function addElement(elt, pInst, media) { var node = pInst._userNode ? pInst._userNode : document.body; node.appendChild(elt); var c = media ? new p5.MediaElement(elt) : new p5.Element(elt); pInst._elements.push(c); return c; } /** * Creates a &lt;div&gt;&lt;/div&gt; element in the DOM with given inner HTML. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createDiv * @param {String} html inner HTML for element created * @return {Object|p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var myDiv; * function setup() { * myDiv = createDiv('this is some text'); * } * </code></div> */ /** * Creates a &lt;p&gt;&lt;/p&gt; element in the DOM with given inner HTML. Used * for paragraph length text. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createP * @param {String} html inner HTML for element created * @return {Object|p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var myP; * function setup() { * myP = createP('this is some text'); * } * </code></div> */ /** * Creates a &lt;span&gt;&lt;/span&gt; element in the DOM with given inner HTML. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createSpan * @param {String} html inner HTML for element created * @return {Object|p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var mySpan; * function setup() { * mySpan = createSpan('this is some text'); * } * </code></div> */ var tags = ['div', 'p', 'span']; tags.forEach(function(tag) { var method = 'create' + tag.charAt(0).toUpperCase() + tag.slice(1); p5.prototype[method] = function(html) { var elt = document.createElement(tag); elt.innerHTML = typeof html === undefined ? "" : html; return addElement(elt, this); } }); /** * Creates an &lt;img&gt; element in the DOM with given src and * alternate text. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createImg * @param {String} src src path or url for image * @param {String} [alt] alternate text to be used if image does not load * @param {Function} [successCallback] callback to be called once image data is loaded * @return {Object|p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var img; * function setup() { * img = createImg('http://p5js.org/img/asterisk-01.png'); * } * </code></div> */ p5.prototype.createImg = function() { var elt = document.createElement('img'); var args = arguments; var self; var setAttrs = function(){ self.width = elt.offsetWidth || elt.width; self.height = elt.offsetHeight || elt.height; if (args.length > 1 && typeof args[1] === 'function'){ self.fn = args[1]; self.fn(); }else if (args.length > 1 && typeof args[2] === 'function'){ self.fn = args[2]; self.fn(); } }; elt.src = args[0]; if (args.length > 1 && typeof args[1] === 'string'){ elt.alt = args[1]; } elt.onload = function(){ setAttrs(); } self = addElement(elt, this); return self; }; /** * Creates an &lt;a&gt;&lt;/a&gt; element in the DOM for including a hyperlink. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createA * @param {String} href url of page to link to * @param {String} html inner html of link element to display * @param {String} [target] target where new link should open, * could be _blank, _self, _parent, _top. * @return {Object|p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var myLink; * function setup() { * myLink = createA('http://p5js.org/', 'this is a link'); * } * </code></div> */ p5.prototype.createA = function(href, html, target) { var elt = document.createElement('a'); elt.href = href; elt.innerHTML = html; if (target) elt.target = target; return addElement(elt, this); }; /** INPUT **/ /** * Creates a slider &lt;input&gt;&lt;/input&gt; element in the DOM. * Use .size() to set the display length of the slider. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createSlider * @param {Number} min minimum value of the slider * @param {Number} max maximum value of the slider * @param {Number} [value] default value of the slider * @param {Number} [step] step size for each tick of the slider (if step is set to 0, the slider will move continuously from the minimum to the maximum value) * @return {Object|p5.Element} pointer to p5.Element holding created node * @example * <div><code> * var slider; * function setup() { * slider = createSlider(0, 255, 100); * slider.position(10, 10); * slider.style('width', '80px'); * } * * function draw() { * var val = slider.value(); * background(val); * } * </code></div> * * <div><code> * var slider; * function setup() { * colorMode(HSB); * slider = createSlider(0, 360, 60, 40); * slider.position(10, 10); * slider.style('width', '80px'); * } * * function draw() { * var val = slider.value(); * background(val, 100, 100, 1); * } * </code></div> */ p5.prototype.createSlider = function(min, max, value, step) { var elt = document.createElement('input'); elt.type = 'range'; elt.min = min; elt.max = max; if (step === 0) { elt.step = .000000000000000001; // smallest valid step } else if (step) { elt.step = step; } if (typeof(value) === "number") elt.value = value; return addElement(elt, this); }; /** * Creates a &lt;button&gt;&lt;/button&gt; element in the DOM. * Use .size() to set the display size of the button. * Use .mousePressed() to specify behavior on press. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createButton * @param {String} label label displayed on the button * @param {String} [value] value of the button * @return {Object|p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var button; * function setup() { * createCanvas(100, 100); * background(0); * button = createButton('click me'); * button.position(19, 19); * button.mousePressed(changeBG); * } * * function changeBG() { * var val = random(255); * background(val); * } * </code></div> */ p5.prototype.createButton = function(label, value) { var elt = document.createElement('button'); elt.innerHTML = label; if (value) elt.value = value; return addElement(elt, this); }; /** * Creates a checkbox &lt;input&gt;&lt;/input&gt; element in the DOM. * Calling .checked() on a checkbox returns if it is checked or not * * @method createCheckbox * @param {String} [label] label displayed after checkbox * @param {boolean} [value] value of the checkbox; checked is true, unchecked is false.Unchecked if no value given * @return {Object|p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var checkbox; * * function setup() { * checkbox = createCheckbox('label', false); * checkbox.changed(myCheckedEvent); * } * * function myCheckedEvent() { * if (this.checked()) { * console.log("Checking!"); * } else { * console.log("Unchecking!"); * } * } * </code></div> */ p5.prototype.createCheckbox = function() { var elt = document.createElement('div'); var checkbox = document.createElement('input'); checkbox.type = 'checkbox'; elt.appendChild(checkbox); //checkbox must be wrapped in p5.Element before label so that label appears after var self = addElement(elt, this); self.checked = function(){ var cb = self.elt.getElementsByTagName('input')[0]; if (cb) { if (arguments.length === 0){ return cb.checked; }else if(arguments[0]){ cb.checked = true; }else{ cb.checked = false; } } return self; }; this.value = function(val){ self.value = val; return this; }; if (arguments[0]){ var ran = Math.random().toString(36).slice(2); var label = document.createElement('label'); checkbox.setAttribute('id', ran); label.htmlFor = ran; self.value(arguments[0]); label.appendChild(document.createTextNode(arguments[0])); elt.appendChild(label); } if (arguments[1]){ checkbox.checked = true; } return self; }; /** * Creates a dropdown menu &lt;select&gt;&lt;/select&gt; element in the DOM. * It also helps to assign select-box methods to p5.Element when selecting existing select box * @method createSelect * @param {boolean} [multiple] true if dropdown should support multiple selections * @return {p5.Element} * @example * <div><code> * var sel; * * function setup() { * textAlign(CENTER); * background(200); * sel = createSelect(); * sel.position(10, 10); * sel.option('pear'); * sel.option('kiwi'); * sel.option('grape'); * sel.changed(mySelectEvent); * } * * function mySelectEvent() { * var item = sel.value(); * background(200); * text("it's a "+item+"!", 50, 50); * } * </code></div> */ /** * @method createSelect * @param {Object} existing DOM select element * @return {p5.Element} */ p5.prototype.createSelect = function() { var elt, self; var arg = arguments[0]; if( typeof arg === 'object' && arg.elt.nodeName === 'SELECT' ) { self = arg; elt = this.elt = arg.elt; } else { elt = document.createElement('select'); if( arg && typeof arg === 'boolean' ) { elt.setAttribute('multiple', 'true'); } self = addElement(elt, this); } self.option = function(name, value) { var index; //see if there is already an option with this name for (var i = 0; i < this.elt.length; i++) { if(this.elt[i].innerHTML == name) { index = i; break; } } //if there is an option with this name we will modify it if(index !== undefined) { //if the user passed in false then delete that option if(value === false) { this.elt.remove(index); } else { //otherwise if the name and value are the same then change both if(this.elt[index].innerHTML == this.elt[index].value) { this.elt[index].innerHTML = this.elt[index].value = value; //otherwise just change the value } else { this.elt[index].value = value; } } } //if it doesn't exist make it else { var opt = document.createElement('option'); opt.innerHTML = name; if (arguments.length > 1) opt.value = value; else opt.value = name; elt.appendChild(opt); } }; self.selected = function(value) { var arr = []; if (arguments.length > 0) { for (var i = 0; i < this.elt.length; i++) { if (value.toString() === this.elt[i].value) { this.elt.selectedIndex = i; } } return this; } else { if (arg) { for (var i = 0; i < this.elt.selectedOptions.length; i++) { arr.push(this.elt.selectedOptions[i].value); } return arr; } else { return this.elt.value; } } }; return self; }; /** * Creates a radio button &lt;input&gt;&lt;/input&gt; element in the DOM. * The .option() method can be used to set options for the radio after it is * created. The .value() method will return the currently selected option. * * @method createRadio * @param {String} [divId] the id and name of the created div and input field respectively * @return {Object|p5.Element} pointer to p5.Element holding created node * @example * <div><code> * var radio; * * function setup() { * radio = createRadio(); * radio.option("black"); * radio.option("white"); * radio.option("gray"); * radio.style('width', '60px'); * textAlign(CENTER); * fill(255, 0, 0); * } * * function draw() { * var val = radio.value(); * background(val); * text(val, width/2, height/2); * } * </code></div> * <div><code> * var radio; * * function setup() { * radio = createRadio(); * radio.option('apple', 1); * radio.option('bread', 2); * radio.option('juice', 3); * radio.style('width', '60px'); * textAlign(CENTER); * } * * function draw() { * background(200); * var val = radio.value(); * if (val) { * text('item cost is $'+val, width/2, height/2); * } * } * </code></div> */ p5.prototype.createRadio = function() { var radios = document.querySelectorAll("input[type=radio]"); var count = 0; if(radios.length > 1){ var length = radios.length; var prev=radios[0].name; var current = radios[1].name; count = 1; for(var i = 1; i < length; i++) { current = radios[i].name; if(prev != current){ count++; } prev = current; } } else if (radios.length == 1){ count = 1; } var elt = document.createElement('div'); var self = addElement(elt, this); var times = -1; self.option = function(name, value){ var opt = document.createElement('input'); opt.type = 'radio'; opt.innerHTML = name; if (arguments.length > 1) opt.value = value; else opt.value = name; opt.setAttribute('name',"defaultradio"+count); elt.appendChild(opt); if (name){ times++; var ran = Math.random().toString(36).slice(2); var label = document.createElement('label'); opt.setAttribute('id', "defaultradio"+count+"-"+times); label.htmlFor = "defaultradio"+count+"-"+times; label.appendChild(document.createTextNode(name)); elt.appendChild(label); } return opt; }; self.selected = function(){ var length = this.elt.childNodes.length; if(arguments.length == 1) { for (var i = 0; i < length; i+=2){ if(this.elt.childNodes[i].value == arguments[0]) this.elt.childNodes[i].checked = true; } return this; } else { for (var i = 0; i < length; i+=2){ if(this.elt.childNodes[i].checked == true) return this.elt.childNodes[i].value; } } }; self.value = function(){ var length = this.elt.childNodes.length; if(arguments.length == 1) { for (var i = 0; i < length; i+=2){ if(this.elt.childNodes[i].value == arguments[0]) this.elt.childNodes[i].checked = true; } return this; } else { for (var i = 0; i < length; i+=2){ if(this.elt.childNodes[i].checked == true) return this.elt.childNodes[i].value; } return ""; } }; return self }; /** * Creates an &lt;input&gt;&lt;/input&gt; element in the DOM for text input. * Use .size() to set the display length of the box. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createInput * @param {Number} [value] default value of the input box * @param {String} [type] type of text, ie text, password etc. Defaults to text * @return {Object|p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * function setup(){ * var inp = createInput(''); * inp.input(myInputEvent); * } * * function myInputEvent(){ * console.log('you are typing: ', this.value()); * } * * </code></div> */ p5.prototype.createInput = function(value, type) { var elt = document.createElement('input'); elt.type = type ? type : 'text'; if (value) elt.value = value; return addElement(elt, this); }; /** * Creates an &lt;input&gt;&lt;/input&gt; element in the DOM of type 'file'. * This allows users to select local files for use in a sketch. * * @method createFileInput * @param {Function} [callback] callback function for when a file loaded * @param {String} [multiple] optional to allow multiple files selected * @return {Object|p5.Element} pointer to p5.Element holding created DOM element * @example * var input; * var img; * * function setup() { * input = createFileInput(handleFile); * input.position(0, 0); * } * * function draw() { * if (img) { * image(img, 0, 0, width, height); * } * } * * function handleFile(file) { * print(file); * if (file.type === 'image') { * img = createImg(file.data); * img.hide(); * } * } */ p5.prototype.createFileInput = function(callback, multiple) { // Is the file stuff supported? if (window.File && window.FileReader && window.FileList && window.Blob) { // Yup, we're ok and make an input file selector var elt = document.createElement('input'); elt.type = 'file'; // If we get a second argument that evaluates to true // then we are looking for multiple files if (multiple) { // Anything gets the job done elt.multiple = 'multiple'; } // Function to handle when a file is selected // We're simplifying life and assuming that we always // want to load every selected file function handleFileSelect(evt) { // These are the files var files = evt.target.files; // Load each one and trigger a callback for (var i = 0; i < files.length; i++) { var f = files[i]; var reader = new FileReader(); function makeLoader(theFile) { // Making a p5.File object var p5file = new p5.File(theFile); return function(e) { p5file.data = e.target.result; callback(p5file); }; }; reader.onload = makeLoader(f); // Text or data? // This should likely be improved if (f.type.indexOf('text') > -1) { reader.readAsText(f); } else { reader.readAsDataURL(f); } } } // Now let's handle when a file was selected elt.addEventListener('change', handleFileSelect, false); return addElement(elt, this); } else { console.log('The File APIs are not fully supported in this browser. Cannot create element.'); } }; /** VIDEO STUFF **/ function createMedia(pInst, type, src, callback) { var elt = document.createElement(type); // allow src to be empty var src = src || ''; if (typeof src === 'string') { src = [src]; } for (var i=0; i<src.length; i++) { var source = document.createElement('source'); source.src = src[i]; elt.appendChild(source); } if (typeof callback !== 'undefined') { var callbackHandler = function() { callback(); elt.removeEventListener('canplaythrough', callbackHandler); } elt.addEventListener('canplaythrough', callbackHandler); } var c = addElement(elt, pInst, true); c.loadedmetadata = false; // set width and height onload metadata elt.addEventListener('loadedmetadata', function() { c.width = elt.videoWidth; c.height = elt.videoHeight; // set elt width and height if not set if (c.elt.width === 0) c.elt.width = elt.videoWidth; if (c.elt.height === 0) c.elt.height = elt.videoHeight; c.loadedmetadata = true; }); return c; } /** * Creates an HTML5 &lt;video&gt; element in the DOM for simple playback * of audio/video. Shown by default, can be hidden with .hide() * and drawn into canvas using video(). Appends to the container * node if one is specified, otherwise appends to body. The first parameter * can be either a single string path to a video file, or an array of string * paths to different formats of the same video. This is useful for ensuring * that your video can play across different browsers, as each supports * different formats. See <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats">this * page</a> for further information about supported formats. * * @method createVideo * @param {String|Array} src path to a video file, or array of paths for * supporting different browsers * @param {Object} [callback] callback function to be called upon * 'canplaythrough' event fire, that is, when the * browser can play the media, and estimates that * enough data has been loaded to play the media * up to its end without having to stop for * further buffering of content * @return {Object|p5.Element} pointer to video p5.Element */ p5.prototype.createVideo = function(src, callback) { return createMedia(this, 'video', src, callback); }; /** AUDIO STUFF **/ /** * Creates a hidden HTML5 &lt;audio&gt; element in the DOM for simple audio * playback. Appends to the container node if one is specified, * otherwise appends to body. The first parameter * can be either a single string path to a audio file, or an array of string * paths to different formats of the same audio. This is useful for ensuring * that your audio can play across different browsers, as each supports * different formats. See <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats">this * page for further information about supported formats</a>. * * @method createAudio * @param {String|Array} src path to an audio file, or array of paths for * supporting different browsers * @param {Object} [callback] callback function to be called upon * 'canplaythrough' event fire, that is, when the * browser can play the media, and estimates that * enough data has been loaded to play the media * up to its end without having to stop for * further buffering of content * @return {Object|p5.Element} pointer to audio p5.Element */ p5.prototype.createAudio = function(src, callback) { return createMedia(this, 'audio', src, callback); }; /** CAMERA STUFF **/ p5.prototype.VIDEO = 'video'; p5.prototype.AUDIO = 'audio'; navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; /** * <p>Creates a new &lt;video&gt; element that contains the audio/video feed * from a webcam. This can be drawn onto the canvas using video().</p> * <p>More specific properties of the feed can be passing in a Constraints object. * See the * <a href="http://w3c.github.io/mediacapture-main/getusermedia.html#media-track-constraints"> W3C * spec</a> for possible properties. Note that not all of these are supported * by all browsers.</p> * <p>Security note: A new browser security specification requires that getUserMedia, * which is behind createCapture(), only works when you're running the code locally, * or on HTTPS. Learn more <a href="http://stackoverflow.com/questions/34197653/getusermedia-in-chrome-47-without-using-https">here</a> * and <a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia">here</a>.</p> * * @method createCapture * @param {String|Constant|Object} type type of capture, either VIDEO or * AUDIO if none specified, default both, * or a Constraints object * @param {Function} callback function to be called once * stream has loaded * @return {Object|p5.Element} capture video p5.Element * @example * <div class='norender'><code> * var capture; * * function setup() { * createCanvas(480, 120); * capture = createCapture(VIDEO); * } * * function draw() { * image(capture, 0, 0, width, width*capture.height/capture.width); * filter(INVERT); * } * </code></div> * <div class='norender'><code> * function setup() { * createCanvas(480, 120); * var constraints = { * video: { * mandatory: { * minWidth: 1280, * minHeight: 720 * }, * optional: [ * { maxFrameRate: 10 } * ] * }, * audio: true * }; * createCapture(constraints, function(stream) { * console.log(stream); * }); * } * </code></div> */ p5.prototype.createCapture = function() { var useVideo = true; var useAudio = true; var constraints; var cb; for (var i=0; i<arguments.length; i++) { if (arguments[i] === p5.prototype.VIDEO) { useAudio = false; } else if (arguments[i] === p5.prototype.AUDIO) { useVideo = false; } else if (typeof arguments[i] === 'object') { constraints = arguments[i]; } else if (typeof arguments[i] === 'function') { cb = arguments[i]; } } if (navigator.getUserMedia) { var elt = document.createElement('video'); if (!constraints) { constraints = {video: useVideo, audio: useAudio}; } navigator.getUserMedia(constraints, function(stream) { elt.src = window.URL.createObjectURL(stream); if (cb) { cb(stream); } }, function(e) { console.log(e); }); } else { throw 'getUserMedia not supported in this browser'; } var c = addElement(elt, this, true); c.loadedmetadata = false; // set width and height onload metadata elt.addEventListener('loadedmetadata', function() { elt.play(); if (elt.width) { c.width = elt.videoWidth = elt.width; c.height = elt.videoHeight = elt.height; } else { c.width = c.elt.width = elt.videoWidth; c.height = c.elt.height = elt.videoHeight; } c.loadedmetadata = true; }); return c; }; /** * Creates element with given tag in the DOM with given content. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createElement * @param {String} tag tag for the new element * @param {String} [content] html content to be inserted into the element * @return {Object|p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var h2 = createElement('h2','im an h2 p5.element!'); * </code></div> */ p5.prototype.createElement = function(tag, content) { var elt = document.createElement(tag); if (typeof content !== 'undefined') { elt.innerHTML = content; } return addElement(elt, this); }; // ============================================================================= // p5.Element additions // ============================================================================= /** * * Adds specified class to the element. * * @for p5.Element * @method addClass * @param {String} class name of class to add * @return {Object|p5.Element} * @example * <div class='norender'><code> * var div = createDiv('div'); * div.addClass('myClass'); * </code></div> */ p5.Element.prototype.addClass = function(c) { if (this.elt.className) { // PEND don't add class more than once //var regex = new RegExp('[^a-zA-Z\d:]?'+c+'[^a-zA-Z\d:]?'); //if (this.elt.className.search(/[^a-zA-Z\d:]?hi[^a-zA-Z\d:]?/) === -1) { this.elt.className = this.elt.className+' '+c; //} } else { this.elt.className = c; } return this; } /** * * Removes specified class from the element. * * @method removeClass * @param {String} class name of class to remove * @return {Object|p5.Element} */ p5.Element.prototype.removeClass = function(c) { var regex = new RegExp('(?:^|\\s)'+c+'(?!\\S)'); this.elt.className = this.elt.className.replace(regex, ''); this.elt.className = this.elt.className.replace(/^\s+|\s+$/g, ""); //prettify (optional) return this; } /** * * Attaches the element as a child to the parent specified. * Accepts either a string ID, DOM node, or p5.Element. * If no argument is specified, an array of children DOM nodes is returned. * * @method child * @param {String|Object|p5.Element} [child] the ID, DOM node, or p5.Element * to add to the current element * @return {p5.Element} * @example * <div class='norender'><code> * var div0 = createDiv('this is the parent'); * var div1 = createDiv('this is the child'); * div0.child(div1); // use p5.Element * </code></div> * <div class='norender'><code> * var div0 = createDiv('this is the parent'); * var div1 = createDiv('this is the child'); * div1.id('apples'); * div0.child('apples'); // use id * </code></div> * <div class='norender'><code> * var div0 = createDiv('this is the parent'); * var elt = document.getElementById('myChildDiv'); * div0.child(elt); // use element from page * </code></div> */ p5.Element.prototype.child = function(c) { if (typeof c === 'undefined'){ return this.elt.childNodes } if (typeof c === 'string') { if (c[0] === '#') { c = c.substring(1); } c = document.getElementById(c); } else if (c instanceof p5.Element) { c = c.elt; } this.elt.appendChild(c); return this; }; /** * Centers a p5 Element either vertically, horizontally, * or both, relative to its parent or according to * the body if the Element has no parent. If no argument is passed * the Element is aligned both vertically and horizontally. * * @param {String} align passing 'vertical', 'horizontal' aligns element accordingly * @return {Object|p5.Element} pointer to p5.Element * @example * <div><code> * function setup() { * var div = createDiv('').size(10,10); * div.style('background-color','orange'); * div.center(); * * } * </code></div> */ p5.Element.prototype.center = function(align) { var style = this.elt.style.display; var hidden = this.elt.style.display === 'none'; var parentHidden = this.parent().style.display === 'none'; var pos = { x : this.elt.offsetLeft, y : this.elt.offsetTop }; if (hidden) this.show(); this.elt.style.display = 'block'; this.position(0,0); if (parentHidden) this.parent().style.display = 'block'; var wOffset = Math.abs(this.parent().offsetWidth - this.elt.offsetWidth); var hOffset = Math.abs(this.parent().offsetHeight - this.elt.offsetHeight); var y = pos.y; var x = pos.x; if (align === 'both' || align === undefined){ this.position(wOffset/2, hOffset/2); }else if (align === 'horizontal'){ this.position(wOffset/2, y); }else if (align === 'vertical'){ this.position(x, hOffset/2); } this.style('display', style); if (hidden) this.hide(); if (parentHidden) this.parent().style.display = 'none'; return this; }; /** * * If an argument is given, sets the inner HTML of the element, * replacing any existing html. If true is included as a second * argument, html is appended instead of replacing existing html. * If no arguments are given, returns * the inner HTML of the element. * * @for p5.Element * @method html * @param {String} [html] the HTML to be placed inside the element * @param {boolean} [append] whether to append HTML to existing * @return {Object|p5.Element|String} * @example * <div class='norender'><code> * var div = createDiv('').size(100,100); * div.html('hi'); * </code></div> * <div class='norender'><code> * var div = createDiv('Hello ').size(100,100); * div.html('World', true); * </code></div> */ p5.Element.prototype.html = function() { if (arguments.length === 0) { return this.elt.innerHTML; } else if (arguments[1]) { this.elt.innerHTML += arguments[0]; return this; } else { this.elt.innerHTML = arguments[0]; return this; } }; /** * * Sets the position of the element relative to (0, 0) of the * window. Essentially, sets position:absolute and left and top * properties of style. If no arguments given returns the x and y position * of the element in an object. * * @method position * @param {Number} [x] x-position relative to upper left of window * @param {Number} [y] y-position relative to upper left of window * @return {Object|p5.Element} * @example * <div><code class='norender'> * function setup() { * var cnv = createCanvas(100, 100); * // positions canvas 50px to the right and 100px * // below upper left corner of the window * cnv.position(50, 100); * } * </code></div> */ p5.Element.prototype.position = function() { if (arguments.length === 0){ return { 'x' : this.elt.offsetLeft , 'y' : this.elt.offsetTop }; }else{ this.elt.style.position = 'absolute'; this.elt.style.left = arguments[0]+'px'; this.elt.style.top = arguments[1]+'px'; this.x = arguments[0]; this.y = arguments[1]; return this; } }; /* Helper method called by p5.Element.style() */ p5.Element.prototype._translate = function(){ this.elt.style.position = 'absolute'; // save out initial non-translate transform styling var transform = ''; if (this.elt.style.transform) { transform = this.elt.style.transform.replace(/translate3d\(.*\)/g, ''); transform = transform.replace(/translate[X-Z]?\(.*\)/g, ''); } if (arguments.length === 2) { this.elt.style.transform = 'translate('+arguments[0]+'px, '+arguments[1]+'px)'; } else if (arguments.length > 2) { this.elt.style.transform = 'translate3d('+arguments[0]+'px,'+arguments[1]+'px,'+arguments[2]+'px)'; if (arguments.length === 3) { this.elt.parentElement.style.perspective = '1000px'; } else { this.elt.parentElement.style.perspective = arguments[3]+'px'; } } // add any extra transform styling back on end this.elt.style.transform += transform; return this; }; /* Helper method called by p5.Element.style() */ p5.Element.prototype._rotate = function(){ // save out initial non-rotate transform styling var transform = ''; if (this.elt.style.transform) { var transform = this.elt.style.transform.replace(/rotate3d\(.*\)/g, ''); transform = transform.replace(/rotate[X-Z]?\(.*\)/g, ''); } if (arguments.length === 1){ this.elt.style.transform = 'rotate('+arguments[0]+'deg)'; }else if (arguments.length === 2){ this.elt.style.transform = 'rotate('+arguments[0]+'deg, '+arguments[1]+'deg)'; }else if (arguments.length === 3){ this.elt.style.transform = 'rotateX('+arguments[0]+'deg)'; this.elt.style.transform += 'rotateY('+arguments[1]+'deg)'; this.elt.style.transform += 'rotateZ('+arguments[2]+'deg)'; } // add remaining transform back on this.elt.style.transform += transform; return this; }; /** * Sets the given style (css) property (1st arg) of the element with the * given value (2nd arg). If a single argument is given, .style() * returns the value of the given property; however, if the single argument * is given in css syntax ('text-align:center'), .style() sets the css * appropriatly. .style() also handles 2d and 3d css transforms. If * the 1st arg is 'rotate', 'translate', or 'position', the following arguments * accept Numbers as values. ('translate', 10, 100, 50); * * @method style * @param {String} property property to be set * @param {String|Number|p5.Color} [value] value to assign to property (only String|Number for rotate/translate) * @return {String|Object|p5.Element} value of property, if no value is specified * or p5.Element * @example * <div><code class="norender"> * var myDiv = createDiv("I like pandas."); * myDiv.style("font-size", "18px"); * myDiv.style("color", "#ff0000"); * </code></div> * <div><code class="norender"> * var col = color(25,23,200,50); * var button = createButton("button"); * button.style("background-color", col); * button.position(10, 10); * </code></div> * <div><code class="norender"> * var myDiv = createDiv("I like lizards."); * myDiv.style("position", 20, 20); * myDiv.style("rotate", 45); * </code></div> * <div><code class="norender"> * var myDiv; * function setup() { * background(200); * myDiv = createDiv("I like gray."); * myDiv.position(20, 20); * } * * function draw() { * myDiv.style("font-size", mouseX+"px"); * } * </code></div> */ p5.Element.prototype.style = function(prop, val) { var self = this; if (val instanceof p5.Color) { val = 'rgba(' + val.levels[0] + ',' + val.levels[1] + ',' + val.levels[2] + ',' + val.levels[3]/255 + ')' } if (typeof val === 'undefined') { if (prop.indexOf(':') === -1) { var styles = window.getComputedStyle(self.elt); var style = styles.getPropertyValue(prop); return style; } else { var attrs = prop.split(';'); for (var i = 0; i < attrs.length; i++) { var parts = attrs[i].split(':'); if (parts[0] && parts[1]) { this.elt.style[parts[0].trim()] = parts[1].trim(); } } } } else { if (prop === 'rotate' || prop === 'translate' || prop === 'position'){ var trans = Array.prototype.shift.apply(arguments); var f = this[trans] || this['_'+trans]; f.apply(this, arguments); } else { this.elt.style[prop] = val; if (prop === 'width' || prop === 'height' || prop === 'left' || prop === 'top') { var numVal = val.replace(/\D+/g, ''); this[prop] = parseInt(numVal, 10); // pend: is this necessary? } } } return this; }; /** * * Adds a new attribute or changes the value of an existing attribute * on the specified element. If no value is specified, returns the * value of the given attribute, or null if attribute is not set. * * @method attribute * @param {String} attr attribute to set * @param {String} [value] value to assign to attribute * @return {String|Object|p5.Element} value of attribute, if no value is * specified or p5.Element * @example * <div class="norender"><code> * var myDiv = createDiv("I like pandas."); * myDiv.attribute("align", "center"); * </code></div> */ p5.Element.prototype.attribute = function(attr, value) { //handling for checkboxes and radios to ensure options get //attributes not divs if(this.elt.firstChild != null && (this.elt.firstChild.type === 'checkbox' || this.elt.firstChild.type === 'radio')) { if(typeof value === 'undefined') { return this.elt.firstChild.getAttribute(attr); } else { for(var i=0; i<this.elt.childNodes.length; i++) { this.elt.childNodes[i].setAttribute(attr, value); } } } else if (typeof value === 'undefined') { return this.elt.getAttribute(attr); } else { this.elt.setAttribute(attr, value); return this; } }; /** * * Removes an attribute on the specified element. * * @method removeAttribute * @param {String} attr attribute to remove * @return {Object|p5.Element} * * @example * <div><code> * var button; * var checkbox; * * function setup() { * checkbox = createCheckbox('enable', true); * checkbox.changed(enableButton); * button = createButton('button'); * button.position(10, 10); * } * * function enableButton() { * if( this.checked() ) { * // Re-enable the button * button.removeAttribute('disabled'); * } else { * // Disable the button * button.attribute('disabled',''); * } * } * </code></div> */ p5.Element.prototype.removeAttribute = function(attr) { if(this.elt.firstChild != null && (this.elt.firstChild.type === 'checkbox' || this.elt.firstChild.type === 'radio')) { for(var i=0; i<this.elt.childNodes.length; i++) { this.elt.childNodes[i].removeAttribute(attr); } } this.elt.removeAttribute(attr); return this; }; /** * Either returns the value of the element if no arguments * given, or sets the value of the element. * * @method value * @param {String|Number} [value] * @return {String|Object|p5.Element} value of element if no value is specified or p5.Element * @example * <div class='norender'><code> * // gets the value * var inp; * function setup() { * inp = createInput(''); * } * * function mousePressed() { * print(inp.value()); * } * </code></div> * <div class='norender'><code> * // sets the value * var inp; * function setup() { * inp = createInput('myValue'); * } * * function mousePressed() { * inp.value("myValue"); * } * </code></div> */ p5.Element.prototype.value = function() { if (arguments.length > 0) { this.elt.value = arguments[0]; return this; } else { if (this.elt.type === 'range') { return parseFloat(this.elt.value); } else return this.elt.value; } }; /** * * Shows the current element. Essentially, setting display:block for the style. * * @method show * @return {Object|p5.Element} * @example * <div class='norender'><code> * var div = createDiv('div'); * div.style("display", "none"); * div.show(); // turns display to block * </code></div> */ p5.Element.prototype.show = function() { this.elt.style.display = 'block'; return this; }; /** * Hides the current element. Essentially, setting display:none for the style. * * @method hide * @return {Object|p5.Element} * @example * <div class='norender'><code> * var div = createDiv('this is a div'); * div.hide(); * </code></div> */ p5.Element.prototype.hide = function() { this.elt.style.display = 'none'; return this; }; /** * * Sets the width and height of the element. AUTO can be used to * only adjust one dimension. If no arguments given returns the width and height * of the element in an object. * * @method size * @param {Number} [w] width of the element * @param {Number} [h] height of the element * @return {Object|p5.Element} * @example * <div class='norender'><code> * var div = createDiv('this is a div'); * div.size(100, 100); * </code></div> */ p5.Element.prototype.size = function(w, h) { if (arguments.length === 0){ return { 'width' : this.elt.offsetWidth , 'height' : this.elt.offsetHeight }; }else{ var aW = w; var aH = h; var AUTO = p5.prototype.AUTO; if (aW !== AUTO || aH !== AUTO) { if (aW === AUTO) { aW = h * this.width / this.height; } else if (aH === AUTO) { aH = w * this.height / this.width; } // set diff for cnv vs normal div if (this.elt instanceof HTMLCanvasElement) { var j = {}; var k = this.elt.getContext('2d'); for (var prop in k) { j[prop] = k[prop]; } this.elt.setAttribute('width', aW * this._pInst._pixelDensity); this.elt.setAttribute('height', aH * this._pInst._pixelDensity); this.elt.setAttribute('style', 'width:' + aW + 'px; height:' + aH + 'px'); this._pInst.scale(this._pInst._pixelDensity, this._pInst._pixelDensity); for (var prop in j) { this.elt.getContext('2d')[prop] = j[prop]; } } else { this.elt.style.width = aW+'px'; this.elt.style.height = aH+'px'; this.elt.width = aW; this.elt.height = aH; this.width = aW; this.height = aH; } this.width = this.elt.offsetWidth; this.height = this.elt.offsetHeight; if (this._pInst) { // main canvas associated with p5 instance if (this._pInst._curElement.elt === this.elt) { this._pInst._setProperty('width', this.elt.offsetWidth); this._pInst._setProperty('height', this.elt.offsetHeight); } } } return this; } }; /** * Removes the element and deregisters all listeners. * @method remove * @example * <div class='norender'><code> * var myDiv = createDiv('this is some text'); * myDiv.remove(); * </code></div> */ p5.Element.prototype.remove = function() { // deregister events for (var ev in this._events) { this.elt.removeEventListener(ev, this._events[ev]); } if (this.elt.parentNode) { this.elt.parentNode.removeChild(this.elt); } delete(this); }; // ============================================================================= // p5.MediaElement additions // ============================================================================= /** * Extends p5.Element to handle audio and video. In addition to the methods * of p5.Element, it also contains methods for controlling media. It is not * called directly, but p5.MediaElements are created by calling createVideo, * createAudio, and createCapture. * * @class p5.MediaElement * @constructor * @param {String} elt DOM node that is wrapped * @param {Object} [pInst] pointer to p5 instance */ p5.MediaElement = function(elt, pInst) { p5.Element.call(this, elt, pInst); var self = this; this.elt.crossOrigin = 'anonymous'; this._prevTime = 0; this._cueIDCounter = 0; this._cues = []; this._pixelDensity = 1; /** * Path to the media element source. * * @property src * @return {String} src */ Object.defineProperty(self, 'src', { get: function() { var firstChildSrc = self.elt.children[0].src; var srcVal = self.elt.src === window.location.href ? '' : self.elt.src; var ret = firstChildSrc === window.location.href ? srcVal : firstChildSrc; return ret; }, set: function(newValue) { for (var i = 0; i < self.elt.children.length; i++) { self.elt.removeChild(self.elt.children[i]); } var source = document.createElement('source'); source.src = newValue; elt.appendChild(source); self.elt.src = newValue; }, }); // private _onended callback, set by the method: onended(callback) self._onended = function() {}; self.elt.onended = function() { self._onended(self); } }; p5.MediaElement.prototype = Object.create(p5.Element.prototype); /** * Play an HTML5 media element. * * @method play * @return {Object|p5.Element} */ p5.MediaElement.prototype.play = function() { if (this.elt.currentTime === this.elt.duration) { this.elt.currentTime = 0; } if (this.elt.readyState > 1) { this.elt.play(); } else { // in Chrome, playback cannot resume after being stopped and must reload this.elt.load(); this.elt.play(); } return this; }; /** * Stops an HTML5 media element (sets current time to zero). * * @method stop * @return {Object|p5.Element} */ p5.MediaElement.prototype.stop = function() { this.elt.pause(); this.elt.currentTime = 0; return this; }; /** * Pauses an HTML5 media element. * * @method pause * @return {Object|p5.Element} */ p5.MediaElement.prototype.pause = function() { this.elt.pause(); return this; }; /** * Set 'loop' to true for an HTML5 media element, and starts playing. * * @method loop * @return {Object|p5.Element} */ p5.MediaElement.prototype.loop = function() { this.elt.setAttribute('loop', true); this.play(); return this; }; /** * Set 'loop' to false for an HTML5 media element. Element will stop * when it reaches the end. * * @method noLoop * @return {Object|p5.Element} */ p5.MediaElement.prototype.noLoop = function() { this.elt.setAttribute('loop', false); return this; }; /** * Set HTML5 media element to autoplay or not. * * @method autoplay * @param {Boolean} autoplay whether the element should autoplay * @return {Object|p5.Element} */ p5.MediaElement.prototype.autoplay = function(val) { this.elt.setAttribute('autoplay', val); return this; }; /** * Sets volume for this HTML5 media element. If no argument is given, * returns the current volume. * * @param {Number} [val] volume between 0.0 and 1.0 * @return {Number|p5.MediaElement} current volume or p5.MediaElement * @method volume */ p5.MediaElement.prototype.volume = function(val) { if (typeof val === 'undefined') { return this.elt.volume; } else { this.elt.volume = val; } }; /** * If no arguments are given, returns the current playback speed of the * element. The speed parameter sets the speed where 2.0 will play the * element twice as fast, 0.5 will play at half the speed, and -1 will play * the element in normal speed in reverse.(Note that not all browsers support * backward playback and even if they do, playback might not be smooth.) * * @method speed * @param {Number} [speed] speed multiplier for element playback * @return {Number|Object|p5.MediaElement} current playback speed or p5.MediaElement */ p5.MediaElement.prototype.speed = function(val) { if (typeof val === 'undefined') { return this.elt.playbackRate; } else { this.elt.playbackRate = val; } }; /** * If no arguments are given, returns the current time of the element. * If an argument is given the current time of the element is set to it. * * @method time * @param {Number} [time] time to jump to (in seconds) * @return {Number|Object|p5.MediaElement} current time (in seconds) * or p5.MediaElement */ p5.MediaElement.prototype.time = function(val) { if (typeof val === 'undefined') { return this.elt.currentTime; } else { this.elt.currentTime = val; } }; /** * Returns the duration of the HTML5 media element. * * @method duration * @return {Number} duration */ p5.MediaElement.prototype.duration = function() { return this.elt.duration; }; p5.MediaElement.prototype.pixels = []; p5.MediaElement.prototype.loadPixels = function() { if (!this.canvas) { this.canvas = document.createElement('canvas'); this.drawingContext = this.canvas.getContext('2d'); } if (this.loadedmetadata) { // wait for metadata for w/h if (this.canvas.width !== this.elt.width) { this.canvas.width = this.elt.width; this.canvas.height = this.elt.height; this.width = this.canvas.width; this.height = this.canvas.height; } this.drawingContext.drawImage(this.elt, 0, 0, this.canvas.width, this.canvas.height); p5.Renderer2D.prototype.loadPixels.call(this); } return this; } p5.MediaElement.prototype.updatePixels = function(x, y, w, h){ if (this.loadedmetadata) { // wait for metadata p5.Renderer2D.prototype.updatePixels.call(this, x, y, w, h); } return this; } p5.MediaElement.prototype.get = function(x, y, w, h){ if (this.loadedmetadata) { // wait for metadata return p5.Renderer2D.prototype.get.call(this, x, y, w, h); } else if (typeof x === 'undefined') { return new p5.Image(1, 1); } else if (w > 1) { return new p5.Image(x, y, w, h); } else { return [0, 0, 0, 255]; } }; p5.MediaElement.prototype.set = function(x, y, imgOrCol){ if (this.loadedmetadata) { // wait for metadata p5.Renderer2D.prototype.set.call(this, x, y, imgOrCol); } }; p5.MediaElement.prototype.copy = function(){ p5.Renderer2D.prototype.copy.apply(this, arguments); }; p5.MediaElement.prototype.mask = function(){ this.loadPixels(); p5.Image.prototype.mask.apply(this, arguments); }; /** * Schedule an event to be called when the audio or video * element reaches the end. If the element is looping, * this will not be called. The element is passed in * as the argument to the onended callback. * * @method onended * @param {Function} callback function to call when the * soundfile has ended. The * media element will be passed * in as the argument to the * callback. * @return {Object|p5.MediaElement} * @example * <div><code> * function setup() { * audioEl = createAudio('assets/beat.mp3'); * audioEl.showControls(true); * audioEl.onended(sayDone); * } * * function sayDone(elt) { * alert('done playing ' + elt.src ); * } * </code></div> */ p5.MediaElement.prototype.onended = function(callback) { this._onended = callback; return this; }; /*** CONNECT TO WEB AUDIO API / p5.sound.js ***/ /** * Send the audio output of this element to a specified audioNode or * p5.sound object. If no element is provided, connects to p5's master * output. That connection is established when this method is first called. * All connections are removed by the .disconnect() method. * * This method is meant to be used with the p5.sound.js addon library. * * @method connect * @param {AudioNode|p5.sound object} audioNode AudioNode from the Web Audio API, * or an object from the p5.sound library */ p5.MediaElement.prototype.connect = function(obj) { var audioContext, masterOutput; // if p5.sound exists, same audio context if (typeof p5.prototype.getAudioContext === 'function') { audioContext = p5.prototype.getAudioContext(); masterOutput = p5.soundOut.input; } else { try { audioContext = obj.context; masterOutput = audioContext.destination } catch(e) { throw 'connect() is meant to be used with Web Audio API or p5.sound.js' } } // create a Web Audio MediaElementAudioSourceNode if none already exists if (!this.audioSourceNode) { this.audioSourceNode = audioContext.createMediaElementSource(this.elt); // connect to master output when this method is first called this.audioSourceNode.connect(masterOutput); } // connect to object if provided if (obj) { if (obj.input) { this.audioSourceNode.connect(obj.input); } else { this.audioSourceNode.connect(obj); } } // otherwise connect to master output of p5.sound / AudioContext else { this.audioSourceNode.connect(masterOutput); } }; /** * Disconnect all Web Audio routing, including to master output. * This is useful if you want to re-route the output through * audio effects, for example. * * @method disconnect */ p5.MediaElement.prototype.disconnect = function() { if (this.audioSourceNode) { this.audioSourceNode.disconnect(); } else { throw 'nothing to disconnect'; } }; /*** SHOW / HIDE CONTROLS ***/ /** * Show the default MediaElement controls, as determined by the web browser. * * @method showControls */ p5.MediaElement.prototype.showControls = function() { // must set style for the element to show on the page this.elt.style['text-align'] = 'inherit'; this.elt.controls = true; }; /** * Hide the default mediaElement controls. * * @method hideControls */ p5.MediaElement.prototype.hideControls = function() { this.elt.controls = false; }; /*** SCHEDULE EVENTS ***/ /** * Schedule events to trigger every time a MediaElement * (audio/video) reaches a playback cue point. * * Accepts a callback function, a time (in seconds) at which to trigger * the callback, and an optional parameter for the callback. * * Time will be passed as the first parameter to the callback function, * and param will be the second parameter. * * * @method addCue * @param {Number} time Time in seconds, relative to this media * element's playback. For example, to trigger * an event every time playback reaches two * seconds, pass in the number 2. This will be * passed as the first parameter to * the callback function. * @param {Function} callback Name of a function that will be * called at the given time. The callback will * receive time and (optionally) param as its * two parameters. * @param {Object} [value] An object to be passed as the * second parameter to the * callback function. * @return {Number} id ID of this cue, * useful for removeCue(id) * @example * <div><code> * function setup() { * background(255,255,255); * * audioEl = createAudio('assets/beat.mp3'); * audioEl.showControls(); * * // schedule three calls to changeBackground * audioEl.addCue(0.5, changeBackground, color(255,0,0) ); * audioEl.addCue(1.0, changeBackground, color(0,255,0) ); * audioEl.addCue(2.5, changeBackground, color(0,0,255) ); * audioEl.addCue(3.0, changeBackground, color(0,255,255) ); * audioEl.addCue(4.2, changeBackground, color(255,255,0) ); * audioEl.addCue(5.0, changeBackground, color(255,255,0) ); * } * * function changeBackground(val) { * background(val); * } * </code></div> */ p5.MediaElement.prototype.addCue = function(time, callback, val) { var id = this._cueIDCounter++; var cue = new Cue(callback, time, id, val); this._cues.push(cue); if (!this.elt.ontimeupdate) { this.elt.ontimeupdate = this._onTimeUpdate.bind(this); } return id; }; /** * Remove a callback based on its ID. The ID is returned by the * addCue method. * * @method removeCue * @param {Number} id ID of the cue, as returned by addCue */ p5.MediaElement.prototype.removeCue = function(id) { for (var i = 0; i < this._cues.length; i++) { if (this._cues[i] === id) { console.log(id) this._cues.splice(i, 1); } } if (this._cues.length === 0) { this.elt.ontimeupdate = null } }; /** * Remove all of the callbacks that had originally been scheduled * via the addCue method. * * @method clearCues */ p5.MediaElement.prototype.clearCues = function() { this._cues = []; this.elt.ontimeupdate = null; }; // private method that checks for cues to be fired if events // have been scheduled using addCue(callback, time). p5.MediaElement.prototype._onTimeUpdate = function() { var playbackTime = this.time(); for (var i = 0 ; i < this._cues.length; i++) { var callbackTime = this._cues[i].time; var val = this._cues[i].val; if (this._prevTime < callbackTime && callbackTime <= playbackTime) { // pass the scheduled callbackTime as parameter to the callback this._cues[i].callback(val); } } this._prevTime = playbackTime; }; // Cue inspired by JavaScript setTimeout, and the // Tone.js Transport Timeline Event, MIT License Yotam Mann 2015 tonejs.org var Cue = function(callback, time, id, val) { this.callback = callback; this.time = time; this.id = id; this.val = val; }; // ============================================================================= // p5.File // ============================================================================= /** * Base class for a file * Using this for createFileInput * * @class p5.File * @constructor * @param {File} file File that is wrapped * @param {Object} [pInst] pointer to p5 instance */ p5.File = function(file, pInst) { /** * Underlying File object. All normal File methods can be called on this. * * @property file */ this.file = file; this._pInst = pInst; // Splitting out the file type into two components // This makes determining if image or text etc simpler var typeList = file.type.split('/'); /** * File type (image, text, etc.) * * @property type */ this.type = typeList[0]; /** * File subtype (usually the file extension jpg, png, xml, etc.) * * @property subtype */ this.subtype = typeList[1]; /** * File name * * @property name */ this.name = file.name; /** * File size * * @property size */ this.size = file.size; /** * URL string containing image data. * * @property data */ this.data = undefined; }; }));
dsii-2017-unirsm/dsii-2017-unirsm.github.io
taniasabatini/10PRINT/libraries/p5.dom.js
JavaScript
mit
70,383
<?php namespace Nur\Database; use Illuminate\Database\Eloquent\Model as EloquentModel; /** * @mixin \Illuminate\Database\Query\Builder */ class Model extends EloquentModel { /** * Create Eloquent Model. * * @param array $attributes * * @return void */ function __construct(array $attributes = []) { parent::__construct($attributes); Eloquent::getInstance()->getCapsule(); Eloquent::getInstance()->getSchema(); } }
izniburak/nur-core
src/Database/Model.php
PHP
mit
489
module Miro class DominantColors attr_accessor :src_image_path def initialize(src_image_path, image_type = nil) @src_image_path = src_image_path @image_type = image_type end def to_hex return histogram.map{ |item| item[1].html } if Miro.histogram? sorted_pixels.collect { |pixel| ChunkyPNG::Color.to_hex(pixel, false) } end def to_rgb return histogram.map { |item| item[1].to_rgb.to_a } if Miro.histogram? sorted_pixels.collect { |pixel| ChunkyPNG::Color.to_truecolor_bytes(pixel) } end def to_rgba return histogram.map { |item| item[1].css_rgba } if Miro.histogram? sorted_pixels.collect { |pixel| ChunkyPNG::Color.to_truecolor_alpha_bytes(pixel) } end def to_hsl histogram.map { |item| item[1].to_hsl.to_a } if Miro.histogram? end def to_cmyk histogram.map { |item| item[1].to_cmyk.to_a } if Miro.histogram? end def to_yiq histogram.map { |item| item[1].to_yiq.to_a } if Miro.histogram? end def by_percentage return nil if Miro.histogram? sorted_pixels pixel_count = @pixels.size sorted_pixels.collect { |pixel| @grouped_pixels[pixel].size / pixel_count.to_f } end def sorted_pixels @sorted_pixels ||= extract_colors_from_image end def histogram @histogram ||= downsample_and_histogram.sort_by { |item| item[0] }.reverse end private def downsample_and_histogram @source_image = open_source_image hstring = Cocaine::CommandLine.new(Miro.options[:image_magick_path], image_magick_params). run(:in => File.expand_path(@source_image.path), :resolution => Miro.options[:resolution], :colors => Miro.options[:color_count].to_s, :quantize => Miro.options[:quantize]) cleanup_temporary_files! parse_result(hstring) end def parse_result(hstring) hstring.scan(/(\d*):.*(#[0-9A-Fa-f]*)/).collect do |match| [match[0].to_i, Object.const_get("Color::#{Miro.options[:quantize].upcase}").from_html(match[1])] end end def extract_colors_from_image downsample_colors_and_convert_to_png! colors = sort_by_dominant_color cleanup_temporary_files! colors end def downsample_colors_and_convert_to_png! @source_image = open_source_image @downsampled_image = open_downsampled_image Cocaine::CommandLine.new(Miro.options[:image_magick_path], image_magick_params). run(:in => File.expand_path(@source_image.path), :resolution => Miro.options[:resolution], :colors => Miro.options[:color_count].to_s, :quantize => Miro.options[:quantize], :out => File.expand_path(@downsampled_image.path)) end def open_source_image return File.open(@src_image_path) unless remote_source_image? original_extension = @image_type || URI.parse(@src_image_path).path.split('.').last tempfile = Tempfile.open(["source", ".#{original_extension}"]) remote_file_data = open(@src_image_path).read tempfile.write(should_force_encoding? ? remote_file_data.force_encoding("UTF-8") : remote_file_data) tempfile.close tempfile end def should_force_encoding? Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('1.9') end def open_downsampled_image tempfile = Tempfile.open(["downsampled", '.png']) tempfile.binmode tempfile end def image_magick_params if Miro.histogram? "':in[0]' -resize :resolution -colors :colors -colorspace :quantize -quantize :quantize -alpha remove -format %c histogram:info:" else "':in[0]' -resize :resolution -colors :colors -colorspace :quantize -quantize :quantize :out" end end def group_pixels_by_color @pixels ||= ChunkyPNG::Image.from_file(File.expand_path(@downsampled_image.path)).pixels @grouped_pixels ||= @pixels.group_by { |pixel| pixel } end def sort_by_dominant_color group_pixels_by_color.sort_by { |k,v| v.size }.reverse.flatten.uniq end def cleanup_temporary_files! @source_image.close! if remote_source_image? @downsampled_image.close! if @downsampled_image end def remote_source_image? @src_image_path =~ /^https?:\/\// end end end
oxoooo/miro
lib/miro/dominant_colors.rb
Ruby
mit
4,361
<?php include_once('Msidcalendar_LifeCycle.php'); class Msidcalendar_Plugin extends Msidcalendar_LifeCycle { /** * See: http://plugin.michael-simpson.com/?page_id=31 * @return array of option meta data. */ public function getOptionMetaData() { // http://plugin.michael-simpson.com/?page_id=31 return array( //'_version' => array('Installed Version'), // Leave this one commented-out. Uncomment to test upgrades. 'MSIDBaseURL' => array(__('Base url to the MSI Calendar', 'my-awesome-plugin')), 'CanSeeSubmitData' => array(__('Can See Submission data', 'my-awesome-plugin'), 'Administrator', 'Editor', 'Author', 'Contributor', 'Subscriber', 'Anyone') ); } // protected function getOptionValueI18nString($optionValue) { // $i18nValue = parent::getOptionValueI18nString($optionValue); // return $i18nValue; // } protected function initOptions() { $options = $this->getOptionMetaData(); if (!empty($options)) { foreach ($options as $key => $arr) { if (is_array($arr) && count($arr > 1)) { $this->addOption($key, $arr[1]); } } $this->updateOption('MSIDBaseURL','http://msid.ca/calendar/events/json/'); } } public function getPluginDisplayName() { return 'MSIDCalendar'; } protected function getMainPluginFileName() { return 'msidcalendar.php'; } /** * See: http://plugin.michael-simpson.com/?page_id=101 * Called by install() to create any database tables if needed. * Best Practice: * (1) Prefix all table names with $wpdb->prefix * (2) make table names lower case only * @return void */ protected function installDatabaseTables() { // global $wpdb; // $tableName = $this->prefixTableName('mytable'); // $wpdb->query("CREATE TABLE IF NOT EXISTS `$tableName` ( // `id` INTEGER NOT NULL"); } /** * See: http://plugin.michael-simpson.com/?page_id=101 * Drop plugin-created tables on uninstall. * @return void */ protected function unInstallDatabaseTables() { // global $wpdb; // $tableName = $this->prefixTableName('mytable'); // $wpdb->query("DROP TABLE IF EXISTS `$tableName`"); } /** * Perform actions when upgrading from version X to version Y * See: http://plugin.michael-simpson.com/?page_id=35 * @return void */ public function upgrade() { } public function addActionsAndFilters() { // Add options administration page // http://plugin.michael-simpson.com/?page_id=47 add_action('admin_menu', array(&$this, 'addSettingsSubMenuPage')); // Example adding a script & style just for the options administration page // http://plugin.michael-simpson.com/?page_id=47 // if (strpos($_SERVER['REQUEST_URI'], $this->getSettingsSlug()) !== false) { // wp_enqueue_script('my-script', plugins_url('/js/my-script.js', __FILE__)); // wp_enqueue_style('my-style', plugins_url('/css/my-style.css', __FILE__)); // } // Add Actions & Filters // http://plugin.michael-simpson.com/?page_id=37 // Adding scripts & styles to all pages // Examples: add_action( 'wp_enqueue_scripts', array( &$this, 'register_plugin_styles' ) ); add_action( 'wp_enqueue_scripts', array( &$this, 'register_plugin_scripts' ) ); // Register short codes // http://plugin.michael-simpson.com/?page_id=39 // Register AJAX hooks // http://plugin.michael-simpson.com/?page_id=41 add_action( 'wp_ajax_fetch_events', array( &$this, 'fetch_events' ) ); add_action( 'wp_ajax_nopriv_fetch_events', array( &$this, 'fetch_events' ) );// optional // Include the Ajax library on the front end add_action( 'wp_head', array( &$this, 'add_ajax_library' ) ); } /*--------------------------------------------* * Action Functions *--------------------------------------------*/ /** * Adds the WordPress Ajax Library to the frontend. */ public function add_ajax_library() { $html = '<script type="text/javascript">'; $html .= 'var msidajaxurl = "' . admin_url( 'admin-ajax.php' ) . '"'; $html .= '</script>'; echo $html; } // end add_ajax_library /** * Registers and enqueues plugin-specific styles. */ public function register_plugin_styles() { wp_enqueue_style('jquery-ui','http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css'); wp_register_style( 'ive-read-this', plugins_url( 'ive-read-this/css/plugin.css' ) ); wp_enqueue_style( 'ive-read-this' ); } // end register_plugin_styles /** * Registers and enqueues plugin-specific scripts. */ public function register_plugin_scripts() { wp_enqueue_script('jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js', array('jquery'), '1.10.3'); wp_register_script( 'ive-read-this', plugins_url( 'ive-read-this/js/plugin.js' ), array( 'jquery' ) ); wp_enqueue_script( 'ive-read-this' ); } // end register_plugin_scripts public function fetch_events() { // Don't let IE cache this request header("Pragma: no-cache"); header("Cache-Control: no-cache, must-revalidate"); header("Expires: Thu, 01 Jan 1970 00:00:00 GMT"); header("Content-type: text/plain"); $start = date('Y-m-d',$_POST["start"]); $end = date('Y-m-d',$_POST["end"]); $url = 'http://msid.ca/calendar/events/json/?sustainability_month=true&start_date='.$start.'&end_date='.$end; $json = file_get_contents($url ); $obj = json_decode($json); $events = array(); foreach($obj->events as $event) { $calobj=array(); $calobj['title']= $event->summary; $calobj['id'] = $event->id; $calobj['keywords']= $event->keywords; $calobj['allDay'] = empty($event->start_time); $calobj['start'] = date('c',strtotime($event->year.'-'.$event->month.'-'.$event->day.' '.date("H:i", strtotime($event->start_time)))); $calobj['end'] = date('c',strtotime($event->year.'-'.$event->month.'-'.$event->day.' '.date("H:i", strtotime($event->end_time)))); array_push($events, $calobj); } echo json_encode($events); die(); } }
bretthamilton/msidcalendar
Msidcalendar_Plugin.php
PHP
mit
6,513
--- layout: blog_by_tag tag: rc permalink: /search/label/rc.html ---
arkarkark/arkarkark.github.io
search/label/rc.md
Markdown
mit
69
<div class="container-fluid"> <div class="page-content"> <div class="portlet-body form"> <!-- BEGIN FORM--> <form action="<?php echo base_url(); ?>User/user_dashboard/editorginfo" method="POST" role="form" class="horizontal-form"> <div class="form-body"> <h3 class="form-section">Organization Information</h3> <div class="row "> <!-- ACTIVITY TITLE --> <div class="col-md-12"> <div class="form-group"> <div class="form-group form-md-line-input"> <input type="text" class="form-control" id="title" placeholder="Enter Organization Name" name="org_name" value="<?=$org['organization_name']?>"> <label for="form_control_1">Organization Name: </label> <span class="help-block">Input Organization Name</span> </div> </div> </div> <!-- /ACTIVITY TITLE --> <!-- DESCRIPTION --> <div class="col-md-12"> <div class="form-group form-md-line-input"> <textarea class="form-control" rows="3" placeholder="Enter Acronym" name="org_abbreviation" ><?=$org['organization_abbreviation']?></textarea> <label for="form_control_1">Acronym </label> <span class="help-block">Enter Acronym for your organization</span> </div> </div> <!-- /DESCRIPTION --> <!-- GENERAL OBJECTIVES --> <div class="col-md-12"> <div class="form-group form-md-line-input"> <textarea class="form-control" rows="3" placeholder="Enter Mission" name="org_mission" ><?=$org['org_mission']?>"</textarea> <label for="form_control_1">Mission</label> <span class="help-block">What is the mission of this organization? </span> </div> </div> <!-- /GENERAL OBJECTIVES --> <!-- SPECIFIC OBJECTIVES --> <div class="col-md-12"> <div class="form-group form-md-line-input"> <textarea class="form-control" rows="3" placeholder="Enter Vision" name="org_vision" value=""><?=$org['org_vision']?></textarea> <label for="form_control_1">Vision</label> <span class="help-block">What is the vision of this organization? </span> </div> </div> <!-- /SPECIFIC OBJECTIVES --> </div> <!--/span--> </div> <ul id="list_item"> </ul> <div class="form-actions right"> <button type="submit" class="btn green"><i class="fa fa-check"></i> Save Changes</button> <button type="button" id="modalbutton1" class="btn default">Cancel</button> </div> </form> <!-- END FORM--> </div> </div> </div>
mrkjohnperalta/ITSQ
application/views/USER/user_editorginfo.php
PHP
mit
3,737
import {Server, Config} from "./server"; import * as path from "path"; /** * Load configuration file given as command line parameter */ let config: Config; if (process.argv.length > 2) { const configPath = path.join(__dirname, process.argv[2]); console.info("loading configuration file: " + configPath); config = require(configPath); }else { console.error("no configuration file provided, exiting"); process.exit(); }; const server = new Server(config); server.run();
filosofianakatemia/qne
server/src/index.ts
TypeScript
mit
482
import { createStore } from '@utils/store.utils'; import placeholderImage from '../images/placeholder.jpeg'; import { getPhotoUrl, getPrefetchedPhotoForDisplay } from './api'; import { getLocalPhotoPath, getRandomLocalPhoto } from './photos.local'; import Settings from './settings'; export const getStateObject = (force = false) => { const fetchFromServer = Settings.fetchFromServer; const newPhotoDuration = Settings.newPhotoDuration; let photoUrl; let placeholderPhotoUrl; let photoMeta; let placeholderPhotoMeta; // if allowed to fetch from server // begin with assuming we get a // prefetched photo from the api if (fetchFromServer) { photoMeta = getPrefetchedPhotoForDisplay(force ? 0 : newPhotoDuration); photoUrl = getPhotoUrl(photoMeta); } // or a locally stored photo if (!photoUrl) { photoMeta = getRandomLocalPhoto(); photoUrl = getLocalPhotoPath(photoMeta); } // or a fallback placeholder photo if (!photoUrl) { photoMeta = null; photoUrl = placeholderImage; } // get a random image as placeholder // to handle offline network scenarios placeholderPhotoMeta = getRandomLocalPhoto(); placeholderPhotoUrl = getLocalPhotoPath(placeholderPhotoMeta); return { fetchFromServer, photoUrl, photoMeta, placeholderPhotoUrl, placeholderPhotoMeta, newPhotoDuration, }; }; export default createStore();
emadalam/mesmerized
src/modules/background/utils/store.js
JavaScript
mit
1,498
<!DOCTYPE html> <!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" dir="ltr"> <!--<![endif]--> <!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) --> <!-- Created: ; Product Code: 536; Server: stratnotes2.ic.gc.ca --> <head> <!-- Title begins / Début du titre --> <title> AutoPark Toronto - Complete profile - Canadian Company Capabilities - Industries and Business - Industry Canada </title> <!-- Title ends / Fin du titre --> <!-- Meta-data begins / Début des métadonnées --> <meta charset="utf-8" /> <meta name="dcterms.language" title="ISO639-2" content="eng" /> <meta name="dcterms.title" content="" /> <meta name="description" content="" /> <meta name="dcterms.description" content="" /> <meta name="dcterms.type" content="report, data set" /> <meta name="dcterms.subject" content="businesses, industry" /> <meta name="dcterms.subject" content="businesses, industry" /> <meta name="dcterms.issued" title="W3CDTF" content="" /> <meta name="dcterms.modified" title="W3CDTF" content="" /> <meta name="keywords" content="" /> <meta name="dcterms.creator" content="" /> <meta name="author" content="" /> <meta name="dcterms.created" title="W3CDTF" content="" /> <meta name="dcterms.publisher" content="" /> <meta name="dcterms.audience" title="icaudience" content="" /> <meta name="dcterms.spatial" title="ISO3166-1" content="" /> <meta name="dcterms.spatial" title="gcgeonames" content="" /> <meta name="dcterms.format" content="HTML" /> <meta name="dcterms.identifier" title="ICsiteProduct" content="536" /> <!-- EPI-11240 --> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- MCG-202 --> <meta content="width=device-width,initial-scale=1" name="viewport"> <!-- EPI-11567 --> <meta name = "format-detection" content = "telephone=no"> <!-- EPI-12603 --> <meta name="robots" content="noarchive"> <!-- EPI-11190 - Webtrends --> <script> var startTime = new Date(); startTime = startTime.getTime(); </script> <!--[if gte IE 9 | !IE ]><!--> <link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="icon" type="image/x-icon"> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/wet-boew.min.css"> <!--<![endif]--> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/theme.min.css"> <!--[if lt IE 9]> <link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="shortcut icon" /> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/ie8-wet-boew.min.css" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew.min.js"></script> <![endif]--> <!--[if lte IE 9]> <![endif]--> <noscript><link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/noscript.min.css" /></noscript> <!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER --> <script>dataLayer1 = [];</script> <!-- End Google Tag Manager --> <!-- EPI-11235 --> <link rel="stylesheet" href="/eic/home.nsf/css/add_WET_4-0_Canada_Apps.css"> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> <link href="/app/ccc/srch/css/print.css" media="print" rel="stylesheet" type="text/css" /> </head> <body class="home" vocab="http://schema.org/" typeof="WebPage"> <!-- EPIC HEADER BEGIN --> <!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER --> <noscript><iframe title="Google Tag Manager" src="//www.googletagmanager.com/ns.html?id=GTM-TLGQ9K" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer1'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer1','GTM-TLGQ9K');</script> <!-- End Google Tag Manager --> <!-- EPI-12801 --> <span typeof="Organization"><meta property="legalName" content="Department_of_Industry"></span> <ul id="wb-tphp"> <li class="wb-slc"> <a class="wb-sl" href="#wb-cont">Skip to main content</a> </li> <li class="wb-slc visible-sm visible-md visible-lg"> <a class="wb-sl" href="#wb-info">Skip to "About this site"</a> </li> </ul> <header role="banner"> <div id="wb-bnr" class="container"> <section id="wb-lng" class="visible-md visible-lg text-right"> <h2 class="wb-inv">Language selection</h2> <div class="row"> <div class="col-md-12"> <ul class="list-inline mrgn-bttm-0"> <li><a href="nvgt.do?V_TOKEN=1492241345707&V_SEARCH.docsCount=3&V_DOCUMENT.docRank=4583&V_SEARCH.docsStart=4582&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=/prfl.do&lang=fra&redirectUrl=/app/scr/imbs/ccc/rgstrtn/magmi/web/magmi/web/app/etc/api/xmlrpc?_flId?_flxKy=e1s1&amp;estblmntNo=234567041301&amp;profileId=61&amp;_evId=bck&amp;lang=eng&amp;V_SEARCH.showStricts=false&amp;prtl=1&amp;_flId?_flId?_flxKy=e1s1" title="Français" lang="fr">Français</a></li> </ul> </div> </div> </section> <div class="row"> <div class="brand col-xs-8 col-sm-9 col-md-6"> <a href="http://www.canada.ca/en/index.html"><object type="image/svg+xml" tabindex="-1" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/sig-blk-en.svg"></object><span class="wb-inv"> Government of Canada</span></a> </div> <section class="wb-mb-links col-xs-4 col-sm-3 visible-sm visible-xs" id="wb-glb-mn"> <h2>Search and menus</h2> <ul class="list-inline text-right chvrn"> <li><a href="#mb-pnl" title="Search and menus" aria-controls="mb-pnl" class="overlay-lnk" role="button"><span class="glyphicon glyphicon-search"><span class="glyphicon glyphicon-th-list"><span class="wb-inv">Search and menus</span></span></span></a></li> </ul> <div id="mb-pnl"></div> </section> <!-- Site Search Removed --> </div> </div> <nav role="navigation" id="wb-sm" class="wb-menu visible-md visible-lg" data-trgt="mb-pnl" data-ajax-fetch="//cdn.canada.ca/gcweb-cdn-dev/sitemenu/sitemenu-en.html" typeof="SiteNavigationElement"> <h2 class="wb-inv">Topics menu</h2> <div class="container nvbar"> <div class="row"> <ul class="list-inline menu"> <li><a href="https://www.canada.ca/en/services/jobs.html">Jobs</a></li> <li><a href="http://www.cic.gc.ca/english/index.asp">Immigration</a></li> <li><a href="https://travel.gc.ca/">Travel</a></li> <li><a href="https://www.canada.ca/en/services/business.html">Business</a></li> <li><a href="https://www.canada.ca/en/services/benefits.html">Benefits</a></li> <li><a href="http://healthycanadians.gc.ca/index-eng.php">Health</a></li> <li><a href="https://www.canada.ca/en/services/taxes.html">Taxes</a></li> <li><a href="https://www.canada.ca/en/services.html">More services</a></li> </ul> </div> </div> </nav> <!-- EPIC BODY BEGIN --> <nav role="navigation" id="wb-bc" class="" property="breadcrumb"> <h2 class="wb-inv">You are here:</h2> <div class="container"> <div class="row"> <ol class="breadcrumb"> <li><a href="/eic/site/icgc.nsf/eng/home" title="Home">Home</a></li> <li><a href="/eic/site/icgc.nsf/eng/h_07063.html" title="Industries and Business">Industries and Business</a></li> <li><a href="/eic/site/ccc-rec.nsf/tpl-eng/../eng/home" >Canadian Company Capabilities</a></li> </ol> </div> </div> </nav> </header> <main id="wb-cont" role="main" property="mainContentOfPage" class="container"> <!-- End Header --> <!-- Begin Body --> <!-- Begin Body Title --> <!-- End Body Title --> <!-- Begin Body Head --> <!-- End Body Head --> <!-- Begin Body Content --> <br> <!-- Complete Profile --> <!-- Company Information above tabbed area--> <input id="showMore" type="hidden" value='more'/> <input id="showLess" type="hidden" value='less'/> <h1 id="wb-cont"> Company profile - Canadian Company Capabilities </h1> <div class="profileInfo hidden-print"> <ul class="list-inline"> <li><a href="cccSrch.do?lang=eng&profileId=&prtl=1&key.hitsPerPage=25&searchPage=%252Fapp%252Fccc%252Fsrch%252FcccBscSrch.do%253Flang%253Deng%2526amp%253Bprtl%253D1%2526amp%253Btagid%253D&V_SEARCH.scopeCategory=CCC.Root&V_SEARCH.depth=1&V_SEARCH.showStricts=false&V_SEARCH.sortSpec=title+asc&amp;rstBtn.x=" class="btn btn-link">New Search</a>&nbsp;|</li> <li><form name="searchForm" method="post" action="/app/ccc/srch/bscSrch.do"> <input type="hidden" name="lang" value="eng" /> <input type="hidden" name="profileId" value="" /> <input type="hidden" name="prtl" value="1" /> <input type="hidden" name="searchPage" value="%2Fapp%2Fccc%2Fsrch%2FcccBscSrch.do%3Flang%3Deng%26amp%3Bprtl%3D1%26amp%3Btagid%3D" /> <input type="hidden" name="V_SEARCH.scopeCategory" value="CCC.Root" /> <input type="hidden" name="V_SEARCH.depth" value="1" /> <input type="hidden" name="V_SEARCH.showStricts" value="false" /> <input id="repeatSearchBtn" class="btn btn-link" type="submit" value="Return to search results" /> </form></li> <li>|&nbsp;<a href="nvgt.do?V_SEARCH.docsStart=4581&amp;V_DOCUMENT.docRank=4582&amp;V_SEARCH.docsCount=3&amp;lang=eng&amp;prtl=1&amp;sbPrtl=&amp;profile=cmpltPrfl&amp;V_TOKEN=1492241358965&amp;V_SEARCH.command=navigate&amp;V_SEARCH.resultsJSP=%2fprfl.do&amp;estblmntNo=234567155929&amp;profileId=&amp;key.newSearchLabel=">Previous Company</a></li> <li>|&nbsp;<a href="nvgt.do?V_SEARCH.docsStart=4583&amp;V_DOCUMENT.docRank=4584&amp;V_SEARCH.docsCount=3&amp;lang=eng&amp;prtl=1&amp;sbPrtl=&amp;profile=cmpltPrfl&amp;V_TOKEN=1492241358965&amp;V_SEARCH.command=navigate&amp;V_SEARCH.resultsJSP=%2fprfl.do&amp;estblmntNo=234567004353&amp;profileId=&amp;key.newSearchLabel=">Next Company</a></li> </ul> </div> <details> <summary>Third-Party Information Liability Disclaimer</summary> <p>Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.</p> </details> <h2> AutoPark Toronto </h2> <div class="row"> <div class="col-md-5"> <h2 class="h5 mrgn-bttm-0">Legal/Operating Name:</h2> <p>AutoPark Toronto</p> <div class="mrgn-tp-md"></div> <p class="mrgn-bttm-0" ><a href="http://www.autoparktoronto.com" target="_blank" title="Website URL">http://www.autoparktoronto.com</a></p> <p><a href="mailto:[email protected]" title="[email protected]">[email protected]</a></p> </div> <div class="col-md-4 mrgn-sm-sm"> <h2 class="h5 mrgn-bttm-0">Mailing Address:</h2> <address class="mrgn-bttm-md"> 1900 Victoria Park Ave<br/> NORTH YORK, Ontario<br/> M1R 1T6 <br/> </address> <h2 class="h5 mrgn-bttm-0">Location Address:</h2> <address class="mrgn-bttm-md"> 1900 Victoria Park Ave<br/> NORTH YORK, Ontario<br/> M1R 1T6 <br/> </address> <p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>: (416) 288-5550 </p> <p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>: (877) 727-3107</p> <p class="mrgn-bttm-lg"><abbr title="Facsimile">Fax</abbr>: </p> </div> <div class="col-md-3 mrgn-tp-md"> </div> </div> <div class="row mrgn-tp-md mrgn-bttm-md"> <div class="col-md-12"> <h2 class="wb-inv">Company Profile</h2> <br> AutoPark Toronto is a used car dealership servicing Toronto and the Greater Toronto Area including Scarborough and Markham. We have used cars of all makes; as well as providing professional maintenance, repair, and body shop services. Our dedicated financial department can help with any car loans and credit challenges. <br><br> </div> </div> <!-- <div class="wb-tabs ignore-session update-hash wb-eqht-off print-active"> --> <div class="wb-tabs ignore-session"> <div class="tabpanels"> <details id="details-panel1"> <summary> Full profile </summary> <!-- Tab 1 --> <h2 class="wb-invisible"> Full profile </h2> <!-- Contact Information --> <h3 class="page-header"> Contact information </h3> <section class="container-fluid"> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> General Inquiries </strong></div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Email: </strong> </div> <div class="col-md-7"> [email protected] </div> </div> </section> <p class="mrgn-tp-lg text-right small hidden-print"> <a href="#wb-cont">top of page</a> </p> <!-- Company Description --> <h3 class="page-header"> Company description </h3> <section class="container-fluid"> <div class="row"> <div class="col-md-5"> <strong> Exporting: </strong> </div> <div class="col-md-7"> No &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Alternate Industries (NAICS): </strong> </div> <div class="col-md-7"> 441120 - Used Car Dealers<br> </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Business Activity: </strong> </div> <div class="col-md-7"> Retail &nbsp; </div> </div> </section> <!-- Products / Services / Licensing --> <h3 class="page-header"> Product / Service / Licensing </h3> <section class="container-fluid"> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> Used vehicles<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> AutoPark Toronto sells all makes of used vehicles, servicing Toronto, Markham, Richmond Hill, and Scarborough. <br> <br> <br> </div> </div> </section> <p class="mrgn-tp-lg text-right small hidden-print"> <a href="#wb-cont">top of page</a> </p> <!-- Technology Profile --> <!-- Market Profile --> <!-- Sector Information --> <details class="mrgn-tp-md mrgn-bttm-md"> <summary> Third-Party Information Liability Disclaimer </summary> <p> Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements. </p> </details> </details> <details id="details-panel2"> <summary> Contacts </summary> <h2 class="wb-invisible"> Contact information </h2> <!-- Contact Information --> <section class="container-fluid"> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> General Inquiries </strong></div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Email: </strong> </div> <div class="col-md-7"> [email protected] </div> </div> </section> </details> <details id="details-panel3"> <summary> Description </summary> <h2 class="wb-invisible"> Company description </h2> <section class="container-fluid"> <div class="row"> <div class="col-md-5"> <strong> Exporting: </strong> </div> <div class="col-md-7"> No &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Alternate Industries (NAICS): </strong> </div> <div class="col-md-7"> 441120 - Used Car Dealers<br> </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Business Activity: </strong> </div> <div class="col-md-7"> Retail &nbsp; </div> </div> </section> </details> <details id="details-panel4"> <summary> Products, services and licensing </summary> <h2 class="wb-invisible"> Product / Service / Licensing </h2> <section class="container-fluid"> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> Used vehicles<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> AutoPark Toronto sells all makes of used vehicles, servicing Toronto, Markham, Richmond Hill, and Scarborough. <br> <br> <br> </div> </div> </section> </details> </div> </div> <div class="row"> <div class="col-md-12 text-right"> Last Update Date 2015-10-26 </div> </div> <!-- - Artifact ID: CBW - IMBS - CCC Search WAR - Group ID: ca.gc.ic.strategis.imbs.ccc.search - Version: 3.26 - Built-By: bamboo - Build Timestamp: 2017-03-02T21:29:28Z --> <!-- End Body Content --> <!-- Begin Body Foot --> <!-- End Body Foot --> <!-- END MAIN TABLE --> <!-- End body --> <!-- Begin footer --> <div class="row pagedetails"> <div class="col-sm-5 col-xs-12 datemod"> <dl id="wb-dtmd"> <dt class=" hidden-print">Date Modified:</dt> <dd class=" hidden-print"> <span><time>2017-03-02</time></span> </dd> </dl> </div> <div class="clear visible-xs"></div> <div class="col-sm-4 col-xs-6"> </div> <div class="col-sm-3 col-xs-6 text-right"> </div> <div class="clear visible-xs"></div> </div> </main> <footer role="contentinfo" id="wb-info"> <nav role="navigation" class="container wb-navcurr"> <h2 class="wb-inv">About government</h2> <!-- EPIC FOOTER BEGIN --> <!-- EPI-11638 Contact us --> <ul class="list-unstyled colcount-sm-2 colcount-md-3"> <li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07026.html#pageid=E048-H00000&amp;from=Industries">Contact us</a></li> <li><a href="https://www.canada.ca/en/government/dept.html">Departments and agencies</a></li> <li><a href="https://www.canada.ca/en/government/publicservice.html">Public service and military</a></li> <li><a href="https://www.canada.ca/en/news.html">News</a></li> <li><a href="https://www.canada.ca/en/government/system/laws.html">Treaties, laws and regulations</a></li> <li><a href="https://www.canada.ca/en/transparency/reporting.html">Government-wide reporting</a></li> <li><a href="http://pm.gc.ca/eng">Prime Minister</a></li> <li><a href="https://www.canada.ca/en/government/system.html">How government works</a></li> <li><a href="http://open.canada.ca/en/">Open government</a></li> </ul> </nav> <div class="brand"> <div class="container"> <div class="row"> <nav class="col-md-10 ftr-urlt-lnk"> <h2 class="wb-inv">About this site</h2> <ul> <li><a href="https://www.canada.ca/en/social.html">Social media</a></li> <li><a href="https://www.canada.ca/en/mobile.html">Mobile applications</a></li> <li><a href="http://www1.canada.ca/en/newsite.html">About Canada.ca</a></li> <li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html">Terms and conditions</a></li> <li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html#p1">Privacy</a></li> </ul> </nav> <div class="col-xs-6 visible-sm visible-xs tofpg"> <a href="#wb-cont">Top of Page <span class="glyphicon glyphicon-chevron-up"></span></a> </div> <div class="col-xs-6 col-md-2 text-right"> <object type="image/svg+xml" tabindex="-1" role="img" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/wmms-blk.svg" aria-label="Symbol of the Government of Canada"></object> </div> </div> </div> </div> </footer> <!--[if gte IE 9 | !IE ]><!--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/wet-boew.min.js"></script> <!--<![endif]--> <!--[if lt IE 9]> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew2.min.js"></script> <![endif]--> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/theme.min.js"></script> <!-- EPI-10519 --> <span class="wb-sessto" data-wb-sessto='{"inactivity": 1800000, "reactionTime": 180000, "sessionalive": 1800000, "logouturl": "/app/ccc/srch/cccSrch.do?lang=eng&prtl=1"}'></span> <script src="/eic/home.nsf/js/jQuery.externalOpensInNewWindow.js"></script> <!-- EPI-11190 - Webtrends --> <script src="/eic/home.nsf/js/webtrends.js"></script> <script>var endTime = new Date();</script> <noscript> <div><img alt="" id="DCSIMG" width="1" height="1" src="//wt-sdc.ic.gc.ca/dcs6v67hwe0ei7wsv8g9fv50d_3k6i/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=9.4.0&amp;dcssip=www.ic.gc.ca"/></div> </noscript> <!-- /Webtrends --> <!-- JS deps --> <script src="/eic/home.nsf/js/jquery.imagesloaded.js"></script> <!-- EPI-11262 - Util JS --> <script src="/eic/home.nsf/js/_WET_4-0_utils_canada.min.js"></script> <!-- EPI-11383 --> <script src="/eic/home.nsf/js/jQuery.icValidationErrors.js"></script> <span style="display:none;" id='app-info' data-project-groupid='' data-project-artifactid='' data-project-version='' data-project-build-timestamp='' data-issue-tracking='' data-scm-sha1='' data-scm-sha1-abbrev='' data-scm-branch='' data-scm-commit-date=''></span> </body></html> <!-- End Footer --> <!-- - Artifact ID: CBW - IMBS - CCC Search WAR - Group ID: ca.gc.ic.strategis.imbs.ccc.search - Version: 3.26 - Built-By: bamboo - Build Timestamp: 2017-03-02T21:29:28Z -->
GoC-Spending/data-corporations
html/234567155930.html
HTML
mit
30,978
using System; using System.ComponentModel; using System.Reactive.Linq; using System.Reactive.Subjects; namespace Moen.KanColle.Dentan.ViewModel { public abstract class ViewModel<T> : ModelBase, IDisposable where T : ModelBase { public T Model { get; private set; } public IConnectableObservable<string> PropertyChangedObservable { get; private set; } IDisposable r_Subscriptions; protected ViewModel(T rpModel) { Model = rpModel; PropertyChangedObservable = Observable.FromEventPattern<PropertyChangedEventHandler, PropertyChangedEventArgs>( rpHandler => Model.PropertyChanged += rpHandler, rpHandler => Model.PropertyChanged -= rpHandler) .Select(r => r.EventArgs.PropertyName).Publish(); r_Subscriptions = PropertyChangedObservable.Connect(); } public void Dispose() { r_Subscriptions.Dispose(); } } }
KodamaSakuno/ProjectDentan
Dentan/ViewModel/ViewModel`T.cs
C#
mit
1,000
import {Component} from 'react'; import {reduxForm} from 'redux-form'; import './CreateTodoForm.styl'; class CreateTodoForm extends Component { render() { return ( <form className="create-todo-form" onSubmit={this.props.handleSubmit} autoComplete="off"> <input type="text" placeholder="Todo text..." {...this.props.fields.text}></input> <button type="submit">Create</button> </form> ); } } CreateTodoForm.propTypes = { fields: React.PropTypes.object.isRequired, handleSubmit: React.PropTypes.func.isRequired }; export default reduxForm({ form: 'CreateTodoForm', fields: ['text'] })(CreateTodoForm);
malykhinvi/generator-spa
generators/app/templates/src/pages/TodosPage/CreateTodoForm.js
JavaScript
mit
651
require 'spec_helper' describe SK::GameObjectManager do it "can create a game_object with a name" do expect(SK::GameObjectManager.new).to respond_to(:create).with(1).argument end it "can not create a game_object without a name" do expect(SK::GameObjectManager.new).to_not respond_to(:create).with(0).arguments end it "creates a new game_object when calling name" do expect(SK::GameObjectManager.new.create("my_obj").name).to eq("my_obj") end it "can remove a game_object" do manager = SK::GameObjectManager.new game_object = manager.create("obj") manager.remove(game_object) expect(manager.instance_variable_get(:@game_objects).size).to be(0) end it "starts a gameobject when created if manager alread has started" do manager = SK::GameObjectManager.new manager.start expect_any_instance_of(SK::GameObject).to receive(:start) obj = manager.create "obj" end it "generates a unique id for all new game_objects created" do manager = SK::GameObjectManager.new expect(manager.create("obj_1").id).to eq(1) expect(manager.create("obj_2").id).to eq(2) expect(manager.create("obj_3").id).to eq(3) expect(manager.create("obj_4").id).to eq(4) end it "contains the game_object after calling create" do manager = SK::GameObjectManager.new manager.create("my_obj") expect(manager.instance_variable_get(:@game_objects).size).to eq(1) end it "can be updated" do expect(SK::GameObjectManager.new).to respond_to(:update).with(1).argument end it "can be drawn with a context" do expect(SK::GameObjectManager.new).to respond_to(:draw).with(1).argument end it "starts all gameobjects when calling start" do manager = SK::GameObjectManager.new obj = manager.create("my_obj") expect(obj).to receive(:start) manager.start end it "updates all gameobjects when calling update" do manager = SK::GameObjectManager.new obj = manager.create("my_obj") expect(obj).to receive(:update).with(16.0) manager.update 16.0 end it "draws all gameobjects in order of sorting layer" do manager = SK::GameObjectManager.new foreground_object = manager.create("fg") fg_component = SK::Component.new() fg_component.layer = 1 foreground_object.add_component fg_component background_object = manager.create("bg") bg_component = SK::Component.new() bg_component.layer = 0 background_object.add_component bg_component context = "context" expect(bg_component).to receive(:draw).ordered expect(fg_component).to receive(:draw).ordered manager.draw context end it "draws all gameobjects in order of sorting layer and order in layer" do manager = SK::GameObjectManager.new foreground_object = manager.create("fg") fg_component = SK::Component.new() fg_component.layer = 1 foreground_object.add_component fg_component background_object = manager.create("bg") bg_component = SK::Component.new() bg_component.layer = 0 bg_component.order_in_layer = 2 bg_component2 = SK::Component.new() bg_component2.layer = 0 bg_component2.order_in_layer = 3 background_object.add_component bg_component background_object.add_component bg_component2 context = "context" expect(bg_component).to receive(:draw).ordered expect(bg_component2).to receive(:draw).ordered manager.draw context end end
eriksk/shirokuro
spec/shirokuro/ecs/game_object_manager_spec.rb
Ruby
mit
3,298
### 2018-11-14 #### python * [s0md3v/XSStrike](https://github.com/s0md3v/XSStrike): Most advanced XSS detection suite. * [google/uis-rnn](https://github.com/google/uis-rnn): This is the library for the Unbounded Interleaved-State Recurrent Neural Network (UIS-RNN) algorithm, corresponding to the paper Fully Supervised Speaker Diarization. * [google-research/bert](https://github.com/google-research/bert): TensorFlow code and pre-trained models for BERT * [tensorflow/models](https://github.com/tensorflow/models): Models and examples built with TensorFlow * [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python): All Algorithms implemented in Python * [santinic/pampy](https://github.com/santinic/pampy): Pampy: The Pattern Matching for Python you always dreamed of. * [openai/spinningup](https://github.com/openai/spinningup): An educational resource to help anyone learn deep reinforcement learning. * [deeppomf/DeepCreamPy](https://github.com/deeppomf/DeepCreamPy): Decensoring Hentai with Deep Neural Networks * [donnemartin/system-design-primer](https://github.com/donnemartin/system-design-primer): Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards. * [vinta/awesome-python](https://github.com/vinta/awesome-python): A curated list of awesome Python frameworks, libraries, software and resources * [liquanzhou/cedardeploy](https://github.com/liquanzhou/cedardeploy): sshsupervisord * [keras-team/keras](https://github.com/keras-team/keras): Deep Learning for humans * [geekcomputers/Python](https://github.com/geekcomputers/Python): My Python Examples * [python/cpython](https://github.com/python/cpython): The Python programming language * [ageitgey/face_recognition](https://github.com/ageitgey/face_recognition): The world's simplest facial recognition api for Python and the command line * [localstack/localstack](https://github.com/localstack/localstack): A fully functional local AWS cloud stack. Develop and test your cloud apps offline! * [apachecn/awesome-algorithm](https://github.com/apachecn/awesome-algorithm): Leetcode () * [django/django](https://github.com/django/django): The Web framework for perfectionists with deadlines. * [jayshah19949596/CodingInterviews](https://github.com/jayshah19949596/CodingInterviews): * [pallets/flask](https://github.com/pallets/flask): The Python micro framework for building web applications. * [ansible/ansible](https://github.com/ansible/ansible): Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications automate in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com/ansible/ * [scikit-learn/scikit-learn](https://github.com/scikit-learn/scikit-learn): scikit-learn: machine learning in Python * [aaronpenne/generative_art](https://github.com/aaronpenne/generative_art): A collection of my generative artwork, mostly with Processing in Python mode * [tensorflow/adanet](https://github.com/tensorflow/adanet): Fast and flexible AutoML with learning guarantees. * [home-assistant/home-assistant](https://github.com/home-assistant/home-assistant): Open source home automation that puts local control and privacy first #### go * [maxmcd/webtty](https://github.com/maxmcd/webtty): Share a terminal session over WebRTC * [golang/go](https://github.com/golang/go): The Go programming language * [writeas/writefreely](https://github.com/writeas/writefreely): A simple, federated blogging platform. * [XiaoMi/soar](https://github.com/XiaoMi/soar): SQL Optimizer And Rewriter * [goki/gi](https://github.com/goki/gi): Native Go (golang) Graphical Interface system (2D and 3D), built on GoKi tree framework * [kubernetes/kubernetes](https://github.com/kubernetes/kubernetes): Production-Grade Container Scheduling and Management * [iikira/BaiduPCS-Go](https://github.com/iikira/BaiduPCS-Go): - Go * [fatedier/frp](https://github.com/fatedier/frp): A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet. * [prometheus/prometheus](https://github.com/prometheus/prometheus): The Prometheus monitoring system and time series database. * [avelino/awesome-go](https://github.com/avelino/awesome-go): A curated list of awesome Go frameworks, libraries and software * [gohugoio/hugo](https://github.com/gohugoio/hugo): The worlds fastest framework for building websites. * [goharbor/harbor](https://github.com/goharbor/harbor): An open source trusted cloud native registry project that stores, signs, and scans content. * [astaxie/build-web-application-with-golang](https://github.com/astaxie/build-web-application-with-golang): A golang ebook intro how to build a web with golang * [moby/moby](https://github.com/moby/moby): Moby Project - a collaborative project for the container ecosystem to assemble container-based systems * [FiloSottile/mkcert](https://github.com/FiloSottile/mkcert): A simple zero-config tool to make locally trusted development certificates with any names you'd like. * [mholt/caddy](https://github.com/mholt/caddy): Fast, cross-platform HTTP/2 web server with automatic HTTPS * [istio/istio](https://github.com/istio/istio): Connect, secure, control, and observe services. * [containous/traefik](https://github.com/containous/traefik): The Cloud Native Edge Router * [bashmohandes/go-askme](https://github.com/bashmohandes/go-askme): My GoLang learning journey by building an AskFm clone * [Golangltd/codeclass](https://github.com/Golangltd/codeclass): Golang--PPT * [rodrigo-brito/gocity](https://github.com/rodrigo-brito/gocity): Code City metaphor for visualizing Go source code in 3D * [gin-gonic/gin](https://github.com/gin-gonic/gin): Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin. * [kataras/iris](https://github.com/kataras/iris): The fastest backend community-driven web framework on (THIS) Earth. HTTP/2, MVC and more. Can your favourite web framework do that? http://bit.ly/iriscandothat1 or even http://bit.ly/iriscandothat2 * [dexon-foundation/dexon](https://github.com/dexon-foundation/dexon): Official golang DEXON fullnode implementation * [v2ray/v2ray-core](https://github.com/v2ray/v2ray-core): A platform for building proxies to bypass network restrictions. #### cpp * [LUX-Core/lux](https://github.com/LUX-Core/lux): LUX - Hybrid PoW/PoS & Unique PHI2 Algorithm | Masternode | Parallel masternode | Segwit | Smartcontract | Luxgate | Proof of file storage (Decentralised distributed file storage) * [tensorflow/tensorflow](https://github.com/tensorflow/tensorflow): An Open Source Machine Learning Framework for Everyone * [pytorch/pytorch](https://github.com/pytorch/pytorch): Tensors and Dynamic neural networks in Python with strong GPU acceleration * [opencv/opencv](https://github.com/opencv/opencv): Open Source Computer Vision Library * [Microsoft/ShaderConductor](https://github.com/Microsoft/ShaderConductor): ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages * [fungos/cr](https://github.com/fungos/cr): cr.h: A Simple C Hot Reload Header-only Library * [electron/electron](https://github.com/electron/electron): Build cross-platform desktop apps with JavaScript, HTML, and CSS * [brpc/brpc](https://github.com/brpc/brpc): Industrial-grade RPC framework used throughout Baidu, with 1,000,000+ instances and thousands kinds of services, called "baidu-rpc" inside Baidu. * [CMU-Perceptual-Computing-Lab/openpose](https://github.com/CMU-Perceptual-Computing-Lab/openpose): OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation * [bitcoin/bitcoin](https://github.com/bitcoin/bitcoin): Bitcoin Core integration/staging tree * [tesseract-ocr/tesseract](https://github.com/tesseract-ocr/tesseract): Tesseract Open Source OCR Engine (main repository) * [wnagzihxa1n/BrowserSecurity](https://github.com/wnagzihxa1n/BrowserSecurity): * [google/googletest](https://github.com/google/googletest): Google Test * [mbinary/USTC-CS-Courses-Resource](https://github.com/mbinary/USTC-CS-Courses-Resource): * [vmware/cascade](https://github.com/vmware/cascade): A Just-In-Time Compiler for Verilog * [Microsoft/AirSim](https://github.com/Microsoft/AirSim): Open source simulator based on Unreal Engine for autonomous vehicles from Microsoft AI & Research * [grpc/grpc](https://github.com/grpc/grpc): The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) * [godotengine/godot](https://github.com/godotengine/godot): Godot Engine Multi-platform 2D and 3D game engine * [wangzheng0822/algo](https://github.com/wangzheng0822/algo): Data Structure & Algorithm * [uglide/RedisDesktopManager](https://github.com/uglide/RedisDesktopManager): Cross-platform GUI management tool for Redis * [apple/swift](https://github.com/apple/swift): The Swift Programming Language * [Ewenwan/MVision](https://github.com/Ewenwan/MVision): SLAM ORB LSD SVO DSO yolov3 opencv PCL * [protocolbuffers/protobuf](https://github.com/protocolbuffers/protobuf): Protocol Buffers - Google's data interchange format * [uber/horovod](https://github.com/uber/horovod): Distributed training framework for TensorFlow, Keras, and PyTorch. * [BVLC/caffe](https://github.com/BVLC/caffe): Caffe: a fast open framework for deep learning. #### javascript * [tensorspace-team/tensorspace](https://github.com/tensorspace-team/tensorspace): Neural network 3D visualization framework, build interactive and intuitive model in browsers, support pre-trained deep learning models from TensorFlow, Keras, TensorFlow.js * [GoogleChromeLabs/ProjectVisBug](https://github.com/GoogleChromeLabs/ProjectVisBug): Make any webpage feel like an artboard, download extension here https://chrome.google.com/webstore/detail/cdockenadnadldjbbgcallicgledbeoc * [valdrinkoshi/virtual-scroller](https://github.com/valdrinkoshi/virtual-scroller): * [antonmedv/fx](https://github.com/antonmedv/fx): Command-line JSON viewer * [nasa/openmct](https://github.com/nasa/openmct): A web based mission control framework. * [enquirer/enquirer](https://github.com/enquirer/enquirer): Stylish, intuitive and user-friendly prompt system. * [leonardomso/33-js-concepts](https://github.com/leonardomso/33-js-concepts): 33 concepts every JavaScript developer should know. * [atlassian/react-beautiful-dnd](https://github.com/atlassian/react-beautiful-dnd): Beautiful and accessible drag and drop for lists with React * [30-seconds/30-seconds-of-code](https://github.com/30-seconds/30-seconds-of-code): Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less. * [unifiedjs/unified](https://github.com/unifiedjs/unified): Text processing umbrella: Parse / Transform / Compile * [facebook/react](https://github.com/facebook/react): A declarative, efficient, and flexible JavaScript library for building user interfaces. * [vuejs/vue](https://github.com/vuejs/vue): A progressive, incrementally-adoptable JavaScript framework for building UI on the web. * [GoogleWebComponents/model-viewer](https://github.com/GoogleWebComponents/model-viewer): Easily display interactive 3D models on the web and in AR! * [NickPiscitelli/Glider.js](https://github.com/NickPiscitelli/Glider.js): A blazingly fast, lightweight, dependency free, minimal carousel with momentum scrolling! * [stephentian/33-js-concepts](https://github.com/stephentian/33-js-concepts): JavaScript 33 @leonardomso * [facebook/create-react-app](https://github.com/facebook/create-react-app): Set up a modern web app by running one command. * [GoogleChromeLabs/carlo](https://github.com/GoogleChromeLabs/carlo): Web rendering surface for Node applications * [Tencent/omi](https://github.com/Tencent/omi): Next generation web framework in 4kb JavaScript (Web Components + JSX + Proxy + Store + Path Updating) * [NervJS/taro](https://github.com/NervJS/taro): React //H5React Native * [iamkun/dayjs](https://github.com/iamkun/dayjs): Day.js 2KB immutable date library alternative to Moment.js with the same modern API * [strapi/strapi](https://github.com/strapi/strapi): Node.js Content Management Framework (headless-CMS) to build powerful API with no effort. * [axios/axios](https://github.com/axios/axios): Promise based HTTP client for the browser and node.js * [sokra/rawact](https://github.com/sokra/rawact): [POC] A babel plugin which compiles React.js components into native DOM instructions to eliminate the need for the react library at runtime. * [kaola-fed/megalo](https://github.com/kaola-fed/megalo): Vue * [airbnb/javascript](https://github.com/airbnb/javascript): JavaScript Style Guide #### coffeescript * [cypress-io/cypress](https://github.com/cypress-io/cypress): Fast, easy and reliable testing for anything that runs in a browser. * [FelisCatus/SwitchyOmega](https://github.com/FelisCatus/SwitchyOmega): Manage and switch between multiple proxies quickly & easily. * [atom/tree-view](https://github.com/atom/tree-view): Explore and open project files in Atom * [atom/language-javascript](https://github.com/atom/language-javascript): JavaScript language package for Atom * [laravelio/liona](https://github.com/laravelio/liona): The Laravel.io IRC Bot * [hiddentao/squel](https://github.com/hiddentao/squel): SQL query string builder for Javascript * [atom/node-nslog](https://github.com/atom/node-nslog): Access to NSLog from inside node! * [jashkenas/coffeescript](https://github.com/jashkenas/coffeescript): Unfancy JavaScript * [basecamp/trix](https://github.com/basecamp/trix): A rich text editor for everyday writing * [philc/vimium](https://github.com/philc/vimium): The hacker's browser. * [dropbox/zxcvbn](https://github.com/dropbox/zxcvbn): Low-Budget Password Strength Estimation * [turbolinks/turbolinks](https://github.com/turbolinks/turbolinks): Turbolinks makes navigating your web application faster * [yhatt/marp](https://github.com/yhatt/marp): Markdown presentation writer, powered by Electron. * [michaelvillar/dynamics.js](https://github.com/michaelvillar/dynamics.js): Javascript library to create physics-based animations * [morrisjs/morris.js](https://github.com/morrisjs/morris.js): Pretty time-series line graphs * [codecombat/codecombat](https://github.com/codecombat/codecombat): Game for learning how to code. * [baconjs/bacon.js](https://github.com/baconjs/bacon.js): FRP (functional reactive programming) library for Javascript * [gka/chroma.js](https://github.com/gka/chroma.js): JavaScript library for all kinds of color manipulations * [sharelatex/sharelatex](https://github.com/sharelatex/sharelatex): A web-based collaborative LaTeX editor * [ichord/At.js](https://github.com/ichord/At.js): Add Github like mentions autocomplete to your application. * [sparanoid/chinese-copywriting-guidelines](https://github.com/sparanoid/chinese-copywriting-guidelines): Chinese copywriting guidelines for better written communication * [foliojs/pdfkit](https://github.com/foliojs/pdfkit): A JavaScript PDF generation library for Node and the browser * [jariz/vibrant.js](https://github.com/jariz/vibrant.js): Extract prominent colors from an image. JS port of Android's Palette. * [sorich87/bootstrap-tour](https://github.com/sorich87/bootstrap-tour): Quick and easy product tours with Twitter Bootstrap Popovers * [danielgtaylor/aglio](https://github.com/danielgtaylor/aglio): An API Blueprint renderer with theme support that outputs static HTML
larsbijl/trending_archive
2018-11/2018-11-14.md
Markdown
mit
15,666
CREATE OR REPLACE FUNCTION ts.updatechroncontrolnotes(_chroncontrolid integer, _notes character varying DEFAULT NULL::character varying) RETURNS void LANGUAGE sql AS $function$ UPDATE ndb.chroncontrols SET notes = _notes WHERE chroncontrolid = _chroncontrolid $function$
NeotomaDB/Neotoma_SQL
function/ts/updatechroncontrolnotes.sql
SQL
mit
283
--- layout: post date: 2017-01-17 title: "Sherri Hill Prom Dresses Style 50075 Sleeveless Floor-Length Ballgown" category: Sherri Hill tags: [Sherri Hill ,Sherri Hill,Ballgown,Halter,Floor-Length,Sleeveless] --- ### Sherri Hill Prom Dresses Style 50075 Just **$609.99** ### Sleeveless Floor-Length Ballgown <table><tr><td>BRANDS</td><td>Sherri Hill</td></tr><tr><td>Silhouette</td><td>Ballgown</td></tr><tr><td>Neckline</td><td>Halter</td></tr><tr><td>Hemline/Train</td><td>Floor-Length</td></tr><tr><td>Sleeve</td><td>Sleeveless</td></tr></table> <a href="https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html"><img src="//img.readybrides.com/112970/sherri-hill-prom-dresses-style-50075.jpg" alt="Sherri Hill Prom Dresses Style 50075" style="width:100%;" /></a> <!-- break --><a href="https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html"><img src="//img.readybrides.com/112971/sherri-hill-prom-dresses-style-50075.jpg" alt="Sherri Hill Prom Dresses Style 50075" style="width:100%;" /></a> <a href="https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html"><img src="//img.readybrides.com/112972/sherri-hill-prom-dresses-style-50075.jpg" alt="Sherri Hill Prom Dresses Style 50075" style="width:100%;" /></a> <a href="https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html"><img src="//img.readybrides.com/112973/sherri-hill-prom-dresses-style-50075.jpg" alt="Sherri Hill Prom Dresses Style 50075" style="width:100%;" /></a> <a href="https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html"><img src="//img.readybrides.com/112974/sherri-hill-prom-dresses-style-50075.jpg" alt="Sherri Hill Prom Dresses Style 50075" style="width:100%;" /></a> <a href="https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html"><img src="//img.readybrides.com/112975/sherri-hill-prom-dresses-style-50075.jpg" alt="Sherri Hill Prom Dresses Style 50075" style="width:100%;" /></a> <a href="https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html"><img src="//img.readybrides.com/112976/sherri-hill-prom-dresses-style-50075.jpg" alt="Sherri Hill Prom Dresses Style 50075" style="width:100%;" /></a> <a href="https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html"><img src="//img.readybrides.com/112977/sherri-hill-prom-dresses-style-50075.jpg" alt="Sherri Hill Prom Dresses Style 50075" style="width:100%;" /></a> <a href="https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html"><img src="//img.readybrides.com/112978/sherri-hill-prom-dresses-style-50075.jpg" alt="Sherri Hill Prom Dresses Style 50075" style="width:100%;" /></a> <a href="https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html"><img src="//img.readybrides.com/112969/sherri-hill-prom-dresses-style-50075.jpg" alt="Sherri Hill Prom Dresses Style 50075" style="width:100%;" /></a> Buy it: [https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html](https://www.readybrides.com/en/sherri-hill-/49838-sherri-hill-prom-dresses-style-50075.html)
nicedaymore/nicedaymore.github.io
_posts/2017-01-17-Sherri-Hill-Prom-Dresses-Style-50075-Sleeveless-FloorLength-Ballgown.md
Markdown
mit
3,292
--- layout: page title: Snow Lotus Chemical Award Ceremony date: 2016-05-24 author: Lisa Hunter tags: weekly links, java status: published summary: Mauris dapibus interdum quam, in hendrerit mi consectetur non. banner: images/banner/meeting-01.jpg booking: startDate: 08/10/2018 endDate: 08/14/2018 ctyhocn: MERCTHX groupCode: SLCAC published: true --- Nulla sed ex libero. Fusce nec mauris at odio finibus ornare. Suspendisse risus libero, cursus eu turpis nec, commodo lobortis erat. Donec rutrum risus purus, id ornare nunc tempor vel. Proin in interdum tortor. Maecenas at imperdiet lectus. Praesent consectetur leo est, in pulvinar leo posuere vitae. * Sed blandit tellus nec fermentum pellentesque * Maecenas volutpat metus venenatis erat tempor, sed accumsan enim pellentesque. Curabitur molestie, enim nec viverra cursus, tortor ligula fringilla metus, a volutpat purus libero sed elit. Etiam vitae pharetra erat. Vivamus id iaculis lacus, vitae sollicitudin sapien. Etiam congue ipsum sit amet porttitor placerat. Etiam fringilla lorem at ligula imperdiet, sit amet tincidunt dui consectetur. Sed interdum molestie facilisis. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nam nec nisl dictum, egestas nisi quis, bibendum nulla. Vivamus porta ullamcorper tincidunt.
KlishGroup/prose-pogs
pogs/M/MERCTHX/SLCAC/index.md
Markdown
mit
1,300
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Lenovo-A269i/S001 Linux/3.4.5 Android/2.3.6 Release/06.02.2013 Browser/AppleWebKit533.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 Mobile Safari/533.1 Mozilla/5.0 (Linux; U; Android 2.3.6; )</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="../circle.css" rel="stylesheet"> </head> <body> <div class="container"> <div class="section"> <h1 class="header center orange-text">User agent detail</h1> <div class="row center"> <h5 class="header light"> Lenovo-A269i/S001 Linux/3.4.5 Android/2.3.6 Release/06.02.2013 Browser/AppleWebKit533.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 Mobile Safari/533.1 Mozilla/5.0 (Linux; U; Android 2.3.6; ) </h5> </div> </div> <div class="section"> <table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Test suite</th></tr><tr><td>UAParser<br /><small>v0.5.0.2</small><br /><small>vendor/thadafinser/uap-core/tests/test_device.yaml</small></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">Lenovo</td><td>A269i</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-cfed3005-df48-4fa8-bf03-4f6ef8988f59">Detail</a> <!-- Modal Structure --> <div id="modal-cfed3005-df48-4fa8-bf03-4f6ef8988f59" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">Array ( [user_agent_string] => Lenovo-A269i/S001 Linux/3.4.5 Android/2.3.6 Release/06.02.2013 Browser/AppleWebKit533.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 Mobile Safari/533.1 Mozilla/5.0 (Linux; U; Android 2.3.6; ) [family] => Lenovo A269i [brand] => Lenovo [model] => A269i ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapFull<br /><small>6014</small><br /></td><td>Android 4.0</td><td>WebKit </td><td>Android 2.3</td><td style="border-left: 1px solid #555"></td><td></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.024</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-47a9cd06-e213-4882-bc34-db6aed664223">Detail</a> <!-- Modal Structure --> <div id="modal-47a9cd06-e213-4882-bc34-db6aed664223" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>BrowscapFull result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^.*linux.*android.2\.3.* release.* browser.applewebkit.*$/ [browser_name_pattern] => *linux*android?2.3* release* browser?applewebkit* [parent] => Android Browser 4.0 [comment] => Android Browser 4.0 [browser] => Android [browser_type] => Browser [browser_bits] => 32 [browser_maker] => Google Inc [browser_modus] => unknown [version] => 4.0 [majorver] => 4 [minorver] => 0 [platform] => Android [platform_version] => 2.3 [platform_description] => Android OS [platform_bits] => 32 [platform_maker] => Google Inc [alpha] => [beta] => [win16] => [win32] => [win64] => [frames] => 1 [iframes] => 1 [tables] => 1 [cookies] => 1 [backgroundsounds] => [javascript] => 1 [vbscript] => [javaapplets] => 1 [activexcontrols] => [ismobiledevice] => 1 [istablet] => [issyndicationreader] => [crawler] => [isfake] => [isanonymized] => [ismodified] => [cssversion] => 3 [aolversion] => 0 [device_name] => general Mobile Phone [device_maker] => unknown [device_type] => Mobile Phone [device_pointing_method] => touchscreen [device_code_name] => general Mobile Phone [device_brand_name] => unknown [renderingengine_name] => WebKit [renderingengine_version] => unknown [renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3. [renderingengine_maker] => Apple Inc ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>BrowscapLite<br /><small>6014</small><br /></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>BrowscapPhp<br /><small>6014</small><br /></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>DonatjUAParser<br /><small>v0.5.1</small><br /></td><td>Safari 533.1</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050">Detail</a> <!-- Modal Structure --> <div id="modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>DonatjUAParser result detail</h4> <p><pre><code class="php">Array ( [platform] => Android [browser] => Safari [version] => 533.1 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>JenssegersAgent<br /><small>v2.3.3</small><br /></td><td>Safari 533.1</td><td><i class="material-icons">close</i></td><td>AndroidOS 2.3.6</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51">Detail</a> <!-- Modal Structure --> <div id="modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>JenssegersAgent result detail</h4> <p><pre><code class="php">Array ( [browserName] => Safari [browserVersion] => 533.1 [osName] => AndroidOS [osVersion] => 2.3.6 [deviceModel] => [isMobile] => 1 [isRobot] => [botName] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>NeutrinoApiCom<br /><small></small><br /></td><td>Android Browser </td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Lenovo</td><td>A269</td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.28202</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b">Detail</a> <!-- Modal Structure --> <div id="modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>NeutrinoApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [mobile_screen_height] => 0 [is_mobile] => 1 [type] => mobile-browser [mobile_brand] => Lenovo [mobile_model] => A269 [version] => [is_android] => 1 [browser_name] => Android Browser [operating_system_family] => Android [operating_system_version] => 2.3.6 [is_ios] => [producer] => Lenovo [operating_system] => Android 2.3.6 [mobile_screen_width] => 0 [mobile_browser] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /></td><td>Android Browser </td><td>WebKit </td><td>Android 2.3</td><td style="border-left: 1px solid #555">Lenovo</td><td>A269i</td><td>smartphone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.003</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-4a941d34-a8d3-4914-9724-346f60ad7046">Detail</a> <!-- Modal Structure --> <div id="modal-4a941d34-a8d3-4914-9724-346f60ad7046" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>PiwikDeviceDetector result detail</h4> <p><pre><code class="php">Array ( [client] => Array ( [type] => browser [name] => Android Browser [short_name] => AN [version] => [engine] => WebKit ) [operatingSystem] => Array ( [name] => Android [short_name] => AND [version] => 2.3 [platform] => ) [device] => Array ( [brand] => LE [brandName] => Lenovo [model] => A269i [device] => 1 [deviceName] => smartphone ) [bot] => [extra] => Array ( [isBot] => [isBrowser] => 1 [isFeedReader] => [isMobileApp] => [isPIM] => [isLibrary] => [isMediaPlayer] => [isCamera] => [isCarBrowser] => [isConsole] => [isFeaturePhone] => [isPhablet] => [isPortableMediaPlayer] => [isSmartDisplay] => [isSmartphone] => 1 [isTablet] => [isTV] => [isDesktop] => [isMobile] => 1 [isTouchEnabled] => ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.1</small><br /></td><td>Navigator </td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.002</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-ec1cd248-02b0-457e-8a9d-35bb99af008c">Detail</a> <!-- Modal Structure --> <div id="modal-ec1cd248-02b0-457e-8a9d-35bb99af008c" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>SinergiBrowserDetector result detail</h4> <p><pre><code class="php">Array ( [browser] => Sinergi\BrowserDetector\Browser Object ( [userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Lenovo-A269i/S001 Linux/3.4.5 Android/2.3.6 Release/06.02.2013 Browser/AppleWebKit533.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 Mobile Safari/533.1 Mozilla/5.0 (Linux; U; Android 2.3.6; ) ) [name:Sinergi\BrowserDetector\Browser:private] => Navigator [version:Sinergi\BrowserDetector\Browser:private] => unknown [isRobot:Sinergi\BrowserDetector\Browser:private] => [isChromeFrame:Sinergi\BrowserDetector\Browser:private] => [isFacebookWebView:Sinergi\BrowserDetector\Browser:private] => [isCompatibilityMode:Sinergi\BrowserDetector\Browser:private] => ) [operatingSystem] => Sinergi\BrowserDetector\Os Object ( [name:Sinergi\BrowserDetector\Os:private] => Android [version:Sinergi\BrowserDetector\Os:private] => 2.3.6 [isMobile:Sinergi\BrowserDetector\Os:private] => 1 [userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Lenovo-A269i/S001 Linux/3.4.5 Android/2.3.6 Release/06.02.2013 Browser/AppleWebKit533.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 Mobile Safari/533.1 Mozilla/5.0 (Linux; U; Android 2.3.6; ) ) ) [device] => Sinergi\BrowserDetector\Device Object ( [name:Sinergi\BrowserDetector\Device:private] => unknown [userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Lenovo-A269i/S001 Linux/3.4.5 Android/2.3.6 Release/06.02.2013 Browser/AppleWebKit533.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 Mobile Safari/533.1 Mozilla/5.0 (Linux; U; Android 2.3.6; ) ) ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UAParser<br /><small>v3.4.5</small><br /></td><td>Android 2.3.6</td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Lenovo</td><td>A269i</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.002</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-3160e405-8a8f-46dd-8f47-5115f06462d2">Detail</a> <!-- Modal Structure --> <div id="modal-3160e405-8a8f-46dd-8f47-5115f06462d2" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">UAParser\Result\Client Object ( [ua] => UAParser\Result\UserAgent Object ( [major] => 2 [minor] => 3 [patch] => 6 [family] => Android ) [os] => UAParser\Result\OperatingSystem Object ( [major] => 2 [minor] => 3 [patch] => 6 [patchMinor] => [family] => Android ) [device] => UAParser\Result\Device Object ( [brand] => Lenovo [model] => A269i [family] => Lenovo A269i ) [originalUserAgent] => Lenovo-A269i/S001 Linux/3.4.5 Android/2.3.6 Release/06.02.2013 Browser/AppleWebKit533.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 Mobile Safari/533.1 Mozilla/5.0 (Linux; U; Android 2.3.6; ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentApiCom<br /><small></small><br /></td><td>Safari 533.1</td><td>WebKit 533.1</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.15001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6">Detail</a> <!-- Modal Structure --> <div id="modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [platform_name] => Android [platform_version] => 2.3.6 [platform_type] => Mobile [browser_name] => Safari [browser_version] => 533.1 [engine_name] => WebKit [engine_version] => 533.1 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentStringCom<br /><small></small><br /></td><td>Android Webkit Browser </td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.14501</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee">Detail</a> <!-- Modal Structure --> <div id="modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentStringCom result detail</h4> <p><pre><code class="php">stdClass Object ( [agent_type] => Browser [agent_name] => Android Webkit Browser [agent_version] => -- [os_type] => Android [os_name] => Android [os_versionName] => [os_versionNumber] => 2.3.6 [os_producer] => [os_producerURL] => [linux_distibution] => Null [agent_language] => [agent_languageTag] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small><br /></td><td> </td><td>WebKit </td><td>Android 2.3.6</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.24201</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c">Detail</a> <!-- Modal Structure --> <div id="modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhatIsMyBrowserCom result detail</h4> <p><pre><code class="php">stdClass Object ( [operating_system_name] => Android [simple_sub_description_string] => [simple_browser_string] => Unknown browser on Android (Gingerbread) [browser_version] => [extra_info] => Array ( ) [operating_platform] => [extra_info_table] => Array ( ) [layout_engine_name] => WebKit [detected_addons] => Array ( ) [operating_system_flavour_code] => [hardware_architecture] => [operating_system_flavour] => [operating_system_frameworks] => Array ( ) [browser_name_code] => unknown-browser [operating_system_version] => Gingerbread [simple_operating_platform_string] => [is_abusive] => [layout_engine_version] => [browser_capabilities] => Array ( [0] => MIDP v2.0 [1] => CLDC v1.1 ) [operating_platform_vendor_name] => [operating_system] => Android (Gingerbread) [operating_system_version_full] => 2.3.6 [operating_platform_code] => [browser_name] => Unknown browser [operating_system_name_code] => android [user_agent] => Lenovo-A269i/S001 Linux/3.4.5 Android/2.3.6 Release/06.02.2013 Browser/AppleWebKit533.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 Mobile Safari/533.1 Mozilla/5.0 (Linux; U; Android 2.3.6; ) [browser_version_full] => [browser] => Unknown browser ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /></td><td>Android Browser </td><td>Webkit 533.1</td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Lenovo</td><td>A269</td><td>mobile:smart</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.002</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-083a336f-5d73-4505-84f3-c5fc9bb78652">Detail</a> <!-- Modal Structure --> <div id="modal-083a336f-5d73-4505-84f3-c5fc9bb78652" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhichBrowser result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [name] => Android Browser ) [engine] => Array ( [name] => Webkit [version] => 533.1 ) [os] => Array ( [name] => Android [version] => 2.3.6 ) [device] => Array ( [type] => mobile [subtype] => smart [manufacturer] => Lenovo [model] => A269 ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Woothee<br /><small>v1.2.0</small><br /></td><td>Safari </td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9">Detail</a> <!-- Modal Structure --> <div id="modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Woothee result detail</h4> <p><pre><code class="php">Array ( [name] => Safari [vendor] => Apple [version] => UNKNOWN [category] => smartphone [os] => Android [os_version] => 2.3.6 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Wurfl<br /><small>1.7.1.0</small><br /></td><td>Android 2.3.6</td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Lenovo</td><td>A269i</td><td>Smartphone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.033</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50">Detail</a> <!-- Modal Structure --> <div id="modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Wurfl result detail</h4> <p><pre><code class="php">Array ( [virtual] => Array ( [is_android] => true [is_ios] => false [is_windows_phone] => false [is_app] => false [is_full_desktop] => false [is_largescreen] => false [is_mobile] => true [is_robot] => false [is_smartphone] => true [is_touchscreen] => true [is_wml_preferred] => false [is_xhtmlmp_preferred] => false [is_html_preferred] => true [advertised_device_os] => Android [advertised_device_os_version] => 2.3.6 [advertised_browser] => Android [advertised_browser_version] => 2.3.6 [complete_device_name] => Lenovo A269i [device_name] => Lenovo A269i [form_factor] => Smartphone [is_phone] => true [is_app_webview] => false ) [all] => Array ( [brand_name] => Lenovo [model_name] => A269i [unique] => true [ununiqueness_handler] => [is_wireless_device] => true [device_claims_web_support] => true [has_qwerty_keyboard] => true [can_skip_aligned_link_row] => true [uaprof] => [uaprof2] => [uaprof3] => [nokia_series] => 0 [nokia_edition] => 0 [device_os] => Android [mobile_browser] => Android Webkit [mobile_browser_version] => [device_os_version] => 2.3 [pointing_method] => touchscreen [release_date] => 2013_october [marketing_name] => [model_extra_info] => [nokia_feature_pack] => 0 [can_assign_phone_number] => true [is_tablet] => false [manufacturer_name] => [is_bot] => false [is_google_glass] => false [proportional_font] => false [built_in_back_button_support] => false [card_title_support] => true [softkey_support] => false [table_support] => true [numbered_menus] => false [menu_with_select_element_recommended] => false [menu_with_list_of_links_recommended] => true [icons_on_menu_items_support] => false [break_list_of_links_with_br_element_recommended] => true [access_key_support] => false [wrap_mode_support] => false [times_square_mode_support] => false [deck_prefetch_support] => false [elective_forms_recommended] => true [wizards_recommended] => false [image_as_link_support] => false [insert_br_element_after_widget_recommended] => false [wml_can_display_images_and_text_on_same_line] => false [wml_displays_image_in_center] => false [opwv_wml_extensions_support] => false [wml_make_phone_call_string] => wtai://wp/mc; [chtml_display_accesskey] => false [emoji] => false [chtml_can_display_images_and_text_on_same_line] => false [chtml_displays_image_in_center] => false [imode_region] => none [chtml_make_phone_call_string] => tel: [chtml_table_support] => false [xhtml_honors_bgcolor] => true [xhtml_supports_forms_in_table] => true [xhtml_support_wml2_namespace] => false [xhtml_autoexpand_select] => false [xhtml_select_as_dropdown] => false [xhtml_select_as_radiobutton] => false [xhtml_select_as_popup] => false [xhtml_display_accesskey] => false [xhtml_supports_invisible_text] => false [xhtml_supports_inline_input] => false [xhtml_supports_monospace_font] => false [xhtml_supports_table_for_layout] => true [xhtml_supports_css_cell_table_coloring] => true [xhtml_format_as_css_property] => false [xhtml_format_as_attribute] => false [xhtml_nowrap_mode] => false [xhtml_marquee_as_css_property] => false [xhtml_readable_background_color1] => #FFFFFF [xhtml_readable_background_color2] => #FFFFFF [xhtml_allows_disabled_form_elements] => true [xhtml_document_title_support] => true [xhtml_preferred_charset] => iso-8859-1 [opwv_xhtml_extensions_support] => false [xhtml_make_phone_call_string] => tel: [xhtmlmp_preferred_mime_type] => text/html [xhtml_table_support] => true [xhtml_send_sms_string] => sms: [xhtml_send_mms_string] => mms: [xhtml_file_upload] => supported [cookie_support] => true [accept_third_party_cookie] => true [xhtml_supports_iframe] => full [xhtml_avoid_accesskeys] => true [xhtml_can_embed_video] => none [ajax_support_javascript] => true [ajax_manipulate_css] => true [ajax_support_getelementbyid] => true [ajax_support_inner_html] => true [ajax_xhr_type] => standard [ajax_manipulate_dom] => true [ajax_support_events] => true [ajax_support_event_listener] => true [ajax_preferred_geoloc_api] => w3c_api [xhtml_support_level] => 4 [preferred_markup] => html_web_4_0 [wml_1_1] => false [wml_1_2] => false [wml_1_3] => false [html_wi_w3_xhtmlbasic] => true [html_wi_oma_xhtmlmp_1_0] => true [html_wi_imode_html_1] => false [html_wi_imode_html_2] => false [html_wi_imode_html_3] => false [html_wi_imode_html_4] => false [html_wi_imode_html_5] => false [html_wi_imode_htmlx_1] => false [html_wi_imode_htmlx_1_1] => false [html_wi_imode_compact_generic] => false [html_web_3_2] => true [html_web_4_0] => true [voicexml] => false [multipart_support] => false [total_cache_disable_support] => false [time_to_live_support] => false [resolution_width] => 320 [resolution_height] => 480 [columns] => 60 [max_image_width] => 320 [max_image_height] => 400 [rows] => 40 [physical_screen_width] => 50 [physical_screen_height] => 74 [dual_orientation] => true [density_class] => 1.0 [wbmp] => true [bmp] => false [epoc_bmp] => false [gif_animated] => false [jpg] => true [png] => true [tiff] => false [transparent_png_alpha] => true [transparent_png_index] => true [svgt_1_1] => false [svgt_1_1_plus] => false [greyscale] => false [gif] => true [colors] => 65536 [webp_lossy_support] => false [webp_lossless_support] => false [post_method_support] => true [basic_authentication_support] => true [empty_option_value_support] => true [emptyok] => false [nokia_voice_call] => false [wta_voice_call] => false [wta_phonebook] => false [wta_misc] => false [wta_pdc] => false [https_support] => true [phone_id_provided] => false [max_data_rate] => 384 [wifi] => true [sdio] => false [vpn] => false [has_cellular_radio] => true [max_deck_size] => 2000000 [max_url_length_in_requests] => 256 [max_url_length_homepage] => 0 [max_url_length_bookmark] => 0 [max_url_length_cached_page] => 0 [max_no_of_connection_settings] => 0 [max_no_of_bookmarks] => 0 [max_length_of_username] => 0 [max_length_of_password] => 0 [max_object_size] => 0 [downloadfun_support] => false [directdownload_support] => true [inline_support] => false [oma_support] => true [ringtone] => false [ringtone_3gpp] => false [ringtone_midi_monophonic] => false [ringtone_midi_polyphonic] => false [ringtone_imelody] => false [ringtone_digiplug] => false [ringtone_compactmidi] => false [ringtone_mmf] => false [ringtone_rmf] => false [ringtone_xmf] => false [ringtone_amr] => false [ringtone_awb] => false [ringtone_aac] => false [ringtone_wav] => false [ringtone_mp3] => false [ringtone_spmidi] => false [ringtone_qcelp] => false [ringtone_voices] => 1 [ringtone_df_size_limit] => 0 [ringtone_directdownload_size_limit] => 0 [ringtone_inline_size_limit] => 0 [ringtone_oma_size_limit] => 0 [wallpaper] => false [wallpaper_max_width] => 0 [wallpaper_max_height] => 0 [wallpaper_preferred_width] => 0 [wallpaper_preferred_height] => 0 [wallpaper_resize] => none [wallpaper_wbmp] => false [wallpaper_bmp] => false [wallpaper_gif] => false [wallpaper_jpg] => false [wallpaper_png] => false [wallpaper_tiff] => false [wallpaper_greyscale] => false [wallpaper_colors] => 2 [wallpaper_df_size_limit] => 0 [wallpaper_directdownload_size_limit] => 0 [wallpaper_inline_size_limit] => 0 [wallpaper_oma_size_limit] => 0 [screensaver] => false [screensaver_max_width] => 0 [screensaver_max_height] => 0 [screensaver_preferred_width] => 0 [screensaver_preferred_height] => 0 [screensaver_resize] => none [screensaver_wbmp] => false [screensaver_bmp] => false [screensaver_gif] => false [screensaver_jpg] => false [screensaver_png] => false [screensaver_greyscale] => false [screensaver_colors] => 2 [screensaver_df_size_limit] => 0 [screensaver_directdownload_size_limit] => 0 [screensaver_inline_size_limit] => 0 [screensaver_oma_size_limit] => 0 [picture] => false [picture_max_width] => 0 [picture_max_height] => 0 [picture_preferred_width] => 0 [picture_preferred_height] => 0 [picture_resize] => none [picture_wbmp] => false [picture_bmp] => false [picture_gif] => false [picture_jpg] => false [picture_png] => false [picture_greyscale] => false [picture_colors] => 2 [picture_df_size_limit] => 0 [picture_directdownload_size_limit] => 0 [picture_inline_size_limit] => 0 [picture_oma_size_limit] => 0 [video] => false [oma_v_1_0_forwardlock] => false [oma_v_1_0_combined_delivery] => false [oma_v_1_0_separate_delivery] => false [streaming_video] => true [streaming_3gpp] => true [streaming_mp4] => true [streaming_mov] => false [streaming_video_size_limit] => 0 [streaming_real_media] => none [streaming_flv] => false [streaming_3g2] => false [streaming_vcodec_h263_0] => 10 [streaming_vcodec_h263_3] => -1 [streaming_vcodec_mpeg4_sp] => 2 [streaming_vcodec_mpeg4_asp] => -1 [streaming_vcodec_h264_bp] => 3.0 [streaming_acodec_amr] => nb [streaming_acodec_aac] => lc [streaming_wmv] => none [streaming_preferred_protocol] => rtsp [streaming_preferred_http_protocol] => progressive_download [wap_push_support] => false [connectionless_service_indication] => false [connectionless_service_load] => false [connectionless_cache_operation] => false [connectionoriented_unconfirmed_service_indication] => false [connectionoriented_unconfirmed_service_load] => false [connectionoriented_unconfirmed_cache_operation] => false [connectionoriented_confirmed_service_indication] => false [connectionoriented_confirmed_service_load] => false [connectionoriented_confirmed_cache_operation] => false [utf8_support] => true [ascii_support] => false [iso8859_support] => false [expiration_date] => false [j2me_cldc_1_0] => false [j2me_cldc_1_1] => false [j2me_midp_1_0] => false [j2me_midp_2_0] => false [doja_1_0] => false [doja_1_5] => false [doja_2_0] => false [doja_2_1] => false [doja_2_2] => false [doja_3_0] => false [doja_3_5] => false [doja_4_0] => false [j2me_jtwi] => false [j2me_mmapi_1_0] => false [j2me_mmapi_1_1] => false [j2me_wmapi_1_0] => false [j2me_wmapi_1_1] => false [j2me_wmapi_2_0] => false [j2me_btapi] => false [j2me_3dapi] => false [j2me_locapi] => false [j2me_nokia_ui] => false [j2me_motorola_lwt] => false [j2me_siemens_color_game] => false [j2me_siemens_extension] => false [j2me_heap_size] => 0 [j2me_max_jar_size] => 0 [j2me_storage_size] => 0 [j2me_max_record_store_size] => 0 [j2me_screen_width] => 0 [j2me_screen_height] => 0 [j2me_canvas_width] => 0 [j2me_canvas_height] => 0 [j2me_bits_per_pixel] => 0 [j2me_audio_capture_enabled] => false [j2me_video_capture_enabled] => false [j2me_photo_capture_enabled] => false [j2me_capture_image_formats] => none [j2me_http] => false [j2me_https] => false [j2me_socket] => false [j2me_udp] => false [j2me_serial] => false [j2me_gif] => false [j2me_gif89a] => false [j2me_jpg] => false [j2me_png] => false [j2me_bmp] => false [j2me_bmp3] => false [j2me_wbmp] => false [j2me_midi] => false [j2me_wav] => false [j2me_amr] => false [j2me_mp3] => false [j2me_mp4] => false [j2me_imelody] => false [j2me_rmf] => false [j2me_au] => false [j2me_aac] => false [j2me_realaudio] => false [j2me_xmf] => false [j2me_wma] => false [j2me_3gpp] => false [j2me_h263] => false [j2me_svgt] => false [j2me_mpeg4] => false [j2me_realvideo] => false [j2me_real8] => false [j2me_realmedia] => false [j2me_left_softkey_code] => 0 [j2me_right_softkey_code] => 0 [j2me_middle_softkey_code] => 0 [j2me_select_key_code] => 0 [j2me_return_key_code] => 0 [j2me_clear_key_code] => 0 [j2me_datefield_no_accepts_null_date] => false [j2me_datefield_broken] => false [receiver] => false [sender] => false [mms_max_size] => 0 [mms_max_height] => 0 [mms_max_width] => 0 [built_in_recorder] => false [built_in_camera] => true [mms_jpeg_baseline] => false [mms_jpeg_progressive] => false [mms_gif_static] => false [mms_gif_animated] => false [mms_png] => false [mms_bmp] => false [mms_wbmp] => false [mms_amr] => false [mms_wav] => false [mms_midi_monophonic] => false [mms_midi_polyphonic] => false [mms_midi_polyphonic_voices] => 0 [mms_spmidi] => false [mms_mmf] => false [mms_mp3] => false [mms_evrc] => false [mms_qcelp] => false [mms_ota_bitmap] => false [mms_nokia_wallpaper] => false [mms_nokia_operatorlogo] => false [mms_nokia_3dscreensaver] => false [mms_nokia_ringingtone] => false [mms_rmf] => false [mms_xmf] => false [mms_symbian_install] => false [mms_jar] => false [mms_jad] => false [mms_vcard] => false [mms_vcalendar] => false [mms_wml] => false [mms_wbxml] => false [mms_wmlc] => false [mms_video] => false [mms_mp4] => false [mms_3gpp] => false [mms_3gpp2] => false [mms_max_frame_rate] => 0 [nokiaring] => false [picturemessage] => false [operatorlogo] => false [largeoperatorlogo] => false [callericon] => false [nokiavcard] => false [nokiavcal] => false [sckl_ringtone] => false [sckl_operatorlogo] => false [sckl_groupgraphic] => false [sckl_vcard] => false [sckl_vcalendar] => false [text_imelody] => false [ems] => false [ems_variablesizedpictures] => false [ems_imelody] => false [ems_odi] => false [ems_upi] => false [ems_version] => 0 [siemens_ota] => false [siemens_logo_width] => 101 [siemens_logo_height] => 29 [siemens_screensaver_width] => 101 [siemens_screensaver_height] => 50 [gprtf] => false [sagem_v1] => false [sagem_v2] => false [panasonic] => false [sms_enabled] => true [wav] => false [mmf] => false [smf] => false [mld] => false [midi_monophonic] => false [midi_polyphonic] => false [sp_midi] => false [rmf] => false [xmf] => false [compactmidi] => false [digiplug] => false [nokia_ringtone] => false [imelody] => false [au] => false [amr] => false [awb] => false [aac] => true [mp3] => true [voices] => 1 [qcelp] => false [evrc] => false [flash_lite_version] => [fl_wallpaper] => false [fl_screensaver] => false [fl_standalone] => false [fl_browser] => false [fl_sub_lcd] => false [full_flash_support] => true [css_supports_width_as_percentage] => true [css_border_image] => webkit [css_rounded_corners] => webkit [css_gradient] => none [css_spriting] => true [css_gradient_linear] => none [is_transcoder] => false [transcoder_ua_header] => user-agent [rss_support] => false [pdf_support] => true [progressive_download] => true [playback_vcodec_h263_0] => 10 [playback_vcodec_h263_3] => -1 [playback_vcodec_mpeg4_sp] => 0 [playback_vcodec_mpeg4_asp] => -1 [playback_vcodec_h264_bp] => 3.0 [playback_real_media] => none [playback_3gpp] => true [playback_3g2] => false [playback_mp4] => true [playback_mov] => false [playback_acodec_amr] => nb [playback_acodec_aac] => none [playback_df_size_limit] => 0 [playback_directdownload_size_limit] => 0 [playback_inline_size_limit] => 0 [playback_oma_size_limit] => 0 [playback_acodec_qcelp] => false [playback_wmv] => none [hinted_progressive_download] => true [html_preferred_dtd] => html4 [viewport_supported] => true [viewport_width] => device_width_token [viewport_userscalable] => no [viewport_initial_scale] => [viewport_maximum_scale] => [viewport_minimum_scale] => [mobileoptimized] => false [handheldfriendly] => false [canvas_support] => full [image_inlining] => true [is_smarttv] => false [is_console] => false [nfc_support] => false [ux_full_desktop] => false [jqm_grade] => A [is_sencha_touch_ok] => false ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Zsxsoft<br /><small>1.3</small><br /></td><td>Android Webkit </td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Lenovo</td><td>A269i</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-5d43e024-b46c-44f6-8914-529b05569bc2">Detail</a> <!-- Modal Structure --> <div id="modal-5d43e024-b46c-44f6-8914-529b05569bc2" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Zsxsoft result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [link] => http://developer.android.com/reference/android/webkit/package-summary.html [title] => Android Webkit [name] => Android Webkit [version] => [code] => android-webkit [image] => img/16/browser/android-webkit.png ) [os] => Array ( [link] => http://www.android.com/ [name] => Android [version] => 2.3.6 [code] => android [x64] => [title] => Android 2.3.6 [type] => os [dir] => os [image] => img/16/os/android.png ) [device] => Array ( [link] => http://www.lenovo.com.cn [title] => Lenovo A269i [model] => A269i [brand] => Lenovo [code] => lenovo [dir] => device [type] => device [image] => img/16/device/lenovo.png ) [platform] => Array ( [link] => http://www.lenovo.com.cn [title] => Lenovo A269i [model] => A269i [brand] => Lenovo [code] => lenovo [dir] => device [type] => device [image] => img/16/device/lenovo.png ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr></table> </div> <div class="section"> <h1 class="header center orange-text">About this comparison</h1> <div class="row center"> <h5 class="header light"> The primary goal of this project is simple<br /> I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br /> <br /> The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br /> <br /> You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br /> <br /> The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a> </h5> </div> </div> <div class="card"> <div class="card-content"> Comparison created <i>2016-05-10 08:04:30</i> | by <a href="https://github.com/ThaDafinser">ThaDafinser</a> </div> </div> </div> <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script> <script> $(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); }); </script> </body> </html>
ThaDafinser/UserAgentParserComparison
v5/user-agent-detail/a5/ce/a5ce5d03-9277-45ee-a20f-dcf6d37b3eda.html
HTML
mit
51,731
module DataMapper # :include:/QUICKLINKS # # = Types # Provides means of writing custom types for properties. Each type is based # on a ruby primitive and handles its own serialization and materialization, # and therefore is responsible for providing those methods. # # To see complete list of supported types, see documentation for # DataMapper::Property::TYPES # # == Defining new Types # To define a new type, subclass DataMapper::Type, pick ruby primitive, and # set the options for this type. # # class MyType < DataMapper::Type # primitive String # size 10 # end # # Following this, you will be able to use MyType as a type for any given # property. If special materialization and serialization is required, # override the class methods # # class MyType < DataMapper::Type # primitive String # size 10 # # def self.dump(value, property) # <work some magic> # end # # def self.load(value) # <work some magic> # end # end class Type PROPERTY_OPTIONS = [ :public, :protected, :private, :accessor, :reader, :writer, :lazy, :default, :nullable, :key, :serial, :field, :size, :length, :format, :index, :check, :ordinal, :auto_validation, :validates, :unique, :lock, :track ] PROPERTY_OPTION_ALIASES = { :size => [ :length ] } class << self def configure(primitive_type, options) @_primitive_type = primitive_type @_options = options def self.inherited(base) base.primitive @_primitive_type @_options.each do |k, v| base.send(k, v) end end self end # The Ruby primitive type to use as basis for this type. See # DataMapper::Property::TYPES for list of types. # # ==== Parameters # primitive<Class, nil>:: # The class for the primitive. If nil is passed in, it returns the # current primitive # # ==== Returns # Class:: if the <primitive> param is nil, return the current primitive. # # @public def primitive(primitive = nil) return @primitive if primitive.nil? @primitive = primitive end #load DataMapper::Property options PROPERTY_OPTIONS.each do |property_option| self.class_eval <<-EOS, __FILE__, __LINE__ def #{property_option}(arg = nil) return @#{property_option} if arg.nil? @#{property_option} = arg end EOS end #create property aliases PROPERTY_OPTION_ALIASES.each do |property_option, aliases| aliases.each do |ali| self.class_eval <<-EOS, __FILE__, __LINE__ alias #{ali} #{property_option} EOS end end # Gives all the options set on this type # # ==== Returns # Hash:: with all options and their values set on this type # # @public def options options = {} PROPERTY_OPTIONS.each do |method| next if (value = send(method)).nil? options[method] = value end options end end # Stub instance method for dumping # # ==== Parameters # value<Object, nil>:: # The value to dump # property<Property, nil>:: # The property the type is being used by # # ==== Returns # Object:: Dumped object # # # @public def self.dump(value, property) value end # Stub instance method for loading # # ==== Parameters # value<Object, nil>:: # The value to serialize # property<Property, nil>:: # The property the type is being used by # # ==== Returns # Object:: Serialized object. Must be the same type as the ruby primitive # # # @public def self.load(value, property) value end end # class Type def self.Type(primitive_type, options = {}) Class.new(Type).configure(primitive_type, options) end end # module DataMapper
cardmagic/dm-core
lib/data_mapper/type.rb
Ruby
mit
4,085
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>unimath-ktheory: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.10.1 / unimath-ktheory - 0.1.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> unimath-ktheory <small> 0.1.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-10-28 03:36:04 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-28 03:36:04 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.10.1 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.06.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.06.1 Official 4.06.1 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/UniMath/UniMath&quot; dev-repo: &quot;git+https://github.com/UniMath/UniMath.git&quot; bug-reports: &quot;https://github.com/UniMath/UniMath/issues&quot; license: &quot;Kind of MIT&quot; authors: [&quot;The UniMath Development Team&quot;] build: [ [&quot;coq_makefile&quot; &quot;-f&quot; &quot;Make&quot; &quot;-o&quot; &quot;Makefile&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5.0&quot; &amp; &lt; &quot;8.6&quot;} &quot;coq-unimath-category-theory&quot; &quot;coq-unimath-foundations&quot; ] synopsis: &quot;Aims to formalize a substantial body of mathematics using the univalent point of view&quot; extra-files: [&quot;Make&quot; &quot;md5=ba645952ced22f5cf37e29da5175d432&quot;] url { src: &quot;https://github.com/UniMath/UniMath/archive/v0.1.tar.gz&quot; checksum: &quot;md5=1ed57c1028e227a309f428a6dc5f0866&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-unimath-ktheory.0.1.0 coq.8.10.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.10.1). The following dependencies couldn&#39;t be met: - coq-unimath-ktheory -&gt; coq &lt; 8.6 -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-unimath-ktheory.0.1.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.06.1-2.0.5/released/8.10.1/unimath-ktheory/0.1.0.html
HTML
mit
6,637
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>color: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / extra-dev</a></li> <li class="active"><a href="">8.10.0 / color - 1.2.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> color <small> 1.2.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2020-08-24 06:00:58 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-24 06:00:58 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-m4 1 Virtual package relying on m4 coq 8.10.0 Formal proof management system num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.06.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.06.1 Official 4.06.1 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.8.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;http://color.inria.fr/&quot; license: &quot;CeCILL&quot; build: [ [make &quot;-j%{jobs}%&quot;] ] install: [make &quot;-f&quot; &quot;Makefile.coq&quot; &quot;install&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.6~&quot;} ] authors: [ &quot;Frédéric Blanqui&quot; &quot;Adam Koprowski&quot; &quot;Sébastien Hinderer&quot; &quot;Pierre-Yves Strub&quot; &quot;Sidi Ould Biha&quot; &quot;Solange Coupet-Grimal&quot; &quot;William Delobel&quot; &quot;Hans Zantema&quot; &quot;Stéphane Leroux&quot; &quot;Léo Ducas&quot; &quot;Johannes Waldmann&quot; &quot;Qiand Wang&quot; &quot;Lianyi Zhang&quot; &quot;Sorin Stratulat&quot; ] tags: [ &quot;keyword:rewriting&quot; &quot;keyword:termination&quot; &quot;keyword:lambda calculus&quot; &quot;keyword:list&quot; &quot;keyword:multiset&quot; &quot;keyword:polynom&quot; &quot;keyword:vectors&quot; &quot;keyword:matrices&quot; &quot;keyword:FSet&quot; &quot;keyword:FMap&quot; &quot;keyword:term&quot; &quot;keyword:context&quot; &quot;keyword:substitution&quot; &quot;keyword:universal algebra&quot; &quot;keyword:varyadic term&quot; &quot;keyword:string&quot; &quot;keyword:alpha-equivalence&quot; &quot;keyword:de bruijn indices&quot; &quot;keyword:simple types&quot; &quot;keyword:matching&quot; &quot;keyword:unification&quot; &quot;keyword:relation&quot; &quot;keyword:ordering&quot; &quot;keyword:quasi-ordering&quot; &quot;keyword:lexicographic ordering&quot; &quot;keyword:ring&quot; &quot;keyword:semiring&quot; &quot;keyword:well-founded&quot; &quot;keyword:noetherian&quot; &quot;keyword:finitely branching&quot; &quot;keyword:dependent choice&quot; &quot;keyword:infinite sequences&quot; &quot;keyword:non-termination&quot; &quot;keyword:loop&quot; &quot;keyword:graph&quot; &quot;keyword:path&quot; &quot;keyword:transitive closure&quot; &quot;keyword:strongly connected component&quot; &quot;keyword:topological ordering&quot; &quot;keyword:rpo&quot; &quot;keyword:horpo&quot; &quot;keyword:dependency pair&quot; &quot;keyword:dependency graph&quot; &quot;keyword:semantic labeling&quot; &quot;keyword:reducibility&quot; &quot;keyword:Girard&quot; &quot;keyword:fixpoint theorem&quot; &quot;keyword:Tarski&quot; &quot;keyword:pigeon-hole principle&quot; &quot;keyword:Ramsey theorem&quot; &quot;category:Computer Science/Algorithms/Correctness proofs of algorithms&quot; &quot;category:Computer Science/Data Types and Data Structures&quot; &quot;category:Computer Science/Lambda Calculi&quot; &quot;category:Mathematics/Algebra&quot; &quot;category:Mathematics/Combinatorics and Graph Theory&quot; &quot;category:Mathematics/Logic/Type theory&quot; &quot;category:Miscellaneous/Extracted Programs/Type checking unification and normalization&quot; &quot;date:2016-01-26&quot; &quot;logpath:CoLoR&quot; ] synopsis: &quot;A library on rewriting theory and termination&quot; url { src: &quot;https://gforge.inria.fr/frs/download.php/file/35820/color.1.2.0.tar.gz&quot; checksum: &quot;md5=3e1541cc57beec0790667ef49bee66ce&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-color.1.2.0 coq.8.10.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.10.0). The following dependencies couldn&#39;t be met: - coq-color -&gt; coq &lt; 8.6~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-color.1.2.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.06.1-2.0.5/extra-dev/8.10.0/color/1.2.0.html
HTML
mit
8,988
Framework 4.6 properties { $rootNow = Resolve-Path . $nugetexe = "$rootNow/buildTools/nuget.exe" $mahuaDownloadTempDir = "$( $env:TEMP )\Newbe\Newbe.Mahua\Mahua2.Asset" $mahuaFilesJson = "mahua.files.json" } function Get-PlartformName { if ((Test-Path "$rootNow/CQA.exe") -or (Test-Path "$rootNow/CQP.exe")) { return "CQP" } if (Test-Path "$rootNow/Core.exe") { return "MPQ" } if ((Test-Path "$rootNow/CleverQQ Pro.exe") -or (Test-Path "$rootNow/CleverQQ Air.exe")) { return "CleverQQ" } if (Test-Path "$rootNow/QQLight.exe") { return "QQLight" } return "Unknow" } Task Default -depends DisplayCurrentPlatform Task DisplayCurrentPlatform -description "display current platform name"{ $plartform = Get-PlartformName if ($plartform -eq "Unknow") { throw "无法检测出当前所使用的机器人平台。请仔细按照说明将安装文件放置正确的文件夹。" } Write-Host "current platform is $plartform" } Task Init -depends DisplayCurrentPlatform { } Task DownloadNuget -description "donwload nuget.exe" { if (-not(Test-Path $nugetexe)) { New-Item buildTools -ItemType Directory -ErrorAction SilentlyContinue Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile $nugetexe } } Task InstallMahua -depends RemoveMahua, DownloadNuget, Init -Description "install Newbe.Mahua" { $plartform = Get-PlartformName Remove-Item $mahuaDownloadTempDir -Force -Recurse -ErrorAction SilentlyContinue New-Item $mahuaDownloadTempDir -ItemType Directory -ErrorAction SilentlyContinue . $nugetexe install "Newbe.Mahua.$plartform.Asset" -OutputDirectory $mahuaDownloadTempDir -ExcludeVersion Copy-Item "$mahuaDownloadTempDir\Newbe.Mahua.$plartform.Asset\*" . -Recurse -Force # remove nupkg copied from temp Remove-Item "$rootNow\Newbe.Mahua.$plartform.Asset.nupkg" -Force -ErrorAction SilentlyContinue Write-Host "Newbe.Mahua installed success." } Task RemoveMahua -Description "remove Newbe.Mahua" { if (Test-Path $mahuaFilesJson) { $files = Get-Content $mahuaFilesJson -Encoding UTF8 | ConvertFrom-Json $files | ForEach-Object { if ($_ -ne $mahuaFilesJson) { $file = "$rootNow/$_" if (Test-Path $file) { Remove-Item $file Write-Host "$file removed" } } } Remove-Item $rootNow/$mahuaFilesJson Write-Host "$rootNow/$mahuaFilesJson removed" } else { Write-Host "$mahuaFilesJson is not exsistd , expected Newbe.Mahua is not installed" } }
Newbe36524/Newbe.Mahua.Framework
src/Newbe.Mahua.Installer/mahua.ps1
PowerShell
mit
2,773
package com.jgrillo.wordcount.api; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectReader; import com.fasterxml.jackson.databind.ObjectWriter; import com.fasterxml.jackson.databind.SerializationFeature; import com.google.common.collect.ImmutableMap; import org.junit.Test; import java.io.IOException; import java.util.List; import java.util.stream.Collectors; import static org.quicktheories.QuickTheory.qt; import static org.quicktheories.generators.SourceDSL.*; import static io.dropwizard.testing.FixtureHelpers.*; import static org.assertj.core.api.Assertions.assertThat; public final class CountsTest { private static final ObjectMapper mapper = new ObjectMapper() .disable(SerializationFeature.CLOSE_CLOSEABLE) .disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET); private static final ObjectWriter writer = mapper.writerFor(Counts.class); private static final ObjectReader reader = mapper.readerFor(Counts.class); private static final JsonFactory factory = mapper.getFactory(); /** * Test the encode-decode invariant for the Counts model. */ @Test public void testCountsEncodeDecode() throws Exception { qt().forAll( lists().of(strings().allPossible().ofLengthBetween(0, 100)).ofSize(1000).describedAs( Object::toString ), lists().of(longs().all()).ofSize(1000).describedAs(Object::toString) ).as((words, counts) -> { final ImmutableMap.Builder<String, Long> mapBuilder = ImmutableMap.builder(); final List<String> distinctWords = words.stream().distinct().collect(Collectors.toList()); for (int i = 0; i < distinctWords.size(); i++) { mapBuilder.put(distinctWords.get(i), counts.get(i)); // counts.size() >= distinctWords.size() } return mapBuilder.build(); }).checkAssert((wordCounts) -> { try { final byte[] bytes = writer.writeValueAsBytes(new Counts(wordCounts)); final JsonParser parser = factory.createParser(bytes); final Counts countsModel = reader.readValue(parser); assertThat(countsModel.getCounts()).isEqualTo(wordCounts); } catch (IOException e) { throw new RuntimeException("Caught IOE while checking counts", e); } }); } @Test public void testCountsSerializesToJSON() throws Exception { final Counts counts = new Counts( ImmutableMap.<String, Long>builder() .put("word", 3L) .put("wat", 1L) .build() ); final String expected = writer.writeValueAsString(reader.readValue(fixture("fixtures/counts.json"))); assertThat(writer.writeValueAsString(counts)).isEqualTo(expected); } @Test public void testCountsDeserializesFromJSON() throws Exception { final Counts counts = new Counts( ImmutableMap.<String, Long>builder() .put("word", 3L) .put("wat", 1L) .build() ); final Counts deserializedCounts = reader.readValue(fixture("fixtures/counts.json")); assertThat(deserializedCounts.getCounts()).isEqualTo(counts.getCounts()); } }
jgrillo/wordcount-service
src/test/java/com/jgrillo/wordcount/api/CountsTest.java
Java
mit
3,572
namespace Archient.Razor.TagHelpers { using Microsoft.AspNet.Razor.Runtime.TagHelpers; using Microsoft.AspNet.Razor.TagHelpers; [TagName("asp-if-authenticated")] [ContentBehavior(ContentBehavior.Modify)] public class AuthenticatedUserTagHelper : ConditionalDisplayTagHelperBase { protected override bool IsContentDisplayed { get { // display if authenticated return this.ViewContext.HttpContext.User.Identity.IsAuthenticated; } } } }
ericis/me
Web/src/Archient.Razor.TagHelpers/AuthenticatedUserTagHelper.cs
C#
mit
557
[mol_plot_fill] { stroke: none; stroke-width: 0; opacity: .1; fill: currentColor; pointer-events: none; } [mol_plot_fill_sample] { opacity: .1; background: currentColor; position: absolute; bottom: 0; top: .75em; left: 0; right: 0; }
eigenmethod/mol
plot/fill/fill.view.css
CSS
mit
247
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>monae: 5 m 47 s</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.11.2 / monae - 0.1.2</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> monae <small> 0.1.2 <span class="label label-success">5 m 47 s</span> </small> </h1> <p><em><script>document.write(moment("2020-08-17 11:46:38 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-17 11:46:38 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-m4 1 Virtual package relying on m4 coq 8.11.2 Formal proof management system num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.10.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.10.0 Official release 4.10.0 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.8.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/affeldt-aist/monae&quot; bug-reports: &quot;https://github.com/affeldt-aist/monae/issues&quot; dev-repo: &quot;git+https://github.com/affeldt-aist/monae.git&quot; license: &quot;GPL-3.0-or-later&quot; authors: [ &quot;Reynald Affeldt&quot; &quot;David Nowak&quot; &quot;Takafumi Saikawa&quot; &quot;Jacques Garrigue&quot; &quot;Celestine Sauvage&quot; &quot;Kazunari Tanaka&quot; ] build: [ [make &quot;-j%{jobs}%&quot;] [make &quot;sect5&quot;] [make &quot;-C&quot; &quot;impredicative_set&quot;] ] install: [ [make &quot;install&quot;] ] depends: [ &quot;coq&quot; { &gt;= &quot;8.11&quot; &amp; &lt; &quot;8.13~&quot; } &quot;coq-infotheo&quot; { &gt;= &quot;0.1.2&quot; &amp; &lt; &quot;0.2~&quot; } &quot;coq-paramcoq&quot; { &gt;= &quot;1.1.2&quot; &amp; &lt; &quot;1.2~&quot; } ] synopsis: &quot;Monae&quot; description: &quot;&quot;&quot; This repository contains a formalization of monads including several models, examples of monadic equational reasoning, and an application to program semantics. &quot;&quot;&quot; tags: [ &quot;category:Computer Science/Semantics&quot; &quot;keyword: monad&quot; &quot;keyword: effect&quot; &quot;keyword: probability&quot; &quot;keyword: nondeterminism&quot; &quot;logpath:monae&quot; &quot;date:2020-08-13&quot; ] url { http: &quot;https://github.com/affeldt-aist/monae/archive/0.1.2.tar.gz&quot; checksum: &quot;sha512=fc06a3dc53e180940478ca8ec02755432c1fb29b6ed81f3312731a1d0435dbe67e78db5201a92e40c7f23068fc5d9343414fc06676bf3adf402836e8c69b0229&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-monae.0.1.2 coq.8.11.2</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 2h opam install -y --deps-only coq-monae.0.1.2 coq.8.11.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>51 m 4 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 2h opam install -y -v coq-monae.0.1.2 coq.8.11.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>5 m 47 s</dd> </dl> <h2>Installation size</h2> <p>Total: 9 M</p> <ul> <li>1 M <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/category.vo</code></li> <li>898 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_transformer.vo</code></li> <li>504 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/hierarchy.vo</code></li> <li>457 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/smallstep.vo</code></li> <li>402 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_model.vo</code></li> <li>315 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/state_lib.vo</code></li> <li>308 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_transformer.glob</code></li> <li>286 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/hierarchy.glob</code></li> <li>275 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_monty.glob</code></li> <li>270 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/category.glob</code></li> <li>255 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/fail_lib.vo</code></li> <li>255 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_monty.vo</code></li> <li>241 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/gcm_model.vo</code></li> <li>227 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_model.glob</code></li> <li>192 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_nqueens.vo</code></li> <li>189 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/altprob_model.vo</code></li> <li>182 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/state_lib.glob</code></li> <li>179 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/proba_lib.vo</code></li> <li>178 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_lib.vo</code></li> <li>160 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_composition.vo</code></li> <li>157 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_nqueens.glob</code></li> <li>152 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/fail_lib.glob</code></li> <li>139 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/smallstep.glob</code></li> <li>138 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/proba_lib.glob</code></li> <li>124 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/gcm_model.glob</code></li> <li>120 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_relabeling.vo</code></li> <li>113 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_lib.glob</code></li> <li>112 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_spark.vo</code></li> <li>99 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_spark.glob</code></li> <li>96 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/trace_lib.vo</code></li> <li>93 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_composition.glob</code></li> <li>81 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/proba_monad_model.vo</code></li> <li>81 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/altprob_model.glob</code></li> <li>73 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_relabeling.glob</code></li> <li>60 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/hierarchy.v</code></li> <li>50 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monae_lib.vo</code></li> <li>49 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_transformer.v</code></li> <li>47 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_model.v</code></li> <li>42 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/category.v</code></li> <li>29 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/smallstep.v</code></li> <li>28 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/gcm_model.v</code></li> <li>23 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/fail_lib.v</code></li> <li>23 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/trace_lib.glob</code></li> <li>23 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_monty.v</code></li> <li>22 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/state_lib.v</code></li> <li>19 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_lib.v</code></li> <li>18 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_nqueens.v</code></li> <li>17 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monae_lib.glob</code></li> <li>14 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/proba_lib.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/altprob_model.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/proba_monad_model.glob</code></li> <li>10 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monad_composition.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_spark.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/example_relabeling.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/monae_lib.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/trace_lib.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.10.0/lib/coq/user-contrib/monae/proba_monad_model.v</code></li> </ul> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-monae.0.1.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.10.0-2.0.6/released/8.11.2/monae/0.1.2.html
HTML
mit
13,594
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>string_kind</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../../index.html" title="Chapter 1. Boost.JSON"> <link rel="up" href="../ref.html" title="This Page Intentionally Left Blank 2/2"> <link rel="prev" href="boost__json__object_kind.html" title="object_kind"> <link rel="next" href="boost__json__value_to.html" title="value_to"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="boost__json__object_kind.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ref.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="boost__json__value_to.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="json.ref.boost__json__string_kind"></a><a class="link" href="boost__json__string_kind.html" title="string_kind">string_kind</a> </h4></div></div></div> <p> <a class="indexterm" name="idm45725618704288"></a> </p> <p> A constant used to select a <a class="link" href="boost__json__value.html" title="value"><code class="computeroutput"><span class="identifier">value</span></code></a> constructor overload. </p> <h5> <a name="json.ref.boost__json__string_kind.h0"></a> <span class="phrase"><a name="json.ref.boost__json__string_kind.synopsis"></a></span><a class="link" href="boost__json__string_kind.html#json.ref.boost__json__string_kind.synopsis">Synopsis</a> </h5> <p> Defined in header <code class="literal">&lt;<a href="https://github.com/cppalliance/json/blob/master/include/boost/json/kind.hpp" target="_top">boost/json/kind.hpp</a>&gt;</code> </p> <pre class="programlisting"><span class="keyword">constexpr</span> <span class="identifier">string_kind_t</span> <span class="identifier">string_kind</span><span class="special">;</span> </pre> <h5> <a name="json.ref.boost__json__string_kind.h1"></a> <span class="phrase"><a name="json.ref.boost__json__string_kind.description"></a></span><a class="link" href="boost__json__string_kind.html#json.ref.boost__json__string_kind.description">Description</a> </h5> <p> The library provides this constant to allow efficient construction of a <a class="link" href="boost__json__value.html" title="value"><code class="computeroutput"><span class="identifier">value</span></code></a> containing an empty <a class="link" href="boost__json__string.html" title="string"><code class="computeroutput"><span class="identifier">string</span></code></a>. </p> <h5> <a name="json.ref.boost__json__string_kind.h2"></a> <span class="phrase"><a name="json.ref.boost__json__string_kind.example"></a></span><a class="link" href="boost__json__string_kind.html#json.ref.boost__json__string_kind.example">Example</a> </h5> <pre class="programlisting"><span class="identifier">storage_ptr</span> <span class="identifier">sp</span><span class="special">;</span> <span class="identifier">value</span> <span class="identifier">jv</span><span class="special">(</span> <span class="identifier">string_kind</span><span class="special">,</span> <span class="identifier">sp</span> <span class="special">);</span> <span class="comment">// sp is an optional parameter</span> </pre> <h5> <a name="json.ref.boost__json__string_kind.h3"></a> <span class="phrase"><a name="json.ref.boost__json__string_kind.see_also"></a></span><a class="link" href="boost__json__string_kind.html#json.ref.boost__json__string_kind.see_also">See Also</a> </h5> <p> <a class="link" href="boost__json__string_kind_t.html" title="string_kind_t"><code class="computeroutput"><span class="identifier">string_kind_t</span></code></a> </p> <p> Convenience header <code class="literal">&lt;<a href="https://github.com/cppalliance/json/blob/master/include/boost/json.hpp" target="_top">boost/json.hpp</a>&gt;</code> </p> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2019, 2020 Vinnie Falco<br>Copyright © 2020 Krystian Stasiowski<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="boost__json__object_kind.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ref.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="boost__json__value_to.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
davehorton/drachtio-server
deps/boost_1_77_0/libs/json/doc/html/json/ref/boost__json__string_kind.html
HTML
mit
5,978
--- layout: post title: "Post election update: Will the German parliament have a gigantic size?" cover: date: 2021-09-27 10:20:00 categories: r tags: [R, RTutor, shiny] --- This is just a short update to [my previous post](http://skranz.github.io/r/2021/09/24/bundestag2021.html). Bundestag elections are over and according to the [preliminary official results](https://www.bundeswahlleiter.de/bundestagswahlen/2021/ergebnisse.html) the new Bundestag will have 735 members. That's 32 more than the previous 703 members, but at least far from 841 members predicted in [my previous post](http://skranz.github.io/r/2021/09/24/bundestag2021.html) that was based on last week's forecast data. The main reason is that the Bavarian CSU performed substantially better in terms of 2nd votes than predicted by the Forsa forecast from last week. While the forecast predicted a CSU 2nd vote share of 29.3% in Bavaria among the parties entering the parliament, the CSU actually achieved 36.8%. ### Election results I copied the preliminary results from [mandatsrechner.de](https://www.mandatsrechner.de) and added them to my [Github repository](https://github.com/skranz/seat_calculator_bundestag). Let's see whether we get the same seat distribution as in the [official results](https://www.bundeswahlleiter.de/bundestagswahlen/2021/ergebnisse/bund-99.html): ```r source("seat_calculator.R") dat = read.csv("results_2021.csv",encoding="UTF-8") %>% select(-seats.mr) res = compute.seats(dat) summarize.results(res) ``` ``` ## Total size: 734 seats ``` ``` ## # A tibble: 7 x 5 ## party vote_share seat_shares seats ueberhang ## <chr> <dbl> <dbl> <dbl> <dbl> ## 1 SPD 0.282 0.281 206 0 ## 2 CDU 0.207 0.206 151 0 ## 3 Gruene 0.162 0.161 118 0 ## 4 FDP 0.126 0.125 92 0 ## 5 AfD 0.113 0.113 83 0 ## 6 CSU 0.0567 0.0613 45 3 ## 7 Linke 0.0536 0.0531 39 0 ``` That are the same results as the preliminary official one's, with one exception. As the party of the danish minority party, the SSW did not have to pass the 5% hurdle and also got one seat this election. Adding this seat leads to the total of 735 seats. Also note that all vote shares are only relative to the votes of the parties that enter the Bundestag. ### How 146 voters in Munich generated 17 extra seats in the Bundestag Except for the district [Munich-South](https://www.bundeswahlleiter.de/bundestagswahlen/2021/ergebnisse/bund-99/land-9/wahlkreis-219.html), which went to the Green party, the CSU won all direct districts in Bavaria. But e.g. the district [Munich-West](https://www.bundeswahlleiter.de/bundestagswahlen/2021/ergebnisse/bund-99/land-9/wahlkreis-220.html) was won by the CSU won with only 146 votes ahead of the 2nd ranked candidate from the Green party. What would be the size of the parliament if the Green would have also won Munich-West? ```r library(dplyrExtras) dat.mod = dat %>% mutate_rows(party=="CSU" & land=="Bayern", direct = direct-1) %>% mutate_rows(party=="Gruene" & land=="Bayern", direct = direct+1) res = compute.seats(dat.mod) sum(res$seats)+1 ``` ``` ## [1] 718 ``` We would have 17 seats less: only 718 seats. Note that in each of the 4 Munich districts the candidates of the SPD and the Green party have together substantially more direct votes than the CSU. If the voters of these two parties would have better coordinated so that the CSU gets no direct seat in Munich, the size of the Bundestag could have been reduced to even 683 members. Normally, one would have thought the Bavarian voters would take such a chance to reduce the amount of money spent in Berlin... ### What if Linke would have gotten only 2 direct seats? There were even direct seats more expensive in terms of Bundestag size than a direct seat for the CSU: one of the three direct seats captured by the Linke. If the Linke would not have won three direct seats, they would have lost all their 2nd vote seats, because they did not breach the 5% hurdle. The number of seats is not reduced automatically by the fact that a party does not enter the parliament. Yet, if the Linke would not get its second votes, the CSU share among the relevant 2nd votes would increase and a smaller increase of the Bundestag's size would be necessary to balance CSU's direct seats with its 2nd vote share. So what would be the size of parliament if the Linke only would have gotten only 2 direct seats and one of its Berlin seats went to the Green party? ```r dat.mod = dat %>% filter(party != "Linke") %>% mutate_rows(party=="Gruene" & land=="Berlin", direct = direct+1) res = compute.seats(dat.mod) sum(res$seats)+3 ``` ``` ## [1] 698 ``` We then would have a parliament of only 698 members. So the third direct seat won by the Linke generated 37 additional seats in the Bundestag.
skranz/skranz.github.com
_posts/2021-09-27-bundestag2021_update.md
Markdown
mit
4,954
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>graph-theory: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.11.1 / graph-theory - 0.9</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> graph-theory <small> 0.9 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-04 15:07:36 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-04 15:07:36 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.11.1 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.06.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.06.1 Official 4.06.1 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/coq-community/graph-theory&quot; dev-repo: &quot;git+https://github.com/coq-community/graph-theory.git&quot; bug-reports: &quot;https://github.com/coq-community/graph-theory/issues&quot; license: &quot;CECILL-B&quot; synopsis: &quot;Graph theory results in Coq and MathComp&quot; description: &quot;&quot;&quot; A library of formalized graph theory results, including various standard results from the literature (e.g., Menger’s Theorem, Hall’s Marriage Theorem, and the excluded minor characterization of treewidth-two graphs) as well as some more recent results arising from the study of relation algebra within the ERC CoVeCe project (e.g., soundness and completeness of an axiomatization of graph isomorphism).&quot;&quot;&quot; build: [ [&quot;sh&quot; &quot;-exc&quot; &quot;cat _CoqProject.wagner &gt;&gt;_CoqProject&quot;] {coq-fourcolor:installed} [make &quot;-j%{jobs}%&quot; ] ] install: [make &quot;install&quot;] depends: [ &quot;coq&quot; {(&gt;= &quot;8.12&quot; &amp; &lt; &quot;8.14~&quot;) | (= &quot;dev&quot;)} &quot;coq-mathcomp-algebra&quot; {(&gt;= &quot;1.12&quot; &amp; &lt; &quot;1.13~&quot;) | (= &quot;dev&quot;)} &quot;coq-mathcomp-finmap&quot; &quot;coq-hierarchy-builder&quot; { (&gt;= &quot;1.1.0&quot;) } ] depopts: [&quot;coq-fourcolor&quot;] tags: [ &quot;category:Computer Science/Graph Theory&quot; &quot;keyword:graph theory&quot; &quot;keyword:minors&quot; &quot;keyword:treewidth&quot; &quot;keyword:algebra&quot; &quot;logpath:GraphTheory&quot; &quot;date:2020-12-08&quot; ] authors: [ &quot;Christian Doczkal&quot; &quot;Damien Pous&quot; ] url { src: &quot;https://github.com/coq-community/graph-theory/archive/v0.9.tar.gz&quot; checksum: &quot;sha512=db62ec2bdbbb1fa2cbe411c42acaa4d4ab0988486a8cff8b53acd4f0b9776df72e117ca9256141a7d59de35686bda8f07d705273b00f79e2715755aa78d93f0e&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-graph-theory.0.9 coq.8.11.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.11.1). The following dependencies couldn&#39;t be met: - coq-graph-theory -&gt; coq &gt;= dev no matching version Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-graph-theory.0.9</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.06.1-2.0.5/released/8.11.1/graph-theory/0.9.html
HTML
mit
7,594
/** * Automatically generated file. Please do not edit. * @author Highcharts Config Generator by Karasiq * @see [[http://api.highcharts.com/highcharts]] */ package com.highcharts.config import scalajs.js, js.`|` import com.highcharts.CleanJsObject import com.highcharts.HighchartsUtils._ /** * @note JavaScript name: <code>plotOptions-mappoint-states-hover-marker-states-hover</code> */ @js.annotation.ScalaJSDefined class PlotOptionsMappointStatesHoverMarkerStatesHover extends com.highcharts.HighchartsGenericObject { /** * <p>Animation when hovering over the marker.</p> */ val animation: js.UndefOr[Boolean | js.Object] = js.undefined /** * <p>Enable or disable the point marker.</p> * @example <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-marker-states-hover-enabled/">Disabled hover state</a> */ val enabled: js.UndefOr[Boolean] = js.undefined /** * <p>The number of pixels to increase the radius of the hovered * point.</p> * @example <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-states-hover-linewidthplus/">5 pixels greater radius on hover</a> <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-states-hover-linewidthplus/">5 pixels greater radius on hover</a> * @since 4.0.3 */ val radiusPlus: js.UndefOr[Double] = js.undefined /** * <p>The additional line width for a hovered point.</p> * @example <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-states-hover-linewidthplus/">2 pixels wider on hover</a> <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-states-hover-linewidthplus/">2 pixels wider on hover</a> * @since 4.0.3 */ val lineWidthPlus: js.UndefOr[Double] = js.undefined /** * <p>The fill color of the marker in hover state. When * <code>undefined</code>, the series&#39; or point&#39;s fillColor for normal * state is used.</p> */ val fillColor: js.UndefOr[String | js.Object] = js.undefined /** * <p>The color of the point marker&#39;s outline. When <code>undefined</code>, * the series&#39; or point&#39;s lineColor for normal state is used.</p> * @example <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-marker-states-hover-linecolor/">White fill color, black line color</a> */ val lineColor: js.UndefOr[String | js.Object] = js.undefined /** * <p>The width of the point marker&#39;s outline. When <code>undefined</code>, * the series&#39; or point&#39;s lineWidth for normal state is used.</p> * @example <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-marker-states-hover-linewidth/">3px line width</a> */ val lineWidth: js.UndefOr[Double] = js.undefined /** * <p>The radius of the point marker. In hover state, it defaults * to the normal state&#39;s radius + 2 as per the <a href="#plotOptions.series.marker.states.hover.radiusPlus">radiusPlus</a> * option.</p> * @example <a href="https://jsfiddle.net/gh/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-marker-states-hover-radius/">10px radius</a> */ val radius: js.UndefOr[Double] = js.undefined } object PlotOptionsMappointStatesHoverMarkerStatesHover { /** * @param animation <p>Animation when hovering over the marker.</p> * @param enabled <p>Enable or disable the point marker.</p> * @param radiusPlus <p>The number of pixels to increase the radius of the hovered. point.</p> * @param lineWidthPlus <p>The additional line width for a hovered point.</p> * @param fillColor <p>The fill color of the marker in hover state. When. <code>undefined</code>, the series&#39; or point&#39;s fillColor for normal. state is used.</p> * @param lineColor <p>The color of the point marker&#39;s outline. When <code>undefined</code>,. the series&#39; or point&#39;s lineColor for normal state is used.</p> * @param lineWidth <p>The width of the point marker&#39;s outline. When <code>undefined</code>,. the series&#39; or point&#39;s lineWidth for normal state is used.</p> * @param radius <p>The radius of the point marker. In hover state, it defaults. to the normal state&#39;s radius + 2 as per the <a href="#plotOptions.series.marker.states.hover.radiusPlus">radiusPlus</a>. option.</p> */ def apply(animation: js.UndefOr[Boolean | js.Object] = js.undefined, enabled: js.UndefOr[Boolean] = js.undefined, radiusPlus: js.UndefOr[Double] = js.undefined, lineWidthPlus: js.UndefOr[Double] = js.undefined, fillColor: js.UndefOr[String | js.Object] = js.undefined, lineColor: js.UndefOr[String | js.Object] = js.undefined, lineWidth: js.UndefOr[Double] = js.undefined, radius: js.UndefOr[Double] = js.undefined): PlotOptionsMappointStatesHoverMarkerStatesHover = { val animationOuter: js.UndefOr[Boolean | js.Object] = animation val enabledOuter: js.UndefOr[Boolean] = enabled val radiusPlusOuter: js.UndefOr[Double] = radiusPlus val lineWidthPlusOuter: js.UndefOr[Double] = lineWidthPlus val fillColorOuter: js.UndefOr[String | js.Object] = fillColor val lineColorOuter: js.UndefOr[String | js.Object] = lineColor val lineWidthOuter: js.UndefOr[Double] = lineWidth val radiusOuter: js.UndefOr[Double] = radius com.highcharts.HighchartsGenericObject.toCleanObject(new PlotOptionsMappointStatesHoverMarkerStatesHover { override val animation: js.UndefOr[Boolean | js.Object] = animationOuter override val enabled: js.UndefOr[Boolean] = enabledOuter override val radiusPlus: js.UndefOr[Double] = radiusPlusOuter override val lineWidthPlus: js.UndefOr[Double] = lineWidthPlusOuter override val fillColor: js.UndefOr[String | js.Object] = fillColorOuter override val lineColor: js.UndefOr[String | js.Object] = lineColorOuter override val lineWidth: js.UndefOr[Double] = lineWidthOuter override val radius: js.UndefOr[Double] = radiusOuter }) } }
Karasiq/scalajs-highcharts
src/main/scala/com/highcharts/config/PlotOptionsMappointStatesHoverMarkerStatesHover.scala
Scala
mit
6,347
# # Node.js v0.11.x Dockerfile # https://github.com/hden/nodejs-v0.11 # FROM dockerfile/python MAINTAINER Haokang Den <[email protected]> ENV PATH $HOME/.nodebrew/current/bin:$PATH RUN cd /data && \ curl -L git.io/nodebrew | perl - setup && \ nodebrew install-binary v0.11.13 && \ nodebrew use v0.11.13
hden/nodejs-v0.11
Dockerfile
Dockerfile
mit
322
<?php /** Telerivet_ScheduledMessage Represents a scheduled message within Telerivet. Fields: - id (string, max 34 characters) * ID of the scheduled message * Read-only - content * Text content of the scheduled message * Read-only - rrule * Recurrence rule for recurring scheduled messages, e.g. 'FREQ=MONTHLY' or 'FREQ=WEEKLY;INTERVAL=2'; see <https://tools.ietf.org/html/rfc2445#section-4.3.10> * Read-only - timezone_id * Timezone ID used to compute times for recurring messages; see <http://en.wikipedia.org/wiki/List_of_tz_database_time_zones> * Read-only - recipients (array of objects) * List of recipients. Each recipient is an object with a string `type` property, which may be `"phone_number"`, `"group"`, or `"filter"`. If the type is `"phone_number"`, the `phone_number` property will be set to the recipient's phone number. If the type is `"group"`, the `group_id` property will be set to the ID of the group, and the `group_name` property will be set to the name of the group. If the type is `"filter"`, the `filter_type` property (string) and `filter_params` property (object) describe the filter used to send the broadcast. (API clients should not rely on a particular value or format of the `filter_type` or `filter_params` properties, as they may change without notice.) * Read-only - recipients_str * A string with a human readable description of the first few recipients (possibly truncated) * Read-only - group_id * ID of the group to send the message to (null if the recipient is an individual contact, or if there are multiple recipients) * Read-only - contact_id * ID of the contact to send the message to (null if the recipient is a group, or if there are multiple recipients) * Read-only - to_number * Phone number to send the message to (null if the recipient is a group, or if there are multiple recipients) * Read-only - route_id * ID of the phone or route the message will be sent from * Read-only - service_id (string, max 34 characters) * The service associated with this message (for voice calls, the service defines the call flow) * Read-only - audio_url * For voice calls, the URL of an MP3 file to play when the contact answers the call * Read-only - tts_lang * For voice calls, the language of the text-to-speech voice * Allowed values: en-US, en-GB, en-GB-WLS, en-AU, en-IN, da-DK, nl-NL, fr-FR, fr-CA, de-DE, is-IS, it-IT, pl-PL, pt-BR, pt-PT, ru-RU, es-ES, es-US, sv-SE * Read-only - tts_voice * For voice calls, the text-to-speech voice * Allowed values: female, male * Read-only - message_type * Type of scheduled message * Allowed values: sms, mms, ussd, call, service * Read-only - time_created (UNIX timestamp) * Time the scheduled message was created in Telerivet * Read-only - start_time (UNIX timestamp) * The time that the message will be sent (or first sent for recurring messages) * Read-only - end_time (UNIX timestamp) * Time after which a recurring message will stop (not applicable to non-recurring scheduled messages) * Read-only - prev_time (UNIX timestamp) * The most recent time that Telerivet has sent this scheduled message (null if it has never been sent) * Read-only - next_time (UNIX timestamp) * The next upcoming time that Telerivet will sent this scheduled message (null if it will not be sent again) * Read-only - occurrences (int) * Number of times this scheduled message has already been sent * Read-only - is_template (bool) * Set to true if Telerivet will render variables like [[contact.name]] in the message content, false otherwise * Read-only - track_clicks (boolean) * If true, URLs in the message content will automatically be replaced with unique short URLs * Read-only - media (array) * For text messages containing media files, this is an array of objects with the properties `url`, `type` (MIME type), `filename`, and `size` (file size in bytes). Unknown properties are null. This property is undefined for messages that do not contain media files. Note: For files uploaded via the Telerivet web app, the URL is temporary and may not be valid for more than 1 day. * Read-only - vars (associative array) * Custom variables stored for this scheduled message (copied to Message when sent) * Updatable via API - label_ids (array) * IDs of labels to add to the Message * Read-only - project_id * ID of the project this scheduled message belongs to * Read-only */ class Telerivet_ScheduledMessage extends Telerivet_Entity { /** $scheduled_msg->save() Saves any fields or custom variables that have changed for this scheduled message. */ function save() { parent::save(); } /** $scheduled_msg->delete() Cancels this scheduled message. */ function delete() { $this->_api->doRequest("DELETE", "{$this->getBaseApiPath()}"); } function getBaseApiPath() { return "/projects/{$this->project_id}/scheduled/{$this->id}"; } }
Telerivet/telerivet-php-client
lib/scheduledmessage.php
PHP
mit
6,284
import React, { useState, useRef } from 'react'; import { computeOutOffsetByIndex, computeInOffsetByIndex } from './lib/Util'; // import { SVGComponent } from './lib-hooks/svgComp-hooks'; import Spline from './lib/Spline'; import DragNode from './lib/Node'; const index = ({ data, onNodeDeselect, onNodeMove, onNodeStartMove, onNodeSelect, onNewConnector, onRemoveConnector }) => { const [dataS, setDataS] = useState(data); const [source, setSource] = useState([]); const [dragging, setDragging] = useState(false); const [mousePos, setMousePos] = useState({x: 0, y: 0}); const svgRef = useRef(); const onMouseMove = e => { let [pX, pY] = [e.clientX, e.clientY]; e.stopPropagation(); e.preventDefault(); const svgRect = svgRef.current.getBoundingClientRect(); // console.log(svgRect); setMousePos(old => { return { ...old, ...{x: pX - svgRect.left, y: pY - svgRect.top} } }); } const onMouseUp = e => { setDragging(false); } const handleNodeStart = nid => { onNodeStartMove(nid); } const handleNodeStop = (nid, pos) => { onNodeMove(nid, pos); } const handleNodeMove = (idx, pos) => { let dataT = dataS; dataT.nodes[idx].x = pos.x; dataT.nodes[idx].y = pos.y; // console.log(dataT); // console.log({...dataS,...dataT}); setDataS(old => { return { ...old, ...dataT } }); } const handleStartConnector = (nid, outputIdx) => { let newSrc = [nid, outputIdx]; setDragging(true); setSource(newSrc); // Not sure if this will work... } const handleCompleteConnector = (nid, inputIdx) => { if (dragging) { let fromNode = getNodeById(data.nodes, source[0]); let fromPinName = fromNode.fields.out[source[1]].name; let toNode = getNodeById(data.nodes, nid); let toPinName = toNode.fields.in[inputIdx].name; onNewConnector(fromNode.nid, fromPinName, toNode.nid, toPinName); } setDragging(false); } const handleRemoveConnector = connector => { if (onRemoveConnector) { onRemoveConnector(connector); } } const handleNodeSelect = nid => { if (onNodeSelect) { onNodeSelect(nid); } } const handleNodeDeselect = nid => { if (onNodeDeselect) { onNodeDeselect(nid); } } const computePinIdxfromLabel = (pins, pinLabel) => { let reval = 0; for (let pin of pins) { if (pin.name === pinLabel) { return reval; } else { reval++; } } } const getNodeById = (nodes, nid) => { let reval = 0; for(const node of nodes) { if (node.nid === nid) { return nodes[reval]; } else { reval++; } } } let newConn = null; let i = 0; // console.log(dragging); if (dragging) { let sourceNode = getNodeById(dataS.nodes, source[0]); let connectorStart = computeOutOffsetByIndex(sourceNode.x, sourceNode.y, source[1]); let connectorEnd = { x: mousePos.x, y: mousePos.y }; // console.log(mousePos); newConn = <Spline start={connectorStart} end={connectorEnd} /> } let splineIdx = 0; return ( <div className={dragging ? 'dragging' : ''} onMouseMove={onMouseMove} onMouseUp={onMouseUp} > {dataS.nodes.map(node => { // console.log(node); return <DragNode index={i++} nid={node.nid} title={node.type} inputs={node.fields.in} outputs={node.fields.out} pos={{x: node.x, y: node.y}} key={node.nid} onNodeStart={nid => handleNodeStart(nid)} onNodeStop={(nid, pos) => handleNodeStop(nid, pos)} onNodeMove={(idx, pos) => handleNodeMove(idx, pos)} onStartConnector={(nid, outputIdx) => handleStartConnector(nid, outputIdx)} onCompleteConnector={(nid, inputIdx) => handleCompleteConnector(nid, inputIdx)} onNodeSelect={nid => handleNodeSelect(nid)} onNodeDeselect={nid => handleNodeDeselect(nid)} /> })} <svg style={{position: 'absolute', height: "100%", width: "100%", zIndex: 9000}} ref={svgRef}> {data.connections.map(connector => { // console.log(data); // console.log(connector); let fromNode = getNodeById(data.nodes, connector.from_node); let toNode = getNodeById(data.nodes, connector.to_node); let splinestart = computeOutOffsetByIndex(fromNode.x, fromNode.y, computePinIdxfromLabel(fromNode.fields.out, connector.from)); let splineend = computeInOffsetByIndex(toNode.x, toNode.y, computePinIdxfromLabel(toNode.fields.in, connector.to)); return <Spline start={splinestart} end={splineend} key={splineIdx++} mousePos={mousePos} onRemove={() => handleRemoveConnector(connector)} /> })} {newConn} </svg> </div> ); } export default index;
lightsinthesky/react-node-graph
index.js
JavaScript
mit
6,053
### ANFIS model ## Prerequisites * OS: Ubuntu 18.04 or 16.04 * Software: conda (lastest version) ## Preparing environments 1. Go to project directory and onstalling conda environments ``` conda env create --name anfis-module -f=environments.yml ``` 2. Activate environments and use after this: ``` source activate anfis-module ``` ## Cores 1. Training ANFIS models ``` python train_anfis.py ``` 2. Testing and writing to reports ANFIS models: ``` python test_and_report_anfis.py ``` ## Outputs 1. Models * Path: ```metadata/models/<model_name>/rl<rule_number>ws<window_size>/models.h5``` 2. Tracking * Figure path: ```results/<model_name>/rl<rule_number>ws<window_size>/tracks/track.svg``` * Data path: ```results/<model_name>/rl<rule_number>ws<window_size>/tracks/track.csv``` 3. Test * Figure path: ```results/<model_name>/rl<rule_number>ws<window_size>/test/results.svg``` * Data path: ```results/<model_name>/rl<rule_number>ws<window_size>/test/data.csv``` 4. Reports * Reports path: ```results/<model_name>/rl<rule_number>ws<window_size>/test/reports.json```
HPCC-Cloud-Computing/press
prediction/anfis-module/README.md
Markdown
mit
1,069
var t = require('chai').assert; var P = require('bluebird'); var Renderer = require('../').Renderer; var view = { "name": { "first": "Michael", "last": "Jackson" }, "age": "RIP", calc: function () { return 2 + 4; }, delayed: function () { return new P(function (resolve) { setTimeout(resolve.bind(undefined, 'foo'), 100); }); } }; describe('Renderer', function () { describe('Basics features', function () { it('should render properties', function (done) { var renderer = new Renderer(); renderer.render('Hello {{name.first}} {{name.last}}', { "name": { "first": "Michael", "last": "Jackson" } }).then(function (result) { t.equal(result, 'Hello Michael Jackson'); done(); }) }); it('should render variables', function (done) { var renderer = new Renderer(); renderer.render('* {{name}} * {{age}} * {{company}} * {{{company}}} * {{&company}}{{=<% %>=}} * {{company}}<%={{ }}=%>', { "name": "Chris", "company": "<b>GitHub</b>" }).then(function (result) { t.equal(result, '* Chris * * &lt;b&gt;GitHub&lt;&#x2F;b&gt; * <b>GitHub</b> * <b>GitHub</b> * {{company}}'); done(); }) }); it('should render variables with dot notation', function (done) { var renderer = new Renderer(); renderer.render('{{name.first}} {{name.last}} {{age}}', { "name": { "first": "Michael", "last": "Jackson" }, "age": "RIP" }).then(function (result) { t.equal(result, 'Michael Jackson RIP'); done(); }) }); it('should render sections with false values or empty lists', function (done) { var renderer = new Renderer(); renderer.render('Shown. {{#person}}Never shown!{{/person}}', { "person": false }).then(function (result) { t.equal(result, 'Shown. '); done(); }) }); it('should render sections with non-empty lists', function (done) { var renderer = new Renderer(); renderer.render('{{#stooges}}<b>{{name}}</b>{{/stooges}}', { "stooges": [ {"name": "Moe"}, {"name": "Larry"}, {"name": "Curly"} ] }).then(function (result) { t.equal(result, '<b>Moe</b><b>Larry</b><b>Curly</b>'); done(); }) }); it('should render sections using . for array of strings', function (done) { var renderer = new Renderer(); renderer.render('{{#musketeers}}* {{.}}{{/musketeers}}', { "musketeers": ["Athos", "Aramis", "Porthos", "D'Artagnan"] }).then(function (result) { t.equal(result, '* Athos* Aramis* Porthos* D&#39;Artagnan'); done(); }) }); it('should render function', function (done) { var renderer = new Renderer(); renderer.render('{{title}} spends {{calc}}', { title: "Joe", calc: function () { return 2 + 4; } }).then(function (result) { t.equal(result, 'Joe spends 6'); done(); }) }); it('should render function with variable as context', function (done) { var renderer = new Renderer(); renderer.render('{{#beatles}}* {{name}} {{/beatles}}', { "beatles": [ {"firstName": "John", "lastName": "Lennon"}, {"firstName": "Paul", "lastName": "McCartney"}, {"firstName": "George", "lastName": "Harrison"}, {"firstName": "Ringo", "lastName": "Starr"} ], "name": function () { return this.firstName + " " + this.lastName; } }).then(function (result) { t.equal(result, '* John Lennon * Paul McCartney * George Harrison * Ringo Starr '); done(); }) }); it('should render inverted sections', function (done) { var renderer = new Renderer(); renderer.render('{{#repos}}<b>{{name}}</b>{{/repos}}{{^repos}}No repos :({{/repos}}', { "repos": [] }).then(function (result) { t.equal(result, 'No repos :('); done(); }) }); it('should render ignore comments', function (done) { var renderer = new Renderer(); renderer.render('Today{{! ignore me }}.').then(function (result) { t.equal(result, 'Today.'); done(); }) }); it('should render partials', function (done) { var renderer = new Renderer(); renderer.render('{{#names}}{{> user}}{{/names}}', { names: [{ name: 'Athos' }, { name: 'Porthos' }] }, { user: 'Hello {{name}}.' }).then(function (result) { t.equal(result, 'Hello Athos.Hello Porthos.'); done(); }) }); }); describe('Promise functions', function () { it('should render with promise functions', function (done) { var renderer = new Renderer(); renderer.render('3+5={{#add}}[3,5]{{/add}}', { add: function (a, b) { return new P(function (resolve) { setTimeout(function () { resolve(a + b); }, 100); }) } }).then(function (result) { t.equal(result, '3+5=8'); done(); }); }); }); describe('Custom view', function () { function View() { this.buffer = []; this.text = function (text) { this.buffer.push(text); return this; }; this.write = function (i) { this.buffer.push(i); return this; }; } it('should render with custom view', function (done) { var view = new View(); var renderer = new Renderer(); renderer.render('The number is:{{#write}}1{{/write}}', view).then(function (result) { t.notOk(result); t.deepEqual(view.buffer, ['The number is:', 1]); done(); }) }); }); }) ;
taoyuan/mustem
test/renderer.test.js
JavaScript
mit
5,908
<!DOCTYPE html><html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> <meta charset="utf-8"> <title>phpDocumentor » \ep_BDL_Wskaznik_Wariacja</title> <meta name="author" content="Mike van Riel"> <meta name="description" content=""> <link href="../css/template.css" rel="stylesheet" media="all"> <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico"> <link rel="apple-touch-icon" href="../img/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png"> </head> <body> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"><div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">phpDocumentor</a><div class="nav-collapse"><ul class="nav"> <li class="dropdown"> <a href="#api" class="dropdown-toggle" data-toggle="dropdown"> API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul> </li> <li class="dropdown" id="charts-menu"> <a href="#charts" class="dropdown-toggle" data-toggle="dropdown"> Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul> </li> <li class="dropdown" id="reports-menu"> <a href="#reports" class="dropdown-toggle" data-toggle="dropdown"> Reports <b class="caret"></b></a><ul class="dropdown-menu"> <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors  <span class="label label-info">961</span></a></li> <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers  <ul><li>fixme  <span class="label label-info">16</span> </li></ul></a></li> <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements  <span class="label label-info">0</span></a></li> </ul> </li> </ul></div> </div></div> <div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div> </div> <div id="___" class="container"> <noscript><div class="alert alert-warning"> Javascript is disabled; several features are only available if Javascript is enabled. </div></noscript> <div class="row"> <div class="span4"> <span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio"> <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button> </div> <ul class="side-nav nav nav-list"> <li class="nav-header"> <i class="icon-custom icon-method"></i> Methods <ul> <li class="method public inherited"><a href="#method___construct" title="__construct :: "><span class="description">__construct() </span><pre>__construct()</pre></a></li> <li class="method public "><a href="#method___toString" title="__toString :: "><span class="description">__toString() </span><pre>__toString()</pre></a></li> <li class="method public inherited"><a href="#method_call" title="call :: "><span class="description">call() </span><pre>call()</pre></a></li> <li class="method public "><a href="#method_getDataStruct" title="getDataStruct :: "><span class="description">getDataStruct() </span><pre>getDataStruct()</pre></a></li> <li class="method public inherited"><a href="#method_getDescription" title="getDescription :: "><span class="description">getDescription() </span><pre>getDescription()</pre></a></li> <li class="method public inherited"><a href="#method_getTitle" title="getTitle :: "><span class="description">getTitle() </span><pre>getTitle()</pre></a></li> <li class="method public "><a href="#method_gminy" title="gminy :: "><span class="description">gminy() </span><pre>gminy()</pre></a></li> <li class="method public inherited"><a href="#method_init" title="init :: "><span class="description">init() </span><pre>init()</pre></a></li> <li class="method public inherited"><a href="#method_isloaded" title="isloaded :: "><span class="description">isloaded() </span><pre>isloaded()</pre></a></li> <li class="method public inherited"><a href="#method_load" title="load :: "><span class="description">load() </span><pre>load()</pre></a></li> <li class="method public inherited"><a href="#method_load_from_db" title="load_from_db :: "><span class="description">load_from_db() </span><pre>load_from_db()</pre></a></li> <li class="method public inherited"><a href="#method_load_layer" title="load_layer :: "><span class="description">load_layer() </span><pre>load_layer()</pre></a></li> <li class="method public inherited"><a href="#method_parse_data" title="parse_data :: "><span class="description">parse_data() </span><pre>parse_data()</pre></a></li> <li class="method public "><a href="#method_podgrupa" title="podgrupa :: "><span class="description">podgrupa() </span><pre>podgrupa()</pre></a></li> <li class="method public "><a href="#method_powiaty" title="powiaty :: "><span class="description">powiaty() </span><pre>powiaty()</pre></a></li> <li class="method public "><a href="#method_wojewodztwa" title="wojewodztwa :: "><span class="description">wojewodztwa() </span><pre>wojewodztwa()</pre></a></li> </ul> </li> <li class="nav-header private">» Private <ul> <li class="method private inherited"><a href="#method___call" title="__call :: Implements get_* getters for trivial cases."><span class="description">Implements get_* getters for trivial cases.</span><pre>__call()</pre></a></li> <li class="method private inherited"><a href="#method_generate_sig" title="generate_sig :: "><span class="description">generate_sig() </span><pre>generate_sig()</pre></a></li> </ul> </li> <li class="nav-header"> <i class="icon-custom icon-property"></i> Properties <ul> <li class="property public "><a href="#property__aliases" title="$_aliases :: "><span class="description"></span><pre>$_aliases</pre></a></li> <li class="property public "><a href="#property__podgrupa" title="$_podgrupa :: "><span class="description"></span><pre>$_podgrupa</pre></a></li> <li class="property public "><a href="#property__powiaty" title="$_powiaty :: "><span class="description"></span><pre>$_powiaty</pre></a></li> <li class="property public inherited"><a href="#property__version" title="$_version :: "><span class="description"></span><pre>$_version</pre></a></li> <li class="property public "><a href="#property__wojewodztwa" title="$_wojewodztwa :: "><span class="description"></span><pre>$_wojewodztwa</pre></a></li> <li class="property public inherited"><a href="#property_data" title="$data :: "><span class="description"></span><pre>$data</pre></a></li> <li class="property public inherited"><a href="#property_id" title="$id :: "><span class="description"></span><pre>$id</pre></a></li> <li class="property public inherited"><a href="#property_layers" title="$layers :: "><span class="description"></span><pre>$layers</pre></a></li> <li class="property public inherited"><a href="#property_server_address" title="$server_address :: "><span class="description"></span><pre>$server_address</pre></a></li> </ul> </li> <li class="nav-header private">» Private <ul> <li class="property private inherited"><a href="#property__key" title="$_key :: "><span class="description"></span><pre>$_key</pre></a></li> <li class="property private inherited"><a href="#property__secret" title="$_secret :: "><span class="description"></span><pre>$_secret</pre></a></li> <li class="property private inherited"><a href="#property_loaded" title="$loaded :: "><span class="description"></span><pre>$loaded</pre></a></li> </ul> </li> <li class="nav-header"> <i class="icon-custom icon-constant"></i> Constants <ul> <li class="constant inherited"><a href="#constant_TYPE_ARRAY" title="TYPE_ARRAY :: "><span class="description">TYPE_ARRAY</span><pre>TYPE_ARRAY</pre></a></li> <li class="constant inherited"><a href="#constant_TYPE_BOOLEAN" title="TYPE_BOOLEAN :: "><span class="description">TYPE_BOOLEAN</span><pre>TYPE_BOOLEAN</pre></a></li> <li class="constant inherited"><a href="#constant_TYPE_FLOAT" title="TYPE_FLOAT :: "><span class="description">TYPE_FLOAT</span><pre>TYPE_FLOAT</pre></a></li> <li class="constant inherited"><a href="#constant_TYPE_INT" title="TYPE_INT :: "><span class="description">TYPE_INT</span><pre>TYPE_INT</pre></a></li> <li class="constant inherited"><a href="#constant_TYPE_METHOD" title="TYPE_METHOD :: "><span class="description">TYPE_METHOD</span><pre>TYPE_METHOD</pre></a></li> <li class="constant inherited"><a href="#constant_TYPE_OBJECT" title="TYPE_OBJECT :: "><span class="description">TYPE_OBJECT</span><pre>TYPE_OBJECT</pre></a></li> <li class="constant inherited"><a href="#constant_TYPE_STRING" title="TYPE_STRING :: "><span class="description">TYPE_STRING</span><pre>TYPE_STRING</pre></a></li> </ul> </li> </ul> </div> <div class="span8"> <a id="\ep_BDL_Wskaznik_Wariacja"></a><ul class="breadcrumb"> <li> <a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span> </li> <li><a href="../namespaces/global.html">global</a></li> <li class="active"> <span class="divider">\</span><a href="../classes/ep_BDL_Wskaznik_Wariacja.html">ep_BDL_Wskaznik_Wariacja</a> </li> </ul> <div class="element class"><div class="details"> <h3> <i class="icon-custom icon-method"></i> Methods</h3> <a id="method___construct"></a><div class="element clickable method public method___construct" data-toggle="collapse" data-target=".method___construct .collapse"> <h2>__construct() </h2> <pre>__construct($data, $complex) </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::__construct()</td> </tr></table> <h3>Parameters</h3> <div class="subelement argument"><h4>$data</h4></div> <div class="subelement argument"><h4>$complex</h4></div> </div></div> </div> <a id="method___toString"></a><div class="element clickable method public method___toString" data-toggle="collapse" data-target=".method___toString .collapse"> <h2>__toString() </h2> <pre>__toString() : string</pre> <div class="labels"></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <h3>Returns</h3> <div class="subelement response"><code>string</code></div> </div></div> </div> <a id="method_call"></a><div class="element clickable method public method_call" data-toggle="collapse" data-target=".method_call .collapse"> <h2>call() </h2> <pre>call($service, $params) </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"> <tr> <th>inherited_from</th> <td>\ep_Api::call()</td> </tr> <tr> <th>inherited_from</th> <td>\ep_Object::call()</td> </tr> </table> <h3>Parameters</h3> <div class="subelement argument"><h4>$service</h4></div> <div class="subelement argument"><h4>$params</h4></div> </div></div> </div> <a id="method_getDataStruct"></a><div class="element clickable method public method_getDataStruct" data-toggle="collapse" data-target=".method_getDataStruct .collapse"> <h2>getDataStruct() </h2> <pre>getDataStruct() : array</pre> <div class="labels"></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>see</th> <td><a href="classes.ep_Object.html#%5Cep_Object::getDataStruct()">\ep_Object::getDataStruct()</a></td> </tr></table> <h3>Returns</h3> <div class="subelement response"> <code>array</code>of definitions of fields in data field. Array keys are names and values are constants from ep_Object::TYPE_*. All defined fields are availible by get_{NAME} getter methods and should be read this way.</div> </div></div> </div> <a id="method_getDescription"></a><div class="element clickable method public method_getDescription" data-toggle="collapse" data-target=".method_getDescription .collapse"> <h2>getDescription() </h2> <pre>getDescription() </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::getDescription()</td> </tr></table> </div></div> </div> <a id="method_getTitle"></a><div class="element clickable method public method_getTitle" data-toggle="collapse" data-target=".method_getTitle .collapse"> <h2>getTitle() </h2> <pre>getTitle() </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::getTitle()</td> </tr></table> </div></div> </div> <a id="method_gminy"></a><div class="element clickable method public method_gminy" data-toggle="collapse" data-target=".method_gminy .collapse"> <h2>gminy() </h2> <pre>gminy() </pre> <div class="labels"></div> <div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div> </div> <a id="method_init"></a><div class="element clickable method public method_init" data-toggle="collapse" data-target=".method_init .collapse"> <h2>init() </h2> <pre>init() : <a href="../classes/ep_Api.html">\ep_Api</a></pre> <div class="labels"> <span class="label">Inherited</span><span class="label">Static</span> </div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"> <tr> <th>inherited_from</th> <td>\ep_Api::init()</td> </tr> <tr> <th>inherited_from</th> <td>\ep_Object::init()</td> </tr> </table> <h3>Returns</h3> <div class="subelement response"><code><a href="../classes/ep_Api.html">\ep_Api</a></code></div> </div></div> </div> <a id="method_isloaded"></a><div class="element clickable method public method_isloaded" data-toggle="collapse" data-target=".method_isloaded .collapse"> <h2>isloaded() </h2> <pre>isloaded() </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::isloaded()</td> </tr></table> </div></div> </div> <a id="method_load"></a><div class="element clickable method public method_load" data-toggle="collapse" data-target=".method_load .collapse"> <h2>load() </h2> <pre>load() </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::load()</td> </tr></table> </div></div> </div> <a id="method_load_from_db"></a><div class="element clickable method public method_load_from_db" data-toggle="collapse" data-target=".method_load_from_db .collapse"> <h2>load_from_db() </h2> <pre>load_from_db() </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::load_from_db()</td> </tr></table> </div></div> </div> <a id="method_load_layer"></a><div class="element clickable method public method_load_layer" data-toggle="collapse" data-target=".method_load_layer .collapse"> <h2>load_layer() </h2> <pre>load_layer($layer, $params) </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::load_layer()</td> </tr></table> <h3>Parameters</h3> <div class="subelement argument"><h4>$layer</h4></div> <div class="subelement argument"><h4>$params</h4></div> </div></div> </div> <a id="method_parse_data"></a><div class="element clickable method public method_parse_data" data-toggle="collapse" data-target=".method_parse_data .collapse"> <h2>parse_data() </h2> <pre>parse_data($data) </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::parse_data()</td> </tr></table> <h3>Parameters</h3> <div class="subelement argument"><h4>$data</h4></div> </div></div> </div> <a id="method_podgrupa"></a><div class="element clickable method public method_podgrupa" data-toggle="collapse" data-target=".method_podgrupa .collapse"> <h2>podgrupa() </h2> <pre>podgrupa() : <a href="../classes/ep_BDL_Podgrupa.html">\ep_BDL_Podgrupa</a></pre> <div class="labels"></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <h3>Returns</h3> <div class="subelement response"><code><a href="../classes/ep_BDL_Podgrupa.html">\ep_BDL_Podgrupa</a></code></div> </div></div> </div> <a id="method_powiaty"></a><div class="element clickable method public method_powiaty" data-toggle="collapse" data-target=".method_powiaty .collapse"> <h2>powiaty() </h2> <pre>powiaty() </pre> <div class="labels"></div> <div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div> </div> <a id="method_wojewodztwa"></a><div class="element clickable method public method_wojewodztwa" data-toggle="collapse" data-target=".method_wojewodztwa .collapse"> <h2>wojewodztwa() </h2> <pre>wojewodztwa() </pre> <div class="labels"></div> <div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div> </div> <a id="method___call"></a><div class="element clickable method private method___call" data-toggle="collapse" data-target=".method___call .collapse"> <h2>Implements get_* getters for trivial cases.</h2> <pre>__call(string $name, array $arguments) </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"><p>Complex cases should be handled by direct method implementation.</p></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::__call()</td> </tr></table> <h3>Parameters</h3> <div class="subelement argument"> <h4>$name</h4> <code>string</code> </div> <div class="subelement argument"> <h4>$arguments</h4> <code>array</code> </div> <h3>Exceptions</h3> <table class="table table-bordered"> <tr> <th><code><a href="http://php.net/manual/en/class.badmethodcallexception.php">\BadMethodCallException</a></code></th> <td></td> </tr> <tr> <th><code><a href="http://php.net/manual/en/class.unexpectedvalueexception.php">\UnexpectedValueException</a></code></th> <td></td> </tr> </table> </div></div> </div> <a id="method_generate_sig"></a><div class="element clickable method private method_generate_sig" data-toggle="collapse" data-target=".method_generate_sig .collapse"> <h2>generate_sig() </h2> <pre>generate_sig(array $params) : string</pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"> <tr> <th>inherited_from</th> <td>\ep_Api::generate_sig()</td> </tr> <tr> <th>inherited_from</th> <td>\ep_Object::generate_sig()</td> </tr> </table> <h3>Parameters</h3> <div class="subelement argument"> <h4>$params</h4> <code>array</code> </div> <h3>Returns</h3> <div class="subelement response"><code>string</code></div> </div></div> </div> <h3> <i class="icon-custom icon-property"></i> Properties</h3> <a id="property__aliases"> </a><div class="element clickable property public property__aliases" data-toggle="collapse" data-target=".property__aliases .collapse"> <h2></h2> <pre>$_aliases </pre> <div class="labels"></div> <div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div> </div> <a id="property__podgrupa"> </a><div class="element clickable property public property__podgrupa" data-toggle="collapse" data-target=".property__podgrupa .collapse"> <h2></h2> <pre>$_podgrupa </pre> <div class="labels"></div> <div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div> </div> <a id="property__powiaty"> </a><div class="element clickable property public property__powiaty" data-toggle="collapse" data-target=".property__powiaty .collapse"> <h2></h2> <pre>$_powiaty </pre> <div class="labels"></div> <div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div> </div> <a id="property__version"> </a><div class="element clickable property public property__version" data-toggle="collapse" data-target=".property__version .collapse"> <h2></h2> <pre>$_version </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"> <tr> <th>inherited_from</th> <td>\ep_Api::$$_version</td> </tr> <tr> <th>inherited_from</th> <td>\ep_Object::$$_version</td> </tr> </table> </div></div> </div> <a id="property__wojewodztwa"> </a><div class="element clickable property public property__wojewodztwa" data-toggle="collapse" data-target=".property__wojewodztwa .collapse"> <h2></h2> <pre>$_wojewodztwa </pre> <div class="labels"></div> <div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div> </div> <a id="property_data"> </a><div class="element clickable property public property_data" data-toggle="collapse" data-target=".property_data .collapse"> <h2></h2> <pre>$data </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::$$data</td> </tr></table> </div></div> </div> <a id="property_id"> </a><div class="element clickable property public property_id" data-toggle="collapse" data-target=".property_id .collapse"> <h2></h2> <pre>$id </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::$$id</td> </tr></table> </div></div> </div> <a id="property_layers"> </a><div class="element clickable property public property_layers" data-toggle="collapse" data-target=".property_layers .collapse"> <h2></h2> <pre>$layers </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::$$layers</td> </tr></table> </div></div> </div> <a id="property_server_address"> </a><div class="element clickable property public property_server_address" data-toggle="collapse" data-target=".property_server_address .collapse"> <h2></h2> <pre>$server_address </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"> <tr> <th>inherited_from</th> <td>\ep_Api::$$server_address</td> </tr> <tr> <th>inherited_from</th> <td>\ep_Object::$$server_address</td> </tr> </table> </div></div> </div> <a id="property__key"> </a><div class="element clickable property private property__key" data-toggle="collapse" data-target=".property__key .collapse"> <h2></h2> <pre>$_key </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"> <tr> <th>inherited_from</th> <td>\ep_Api::$$_key</td> </tr> <tr> <th>inherited_from</th> <td>\ep_Object::$$_key</td> </tr> </table> </div></div> </div> <a id="property__secret"> </a><div class="element clickable property private property__secret" data-toggle="collapse" data-target=".property__secret .collapse"> <h2></h2> <pre>$_secret </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"> <tr> <th>inherited_from</th> <td>\ep_Api::$$_secret</td> </tr> <tr> <th>inherited_from</th> <td>\ep_Object::$$_secret</td> </tr> </table> </div></div> </div> <a id="property_loaded"> </a><div class="element clickable property private property_loaded" data-toggle="collapse" data-target=".property_loaded .collapse"> <h2></h2> <pre>$loaded </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::$$loaded</td> </tr></table> </div></div> </div> <h3> <i class="icon-custom icon-constant"></i> Constants</h3> <a id="constant_TYPE_ARRAY"> </a><div class="element clickable constant constant_TYPE_ARRAY" data-toggle="collapse" data-target=".constant_TYPE_ARRAY .collapse"> <h2>TYPE_ARRAY</h2> <pre>TYPE_ARRAY </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::TYPE_ARRAY</td> </tr></table> </div></div> </div> <a id="constant_TYPE_BOOLEAN"> </a><div class="element clickable constant constant_TYPE_BOOLEAN" data-toggle="collapse" data-target=".constant_TYPE_BOOLEAN .collapse"> <h2>TYPE_BOOLEAN</h2> <pre>TYPE_BOOLEAN </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::TYPE_BOOLEAN</td> </tr></table> </div></div> </div> <a id="constant_TYPE_FLOAT"> </a><div class="element clickable constant constant_TYPE_FLOAT" data-toggle="collapse" data-target=".constant_TYPE_FLOAT .collapse"> <h2>TYPE_FLOAT</h2> <pre>TYPE_FLOAT </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::TYPE_FLOAT</td> </tr></table> </div></div> </div> <a id="constant_TYPE_INT"> </a><div class="element clickable constant constant_TYPE_INT" data-toggle="collapse" data-target=".constant_TYPE_INT .collapse"> <h2>TYPE_INT</h2> <pre>TYPE_INT </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::TYPE_INT</td> </tr></table> </div></div> </div> <a id="constant_TYPE_METHOD"> </a><div class="element clickable constant constant_TYPE_METHOD" data-toggle="collapse" data-target=".constant_TYPE_METHOD .collapse"> <h2>TYPE_METHOD</h2> <pre>TYPE_METHOD </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::TYPE_METHOD</td> </tr></table> </div></div> </div> <a id="constant_TYPE_OBJECT"> </a><div class="element clickable constant constant_TYPE_OBJECT" data-toggle="collapse" data-target=".constant_TYPE_OBJECT .collapse"> <h2>TYPE_OBJECT</h2> <pre>TYPE_OBJECT </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::TYPE_OBJECT</td> </tr></table> </div></div> </div> <a id="constant_TYPE_STRING"> </a><div class="element clickable constant constant_TYPE_STRING" data-toggle="collapse" data-target=".constant_TYPE_STRING .collapse"> <h2>TYPE_STRING</h2> <pre>TYPE_STRING </pre> <div class="labels"><span class="label">Inherited</span></div> <div class="row collapse"><div class="detail-description"> <div class="long_description"></div> <table class="table table-bordered"><tr> <th>inherited_from</th> <td>\ep_Object::TYPE_STRING</td> </tr></table> </div></div> </div> </div></div> </div> </div> <div class="row"><footer class="span12"> Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a12</a> and<br> generated on 2013-02-15T11:46:46+01:00.<br></footer></div> </div> </body> </html>
veriKami/ePF_API_doc
ePF_API_phpdoc-0.1.x-dev/classes/ep_BDL_Wskaznik_Wariacja.html
HTML
mit
31,064
<div ng-if="!identity.isAuthenticated()"> <div class="col-md-5 col-md-offset-1"> <div class="well bs-component"> <form name="loginForm" class="form-horizontal"> <fieldset> <legend>Login</legend> <div class="form-group"> <label for="email-login" class="col-md-3 control-label">Name</label> <div class="col-md-9"> <input ng-model="loginUser.email" required="required" id="email-login" class="form-control" type="text"> </div> </div> <div class="form-group"> <label for="password-login" class="col-md-3 control-label">Password</label> <div class="col-md-9"> <input ng-model="loginUser.password" required="required" class="form-control" id="password-login" type="password"> </div> </div> <div class="form-group"> <div class="col-md-9 col-md-offset-2"> <button type="reset" class="btn btn-default">Cancel</button> <button ng-click="login(loginUser)" ng-disabled="loginForm.$invalid" class="btn btn-warning"> Login </button> </div> </div> </fieldset> </form> </div> </div> <div class="col-md-5"> <div class="well bs-component"> <form name="registerForm" class="form-horizontal"> <fieldset> <legend>Register</legend> <div class="form-group"> <label for="email" class="col-md-3 control-label">Email</label> <div class="col-md-9"> <input ng-model="registerUser.email" required="required" class="form-control" id="email" type="email"> </div> </div> <div class="form-group"> <label for="password" class="col-md-3 control-label">Password</label> <div class="col-md-9"> <input ng-model="registerUser.password" required="required" minlength="6" maxlength="100" class="form-control" id="password" type="password"> </div> </div> <div class="form-group"> <label for="confirmPassword" class="col-md-3 control-label">Confirm Password</label> <div class="col-md-9"> <input ng-model="registerUser.confirmPassword" required="required" class="form-control" id="confirmPassword" type="password"> </div> </div> <div class="form-group"> <div class="col-md-9 col-md-offset-2"> <button type="reset" class="btn btn-default">Cancel</button> <button ng-class="register-form.$invalid ? 'disabled-button' : ''" ng-disabled="registerForm.$invalid || registerUser.password != registerUser.confirmPassword" ng-click="register(registerUser)" class="btn btn-warning">Register </button> </div> </div> </fieldset> </form> </div> </div> </div> <div ng-if="identity.isAuthenticated()"> <div class="bs-component col-md-3"> <h3>My Projects</h3> <table class="pattern-style-a col-md-12"> <thead> <tr> <th scope="col">Name</th> </tr> </thead> <tbody> <tr ng-repeat="project in projects"> <td><a href="#/projects/{{project.Id}}">{{project.Name}}</a></td> </tr> </tbody> </table> </div> <div class="bs-component col-md-9"> <h3>My Issues</h3> <table class="pattern-style-a col-md-12"> <thead> <tr> <th scope="col">Title</th> <th scope="col">Description</th> <th scope="col">Project</th> <th scope="col">Due Date</th> <th scope="col">Author</th> </tr> </thead> <tbody> <tr ng-repeat="issue in issues"> <td><a href="#/issues/{{issue.Id}}">{{issue.Title}}</a></td> <td>{{issue.Description}}</td> <td>{{issue.Project.Name}}</td> <td>{{issue.DueDate | date: medium}}</td> <td>{{issue.Author.Username}}</td> </tr> </tbody> </table> <pagination total-items="totalCount" ng-model="pagination.currentPage" items-per-page="pagination.pageSize" ng-change="pageChanged()" max-size="8" boundary-links="true"> </pagination> </div> </div>
timvk/IssueTracker-AngularJS
app/home/home.html
HTML
mit
5,489
# Sprockets: Rack-based asset packaging Sprockets is a Ruby library for compiling and serving web assets. It features declarative dependency management for JavaScript and CSS assets, as well as a powerful preprocessor pipeline that allows you to write assets in languages like CoffeeScript, Sass and SCSS. ## Installation Install Sprockets from RubyGems: ``` sh $ gem install sprockets ``` Or include it in your project's `Gemfile` with Bundler: ``` ruby gem 'sprockets', '~> 3.0' ``` ## Using Sprockets For most people interested in using Sprockets you will want to see [End User Asset Generation](guides/end_user_asset_generation.md) guide. This contains information about sprocket's directive syntax, and default processing behavior. If you are a framework developer that is using Sprockets, see [Building an Asset Processing Framework](guides/building_an_asset_processing_framework.md). If you are a library developer who is extending the functionality of Sprockets, see [Extending Sprockets](guides/extending_sprockets.md). Below is a disjointed mix of documentation for all three of these roles. Eventually they will be moved to an appropriate guide, for now the recommended way to consume documentation is to view the appropriate guide first and then supplement with docs from the README. ## Behavior ### Index files are proxies for folders In Sprockets index files such as `index.js` or `index.css` files inside of a folder will generate a file with the folder's name. So if you have a `foo/index.js` file it will compile down to `foo.js`. This is similar to NPM's behavior of using [folders as modules](https://nodejs.org/api/modules.html#modules_folders_as_modules). It is also somewhat similar to the way that a file in `public/my_folder/index.html` can be reached by a request to `/my_folder`. This means that you cannot directly use an index file. For example this would not work: ``` <%= asset_path("foo/index.js") %> ``` Instead you would need to use: ``` <%= asset_path("foo.js") %> ``` Why would you want to use this behavior? It is common behavior where you might want to include an entire directory of files in a top level javascript. You can do this in Sprockets using `require_tree .` ``` //= require_tree . ``` This has the problem that files are required alphabetically. If your directory has `jquery-ui.js` and `jquery.min.js` then Sprockets will require `jquery-ui.js` before `jquery` is required which won't work (because jquery-ui depends on jquery). Previously the only way to get the correct ordering would be to rename your files, something like `0-jquery-ui.js`. Instead of doing that you can use an index file. For example, if you have an `application.js` and want all the files in the `foo/` folder you could do this: ``` //= require foo.js ``` Then create a file `foo/index.js` that requires all the files in that folder in any order you want: ``` //= require foo.min.js //= require foo-ui.js ``` Now in your `application.js` will correctly load the `foo.min.js` before `foo-ui.js`. If you used `require_tree` it would not work correctly. ## Understanding the Sprockets Environment You'll need an instance of the `Sprockets::Environment` class to access and serve assets from your application. Under Rails 4.0 and later, `YourApp::Application.assets` is a preconfigured `Sprockets::Environment` instance. For Rack-based applications, create an instance in `config.ru`. The Sprockets `Environment` has methods for retrieving and serving assets, manipulating the load path, and registering processors. It is also a Rack application that can be mounted at a URL to serve assets over HTTP. ### The Load Path The *load path* is an ordered list of directories that Sprockets uses to search for assets. In the simplest case, a Sprockets environment's load path will consist of a single directory containing your application's asset source files. When mounted, the environment will serve assets from this directory as if they were static files in your public root. The power of the load path is that it lets you organize your source files into multiple directories -- even directories that live outside your application -- and combine those directories into a single virtual filesystem. That means you can easily bundle JavaScript, CSS and images into a Ruby library or [Bower](http://bower.io) package and import them into your application. #### Manipulating the Load Path To add a directory to your environment's load path, use the `append_path` and `prepend_path` methods. Directories at the beginning of the load path have precedence over subsequent directories. ``` ruby environment = Sprockets::Environment.new environment.append_path 'app/assets/javascripts' environment.append_path 'lib/assets/javascripts' environment.append_path 'vendor/assets/bower_components' ``` In general, you should append to the path by default and reserve prepending for cases where you need to override existing assets. ### Accessing Assets Once you've set up your environment's load path, you can mount the environment as a Rack server and request assets via HTTP. You can also access assets programmatically from within your application. #### Logical Paths Assets in Sprockets are always referenced by their *logical path*. The logical path is the path of the asset source file relative to its containing directory in the load path. For example, if your load path contains the directory `app/assets/javascripts`: <table> <tr> <th>Asset source file</th> <th>Logical path</th> </tr> <tr> <td>app/assets/javascripts/application.js</td> <td>application.js</td> </tr> <tr> <td>app/assets/javascripts/models/project.js</td> <td>models/project.js</td> </tr> </table> In this way, all directories in the load path are merged to create a virtual filesystem whose entries are logical paths. #### Serving Assets Over HTTP When you mount an environment, all of its assets are accessible as logical paths underneath the *mount point*. For example, if you mount your environment at `/assets` and request the URL `/assets/application.js`, Sprockets will search your load path for the file named `application.js` and serve it. Under Rails 4.0 and later, your Sprockets environment is automatically mounted at `/assets`. If you are using Sprockets with a Rack application, you will need to mount the environment yourself. A good way to do this is with the `map` method in `config.ru`: ``` ruby require 'sprockets' map '/assets' do environment = Sprockets::Environment.new environment.append_path 'app/assets/javascripts' environment.append_path 'app/assets/stylesheets' run environment end map '/' do run YourRackApp end ``` #### Accessing Assets Programmatically You can use the `find_asset` method (aliased as `[]`) to retrieve an asset from a Sprockets environment. Pass it a logical path and you'll get a `Sprockets::Asset` instance back: ``` ruby environment['application.js'] # => #<Sprockets::Asset ...> ``` Call `to_s` on the resulting asset to access its contents, `length` to get its length in bytes, `mtime` to query its last-modified time, and `filename` to get its full path on the filesystem. ## Using Processors Asset source files can be written in another format, like SCSS or CoffeeScript, and automatically compiled to CSS or JavaScript by Sprockets. Processors that convert a file from one format to another are called *transformers*. ### Minifying Assets Several JavaScript and CSS minifiers are available through shorthand. ``` ruby environment.js_compressor = :uglify environment.css_compressor = :scss ``` If you are using Sprockets directly with Rack app, don't forget to add `uglifier` and `sass` gems to your Gemfile when using above options. ### Styling with Sass and SCSS [Sass](http://sass-lang.com/) is a language that compiles to CSS and adds features like nested rules, variables, mixins and selector inheritance. If the `sass` gem is available to your application, you can use Sass to write CSS assets in Sprockets. Sprockets supports both Sass syntaxes. For the original whitespace-sensitive syntax, use the extension `.sass`. For the new SCSS syntax, use the extension `.scss`. ### Scripting with CoffeeScript [CoffeeScript](http://jashkenas.github.io/coffeescript/) is a language that compiles to the "good parts" of JavaScript, featuring a cleaner syntax with array comprehensions, classes, and function binding. If the `coffee-script` gem is available to your application, you can use CoffeeScript to write JavaScript assets in Sprockets. Note that the CoffeeScript compiler is written in JavaScript, and you will need an [ExecJS](https://github.com/rails/execjs)-supported runtime on your system to invoke it. To write JavaScript assets with CoffeeScript, use the extension `.coffee`. ### JavaScript Templating with EJS and Eco Sprockets supports *JavaScript templates* for client-side rendering of strings or markup. JavaScript templates have the special format extension `.jst` and are compiled to JavaScript functions. When loaded, a JavaScript template function can be accessed by its logical path as a property on the global `JST` object. Invoke a template function to render the template as a string. The resulting string can then be inserted into the DOM. ``` <!-- templates/hello.jst.ejs --> <div>Hello, <span><%= name %></span>!</div> // application.js //= require templates/hello $("#hello").html(JST["templates/hello"]({ name: "Sam" })); ``` Sprockets supports two JavaScript template languages: [EJS](https://github.com/sstephenson/ruby-ejs), for embedded JavaScript, and [Eco](https://github.com/sstephenson/ruby-eco), for embedded CoffeeScript. Both languages use the familiar `<% … %>` syntax for embedding logic in templates. If the `ejs` gem is available to your application, you can use EJS templates in Sprockets. EJS templates have the extension `.jst.ejs`. If the `eco` gem is available to your application, you can use [Eco templates](https://github.com/sstephenson/eco) in Sprockets. Eco templates have the extension `.jst.eco`. Note that the `eco` gem depends on the CoffeeScript compiler, so the same caveats apply as outlined above for the CoffeeScript engine. ### Invoking Ruby with ERB Sprockets provides an ERB engine for preprocessing assets using embedded Ruby code. Append `.erb` to a CSS or JavaScript asset's filename to enable the ERB engine. Ruby code embedded in an asset is evaluated in the context of a `Sprockets::Context` instance for the given asset. Common uses for ERB include: - embedding another asset as a Base64-encoded `data:` URI with the `asset_data_uri` helper - inserting the URL to another asset, such as with the `asset_path` helper provided by the Sprockets Rails plugin - embedding other application resources, such as a localized string database, in a JavaScript asset via JSON - embedding version constants loaded from another file See the [Helper Methods](lib/sprockets/context.rb) section for more information about interacting with `Sprockets::Context` instances via ERB. ## Managing and Bundling Dependencies You can create *asset bundles* -- ordered concatenations of asset source files -- by specifying dependencies in a special comment syntax at the top of each source file. Sprockets reads these comments, called *directives*, and processes them to recursively build a dependency graph. When you request an asset with dependencies, the dependencies will be included in order at the top of the file. ### The Directive Processor Sprockets runs the *directive processor* on each CSS and JavaScript source file. The directive processor scans for comment lines beginning with `=` in comment blocks at the top of the file. ``` js //= require jquery //= require jquery-ui //= require backbone //= require_tree . ``` The first word immediately following `=` specifies the directive name. Any words following the directive name are treated as arguments. Arguments may be placed in single or double quotes if they contain spaces, similar to commands in the Unix shell. **Note**: Non-directive comment lines will be preserved in the final asset, but directive comments are stripped after processing. Sprockets will not look for directives in comment blocks that occur after the first line of code. #### Supported Comment Types The directive processor understands comment blocks in three formats: ``` css /* Multi-line comment blocks (CSS, SCSS, JavaScript) *= require foo */ ``` ``` js // Single-line comment blocks (SCSS, JavaScript) //= require foo ``` ``` coffee # Single-line comment blocks (CoffeeScript) #= require foo ``` ### Sprockets Directives You can use the following directives to declare dependencies in asset source files. For directives that take a *path* argument, you may specify either a logical path or a relative path. Relative paths begin with `./` and reference files relative to the location of the current file. #### The `require` Directive `require` *path* inserts the contents of the asset source file specified by *path*. If the file is required multiple times, it will appear in the bundle only once. ### The `require_directory` Directive ### `require_directory` *path* requires all source files of the same format in the directory specified by *path*. Files are required in alphabetical order. #### The `require_tree` Directive `require_tree` *path* works like `require_directory`, but operates recursively to require all files in all subdirectories of the directory specified by *path*. #### The `require_self` Directive `require_self` tells Sprockets to insert the body of the current source file before any subsequent `require` directives. #### The `link` Directive `link` *path* declares a dependency on the target *path* and adds it to a list of subdependencies to automatically be compiled when the asset is written out to disk. For an example, in a CSS file you might reference an external image that always needs to be compiled along with the css file. ``` css /*= link "logo.png" */ .logo { background-image: url(logo.png) } ``` However, if you use a `asset-path` or `asset-url` SCSS helper, these links will automatically be defined for you. ``` css .logo { background-image: asset-url("logo.png") } ``` #### The `depend_on` Directive `depend_on` *path* declares a dependency on the given *path* without including it in the bundle. This is useful when you need to expire an asset's cache in response to a change in another file. #### The `depend_on_asset` Directive `depend_on_asset` *path* works like `depend_on`, but operates recursively reading the file and following the directives found. This is automatically implied if you use `link`, so consider if it just makes sense using `link` instead of `depend_on_asset`. #### The `stub` Directive `stub` *path* excludes that asset and its dependencies from the asset bundle. The *path* must be a valid asset and may or may not already be part of the bundle. `stub` should only be used at the top level bundle, not within any subdependencies. ## Processor Interface Sprockets 2.x was originally design around [Tilt](https://github.com/rtomayko/tilt)'s engine interface. However, starting with 3.x, a new interface has been introduced deprecating Tilt. Similar to Rack, a processor is a any "callable" (an object that responds to `call`). This maybe a simple Proc or a full class that defines a `def self.call(input)` method. The `call` method accepts an `input` Hash and returns a Hash of metadata. Also see [`Sprockets::ProcessorUtils`](https://github.com/rails/sprockets/blob/master/lib/sprockets/processor_utils.rb) for public helper methods. ### input Hash The `input` Hash defines the following public fields. * `:data` - String asset contents * `:environment` - Current `Sprockets::Environment` instance. * `:cache` - A `Sprockets::Cache` instance. See [`Sprockets::Cache#fetch`](https://github.com/rails/sprockets/blob/master/lib/sprockets/cache.rb). * `:uri` - String Asset URI. * `:filename` - String full path to original file. * `:load_path` - String current load path for filename. * `:name` - String logical path for filename. * `:content_type` - String content type of the output asset. * `:metadata` - Hash of processor metadata. ``` ruby def self.call(input) input[:cache].fetch("my:cache:key:v1") do # Remove all semicolons from source input[:data].gsub(";", "") end end ``` ### return Hash The processor should return metadata `Hash`. With the exception of the `:data` key, the processor can store arbitrary JSON valid values in this Hash. The data will be stored and exposed on `Asset#metadata`. The returned `:data` replaces the assets `input[:data]` to the next processor in the chain. Returning a `String` is shorthand for returning `{ data: str }`. And returning `nil` is shorthand for a no-op where the input data is not transformed, `{ data: input[:data] }`. ### metadata The metadata Hash provides an open format for processors to extend the pipeline processor. Internally, built-in processors use it for passing data to each other. * `:required` - A `Set` of String Asset URIs that the Bundle processor should concatenate together. * `:stubbed` - A `Set` of String Asset URIs that will be omitted from the `:required` set. * `:links` - A `Set` of String Asset URIs that should be compiled along with this asset. * `:dependencies` - A `Set` of String Cache URIs that should be monitored for caching. ``` ruby def self.call(input) # Any metadata may start off as nil, so initialize it the value required = Set.new(input[:metadata][:required]) # Manually add "foo.js" asset uri to our bundle required << input[:environment].resolve("foo.js") { required: required } end ``` ## Contributing to Sprockets Sprockets is the work of hundreds of contributors. You're encouraged to submit pull requests, propose features and discuss issues. See [CONTRIBUTING](CONTRIBUTING.md). ### Version History Please see the [CHANGELOG](https://github.com/rails/sprockets/tree/master/CHANGELOG.md) ## License Sprockets is released under the [MIT License](MIT-LICENSE).
masarakki/sprockets
README.md
Markdown
mit
18,185
import { Component ,OnInit} from '@angular/core'; import {GlobalService} from '../_globals/global.service'; import {PermissionService} from './permission.service'; import {ContentTypeService} from '../content_types/content_type.service'; import {Permission} from './permission'; @Component({ selector: 'permission-index', templateUrl: './permission.component.html', providers:[PermissionService,ContentTypeService], //styleUrls: ['./.component.css'] }) export class PermissionListComponent implements OnInit { constructor(private globalService:GlobalService, private permissionService:PermissionService, private contentTypeService:ContentTypeService){} //set permissions:Permission[]; permission=new Permission(); selectedPermission=null; contentTypes=null; //needed for pagination pagination:any; onPagination(results:any){ //get results paginated from pagination component this.permissions=results; } ngOnInit(){ this.listContentTypes(); // this.listPermissions(); } private onSelectPermission(g){ this.selectedPermission=g; } protected getContentType(content_type_id){ //get from listed content types let ct=this.contentTypes.filter(ct=>ct.id===content_type_id)[0]; //console.log(this.contentTypes.filter(ct=>ct.id===content_type_id)); return ct.app_label+'.'+ct.model; } public listPermissions(){ this.permissionService.getAll().subscribe( response=>(this.permissions=response.data.results,this.pagination=response.data.pagination,this.globalService.displayResponseMessage(response)),//success error=>(this.globalService.displayResponseMessage(error)),//failure ()=>{}//complete );//success,failure,complete } private createPermission(){ console.log(this.permission); this.permissionService.create(this.permission).subscribe( response=>(this.globalService.hideModal("#createPermissionModal"),this.listPermissions()),//success error=>(this.globalService.displayResponseMessage(error)),//failure ()=>{}//complete );//success,failure,complete; } private editPermission(){ this.permissionService.edit(this.selectedPermission).subscribe( response=>(this.globalService.hideModal("#editPermissionModal"),this.globalService.displayResponseMessage(response)),//success error=>(this.globalService.displayResponseMessage(error)),//failure ()=>{}//complete );//success,failure,complete; } private deletePermission(){ this.permissionService.delete(this.selectedPermission).subscribe( response=>(this.globalService.hideModal("#deletePermissionModal"),this.listPermissions()),//success error=>(this.globalService.displayResponseMessage(error)),//failure ()=>{}//complete );//success,failure,complete; } public listContentTypes(){ //also list permissions after content types has loaded this.contentTypeService.getAll().subscribe( response=>(this.contentTypes=response.data.results,this.listPermissions()),//success error=>(this.globalService.displayResponseMessage(error)),//failure ()=>{}//complete );//success,failure,complete } }
morfat/angular-quickstart
src/app/permissions/permission.component.ts
TypeScript
mit
3,259
/* * Copyright (c) 2006-2012 Rogério Liesenfeld * This file is subject to the terms of the MIT license (see LICENSE.txt). */ package mockit.integration.junit4; import org.junit.runner.*; import org.junit.runners.*; @RunWith(Suite.class) @Suite.SuiteClasses({MockDependencyTest.class, UseDependencyTest.class}) public final class DependencyTests {}
borisbrodski/jmockit
main/test/mockit/integration/junit4/DependencyTests.java
Java
mit
366
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Deploying QATrack+ with Linux Apache &amp; PostgreSQL &mdash; qatrackplus 0.3.0-dev documentation</title> <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> <link rel="index" title="Index" href="../../../../genindex.html"/> <link rel="search" title="Search" href="../../../../search.html"/> <link rel="top" title="qatrackplus 0.3.0-dev documentation" href="../../../../index.html"/> <script src="../../../../_static/js/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search"> <a href="../../../../index.html" class="icon icon-home"> qatrackplus </a> <div class="version"> 0.3.0-dev </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <!-- Local TOC --> <div class="local-toc"><ul> <li><a class="reference internal" href="#">Deploying QATrack+ with Linux Apache &amp; PostgreSQL</a><ul> <li><a class="reference internal" href="#installing-git">1. Installing git</a></li> <li><a class="reference internal" href="#checking-out-the-qatrack-source-code">2. Checking out the QATrack+ source code</a></li> <li><a class="reference internal" href="#setting-up-our-python-environment">3. Setting up our python environment</a></li> <li><a class="reference internal" href="#making-sure-everything-is-working-so-far">4. Making sure everything is working so far</a></li> <li><a class="reference internal" href="#installing-apache-mod-wsgi">5. Installing Apache &amp; mod_wsgi</a></li> <li><a class="reference internal" href="#setting-up-a-database">6. Setting up a database</a><ul> <li><a class="reference internal" href="#postgresql">PostgreSQL</a></li> <li><a class="reference internal" href="#mysql">MySQL</a></li> </ul> </li> <li><a class="reference internal" href="#final-config-of-qatrack">7. Final config of QATrack+</a></li> <li><a class="reference internal" href="#final-word">8. Final word</a></li> <li><a class="reference internal" href="#references">9. References</a></li> </ul> </li> </ul> </div> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../../../index.html">qatrackplus</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../../../../index.html">Docs</a> &raquo;</li> <li>Deploying QATrack+ with Linux Apache &amp; PostgreSQL</li> <li class="wy-breadcrumbs-aside"> <a href="../../../../_sources/v/0.2.7/deployment/linux/lapp.rst.txt" rel="nofollow"> View page source</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="deploying-qatrack-with-linux-apache-postgresql"> <h1>Deploying QATrack+ with Linux Apache &amp; PostgreSQL<a class="headerlink" href="#deploying-qatrack-with-linux-apache-postgresql" title="Permalink to this headline">¶</a></h1> <p>This guide is going to walk you through installing QATrack+ on a Linux server with Apache as the web server and PostgreSQL as the database.</p> <p>The steps we will be undertaking are:</p> <ol class="arabic simple"> <li>Installing and configuring git</li> <li>Checkout the latest release of the QATrack+ source code from bitbucket.</li> <li>Setting up our Python environment (including virtualenv)</li> <li>Making sure everything is working up to this point</li> <li>Installing Apache web server and mod_wsgi and then configuring it to serve our QATrack+ site.</li> <li>Installing the PostgreSQL (or MySQL) database server and setting up a database for QATrack+</li> <li>Final configuration of QATrack+</li> </ol> <p>I will be using Ubuntu 12.04 LTS for this guide but steps should be similar on other versions of Ubuntu or other Linux systems.</p> <p>This guide assumes you have at least a basic level of familiarity with Linux and the command line.</p> <div class="section" id="installing-git"> <h2>1. Installing git<a class="headerlink" href="#installing-git" title="Permalink to this headline">¶</a></h2> <p>Git is the version control software that QATrack+ uses. To install git on Ubuntu run the following command:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash randlet@ubuntu:~$ sudo apt-get install git </pre></div> </div> <p>Next setup your git installation:</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="ch">#!bash</span> <span class="n">git</span> <span class="n">config</span> <span class="o">--</span><span class="k">global</span> <span class="n">user</span><span class="o">.</span><span class="n">name</span> <span class="s2">&quot;randlet&quot;</span> <span class="n">git</span> <span class="n">config</span> <span class="o">--</span><span class="k">global</span> <span class="n">user</span><span class="o">.</span><span class="n">email</span> <span class="n">rataylor</span><span class="nd">@toh</span><span class="o">.</span><span class="n">on</span><span class="o">.</span><span class="n">ca</span> </pre></div> </div> </div> <div class="section" id="checking-out-the-qatrack-source-code"> <h2>2. Checking out the QATrack+ source code<a class="headerlink" href="#checking-out-the-qatrack-source-code" title="Permalink to this headline">¶</a></h2> <p>Now that we have git installed we can proceed to grab the latest version of QATrack+. To checkout the code enter the following commands:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash randlet@ubuntu:~$ mkdir ~/web (qatrack)randlet@ubuntu:~$ cd ~/web (qatrack)randlet@ubuntu:~/web$ git clone https://[email protected]/tohccmedphys/qatrackplus.git Cloning into &#39;qatrackplus&#39;... remote: Counting objects: 6897, done. remote: Compressing objects: 100% (2042/2042), done. remote: Total 6897 (delta 4895), reused 6605 (delta 4705) Receiving objects: 100% (6897/6897), 2.07 MiB, done. Resolving deltas: 100% (4895/4895), done. (qatrack)randlet@ubuntu:~/web$ </pre></div> </div> </div> <div class="section" id="setting-up-our-python-environment"> <h2>3. Setting up our python environment<a class="headerlink" href="#setting-up-our-python-environment" title="Permalink to this headline">¶</a></h2> <p>This tutorial is going to make use of <a class="reference external" href="http://pypi.python.org/pypi/virtualenv">virtualenv</a> which allows you to easily manage multiple Python environments on a single server. This is not strictly required but is considered a best practice in the Python world.</p> <p>To install virtualenv:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash randlet@ubuntu:~$ sudo apt-get install python-setuptools randlet@ubuntu:~$ sudo easy_install pip randlet@ubuntu:~$ sudo pip install virtualenv==1.9 </pre></div> </div> <p>Now that we have virtualenv installed we will create a new Python environment for QATrack+.</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash randlet@ubuntu:~$ mkdir ~/venvs randlet@ubuntu:~$ virtualenv ~/venvs/qatrack </pre></div> </div> <p>To activate our new environment:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash randlet@ubuntu:~$ source ~/venvs/qatrack/bin/activate (qatrack)randlet@ubuntu:~$ which python /home/randlet/venvs/qatrack/bin/python (qatrack)randlet@ubuntu:~$ </pre></div> </div> <p>Change back to the location where we checked out the source code:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash randlet@ubuntu:~$ cd ~/web/qatrackplus </pre></div> </div> <p>In that directory there is a directory with text files (requirements/base.txt, requirements/optional.txt) that list the required Python packages for QATrack+. A little prep work is required to get them to install correctly. Enter the following commands to install the preliminary libraries:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash (qatrack)randlet@ubuntu:~/web/qatrackplus$ sudo apt-get install build-essential gfortran (qatrack)randlet@ubuntu:~/web/qatrackplus$ sudo apt-get install python-dev (qatrack)randlet@ubuntu:~/web/qatrackplus$ sudo apt-get install libatlas-dev libatlas-base-dev liblapack-dev (qatrack)randlet@ubuntu:~/web/qatrackplus$ sudo apt-get install libpng12-dev libfreetype6 libfreetype6-dev (qatrack)randlet@ubuntu:~/web/qatrackplus$ sudo apt-get build-dep python-matplotlib </pre></div> </div> <p>After you install all the required libs:</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="ch">#!bash</span> <span class="n">pip</span> <span class="n">install</span> <span class="o">-</span><span class="n">r</span> <span class="n">requirements</span><span class="o">/</span><span class="n">base</span><span class="o">.</span><span class="n">txt</span> <span class="n">pip</span> <span class="n">install</span> <span class="o">-</span><span class="n">r</span> <span class="n">requirements</span><span class="o">/</span><span class="n">optional</span><span class="o">.</span><span class="n">txt</span> </pre></div> </div> </div> <div class="section" id="making-sure-everything-is-working-so-far"> <h2>4. Making sure everything is working so far<a class="headerlink" href="#making-sure-everything-is-working-so-far" title="Permalink to this headline">¶</a></h2> <p>Before we move on to installing a proper web server and database we will pause to make sure everything is working correctly at this point.</p> <p>From the main qatrack directory enter the following commands</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash (qatrack)randlet@ubuntu:~/web/qatrackplus$ mkdir db (qatrack)randlet@ubuntu:~/web/qatrackplus$ python manage.py syncdb </pre></div> </div> <p>When running syncdb you will be asked if you want to create a superuser. Answer yes and then enter a username and password.</p> <p>Once that has finished running enter the following command:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash (qatrack)randlet@ubuntu:~/web/qatrackplus$ python manage.py migrate </pre></div> </div> <p>You should now have temporary sqlite database that can be used to verify our setup has been going well. Next we will start the builtin (for testing purposes) webserver and see if we can access our site/</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash (qatrack)randlet@ubuntu:~/web/qatrackplus$ python manage.py runserver Validating models... 0 errors found Django version 1.4, using settings &#39;qatrack.settings&#39; Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. </pre></div> </div> <p>If you now visit 127.0.0.1:8000 in a browser you should be redirected to a QATrack+ login page.</p> <p>After you have confirmed you can view the site, quit the server by hitting CTRL-C.</p> <blockquote> <div><p>Note: depending on your setup, you may need to modify your firewall and use runserver something like the following:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>(qatrack)randlet@ubuntu:~/web/qatrackplus$ python manage.py runserver MYSERVERNAME:8000 </pre></div> </div> <p>for example, I am using an Amazon EC2 instance for this tutorial, so I had to open port 8000 in the firewall and use the following runserver command:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>(qatrack)randlet@ubuntu:~/web/qatrackplus$ python manage.py runserver ec2-54-242-252-245.compute-1.amazonaws.com:8000 Validating models... 0 errors found Django version 1.4, using settings &#39;qatrack.settings&#39; Development server is running at http://ec2-54-242-252-245.compute-1.amazonaws.com:8000/ </pre></div> </div> </div></blockquote> </div> <div class="section" id="installing-apache-mod-wsgi"> <h2>5. Installing Apache &amp; mod_wsgi<a class="headerlink" href="#installing-apache-mod-wsgi" title="Permalink to this headline">¶</a></h2> <p>The next step to take is to install and configure the Apache web server. Apache and mod_wsgi can be installed with the following commands:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash (qatrack)randlet@ubuntu:~/web/qatrackplus$ sudo apt-get install apache2 libapache2-mod-wsgi </pre></div> </div> <p>Next we can setup Apache to serve our Django site...edit /etc/apache2/httpd.conf so it looks like the following (making sure the paths are correct for your setup).</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash WSGIScriptAlias / /home/randlet/web/qatrackplus/qatrack/wsgi.py WSGIPythonPath / WSGIApplicationGroup %{GLOBAL} WSGIPythonHome /home/randlet/venvs/qatrack &lt;Directory /home/randlet/web/qatrackplus&gt; Order deny,allow Allow from all &lt;/Directory&gt; alias /static /home/randlet/web/qatrackplus/qatrack/static alias /media /home/randlet/web/qatrackplus/qatrack/media If you want to host QATrack+ somewhere other than the root of your server (e.g. you want to host the QATrack+ application at http://myserver/qatrackplus/), you will need to include the following lines in your qatrack/local\_settings.py file :: LOGIN_REDIRECT_URL = &quot;/qatrackplus/qa/unit/&quot; LOGIN_URL = &quot;/qatrackplus/accounts/login/&quot; and set up a couple more rules in your Apache config. A (slightly modified) example provided by Darcy Mason is included below. :: RewriteEngine On # First let anything starting with qadb already pass through RewriteRule ^/qatrackplus(.*)$ /qatrackplus/$1 [PT,L] # Similarly, anything with /static prefix should pass through unchanged RewriteRule ^/static(.*)$ /home/randlet/web/qatrackplus/qatrack/static$1 [PT] RewriteRule ^/media(.*)$ /home/randlet/web/qatrackplus/qatrack/media$1 [PT] # Anything else needs a url prefixed with /qatrackplus/ RewriteRule ^/qa(.*)$ /qatrackplus/qa$1 [PT] #Then the /qatrackplus url is pointed to Django through mod-wsgi: WSGIScriptAlias /qatrackplus /home/randlet/web/qatrackplus/qatrack/wsgi.py WSGIPythonPath /qatrackplus/ WSGIApplicationGroup %{GLOBAL} WSGIPythonHome /home/randlet/venvs/qatrack &lt;Directory /home/randlet/web/qatrackplus/qatrack&gt; &lt;Files wsgi.py&gt; Order deny,allow Allow from all &lt;/Files&gt; &lt;/Directory&gt; alias /static /home/randlet/web/qatrackplus/qatrack/static </pre></div> </div> <p><em>Note I am certainly no Apache expert so I am probably ignoring many Apache/mod_wsgi best practices here ;) If someone wants to make improvements that would be great!</em></p> <p>Now edit the file ~/web/qatrackplus/qatrack/wsgi.py so it looks like the following (again making sure the paths are appropriate for your setup)</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="ch">#!python</span> <span class="sd">&quot;&quot;&quot;</span> <span class="sd">WSGI config for qatrack project.</span> <span class="sd">This module contains the WSGI application used by Django&#39;s development server</span> <span class="sd">and any production WSGI deployments. It should expose a module-level variable</span> <span class="sd">named ``application``. Django&#39;s ``runserver`` and ``runfcgi`` commands discover</span> <span class="sd">this application via the ``WSGI_APPLICATION`` setting.</span> <span class="sd">Usually you will have the standard Django WSGI application here, but it also</span> <span class="sd">might make sense to replace the whole Django WSGI application with a custom one</span> <span class="sd">that later delegates to the Django one. For example, you could introduce WSGI</span> <span class="sd">middleware here, or combine a Django application with an application of another</span> <span class="sd">framework.</span> <span class="sd">&quot;&quot;&quot;</span> <span class="kn">import</span> <span class="nn">os</span> <span class="kn">import</span> <span class="nn">sys</span> <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s1">&#39;/home/randlet/web/qatrackplus&#39;</span><span class="p">)</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="o">.</span><span class="n">setdefault</span><span class="p">(</span><span class="s2">&quot;DJANGO_SETTINGS_MODULE&quot;</span><span class="p">,</span> <span class="s2">&quot;qatrack.settings&quot;</span><span class="p">)</span> <span class="c1"># This application object is used by any WSGI server configured to use this</span> <span class="c1"># file. This includes Django&#39;s development server, if the WSGI_APPLICATION</span> <span class="c1"># setting points here.</span> <span class="kn">from</span> <span class="nn">django.core.wsgi</span> <span class="k">import</span> <span class="n">get_wsgi_application</span> <span class="n">application</span> <span class="o">=</span> <span class="n">get_wsgi_application</span><span class="p">()</span> <span class="c1"># Apply WSGI middleware here.</span> <span class="c1"># from helloworld.wsgi import HelloWorldApplication</span> <span class="c1"># application = HelloWorldApplication(application)</span> </pre></div> </div> <p>Now restart apache:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash (qatrack)randlet@ubuntu:~/web/qatrackplus$ sudo service apache2 restart * Restarting web server apache2 ... waiting .......... ...done. </pre></div> </div> <p>If you visit your site again in the browser you should see the QATrack+ login page (it&#8217;s okay if you see a yellow OperationalError page as well...it just means the path to the temporary database is not correct but Apache is working correctly.)</p> <p>If you get an internal server error or the site doesn&#8217;t appear to load, check the Apache error log files for more information (default location is /var/log/apache2/error.log).</p> </div> <div class="section" id="setting-up-a-database"> <h2>6. Setting up a database<a class="headerlink" href="#setting-up-a-database" title="Permalink to this headline">¶</a></h2> <p>If Apache is working correctly at this point, we can move on and set up a database. The official Django recommendation is PostgreSQL but MySQL will work fine as well. Choose whichever one you are more comfortable with.</p> <div class="section" id="postgresql"> <h3>PostgreSQL<a class="headerlink" href="#postgresql" title="Permalink to this headline">¶</a></h3> <p>Install PostgreSQL and the Python adapter:</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="ch">#!bash</span> <span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">postgresql</span> <span class="n">libpq</span><span class="o">-</span><span class="n">dev</span> <span class="n">pip</span> <span class="n">install</span> <span class="n">psycopg2</span> </pre></div> </div> <p>Now we can create and configure a user and database for QATrack+:</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash (qatrack)randlet@ubuntu:~/web/qatrackplus$ sudo -u postgres psql template1 psql (9.1.7) Type &quot;help&quot; for help. template1=# ALTER USER postgres with encrypted password &#39;your_pg_password&#39;; ALTER ROLE template1=# CREATE DATABASE qatrackdb; CREATE DATABASE template1=# CREATE USER qatrack with PASSWORD &#39;qatrackpass&#39;; CREATE ROLE template1=# GRANT ALL PRIVILEGES ON DATABASE qatrackdb to qatrack; GRANT template1=\q# </pre></div> </div> <p>Now edit /etc/postgresql/9.1/main/pg_hba.conf and scroll down to the bottom and change the two instances of <code class="docutils literal"><span class="pre">peer</span></code> to <cite>.html5`</cite> so it looks like:</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="ch">#!bash</span> <span class="c1"># Database administrative login by Unix domain socket</span> <span class="n">local</span> <span class="nb">all</span> <span class="n">postgres</span> <span class="o">.</span><span class="n">html5</span> <span class="c1"># TYPE DATABASE USER ADDRESS METHOD</span> <span class="c1"># &quot;local&quot; is for Unix domain socket connections only</span> <span class="n">local</span> <span class="nb">all</span> <span class="nb">all</span> <span class="o">.</span><span class="n">html5</span> <span class="c1"># IPv4 local connections:</span> <span class="n">host</span> <span class="nb">all</span> <span class="nb">all</span> <span class="mf">127.0</span><span class="o">.</span><span class="mf">0.1</span><span class="o">/</span><span class="mi">32</span> <span class="o">.</span><span class="n">html5</span> <span class="c1"># IPv6 local connections:</span> <span class="n">host</span> <span class="nb">all</span> <span class="nb">all</span> <span class="p">::</span><span class="mi">1</span><span class="o">/</span><span class="mi">128</span> <span class="o">.</span><span class="n">html5</span> </pre></div> </div> <p>and restart the pg server:</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="ch">#!bash</span> <span class="n">sudo</span> <span class="n">service</span> <span class="n">postgresql</span> <span class="n">restart</span> </pre></div> </div> </div> <div class="section" id="mysql"> <h3>MySQL<a class="headerlink" href="#mysql" title="Permalink to this headline">¶</a></h3> <p>Install MySQL and the Python adapter:</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="ch">#!bash</span> <span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">mysql</span><span class="o">-</span><span class="n">server</span> <span class="n">libmysqlclient</span><span class="o">-</span><span class="n">dev</span> <span class="n">pip</span> <span class="n">install</span> <span class="n">mysql</span><span class="o">-</span><span class="n">python</span> </pre></div> </div> <p>Now we can create and configure a user and database for QATrack+:</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="ch">#!bash</span> <span class="n">mysql</span> <span class="o">-</span><span class="n">u</span> <span class="n">root</span> <span class="o">-</span><span class="n">p</span> </pre></div> </div> <p>and then enter the following commands in the MySQL shell:</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="ch">#!bash</span> <span class="n">CREATE</span> <span class="n">DATABASE</span> <span class="n">qatrackdb</span><span class="p">;</span> <span class="n">GRANT</span> <span class="n">ALL</span> <span class="n">ON</span> <span class="n">qatrackdb</span><span class="o">.*</span> <span class="n">TO</span> <span class="s1">&#39;qatrack&#39;</span><span class="o">@</span><span class="s1">&#39;localhost&#39;</span> <span class="n">IDENTIFIED</span> <span class="n">BY</span> <span class="s1">&#39;qatrackpass&#39;</span><span class="p">;</span> <span class="n">quit</span> </pre></div> </div> </div> </div> <div class="section" id="final-config-of-qatrack"> <h2>7. Final config of QATrack+<a class="headerlink" href="#final-config-of-qatrack" title="Permalink to this headline">¶</a></h2> <p>Next (we&#8217;re almost done, I promise!) we need to tell QATrack+ how to connect to our database.</p> <p>Create a file called local_settings.py in ~/web/qatrackplus/qatrack/ and put the following Python code in it (choose the correct engine - postgreqal_psycopg2 or mysql):</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="ch">#!python</span> <span class="n">DEBUG</span> <span class="o">=</span> <span class="kc">False</span> <span class="n">TEMPLATE_DEBUG</span><span class="o">=</span><span class="kc">False</span> <span class="n">DATABASES</span> <span class="o">=</span> <span class="p">{</span> <span class="s1">&#39;default&#39;</span><span class="p">:</span> <span class="p">{</span> <span class="s1">&#39;ENGINE&#39;</span><span class="p">:</span> <span class="s1">&#39;django.db.backends.postgresql_psycopg2&#39;</span><span class="p">,</span> <span class="c1"># Add &#39;postgresql_psycopg2&#39;, &#39;mysql&#39;, &#39;sqlite3&#39; or &#39;oracle&#39;.</span> <span class="s1">&#39;NAME&#39;</span><span class="p">:</span> <span class="s1">&#39;qatrackdb&#39;</span><span class="p">,</span> <span class="c1"># Or path to database file if using sqlite3.</span> <span class="s1">&#39;USER&#39;</span><span class="p">:</span> <span class="s1">&#39;qatrack&#39;</span><span class="p">,</span> <span class="c1"># Not used with sqlite3.</span> <span class="s1">&#39;PASSWORD&#39;</span><span class="p">:</span> <span class="s1">&#39;qatrackpass&#39;</span><span class="p">,</span> <span class="c1"># Not used with sqlite3.</span> <span class="s1">&#39;HOST&#39;</span><span class="p">:</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> <span class="c1"># Set to empty string for localhost. Not used with sqlite3.</span> <span class="s1">&#39;PORT&#39;</span><span class="p">:</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> <span class="c1"># Set to empty string for default. Not used with sqlite3.</span> <span class="p">}</span> <span class="p">}</span> </pre></div> </div> <p>And then create the tables in your database via sycndb/migrate</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash (qatrack)randlet@ubuntu:~/web/qatrackplus$ python manage.py syncdb (qatrack)randlet@ubuntu:~/web/qatrackplus$ python manage.py migrate (qatrack)randlet@ubuntu:~/web/qatrackplus$ python manage.py loaddata fixtures/defaults/*/* </pre></div> </div> <p>We also need to collect all our static files in a single location for Apache to serve (answer &#8216;yes&#8217; when asked)</p> <div class="highlight-default"><div class="highlight"><pre><span></span>#!bash (qatrack)randlet@ubuntu:~/web/qatrackplus$ python manage.py collectstatic </pre></div> </div> </div> <div class="section" id="final-word"> <h2>8. Final word<a class="headerlink" href="#final-word" title="Permalink to this headline">¶</a></h2> <p>There are a lot of steps getting everything set up so don&#8217;t be discouraged if everything doesn&#8217;t go completely smoothly! If you run into trouble, please get in touch with me on the <a class="reference external" href="https://groups.google.com/forum/?fromgroups#!forum/qatrack">QATrack+ mailing list</a> and I can help you out.</p> <ol class="upperalpha simple" start="18"> <li>Taylor - Feb 2012</li> </ol> </div> <div class="section" id="references"> <h2>9. References<a class="headerlink" href="#references" title="Permalink to this headline">¶</a></h2> <p><a class="reference external" href="http://bailey.st/blog/2012/05/02/ubuntu-django-postgresql-and-nginx-a-rock-solid-web-stack/">http://bailey.st/blog/2012/05/02/ubuntu-django-postgresql-and-nginx-a-rock-solid-web-stack/</a></p> </div> </div> </div> <div class="articleComments"> </div> </div> <footer> <hr/> <div role="contentinfo"> <p> &copy; Copyright 2017, Randle Taylor. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../../../', VERSION:'0.3.0-dev', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt' }; </script> <script type="text/javascript" src="../../../../_static/jquery.js"></script> <script type="text/javascript" src="../../../../_static/underscore.js"></script> <script type="text/javascript" src="../../../../_static/doctools.js"></script> <script type="text/javascript" src="../../../../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>
SimonBiggs/SimonBiggs.github.io
qatrackdemodocs/v/0.2.7/deployment/linux/lapp.html
HTML
mit
30,582
## Rust Guideline lints ## This repository will contain some lints that try to enforce some of the guidelines documented at http://aturon.github.io/. These lints aren't super useful, they are more interesting as learning projects instead of providing useful information. Right now the only lint provided is a lint that warns upon dereferencing within a match expression, as shown here: http://aturon.github.io/features/match.html. I picked this guideline as a simple target for learning the compiler lint system. It's still kinda cool, though! ### Running the example ### This repository is Cargo enabled: ``` git clone https://github.com/swgillespie/rust-guideline-lints.git cd rust-guideline-lints cargo build ``` There's an example in src/main.rs that imports and triggers this lint, which will print upon `cargo build`:. ``` Compiling rust_guideline_lints v0.0.1 (file:/home/sean/Documents/workspace/rust/rust-lints) /home/sean/Documents/workspace/rust/rust-lints/src/main.rs:7:11: 7:16 warning: Dereferencing in a match expression is discouraged, #[warn(match_dereference)] on by default /home/sean/Documents/workspace/rust/rust-lints/src/main.rs:7 match *five { ^~~~~ /home/sean/Documents/workspace/rust/rust-lints/src/main.rs:8:9: 8:18 note: Consider using a 'box' pattern here and all other match arms. /home/sean/Documents/workspace/rust/rust-lints/src/main.rs:8 5 | 6 | 7 => println!("It's 5, 6, or 7!"), ^~~~~~~~~ ```
swgillespie/rust-guideline-lints
README.md
Markdown
mit
1,595
using Treefrog.Extensibility; using Treefrog.Framework.Model; using Treefrog.Plugins.Tiles.Layers; using Treefrog.Presentation; using Treefrog.Presentation.Layers; using Treefrog.Render.Layers; namespace Treefrog.Plugins.Tiles { public static class Registration { // Layer Presenter Creation [LevelLayerPresenterExport(LayerType = typeof(TileLayer), TargetType = typeof(TileLayerPresenter))] public static LevelLayerPresenter CreateTileLayerPresenter1 (Layer layer, ILayerContext context) { return new TileLayerPresenter(context, layer as TileLayer); } [LevelLayerPresenterExport(LayerType = typeof(TileGridLayer), TargetType = typeof(TileGridLayerPresenter))] public static LevelLayerPresenter CreateTileLayerPresenter2 (Layer layer, ILayerContext context) { return new TileGridLayerPresenter(context, layer as TileGridLayer); } [LevelLayerPresenterExport(LayerType = typeof(MultiTileGridLayer), TargetType = typeof(TileGridLayerPresenter))] public static LevelLayerPresenter CreateTileLayerPresenter3 (Layer layer, ILayerContext context) { return new TileGridLayerPresenter(context, layer as TileGridLayer); } // Layer Creation [LayerFromPresenterExport(SourceType = typeof(TileGridLayerPresenter), TargetType = typeof(MultiTileGridLayer))] public static Layer CreateTileLayer (LayerPresenter layer, string name) { return new MultiTileGridLayer(name, (layer as TileGridLayerPresenter).Layer as MultiTileGridLayer); } // Canvas Layer Creation [CanvasLayerExport(LayerType = typeof(TileLayerPresenter), TargetType = typeof(LevelRenderLayer))] public static CanvasLayer CreateTileCanvasLayer1 (LayerPresenter layer) { return new LevelRenderLayer(layer as LevelLayerPresenter); } [CanvasLayerExport(LayerType = typeof(TileSetLayerPresenter), TargetType = typeof(TileSetRenderLayer))] public static CanvasLayer CreateTileCanvasLayer2 (LayerPresenter layer) { return new TileSetRenderLayer(layer as TileSetLayerPresenter); } [CanvasLayerExport(LayerType = typeof(TileGridLayerPresenter), TargetType = typeof(LevelRenderLayer))] public static CanvasLayer CreateTileCanvasLayer3 (LayerPresenter layer) { return new LevelRenderLayer(layer as LevelLayerPresenter); } } }
jaquadro/Treefrog
Treefrog/Plugins/Tile/Registration.cs
C#
mit
2,521
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-character: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.5.3 / mathcomp-character - 1.10.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> mathcomp-character <small> 1.10.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-12 05:26:42 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-12 05:26:42 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.5.3 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.03.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.03.0 Official 4.03.0 release ocaml-config 1 OCaml Switch Configuration # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Mathematical Components &lt;[email protected]&gt;&quot; homepage: &quot;https://math-comp.github.io/&quot; bug-reports: &quot;https://github.com/math-comp/math-comp/issues&quot; dev-repo: &quot;git+https://github.com/math-comp/math-comp.git&quot; license: &quot;CeCILL-B&quot; build: [ make &quot;-C&quot; &quot;mathcomp/character&quot; &quot;-j&quot; &quot;%{jobs}%&quot; ] install: [ make &quot;-C&quot; &quot;mathcomp/character&quot; &quot;install&quot; ] depends: [ &quot;coq-mathcomp-field&quot; { = version } ] tags: [ &quot;keyword:algebra&quot; &quot;keyword:character&quot; &quot;keyword:small scale reflection&quot; &quot;keyword:mathematical components&quot; &quot;keyword:odd order theorem&quot; &quot;logpath:mathcomp.character&quot; ] authors: [ &quot;Jeremy Avigad &lt;&gt;&quot; &quot;Andrea Asperti &lt;&gt;&quot; &quot;Stephane Le Roux &lt;&gt;&quot; &quot;Yves Bertot &lt;&gt;&quot; &quot;Laurence Rideau &lt;&gt;&quot; &quot;Enrico Tassi &lt;&gt;&quot; &quot;Ioana Pasca &lt;&gt;&quot; &quot;Georges Gonthier &lt;&gt;&quot; &quot;Sidi Ould Biha &lt;&gt;&quot; &quot;Cyril Cohen &lt;&gt;&quot; &quot;Francois Garillot &lt;&gt;&quot; &quot;Alexey Solovyev &lt;&gt;&quot; &quot;Russell O&#39;Connor &lt;&gt;&quot; &quot;Laurent Théry &lt;&gt;&quot; &quot;Assia Mahboubi &lt;&gt;&quot; ] synopsis: &quot;Mathematical Components Library on character theory&quot; description:&quot;&quot;&quot; This library contains definitions and theorems about group representations, characters and class functions. &quot;&quot;&quot; url { src: &quot;http://github.com/math-comp/math-comp/archive/mathcomp-1.10.0.tar.gz&quot; checksum: &quot;sha256=3f8a88417f3456da05e2755ea0510c1bd3fd13b13c41e62fbaa3de06be040166&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-mathcomp-character.1.10.0 coq.8.5.3</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.5.3). The following dependencies couldn&#39;t be met: - coq-mathcomp-character -&gt; coq-mathcomp-field = 1.10.0 -&gt; coq-mathcomp-solvable = 1.10.0 -&gt; coq-mathcomp-algebra = 1.10.0 -&gt; coq-mathcomp-fingroup = 1.10.0 -&gt; coq-mathcomp-ssreflect = 1.10.0 -&gt; coq &gt;= 8.7 -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-mathcomp-character.1.10.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.03.0-2.0.5/released/8.5.3/mathcomp-character/1.10.0.html
HTML
mit
7,823