Skip to content

Instantly share code, notes, and snippets.

View postnati's full-sized avatar

Greg Pattison postnati

View GitHub Profile
package com.bluemedora;
public class Main {
public static void main(String[] args) {
/* -------------------------------------------------------------------------------------------------------------
* The Game
* A single grand prize is behind Door A, B, or C. The other two doors have a goat behind them.
*
* 1 - Host randomly puts a grand prize behind a single door and a goat behind the other two doors.
* 2 - Contestant picks door A, B, or C
@TeleOp(name="KickoffAutonomous")
public class KickoffAutonomous extends OpMode {
DcMotor left1, left2, right1, right2;
ElaspedTime timer = new ElapsedTime();
@Override
public void init() {
left1 = hardwareMap.dcMotor.get("left1");
left2 = hardwareMap.dcMotor.get("left2");
right1 = hardwareMap.dcMotor.get("right1");
@TeleOp(name="KickoffTeleop!")
public class KickoffTeleop extends OpMode {
DcMotor left1, left2, right1, right2;
@Override
public void init() {
left1 = hardwareMap.dcMotor.get("left1");
left2 = hardwareMap.dcMotor.get("left2");
right1 = hardwareMap.dcMotor.get("right1");
right2 = hardwareMap.dcMotor.get("right2");
@postnati
postnati / gist:1347561
Created November 8, 2011 11:39
.powconfig
export POW_EXT_DOMAINS=gpat.atomicobject.localnet
export POW_TIMEOUT=28800
@postnati
postnati / gist:1347554
Created November 8, 2011 11:35
aliases for pow
alias al="tail -f log/development.log"
alias restart="touch tmp/restart.txt"
@postnati
postnati / gist:1347548
Created November 8, 2011 11:32
.pow directory tree structure
└── .pow
├── default -> /Users/greg/git/ddot/ddot
├── ddot -> /Users/greg/git/ddot/ddot
├── aotools -> /Users/greg/git/aotools
└── kidtelligent -> /Users/greg/git/kidtelligent
@postnati
postnati / gist:1157872
Created August 19, 2011 20:07
LTIB packages.lkc
config PKG_RUBY
depends CAP_HAS_MMU
bool "ruby"
help
An interpreter of object-oriented scripting language
@postnati
postnati / gist:1075638
Created July 11, 2011 10:05
PhoneGap app.rb
require 'sinatra'
set :public, File.dirname(__FILE__) + '/www'
@postnati
postnati / gist:1075635
Created July 11, 2011 10:03
PhoneGap config.ru
$LOAD_PATH << File.expand_path(File.dirname(__FILE__))
require 'app'
run Sinatra::Application
@postnati
postnati / gist:1075624
Created July 11, 2011 09:51
PhoneGap Watchr
watch /src\/.*\.haml/ do |md| `thor convert:haml` end
watch /src\/.*\.rb/ do |md| `thor convert:haml` end
watch /src\/.*\.scss/ do |md| `thor convert:sass` end
watch /src\/.*\.sass/ do |md| `thor convert:sass` end
watch /src\/.*\.coffee/ do |md| `thor convert:coffee` end