Skip to content

Instantly share code, notes, and snippets.

Avatar
🤠
🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔

Matt Robenolt mattrobenolt

🤠
🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔
View GitHub Profile
View gist:dde4740ac89b9178c899
package main
import (
"fmt"
"log"
"net/http"
"net/url"
"os/exec"
"time"
View gist:de51523cd01760d1a33d
▓█████▄ ██▓ ██████ █████ █ ██ ██████
▒██▀ ██▌▓██▒▒██ ▒ ▒██▓ ██▒ ██ ▓██▒▒██ ▒
░██ █▌▒██▒░ ▓██▄ ▒██▒ ██░▓██ ▒██░░ ▓██▄
░▓█▄ ▌░██░ ▒ ██▒░██ █▀ ░▓▓█ ░██░ ▒ ██▒
░▒████▓ ░██░▒██████▒▒░▒███▒█▄ ▒▒█████▓ ▒██████▒▒
▒▒▓ ▒ ░▓ ▒ ▒▓▒ ▒ ░░░ ▒▒░ ▒ ░▒▓▒ ▒ ▒ ▒ ▒▓▒ ▒ ░
░ ▒ ▒ ▒ ░░ ░▒ ░ ░ ░ ▒░ ░ ░░▒░ ░ ░ ░ ░▒ ░ ░
░ ░ ░ ▒ ░░ ░ ░ ░ ░ ░░░ ░ ░ ░ ░ ░
░ ░ ░ ░ ░ ░
View gist:a7cf273781e684721b59
--- cassandra.orig 2014-08-17 14:45:54.000000000 +0000
+++ cassandra 2014-08-20 01:27:53.000000000 +0000
@@ -38,6 +38,8 @@
exit 3
fi
+export JVM_OPTS
+
# Export JAVA_HOME, if set.
[ -n "$JAVA_HOME" ] && export JAVA_HOME
@mattrobenolt
mattrobenolt / gzippedtext.py
Last active Aug 29, 2015
A GzippedTextField for Django
View gzippedtext.py
import zlib
from django.db import models
from django.utils import six
from django.utils.encoding import force_bytes
__all__ = ('GzippedTextField',)
class GzippedTextField(six.with_metaclass(models.SubfieldBase, models.BinaryField)):
View jsonresponse.py
import re
import json
from django.core.serializers.json import DjangoJSONEncoder
from django.http import HttpResponse, HttpResponseBadRequest
# Reserved words list from http://javascript.about.com/library/blreserved.htm
JAVASCRIPT_RESERVED_WORDS = frozenset((
'abstract', 'as', 'boolean', 'break', 'byte', 'case', 'catch', 'char',
'class', 'continue', 'const', 'debugger', 'default', 'delete', 'do',
View gist:5b07b378349e1b03f2c4
api:
build: .
command: python manage.py runserver 0.0.0.0:80
environment:
DJANGO_SETTINGS_MODULE: local_settings_api_service
ports:
- "80:80"
volumes:
- .:/usr/src
links:
View gist:c14bb235852cf72b66c5
FROM disqus/nginx:python2.7-light
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# First compile numpy by itself so we never have to do this again
COPY requirements/numpy.txt requirements/numpy.txt
RUN pip install --no-cache-dir -r requirements/numpy.txt
# Install dev stuff early becaues they prob don't change
We couldn’t find that file to show.
View gist:874991
$ npm xmas
/\
/ @\
/ i i\
/ i \
/i & 。⸛&
/ i \
/⸮ ⁂⸛ &@⸮。 &
View convert.py
import sys
import simplejson as json
try:
import cPickle as pickle
except ImportError:
import pickle
def main(argv):
try: