Skip to content

Instantly share code, notes, and snippets.

View dsmith's full-sized avatar

Derek Smith dsmith

View GitHub Profile
[zk: localhost:2181(CONNECTED) 8] get /hbase-all/root-region-server
[email protected],60020,1367114596945
cZxid = 0x20ab2d5
ctime = Sun Apr 28 02:03:34 UTC 2013
mZxid = 0x20ab2d5
mtime = Sun Apr 28 02:03:34 UTC 2013
pZxid = 0x20ab2d5
cversion = 0
dataVersion = 0
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.orm.collections import attribute_mapped_collection
from theleagues import db
from theleagues import mongodb
from theleagues.competitions import constants as COMPETITIONS
from theleagues.mixins import ImportableModel, UniqueModelMixin, APIModelMixin
from theleagues.sports import constants as SPORTS
from theleagues.competitors import constants as COMPETITORS
from theleagues.sports.models import Color, Group, CompetitionCompetitor
FOREIGN KEY(id) REFERENCES player (id), \n\tCHECK (throws IN ((0,), (1,))), \n\tCHECK (bats IN ((0,), (1,)))\n)\n\n'
CREATE TABLE baseball_player (
id INTEGER NOT NULL,
number_bats INTEGER,
throws VARCHAR(1),
bats VARCHAR(1),
number INTEGER,
experience INTEGER,
PRIMARY KEY (id),
@dsmith
dsmith / Makefile
Created December 5, 2013 19:28 — forked from wadey/Makefile
GO
Fuckyourself
class A():
def __init__(self):
self._things = {
'thing_one': 10,
'thing_two': 10,
}
def get_thing(self, key):
return self._things[key]
@dsmith
dsmith / gist:ef94e4c15121fcccfaec
Last active August 29, 2015 14:05
RR Shopping List

Russian River Shopping List

  • Paper plates
  • Plastic bowls
  • Plastic utensils
  • Red solo cups
  • Paper towels
  • Trash bags
  • Marshmallows
  • Graham crackers
/***********************************************************
* Author: Brian G. Smith
* Date Created: 10/09/14
* Last Modification Date: 10/09/14
* Filename: numGuess.cpp
*
* Overview: This is a two player number guessing game. It outputs to the user to enter a secret number,
* and inputs the users secret number into a variable. It then loops and outputs to the user how many guesses they have,
* how many guesses they have left, tells them whether they are too high or low/correct, and changes the range of numbers
* to reflect the effect that the user's newest guess had on the range of valid numbers. The program then tells the second