I hereby claim:
- I am zen4ever on github.
- I am zen4ever (https://keybase.io/zen4ever) on keybase.
- I have a public key whose fingerprint is A2E7 B69E AA58 755C A525 B9C7 9963 9DEC 4A73 E6CD
To claim this, I am signing this object:
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
for i in $(find . -name '*.as' -exec file '{}' \; | | |
grep 'with CR line terminators' | | |
sed 's/:.*//g'); do | |
echo $i; | |
perl -pi -e 's/\r/\n/g;' "$i"; | |
done |
(function(){ | |
var url = new String(window.location); | |
window.location = url.replace(".marpasoft", "").replace("imported-", ""); | |
})(); |
import os.path | |
PROJECT_ROOT = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) | |
# Absolute filesystem path to the directory that will hold user-uploaded files. | |
# Example: "/home/media/media.lawrence.com/media/" | |
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'site_media', 'media') | |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a | |
# trailing slash. | |
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/" |
from django import forms | |
TIME_CHOICES = [('', '--------')] | |
for i in range(0, 24): | |
for m in ["00", "30"]: | |
hour = i % 12 | |
if i == 12: | |
hour = 12 | |
TIME_CHOICES.append( | |
("%02d:%s" % (i, m), |
sudo bash < <(curl https://raw.github.com/gist/1737523/puppet-install.sh ) |
AVCaptureVideoDataOutput *videoOutput = [[AVCaptureVideoDataOutput alloc] init]; | |
NSDictionary *formats = [NSDictionary dictionaryWithObjectsAndKeys: | |
@"kCVPixelFormatType_1Monochrome", [NSNumber numberWithInt:kCVPixelFormatType_1Monochrome], | |
@"kCVPixelFormatType_2Indexed", [NSNumber numberWithInt:kCVPixelFormatType_2Indexed], | |
@"kCVPixelFormatType_4Indexed", [NSNumber numberWithInt:kCVPixelFormatType_4Indexed], | |
@"kCVPixelFormatType_8Indexed", [NSNumber numberWithInt:kCVPixelFormatType_8Indexed], | |
@"kCVPixelFormatType_1IndexedGray_WhiteIsZero", [NSNumber numberWithInt:kCVPixelFormatType_1IndexedGray_WhiteIsZero], | |
@"kCVPixelFormatType_2IndexedGray_WhiteIsZero", [NSNumber numberWithInt:kCVPixelFormatType_2IndexedGray_WhiteIsZero], | |
@"kCVPixelFormatType_4IndexedGray_WhiteIsZero", [NSNumber numberWithInt:kCVPixelFormatType_4IndexedGray_WhiteIsZero], |
from django.utils import simplejson as json | |
from piston.decorator import decorator | |
def validate_json(form_class, class_method=True): | |
@decorator | |
def wrap(f, *args, **kwargs): | |
if class_method: | |
request = args[1] |
class SpanWidget(forms.Widget): | |
""" | |
Renders a value wrapped in a <span> tag. | |
Based on Killarny, http://www.djangosnippets.org/snippets/1340/ | |
Modified to place the value in a hidden control, so that it | |
returns a value in the GET/POST response. | |
""" | |
def __init__(self, attrs=None, choices=(), url=False): | |
super(SpanWidget, self).__init__(attrs=attrs) | |
self.url = url |
I hereby claim:
To claim this, I am signing this object: