This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function handleMatch( match ) { | |
| // do things with match check if it does what i need | |
| findText( string, match.position, ... ).search().then( handleMatch ); | |
| } | |
| findText( string, offset, ... ).search().then( handleMatch ); | |
| findText( string ).search().then( function( match ) { | |
| match.forEach( function( value ) { | |
| // do stuff with each match | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function findText( callback ) { | |
| // Make promise | |
| var match = Promise( firstPromise ).then( callback ); | |
| promiseArray.push( match ); | |
| // all promises done | |
| return Promise.all( promiseArray ); | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(){var $,Analyze,Blender,Calculate,Caman,CamanParser,Canvas,Convert,Event,Fiber,Filter,IO,Image,Layer,Log,Module,Pixel,Plugin,Renderer,Root,Store,Util,fs,http,moduleKeywords,slice,vignetteFilters,__indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++){if(i in this&&this[i]===item)return i;}return-1;},__slice=[].slice,__hasProp={}.hasOwnProperty,__bind=function(fn,me){return function(){return fn.apply(me,arguments);};},__extends=function(child,parent){for(var key in parent){if(__hasProp.call(parent,key))child[key]=parent[key];}function ctor(){this.constructor=child;}ctor.prototype=parent.prototype;child.prototype=new ctor();child.__super__=parent.prototype;return child;};moduleKeywords=['extended','included'];Module=(function(){function Module(){} | |
| Module["extends"]=function(obj){var key,value,_ref;for(key in obj){value=obj[key];if(__indexOf.call(moduleKeywords,key)<0){this[key]=value;}} | |
| if((_ref=obj.extended)!=null){_ref.apply(this);} | |
| return this;};Module.includes=function(obj){var ke |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define("COOKIE_FILE", "cookie.txt"); | |
| curl_setopt ($ch, CURLOPT_COOKIEJAR, COOKIE_FILE); | |
| curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($ch, CURLOPT_HEADER, true); | |
| curl_Setopt( $ch, CURLOPT_COOKIEFILE, COOKIE_FILE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The jQuery Library is loaded | |
| 15,581,886,792,444 / year | |
| 1,298,490,566,037 / month | |
| 43,283,018,867 / day | |
| 1,803,459,119 / hour | |
| 30,057,651 / minute | |
| 500,960 / second | |
| 501 / millisecond | |
| thats... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var newScript = document.createElement( "script" ); | |
| document.documentElement.className = ""; | |
| newScript.text = "( function() { " + script.innerHTML + " } )();"; | |
| document.head.appendChild( script ).parentNode.removeChild( script ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Running "intern:unitLocal" (intern) task | |
| Listening on 0.0.0.0:9000 | |
| Tunnel started | |
| ‣ Created session chrome on any platform (29a2fb44-dd5e-46fb-97c3-c28574dcb32e) | |
| × chrome on any platform - unit tests - accordion: events - create (0.012s) | |
| AssertionError: Expected 10 assertions, but 0 were run | |
| at Object.baseAssert.verifyAssertions <__intern/lib/interfaces/qunit.js:98:11> | |
| at Test.test <__intern/lib/interfaces/qunit.js:228:16> | |
| at <__intern/lib/Test.js:211:24> | |
| at <__intern/node_modules/dojo/Promise.js:156:41> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function( grunt ) { | |
| "use strict"; | |
| var isConnectTestRunning, target, | |
| serverOptions = {}, | |
| binPath = require( "chromedriver" ).path, | |
| rdefineEnd = /\}\);[^}\w]*$/, | |
| pkg = grunt.file.readJSON( "package.json" ), | |
| seleniumChildProcesses = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grunt.registerTask( "default", [ | |
| "clean", | |
| "requirejs", | |
| "copy", | |
| "jshint:dist", | |
| "jshint:grunt", | |
| "jshint:source", | |
| "jshint:test", | |
| "jscs:grunt", | |
| "jscs:source", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define({ | |
| proxyPort: 9000, | |
| proxyUrl: "http://localhost:9000/", | |
| capabilities: {}, | |
| environments: [ | |
| { browserName: "chrome" }, | |
| { browserName: "internet explorer", version: [ "11", "10" ] }, | |
| { browserName: "firefox", version: "34" } | |
| ], | |
| maxConcurrency: 2, |