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
/** | |
* 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 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
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 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
-----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- |
OlderNewer