Skip to content

Instantly share code, notes, and snippets.

View jedahan's full-sized avatar
💀
.

Jonathan Dahan jedahan

💀
.
View GitHub Profile
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;
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]};;
function r() {
(( ! $# )) && echo "$0 reviewer [cc [cc...]]" || \
echo EDITOR=true review -g -r $1 ${2+-c "${(j.,.)@[2,-1]}"}
}
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
}
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"
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"
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
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"
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"
// 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
//