- Backbone.js - http://documentcloud.github.com/backbone/
- Backbone Tutorials - http://backbonetutorials.com/
- Organizing Your Backbone.js Application With Modules - http://weblog.bocoup.com/organizing-your-backbone-js-application-with-modules
- Introducing the Backbone Boilerplate - http://weblog.bocoup.com/introducing-the-backbone-boilerplate
- Backbone patterns - http://ricostacruz.com/backbone-patterns/
- Require.js - http://requirejs.org
- Diaspora's use of backbone - https://github.com/diaspora/diaspora/tree/master/public/javascripts/app
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
require 'formula' | |
class Vim < Formula | |
homepage 'http://www.vim.org/' | |
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2' | |
head 'https://vim.googlecode.com/hg/' | |
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d' | |
version '7.3.294' | |
#depends_on 'libiconv' |
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
%define ver 0.6.6 | |
%define rel 1 | |
%define jobs 2 | |
Name: nodejs | |
Version: %{ver} | |
Release: %{rel} | |
Summary: Node's goal is to provide an easy way to build scalable network programs. | |
Group: Applications/Internet | |
License: Copyright Joyent, Inc. and other Node contributors. |
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
#!/usr/bin/env python | |
from __future__ import with_statement | |
import os | |
import shutil | |
import subprocess | |
import sys | |
import tempfile | |
def system(*args, **kwargs): |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# | |
echo "Hide the dock" |
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
#!/usr/bin/env python | |
""" | |
Nagios plugin to check PostgreSQL 9 streaming replication lag. | |
Requires psycopg2 and nagiosplugin (both installable with pip/easy_install). | |
MIT licensed: | |
Copyright (c) 2010 Jacob Kaplan-Moss. All rights reserved. |
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
#!/bin/bash | |
# ~/.osx — http://mths.be/osx | |
# Ask for the administrator password upfront | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>BackgroundBlur</key> | |
<real>0.0</real> | |
<key>BackgroundColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NGMCAw |
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
#!/usr/bin/env python | |
import argparse | |
import sys | |
MAX_FP = '/proc/sys/dev/raid/speed_limit_max' | |
MIN_FP = '/proc/sys/dev/raid/speed_limit_min' | |
MAX_DEFAULT=200000 | |
MIN_DEFAULT=1000 | |
MAX_TURBO = MAX_DEFAULT * 2 |
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
from ec2 import Instance, SecurityGroup, VPC | |
instances = Instance.objects.all() | |
web0 = Instance.objects.filter(name='web0') | |
# creating instances could be tricky, does creating or saving an instance run it? | |
i = Instance(**kwargs) | |
i.save() | |
i = Instance.objects.create(**kwargs) | |
i, _ = Instance.objects.get_or_create(**kwargs) | |
i.delete() |
OlderNewer