Skip to content

Instantly share code, notes, and snippets.

View dsmith's full-sized avatar

Derek Smith dsmith

View GitHub Profile
/***********************************************************
* 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
@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
class A():
def __init__(self):
self._things = {
'thing_one': 10,
'thing_two': 10,
}
def get_thing(self, key):
return self._things[key]
@dsmith
dsmith / Makefile
Created December 5, 2013 19:28 — forked from wadey/Makefile
GO
Fuckyourself
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),
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
[zk: localhost:2181(CONNECTED) 8] get /hbase-all/root-region-server
12340@e0020localhost.localdomain,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
2013-02-01 01:27:41,511 - ERROR [GBC Durable Worker Thread Thread 19:com.urbanairship.gooeybuttercake.reactor.integration.BroadcastCommandProcessor] - Failure before any pushes could be sent by delivery service, re-queueing with same cursor
2013-02-01 01:27:41,512 - ERROR [GBC Durable Worker Thread Thread 17:com.urbanairship.gooeybuttercake.reactor.integration.BroadcastCommandProcessor] - Failure before any pushes could be sent by delivery service, re-queueing with same cursor
2013-02-01 01:27:41,513 - ERROR [GBC Durable Worker Thread Thread 18:com.urbanairship.gooeybuttercake.reactor.integration.BroadcastCommandProcessor] - Failure before any pushes could be sent by delivery service, re-queueing with same cursor
2013-02-01 01:27:41,514 - ERROR [GBC Durable Worker Thread Thread 19:com.urbanairship.gooeybuttercake.reactor.integration.BroadcastCommandProcessor] - Failure before any pushes could be sent by delivery service, re-queueing with same cursor
(vcs)deploy@app06.prod:~$ deploy type:web status:gatekeeper[localhost] local: host app06
Setting env.ua_env to production
[app01] Executing task 'status'
Checking status gatekeeper on app01
[localhost] local: ssh deploy@app01 sudo -i -u root "/etc/init.d/gatekeeper status"
gatekeeper running (11561)
[app02] Executing task 'status'
Checking status gatekeeper on app02
[localhost] local: ssh deploy@app02 sudo -i -u root "/etc/init.d/gatekeeper status"
gatekeeper running (716)