Skip to content

Instantly share code, notes, and snippets.

@Deiru2k
Deiru2k / app.py
Last active August 29, 2015 14:08
Using RethinkDB with tornado
from tornado.gen import coroutine
from tornado.web import RequestHandler
from tornado.web import Application
from tornado.ioloop import IOLoop
import rethinkdb.net as net
import rethinkdb as r
connection = r.connect(host='localhost')
@Deiru2k
Deiru2k / gulpfile.js
Created September 4, 2014 15:50
Gulpfile
/*
gulp clean && gulp build && gulp templates
OH GOD WHY SO JAVASCRIPT
*/
"use strict"
var gulp = require("gulp"),
$ = require("gulp-load-plugins")();
''=~( '(?{' .('`' |'%') .('[' ^'-')
.('`' |'!') .('`' |',') .'"'. '\\$'
.'==' .('[' ^'+') .('`' |'/') .('['
^'+') .'||' .(';' &'=') .(';' &'=')
.';-' .'-'. '\\$' .'=;' .('[' ^'(')
.('[' ^'.') .('`' |'"') .('!' ^'+')
.'_\\{' .'(\\$' .';=('. '\\$=|' ."\|".( '`'^'.'
).(('`')| '/').').' .'\\"'.+( '{'^'['). ('`'|'"') .('`'|'/'
).('['^'/') .('['^'/'). ('`'|',').( '`'|('%')). '\\".\\"'.( '['^('(')).
'\\"'.('['^ '#').'!!--' .'\\$=.\\"' .('{'^'['). ('`'|'/').( '`'|"\&").(