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
| stage.addEventListener(MouseEvent.MOUSE_MOVE, mousemove, false, 0, true); | |
| scene3D.addEventListener(Scene3D.UPDATE_EVENT, update, false, 0, true); | |
| private function mousemove(event:MouseEvent):void | |
| { | |
| if (event.movementX != 0) { | |
| const mouseMoveX:Number = (event.movementX); | |
| spinX += mouseMoveX * 0.035; | |
| } |
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
| // listening to flash stage... | |
| // can't figure out the MouseCollision thing | |
| Main.stage.addEventListener(MouseEvent.MOUSE_MOVE, mousemove, false, 0, true); | |
| // ... | |
| private var tally:Number = 0; | |
| private function mousemove(event:MouseEvent):void |
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
| package | |
| { | |
| import org.spicefactory.parsley.context.ContextBuilder; | |
| import org.spicefactory.parsley.core.context.Context; | |
| public class ParsleyContext | |
| { | |
| public static var context:Context; | |
| public static function init():void |
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
| package | |
| { | |
| public class Model | |
| { | |
| public var test:Array = ["hello", "world"]; | |
| } | |
| public class Player | |
| { | |
| [Inject] |
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
| package utils | |
| import java.security.MessageDigest | |
| class Hash { | |
| static String md5(String s) { | |
| MessageDigest md5 = MessageDigest.getInstance("MD5"); | |
| md5.update(s.getBytes()); | |
| BigInteger hash = new BigInteger(1, md5.digest()); |
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
| def WITHIN_TRADE_PERIOD = minuteFromStart > 5 && minuteFromStart < 15 | |
| def RANGE_IS_SUDDEN = G.RANGE_NOW > 25 && G.RANGE_MIN1 < 15 && G.RANGE_MIN1 < 15 | |
| def PRICE_IS_GOING = price > 70 || price < 30 | |
| if (WITHIN_TRADE_PERIOD) { | |
| println "potential trade..." | |
| if (RANGE_IS_SUDDEN) { |
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
| package utils | |
| import groovy.json.JsonBuilder | |
| import groovy.json.JsonSlurper | |
| class HDD { | |
| static save(Object content, String filePath) { | |
| new File(filePath).write(new JsonBuilder(content).toPrettyString()) | |
| } |
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
| webql | |
| from <url|google|ddg> | |
| show <links|text|html|rss> | |
| where? <condition> | |
| to? <screen|csv|json|xml|rss|table> | |
| from google search "key words here" | |
| open 5 | |
| display links |
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
| keywords | |
| from <url|rss|google|ddg> | |
| select <jqueryStyleSelector> | |
| where <attr.name|value> <contains|!contains|match> <string|regexp> | |
| limit <num> | |
| skip <num> | |
| reverse | |
| shuffle | |
| first |
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
| /// <reference path="phaser.d.ts" /> | |
| declare var require; | |
| var game:Phaser.Game; | |
| var cursors:Phaser.CursorKeys; | |
| var flipperLeft:endice.Flipper; | |
| var flipperRight:endice.Flipper; | |
| var ball:endice.Ball; |