I hereby claim:
- I am tipabu on github.
- I am timothyburke (https://keybase.io/timothyburke) on keybase.
- I have a public key ASAvi95OT2fGYzjF915uGqrog-aVFBREh3z2TA7FRwNZugo
To claim this, I am signing this object:
#!/usr/bin/env python | |
from __future__ import unicode_literals | |
import argparse | |
import cmd | |
import hashlib | |
import shlex | |
import socket | |
try: | |
import readline # noqa |
import logging | |
import keystoneauth1.loading | |
import keystoneauth1.session | |
import swiftclient.client | |
use_v1 = True | |
do_preauth = False | |
bad_preauth = False | |
if use_v1: |
[default] | |
access_key = <ec2 credential access> | |
use_https = <defaults to True; set to False if using plain old http://> | |
host_base = <swift endpoint, like "hostname" or "hostname:port"> | |
host_bucket = <swift endpoint, same as above> | |
secret_key = <ec2 credential secret> | |
signature_v2 = True |
I hereby claim:
To claim this, I am signing this object:
from __future__ import division | |
from __future__ import print_function | |
from collections import OrderedDict | |
import json | |
import logging | |
import os | |
import time | |
import requests |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
A Python gibberizer for (swift) locale strings. | |
This will extract all of the strings currently marked for translation, | |
swap some of the ASCII letters (like 'A') for non-ASCII look-alikes (like 'Á'), | |
extend them with some padding characters to test label-widths, and | |
create *.po and *.mo files that may be used by Python's gettext. |
def filter_factory(gc, **lc): | |
def no_range_filter(app): | |
def filter_app(env, start_response): | |
env.pop('HTTP_RANGE', None) | |
return app(env, start_response) | |
return filter_app | |
return no_range_filter |
#!/bin/sh | |
curl http://sanfrancisco.giants.mlb.com/ticketing-client/json/EventTicket.tiksrv \ | |
-s -G -d team_id=137 \ | |
-d venue_id=2395 \ | |
-d site_section=SCHEDULE \ | |
-d begin_date=`date +"%Y%m%d"` | \ | |
jq -r '.events.game | limit(10; .[]) | | |
"\(.game_time_home) \(.away_name_full)" ' |
import java.util.Iterator; | |
import java.util.AbstractQueue; | |
import java.util.NoSuchElementException; | |
public class BalancedOrderStatisticTree<T extends Comparable<T>> extends AbstractQueue<T> { | |
/** | |
* Nodes of the tree. | |
*/ | |
private class Node { | |
/** |