I hereby claim:
- I am bulv1ne on github.
- I am od1n (https://keybase.io/od1n) on keybase.
- I have a public key whose fingerprint is A4B7 F144 E24C 71B6 6FD3 F0E5 CE54 2774 1A5A 2362
To claim this, I am signing this object:
import re | |
re.compile(r'(?P<size>X{0,2}(S|L)|M)') |
# Local test email server | |
# python -m smtpd -n -c DebuggingServer localhost:1025 | |
EMAIL_HOST = 'localhost' | |
EMAIL_HOST_PASSWORD = '' | |
EMAIL_PORT = 1025 | |
EMAIL_USE_TLS = False |
angular.module('httpCache') | |
.factory('httpCache', function($http, $cacheFactory) { | |
var c = $cacheFactory.get('$http'); | |
return function(url, cache) { | |
if (!cache) { | |
c.remove(url); | |
} | |
return $http({url:url, cache:true}); | |
} |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
import os | |
from flask import Flask, request | |
from werkzeug import secure_filename | |
app = Flask(__name__) | |
app.config['UPLOAD_FOLDER'] = os.environ['STATIC_DIR'] |
from django.db import models | |
from django.utils.timezone import now # for migrations | |
class MyModel(models.Model): | |
field1 = models.CharField(max_length=255) | |
last_modified_by = models.DateTimeField( | |
auto_now=True, default=now, db_index=True) |
{% load bootstrap %} | |
<form enctype="multipart/form-data" method="post" class="form" action=""> | |
{% csrf_token %} | |
{% for hidden in form.hidden_fields %} | |
{{ hidden }} | |
{% endfor %} | |
<div class="row"> |
# Put this in ~/.bashrc or ~/.bash_profile | |
function title() { | |
echo -n -e "\033]0;$1\007"; | |
} | |
# Usage: | |
# title "My title" |
# ls should return only 1 file | |
{ ls -l *DVD*; sleep 1; ls -l *DVD*; } | awk '{ print $5 }' | awk 'NR==2 { now = $1 }; NR==1 { then=$1 }; END { print (now-then)/1024 "kB/s" }' |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define CHICKENS 20 | |
char *chicken[] = { | |
" MM\n" | |
"<' \\___/|\n" | |
" \\_ _/\n" |