This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
express = require 'express' | |
server = express.createServer() | |
server.configure 'development', -> | |
server.set 'listening-port' 8000 | |
server.configure 'production', -> | |
server.set 'listening-port' 80 | |
server.listen server.set 'listening-port' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aardwolf !! | |
aff | |
airproof !! | |
alef !! | |
alif !! | |
aloof !! | |
antidandruff | |
aperitif !! | |
arf !! | |
- babyproof !! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
somefile | |
somefile | |
somefile | |
somefile | |
somefile | |
somefile | |
somefolder | |
somechild | |
somechild | |
somechild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If builds of PostgreSQL 9 are failing and you have version 8.x installed, | |
you may need to remove the previous version first. See: | |
https://github.com/mxcl/homebrew/issues/issue/2510 | |
To build plpython against a specific Python, set PYTHON prior to brewing: | |
PYTHON=/usr/local/bin/python brew install postgresql | |
See: | |
http://www.postgresql.org/docs/9.0/static/install-procedure.html | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
some_view = (req, res, next) -> | |
res.render 'sometemplate.jade', | |
favorite_fruit: ['apples', 'oranges', 'bananas'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from django.utils.text import compress_string | |
from django.utils.cache import patch_vary_headers | |
from django.conf import settings | |
from django import http | |
XS_SHARING_ALLOWED_ORIGINS = getattr(settings, 'XS_SHARING_ALLOWED_ORIGINS', ['*']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
express = require 'express' | |
stylus = require 'stylus' | |
path = require 'path' | |
public_dir = (filename) -> path.join __dirname, '../public', filename or '' | |
get_stylus_options = (server) -> | |
stylus_options = | |
compress: server.env == 'production' | |
debug: server.env != 'production' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PHP (theory, really - this is hundreds of lines of refacatoring) | |
jempe_users | |
user_id | |
blah | |
blha | |
blah | |
jempe_employees | |
user_id | |
blah |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="/scripts/jquery.min.js" /> | |
<script defer src="/scripts/application.js" /> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var obj, $some_object, text; | |
$some_object = jQuery('#something li') | |
text = '' | |
for (obj in $some_object) | |
{ | |
text = text + obj.text(); | |
} |