I hereby claim:
- I am nagyman on github.
- I am nagyman (https://keybase.io/nagyman) on keybase.
- I have a public key ASD0s6T8yscXHLdt7SSC1rtZTtkP9D6FitSlpwZqITNNtwo
To claim this, I am signing this object:
{ | |
"type": "CHECKIN", | |
"name": "Arrival Flight Details", // client facing name | |
"code": "ARRIVAL_FLIGHT_DETAILS", | |
"message": "Arrival flight number, date, and time are required for this product.", // this is really a developer message | |
"internal": false, | |
"details": [ | |
{ | |
"body": "We're missing your flight number", // might be null, so what do we do here? | |
"detail_type": { |
import csv | |
import json | |
from collections import defaultdict | |
with open('trello_export.json', "r") as f: | |
json_data = f.read() | |
data = json.loads(json_data) | |
cards = data['cards'] | |
actions = data['actions'] |
jQuery.facebox([ | |
"<h1>Waitlist Availability Only</h1>", | |
"<p>If you continue this booking, the booking will be placed on a waitlist until", | |
" there is room for all passengers.", | |
"</p>" | |
].join('')); |
def deploy(): | |
env.release = time.strftime('%Y%m%d%H%M%S') | |
upload_tar_from_git() | |
symlink_current_release() | |
restart_webserver() | |
def deploy_version(version): | |
"Specify a specific version to be made live" | |
require('hosts', provided_by=[localhost,webserver]) | |
require('releases') |
#!/usr/bin/env python | |
''' | |
Modified version from: | |
http://stackoverflow.com/questions/298314/find-files-in-git-repo-over-x-megabytes-that-dont-exist-in-head | |
Examples: | |
# Commits bigger than 1MB | |
python git-big.py 1048576 |
from optparse import make_option | |
+from django.db import reset_queries | |
from django.core.exceptions import ImproperlyConfigured | |
from django.core.management.base import BaseCommand | |
from django.core.management.base import CommandError | |
@@ -93,17 +94,28 @@ class Command(BaseCommand): | |
live_objs = live_objs.exclude( | |
pk__in = list(versioned_pk_queryset.values_list("object_id", flat=True).iterator()) | |
) |
[devgapi01.gadventures.internal] out: Traceback (most recent call last): | |
[devgapi01.gadventures.internal] out: File "/var/www/gapi-web/gapi_docs/gext/pouch.py", line 251, in make_rst | |
[devgapi01.gadventures.internal] out: response = self.make_request(uri, method.lower(), accept=accept) | |
[devgapi01.gadventures.internal] out: File "/var/www/gapi-web/gapi_docs/gext/pouch.py", line 134, in make_request | |
[devgapi01.gadventures.internal] out: auth_key = self.gapi_config.PASSTHROUGH_AUTHENTICATION_KEYS[0] | |
[devgapi01.gadventures.internal] out: AttributeError: 'DefaultConfig' object has no attribute 'PASSTHROUGH_AUTHENTICATION_KEYS' |
from trips.models import * | |
import matplotlib.pyplot as plt | |
counts = [] | |
for t in Trip.objects.published(): | |
counts.append(len(t.visited_countries.all())) | |
plt.hist(counts) | |
plt.title("Visited Countries") | |
plt.xlabel("Number of Countries") | |
plt.ylabel("Frequency") |
I hereby claim:
To claim this, I am signing this object:
import os | |
import logging | |
from compressor.filters import CompilerFilter | |
from django.conf import settings | |
logger = logging.getLogger(__name__) | |
class SassMapFilter(CompilerFilter): | |
''' |