JSConf.eu opening song - JavaScript Will Listen - Bella Morningstar
- Plask - Dean McNamee
- Plask
#if INTERACTIVE | |
#I @"C:\Tools\MongoDB-CSharp\MongoDB.Linq\bin\Debug" | |
#r "MongoDB.Driver.dll" | |
#r "MongoDB.Linq.dll" | |
#r "FSharp.PowerPack.Linq.dll" | |
#r "System.Core.dll" | |
#endif | |
open System | |
open MongoDB.Driver |
#!/bin/bash | |
#http://gist.github.com/gists/315136 | |
SSHAGENT=/usr/bin/ssh-agent | |
SSHAGENTARGS="-s" | |
PARENT_JOB=pstat_master_unittest | |
KEY_PATH=$HOME/policystat/fabric/pstat_dev.key | |
PROJECT_ROOT=/var/www/pstattest.com/ | |
DB_NAME=pstattest |
import commands | |
from fabric.api import * | |
# Globals | |
env.project='EBSSTRIPING' | |
env.user = 'myuser' | |
DEVICES = [ |
virtualenv --no-site-packages . | |
source bin/activate | |
bin/pip install Django psycopg2 django-sentry | |
bin/pip freeze > requirements.txt | |
bin/django-admin.py startproject mysite | |
cat >.gitignore <<EOF | |
bin/ | |
include/ | |
lib/ | |
EOF |
var http = require('http'); | |
function fibonacci(n) { | |
if (n < 2) | |
return 1; | |
else | |
return fibonacci(n-2) + fibonacci(n-1); | |
} | |
http.createServer(function (req, res) { |
import SocketServer | |
import SimpleHTTPServer | |
PORT = 1339 | |
def fibonacci (n): | |
if n < 2: | |
return 1 | |
else: | |
return fibonacci(n - 2) + fibonacci(n - 1) |
from django.conf.urls.defaults import patterns, include, url | |
urlpatterns = patterns('', | |
url(r'^(?P<input>[^/]+)$', 'UppercaseMaker.upper.views.home'), | |
) |
import os | |
TEMPLATE_DIRS = ( | |
os.path.join(os.path.dirname(__file__), 'templates'), | |
) |
from django.shortcuts import render_to_response | |
def home(request, input="No input supplied"): | |
output = input.upper() | |
return render_to_response('home.html', {'output': output}) |