Skip to content

Instantly share code, notes, and snippets.

View tylerhcarter's full-sized avatar

Tyler H Carter tylerhcarter

View GitHub Profile
Hello Alumni Members of the Aluminum Narwhals,
On January 3rdthe 2015 FRC game will be released, and we would love for you to be a part of it. In fact, we would love for you to be a part of an entire weekend of robotics to kick off the new season.
On Friday, January 2nd we will have our Robotics Winter Potluck. Come hang out to eat food, talk with friends, maybe play some games and just generally have an awesome time. The party will start at (some time) and end at (some time). It will be held at (some address). Please RSVP here (insert link).
On Saturday, we will meet at Canyon Crest Academy at 7:00a to prepare for the release of the new game around 7:30a. After that we will begin to brainstorm ideas and strategies for the better half of the day. Chipotle will cater lunch and we will end around 3:00p. Please select your burrito choice here (insert link).
On Sunday, we will continue this work with mechanism prototyping, building a kit robot, and continuing our strategy discussion. Sunday will run from 1p -
<?php
class My_Gateway implements APP_Instant_Payment_Processor, APP_Recurring_Payment_Processor {
public function process( APP_Instant_Order $order, array $options ) {
// ... processing instructions
}
public function form() {
// ... return form fields
}
<?php
class My_Gateway extends APP_Payment_Gateway {
// Note the new type hinting on the method signature
public function process( APP_Instant_Order $order, array $options ) {
// ... processing instructions
}
public function form() {
// ... return form fields
@tylerhcarter
tylerhcarter / gist:409ae61b21b992583810
Last active August 29, 2015 14:05
Payment Gateway Transition: Instant Gateway
<?php
class My_Gateway implements APP_Instant_Payment_Processor {
public function process() {
// ... processing instructions
}
public function form() {
// ... return form fields
}
@tylerhcarter
tylerhcarter / keybase.md
Last active August 29, 2015 14:05
keybase.md

Keybase proof

I hereby claim:

  • I am chacha on github.
  • I am chacha (https://keybase.io/chacha) on keybase.
  • I have a public key whose fingerprint is 280E 4899 222E 450A B3D7 8E6B 89D5 D385 0A5A AA13

To claim this, I am signing this object:

@tylerhcarter
tylerhcarter / gist:8366865
Created January 11, 2014 04:03
Autonomous Code Syntax Example
move forward 5;
rotate 50;
fire 50;
wait 5;
move {direction} {feet};
rotate {degrees};
fire {percent};
<?php
/**
* Autoloads classes using the SPL library and the directory model given.
* Contains support for namespaces.
*
* @author Tyler(Chacha)
* @package Cha
*/
class Cha_Loader
{
@tylerhcarter
tylerhcarter / gist:977659
Created May 17, 2011 23:30
Basic Expression Workflow
// Get the value before the operator
if((i - 1) < 0){
throw new SyntaxException ("Badly Formed Expression.", tokens);
}
Value numerator = this.engine.evaluate(tokens.get(i - 1), scope);
// Get the value after the operator
if((i + 1) >= tokens.size()){
throw new SyntaxException ("Badly Formed Expression.", tokens);
}