Skip to content

Instantly share code, notes, and snippets.

View etscrivner's full-sized avatar
🦋

Eric Scrivner etscrivner

🦋
View GitHub Profile
2......jump.to.line.number.2048.........................................................
8......print_to_console.my.var.is.prty.lngly.named.but..................................
32.........return.value.of.type.(*integer*).function.main(array.of.arguments):..........
128....var.this.variable.has.some.length.but.is.luckily.longer.and.different.enough.<==:.1
2048...jump.to.line.number.32...........................................................
8192...var.my.variable.is.pretty.longly.named.but.<==:.<<Hello\\.World!\\.newline>>.....
131072.from.current_directory.import.C://usr/local/lib/ericscript0\\\.1/standard_library.print_to_console
def
h
e
l
l
o():
p
r
i
n
======================================================================
ERROR: Should return aggregated daily stats for each child object
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/ge/stats/tests/test_roll_ups.py", line 88, in test_should_return_aggregated_daily_stats_for_each_child
results = rebuild_rollups(self.data_source, date.today())
File "/vagrant/ge/stats/utils.py", line 130, in rebuild_rollups
network_type=1
File "/vagrant/ge/stats/models.py", line 83, in create
network_type=network_type
def test_should_be_able_to_serialize_result(self):
"""Should be able to serialize team json"""
with RequestContext():
response.success(self.teams[0])
/****************************************
* Disassembler for Chip8 binary file format.
*
* Author: Eric Scrivner (eric@shift.com)
*/
import core.exception;
import std.exception;
import std.stdio;
import std.string;
import std.file : file_exists = exists;
/** index.d */
module index;
import std.conv;
import std.datetime;
import vibe.d;
class ListedProduct(object):
def __init__(self, listed_product_tuple):
"""Takes a KeyedTuple and transforms it into a listed product.
:param listed_product_tuple: A KeyedTuple
:type listed_product_tuple: sqlalchemy.KeyedTuple
"""
self.listed_product_tuple
class ApiError(Exception): pass
class User(object):
"""Represents an authenticateable user"""
def __init__(self, email, password):
self.email = email
self.password = password
@etscrivner
etscrivner / localsettings.sh
Last active August 29, 2015 14:02
Sample shell script to set environment variables for twelve-factor application
#!/bin/sh
export MY_APP_NAME=superslice
export MY_APP_AWS_KEY=super-secret
export MY_APP_AWS_SECRET_KEY=super-super-secret
# Finally, call whatever command comes after this
$*
@etscrivner
etscrivner / localsettings-example
Last active August 29, 2015 14:02
Shell command to run simple script with local settings
user@computer:~/app$ ./localsettings.sh bin/app.py --app-arg1 arg1-val --app-arg2
Welcome to superslice
['bin/app.py', '--app-arg1', 'arg1-val', '--app-arg2']