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 _ = require("lodash"); | |
| var harvestController = require("harvester"); | |
| var buildController = require("builder"); | |
| var guardController = require("guard"); | |
| var healerController = require("healer"); | |
| var spawnController = require("spawner"); | |
| var data = require("data"); | |
| // control creeps |
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
| // tested with the PWB-16205b | |
| // manual for the display: http://users.ece.utexas.edu/~valvano/Datasheets/LCDOptrex.pdf | |
| int _rs = 12; | |
| int _enable = 11; | |
| int _d4 = 2; | |
| int _d5 = 3; | |
| int _d6 = 4; | |
| int _d7 = 5; |
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
| Camera2D cam; | |
| Player player; | |
| ArrayList<PVector> backgroundItems = new ArrayList<PVector>(); | |
| void setup() { | |
| size(500, 500); | |
| cam = new Camera2D(0, 0); | |
| player = new Player(width/2, height/2); | |
| for (int i = 0; i < 100; i++) { | |
| backgroundItems.add(new PVector(random(-width, width*2), random(-height, height*2))); |
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
| alias github='open `git remote show origin | grep Fetch | sed -e '"'"'s/Fetch URL: //'"'"' -e '"'"'s/\.git//'"'"'`' |
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
| set-alias subl "C:\Program Files\Sublime Text 3\subl" | |
| set-alias touch new-item | |
| set-alias o explorer | |
| set-alias ghub Github | |
| set-alias gh Github | |
| git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold white)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all" | |
| git config --global alias.co checkout | |
| git config --global alias.di diff | |
| git config --global alias.br branch | |
| git config --global alias.ci commit |
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
| [RPBroadcastActivityViewController loadBroadcastActivityViewControllerWithHandler:^(RPBroadcastActivityViewController *broadcastActivityViewController, NSError *error) { | |
| broadcastActivityViewController.delegate = self; | |
| if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { | |
| broadcastActivityViewController.modalPresentationStyle = UIModalPresentationPopover; | |
| broadcastActivityViewController.popoverPresentationController.sourceRect = _broadcastButton.frame; | |
| broadcastActivityViewController.popoverPresentationController.sourceView = _broadcastButton; | |
| } |
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
| using System; | |
| namespace JME.Option | |
| { | |
| public class Maybe<T> | |
| { | |
| private readonly T _t; | |
| private readonly bool _isSome; | |
| public Maybe(T t) |
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
| import Data.Maybe | |
| import Data.List | |
| import Data.Bits (bit, (.&.)) | |
| import Data.Map (fromList, (!)) | |
| import Control.Monad | |
| import Graphics.Gloss | |
| data Cell = Alive | Dead deriving (Eq, Ord) | |
| instance Show Cell where |
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
| using System.Collections.Generic; | |
| using UnityEngine; | |
| /// <summary> | |
| /// Encapsulates a Catmull Rom spline path | |
| /// </summary> | |
| /// todo: consider implementing the Centripedal Catmull Rom variation | |
| public class CatmullRom2D | |
| { |
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
| { | |
| "type": "object", | |
| "properties": { | |
| "title": { | |
| "type": "string" | |
| }, | |
| "description": { | |
| "type": "string" | |
| }, | |
| "weight": { |
OlderNewer