Skip to content

Instantly share code, notes, and snippets.

@gthomas
gthomas / mbahc.md
Created July 20, 2012 17:37
Mind blowing apps in HTML5 and Canvas

Mind Blowing Apps in HTML5 and Canvas

-Overview of the Canvas API -Demos

Canvas API

Canvas

Storm: Distributed and Fault-toleration realtime computing

https://github.com/nathanmarz/storm/

Seems like far more flexible, reliable solution than Celery and the ilk Define topologies that manage jobs, their assignment to workers, aggregation of return values. Highly parallel, reliable etc..

  • Motivation behind storm
  • Intro to Storm
@gthomas
gthomas / gist:3152195
Created July 20, 2012 17:47
Django Doesn't Scale

Django doesn't scale and what you can do about it

Django doesn't scale Frameworks don't scale -- they're general purpose.

Development speed

Frameworks remove initial learning curve -- can get an application started in a day but you don't know what's going on. Productivity falls, and ramps back up.

@gthomas
gthomas / gist:3152230
Created July 20, 2012 17:52
WEb apps with Erlang and Cowboy

Efficient Web Applications with Erlang and Cowboy

The Web Yesterday

Ugly, static, non-interactive.

Today

Tons of dynamic content, messaging, real time API and content for the user.

$(function () {
forge.logging.log("binding");
$(".take-photo").bind("touchend", photo_button_click);
});
function photo_button_click() {
forge.file.getImage({}, function(file){
forge.file.URL(file,
function(url){
$("#image").html("<img src='"+url+"'></img>")
@gthomas
gthomas / gist:3452673
Created August 24, 2012 16:37
Python HMAC md5
#!/usr/bin/env python
from hashlib import md5
trans_5C = "".join(chr(x ^ 0x5c) for x in xrange(256))
trans_36 = "".join(chr(x ^ 0x36) for x in xrange(256))
blocksize = md5().block_size
def hmac_md5(key, msg):
if len(key) > blocksize:
key = md5(key).digest()
key += chr(0) * (blocksize - len(key))
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:wieden-kennedy/coke-superbowl-2013-admin.git
[branch "master"]
remote = origin
@gthomas
gthomas / RTConfNotes.txt
Created October 25, 2012 20:05
RealTimeConf notes
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
disqus used
thoonk, gevent and nginx_http_push to make disqus more "realtime"
https://github.com/NorthIsUp/disqus-realtime-presentation
https://ep2012.europython.eu/conference/talks/making-disqus-realtime
-----
@gthomas
gthomas / data.json
Last active December 11, 2015 22:08
[
["1359482582.265136", 1000],
["1359483116.188611", 1100],
["1359483123.188611", 1150],
["1359483124.188611", 1200],
["1359483125.188611", 1300]
]
Postgres
-18 years old
-Learned a lot of tricks via Oleg and Teodor
-Still has a clean code base (should probably suck after 18 years)
Forecast:
12 crazy features you might have missed
demo
wrap up