a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
def start_replication(): | |
""" | |
Begin Postgresql standby | |
""" | |
# Stop pg on the slave machine. | |
with settings(host_string=env.db_slave): | |
run('service postgresql-9.0 stop') | |
# Create the backup on the master machine | |
with settings(host_string=env.db_master): |
from oauth2 import Error | |
from django.utils.translation import ugettext as _ | |
from tastypie.authentication import Authentication | |
from oauth_provider.utils import initialize_server_request, send_oauth_error, get_oauth_request | |
from oauth_provider.consts import OAUTH_PARAMETERS_NAMES | |
from oauth_provider.store import store, InvalidTokenError |
Jeremy | |
Absolutely brilliant | |
both technically | |
and oratorically | |
He wrote CoffeeScript | |
1st place 5k | |
21 min, 3 seconds | |
<7min mile | |
Big picture |
matt_c: | |
* Ellington Story & Section inlines | |
* Redis PubSub + Node + Whitelist = real-time activity on site | |
codysoyland: | |
* Gevent + 0MQ multi-test runner | |
fxdgear: | |
* More improvements on SocialBeer.me + Portal 2 |
// Basic XMPP bot example for HipChat using node.js | |
// To use: | |
// 1. Set config variables | |
// 2. Run `node hipchat_bot.js` | |
// 3. Send a message like "!weather 94085" in the room with the bot | |
var request = require('request'); // github.com/mikeal/request | |
var sys = require('sys'); | |
var util = require('util'); |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
import re, sys | |
to_find = sys.argv[1] | |
def find_closing_paren(string, start): | |
current = start | |
num_open = 1 | |
for c in string[start:]: | |
current += 1 |
import logging | |
from tastypie.authentication import Authentication | |
import oauth2 | |
from oauth_provider.consts import OAUTH_PARAMETERS_NAMES | |
from oauth_provider.store import store | |
from oauth_provider.store import Error as OAuthError | |
from oauth_provider.utils import get_oauth_request | |
from oauth_provider.utils import get_oauth_server |
name := "theNextBigThing" | |
version := "0.1.0" | |
organization := "com.megacorp" | |
scalaVersion := "2.9.0-1" | |
scalacOptions ++= Seq("-deprecation", "-unchecked") |
package main | |
import ( | |
couch "code.google.com/p/couch-go" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"log" | |
"net" | |
"reflect" |