Skip to content

Instantly share code, notes, and snippets.

View jonmarkgo's full-sized avatar
🎓
preparing the MLH Fellowship

Jonathan Gottfried jonmarkgo

🎓
preparing the MLH Fellowship
View GitHub Profile
@jonmarkgo
jonmarkgo / gist:985096
Created May 22, 2011 01:55
delete team
{
"player_id": 5,
"access_key": "5456481caaeb7b24fcb2ab920c8acd12ccd9fd0a719bcf468540a78b8bd55d13"
}
{
"access_key": "5456481caaeb7b24fcb2ab920c8acd12ccd9fd0a719bcf468540a78b8bd55d13",
"team_id": 1,
"game_password": "abc123"
}
@jonmarkgo
jonmarkgo / gist:985117
Created May 22, 2011 02:33
join_team respons
{
"player": {
"created_at": "2011-05-22T00:56:35Z",
"updated_at": "2011-05-22T02:31:55Z",
"username": "Jon",
"id": 5,
"direction": 5,
"team_id": 1,
"email": "[email protected]"
}
{
"team": {
"players": [
{
"created_at": "2011-05-22T00:56:35Z",
"updated_at": "2011-05-22T02:31:55Z",
"username": "Jon",
"id": 5,
"team_id": 1,
"direction": 5,
@jonmarkgo
jonmarkgo / gist:985122
Created May 22, 2011 02:38
update game
{
"player_id": 5,
"access_key": "5456481caaeb7b24fcb2ab920c8acd12ccd9fd0a719bcf468540a78b8bd55d13",
"name": "THE GAME",
"owner_id": 2
}
@jonmarkgo
jonmarkgo / gist:985123
Created May 22, 2011 02:40
delete game
{
"player_id": 5,
"access_key": "5456481caaeb7b24fcb2ab920c8acd12ccd9fd0a719bcf468540a78b8bd55d13"
}
{
"game": {
"name": "THE GAME",
"created_at": "2011-05-22T01:17:51Z",
"end_time": null,
"teams": [
{
"name": "Team Jacob",
"created_at": "2011-05-22T01:42:31Z",
"updated_at": "2011-05-22T01:53:11Z",
{
"leader_id": 5,
"access_key": "5456481caaeb7b24fcb2ab920c8acd12ccd9fd0a719bcf468540a78b8bd55d13",
"points": 11
}
@jonmarkgo
jonmarkgo / database.php
Created October 13, 2011 16:04
Twilio SMS Verification Example
<?php
$db_host='dbserver';
$db_name='dbame';
$db_user='dbuser';
$db_passwd='dbpassword';
mysql_connect($db_host, $db_user, $db_passwd)
or die('Could not connect: ' . mysql_error());
mysql_select_db($db_name) or die('Could not select database');
{"flour":"2 cups",
"milk":"35 cups"}