I hereby claim:
- I am tswicegood on github.
- I am tswicegood (https://keybase.io/tswicegood) on keybase.
- I have a public key whose fingerprint is 791B 1944 7650 B4A5 F612 20E6 B4DC 8BF7 51C8 7987
To claim this, I am signing this object:
$ traceroute api.dropbox.com | |
traceroute to api.v.dropbox.com (108.160.166.253), 64 hops max, 52 byte packets | |
1 33.sub-66-174-43.myvzw.com (66.174.43.33) 4241.883 ms 2174.343 ms 71.135 ms | |
2 49.sub-69-83-103.myvzw.com (69.83.103.49) 57.548 ms 3588.356 ms 3891.173 ms | |
3 194.sub-69-83-103.myvzw.com (69.83.103.194) 1235.232 ms 76.562 ms 58.914 ms |
I hereby claim:
To claim this, I am signing this object:
import os | |
from os.path import join | |
from blaze.server import Server | |
from bambooclient import Client, autoload | |
def make_app(): | |
basedir = os.environ.get('BAMBOO_BASEDIR', os.getcwd()) | |
data_filename = os.environ.get('BAMBOO_DATAFILE', False) |
This is a port of the React Todo example into CoffeeScript with a little Foundation styling.
A Pen by Travis Swicegood on CodePen.
X.1,X.2 | |
Wall Street bonuses in 2014,28.5 | |
Income of all Americans working full-time at minimum wage in 2014,14 |
public function buildResource($league, $event_key, $test = false) { | |
App::import('Vendor', 'utility'); | |
$utility = new Utility(); | |
$this->league = $utility->getKey($league); | |
// Get the season key, which we can parse from the event_key | |
// i.e l.nba.com-2008-e-11099 | |
$tmp = split('-', $event_key); | |
$this->season_key = $tmp[1]; | |
<?php | |
interface PackageException { } | |
class ConcretePackageException extends Exception implements PackageException { } | |
class MyException extends Exception { } | |
$total_looped = 10000; | |
echo "Throwing three different types of exceptions, ", number_format($total_looped), "\n"; | |
$start = microtime(true); |
class CustomModelManager(models.Manager): | |
_connection = None | |
def get_query_set(self): | |
return QuerySet(self.model, self.create_query()) | |
def create_query(self): | |
return Query(self.model, self.get_connection()) | |
def get_connection(self): |
def feature_kwargs(self, feat): | |
""" | |
Given an OGR Feature, this will return a dictionary of keyword arguments | |
for constructing the mapped model. | |
Note: This is a reimplementation of GeoDjango's LayerMapping.feature_kwargs | |
because they do all of the work inside the method. | |
""" | |
# The keyword arguments for model construction. | |
kwargs = {} |
Just some raw AB output from my quick and dirty Hello World benchmarks against Node.js. | |
I ran it against an /index.html file that only had Hello World in it, along with an | |
/index.php file that had an echo 'Hello World'; in it. Both of those tests were run | |
against Apache2 with mod_php5 using the default deb files from Ubuntu 9.04. | |
The node.js test was run using the example found on http://tinyclouds.org/node/ minus | |
the setTimeout() call. | |
! Last run on index.html | |
Document Path: /index.html |