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
extern crate minifb; | |
use std::thread; | |
use std::time::Duration; | |
use std::thread::sleep; | |
use minifb::WindowOptions; | |
const WIDTH: usize = 288; | |
const HEIGHT: usize = 160; |
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 r() { | |
$[RANDOM % 2] && { | |
(( ! $# )) && echo "$0 reviewer [cc [cc...]]" || \ | |
echo EDITOR=true review -g -r $1 ${2+-c "${(j.,.)@[2,-1]}"} | |
} || { | |
local EDITOR=true | |
case $# in | |
0) echo "$0 reviewer [cc [cc...]]";; | |
1) review -g -r $1;; | |
*) review -g -r $1 -c ${(j:,:)@[2,-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
function r() { | |
(( ! $# )) && echo "$0 reviewer [cc [cc...]]" || \ | |
echo EDITOR=true review -g -r $1 ${2+-c "${(j.,.)@[2,-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
function r() { | |
if (( $# == 0 )); then | |
echo "$0 reviewer [cc [cc...]]" | |
elif (( $# == 1)); then | |
EDITOR=true review -g -r $1 | |
else | |
ccs=${@:2} | |
EDITOR=true review -g -r $1 -c ${ccs/\ /,} | |
fi | |
} |
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
require "language/go" | |
class Gx < Formula | |
desc "The language-agnostic, universal package manager" | |
homepage "https://github.com/whyrusleeping/gx" | |
url "https://github.com/whyrusleeping/gx.git", | |
:tag => "v0.4.0", | |
:revision => "b82b91b0cf30023c277903ab1ed6b158e80d5d23" | |
head "https://github.com/whyrusleeping/gx.git" |
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
require "language/go" | |
class Gx < Formula | |
desc "The language-agnostic, universal package manager" | |
homepage "https://github.com/whyrusleeping/gx" | |
url "https://github.com/whyrusleeping/gx.git", | |
:tag => "v0.4.0", | |
:revision => "b82b91b0cf30023c277903ab1ed6b158e80d5d23" | |
head "https://github.com/whyrusleeping/gx.git" |
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
go build | |
main.go:15:2: cannot find package "github.com/whyrusleeping/gx/gxutil" in any of: | |
/Users/jedahan/.homebrew/Cellar/go/1.6/libexec/src/github.com/whyrusleeping/gx/gxutil (from $GOROOT) | |
/private/tmp/gx20160410-51262-1kn3phn/src/github.com/whyrusleeping/gx/gxutil (from $GOPATH) | |
make: *** [all] Error 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
require "language/go" | |
class Gx < Formula | |
desc "The language-agnostic, universal package manager" | |
homepage "https://github.com/whyrusleeping/gx" | |
url "https://github.com/whyrusleeping/gx.git", | |
:tag => "v0.4.0", | |
:revision => "b82b91b0cf30023c277903ab1ed6b158e80d5d23" | |
head "https://github.com/whyrusleeping/gx.git" |
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
require "language/go" | |
class Gx < Formula | |
desc "The language-agnostic, universal package manager" | |
homepage "https://github.com/whyrusleeping/gx" | |
url "https://github.com/whyrusleeping/gx.git", | |
:tag => "v0.4.0", | |
:revision => "b82b91b0cf30023c277903ab1ed6b158e80d5d23" | |
head "https://github.com/whyrusleeping/gx.git" |
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
// a simple way to figure out arduino timer settings | |
// | |
// run with | |
// | |
// node --use-strict --harmony_destrucuring timer.js | |
// | |
// calculates the most accurate timers for an arduino uno style board | |
// chances are, it will recommend prescaler of 1, timer2 | |
// contributions welcom | |
// |