This file contains 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
-----5-----------5---------7-----8-7-8-7------------ | |
-----------------------------------------8---------- | |
---5-----------5---------------------------9-------- | |
-7-----------7-------------------------------------- | |
---------------------------------------------------- | |
-5---5---5---7---7---------8---8---8---7---7-------- | |
-1--- -1--- -2-4- -2--- | |
----- ----- ----- --3-- | |
-1--- -1--- ----- ---4- |
This file contains 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
ip="$(ifconfig | grep -A 1 'en0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' -f 2)" | |
/Applications/Genymotion.app/Contents/MacOS/tools/adb root | |
/Applications/Genymotion.app/Contents/MacOS/tools/adb remount | |
cat /etc/hosts|sed 's/127.0.0.1/'$ip'/' > /tmp/hosts-adb | |
/Applications/Genymotion.app/Contents/MacOS/tools/adb push /tmp/hosts-adb /system/etc/hosts |
This file contains 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
/** | |
* first - the starting values | |
* total - the value you want all values to add to | |
* optimal - the preferred final value of the sequence | |
* | |
* returns false if no path can be found to the answer | |
*/ | |
function pathfinder(first, total, optimal) { | |
var start = first - 1, |
This file contains 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
import Ember from 'ember'; | |
import _ from 'lodash'; | |
export default Ember.Route.extend({ | |
lastTransition: null, | |
readyToTransition: false, | |
transitionend: 'transitionend oTransitionEnd webkitTransitionEnd', | |
animationend: 'animationend', |
This file contains 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 asyncFunction(){ | |
var deferred = Promise.defer(); | |
setTimeout(function(){ | |
console.log('ping'); | |
deferred.resolve(); | |
},3000); | |
return deferred.promise; | |
} |
This file contains 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 duplicate(arr) { | |
return arr.concat(arr); | |
} | |
function add(a, b) { | |
return a + b; | |
} | |
function argToArray(args) { | |
var arr = [], |
This file contains 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 generator(func) { | |
var statefulArg; | |
return function() { | |
statefulArg = statefulArg || arguments[0]; | |
statefulArg = func.apply(this, [statefulArg]); | |
return statefulArg | |
}; |
This file contains 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
ig.module('plugins.bezier.utils') | |
.requires( | |
'impact.impact' | |
) | |
.defines(function(){ | |
BezierUtils = ig.Class.extend({ | |
curvePixel: null, |
This file contains 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 dial = { "2" : { "22" : { "222" : { "2222" : { "22222" : { "222222" : { "bacaba" : true }, "222223" : { "baccae" : true }, "222224" : { "2222243" : { "cabbage" : true }, "2222249" : { "cabbagy" : true }, "bacach" : true }, "222225" : { "caback" : true }, "222226" : { "cabaan" : true }, "222227" : { "2222272" : { "baccara" : true } }, "222228" : { "2222283" : { "abacate" : true, "baccate" : true } }, "222229" : { "abacay" : true, "abbacy" : true }, "abaca" : true, "bacca" : true }, "22223" : { "222233" : { "2222334" : { "Ababdeh" : true } }, "222237" : { "cabber" : true } }, "22224" : { "222242" : { "2222423" : { "Bacchae" : true }, "2222426" : { "Acacian" : true }, "2222427" : { "bacchar" : true }, "Acacia" : true }, "222243" : { "Babbie" : true }, "222244" : { "2222442" : { "Bacchic" : true, "bacchic" : true }, "2222444" : { "bacchii" : true }, "2222446" : { "acaciin" : true } }, "222246" : { "acacin" : true, "cabaho" : true }, "222247" : { "2222478" : { "abacist" : true } }, "222248" : { "2222487" : { " |
This file contains 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
/** | |
* | |
* ManyFilesGrepper.js | |
* Accepts a js file containing a JSON-compliant array of | |
* filenames and looks through each file for comma-separated terms. | |
* The result is a list of files that contain references to | |
* the terms. | |
* | |
* Usage: | |
* >node ManyFilesGrepper.js path/to/list/of/files.js terms,to,match [path/to/file/to/write/to.js] |
NewerOlder