⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
#set up git on project directorygit init | |
git add . | |
git commit -m "Initial commit" | |
#set up remote push | |
git remote add origin [email protected]:mattnewton/app_name.git | |
git push origin master | |
#initial heroku setup | |
#download and install heroku toolbelt |
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
#install xcode | |
#install xcode command line tools (from Xcode preferences) | |
#install osx-gcc-installer | |
#install homebrew | |
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" | |
#install rvm | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
source /Users/matt/.rvm/scripts/rvm | |
rvm requirements | |
brew install libksba |
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
/** | |
* Title box overlap mirror | |
*/ | |
.title { | |
position: absolute; left: 25px; top: 25px; } | |
.content-box { | |
position: relative; left: 50px; top: 50px; |
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/sh | |
PROXY_INTERFACE="USB Ethernet" | |
PROXY_HOST=localhost | |
PROXY_PORT=1080 | |
if [[ $1 == "on" ]]; then | |
sudo networksetup -setsocksfirewallproxy "$PROXY_INTERFACE" $PROXY_HOST $PROXY_PORT | |
echo "SOCKS proxy enabled" |
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 a walk_the_DOM function that visits every | |
// node of the tree in HTML source order, starting | |
// from some given node. It invokes a function, | |
// passing it each node in turn. walk_the_DOM calls | |
// itself to process each of the child nodes. | |
var walk_the_DOM = function walk(node, func) { | |
func(node); | |
node = node.firstChild; | |
while (node) { | |
walk(node, func); |
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
source "http://rubygems.org" | |
gem 'rack-contrib', :git => 'git://github.com/rack/rack-contrib.git' | |
gem 'rack-rewrite' |
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
# $Id$ generated with make-mac-prefixes.pl | |
# Original data comes from http://standards.ieee.org/regauth/oui/oui.txt | |
# These values are known as Organizationally Unique Identifiers (OUIs) | |
# See http://standards.ieee.org/faqs/OUI.html | |
# We have added a few unregistered OUIs at the end. | |
000000 Xerox | |
000001 Xerox | |
000002 Xerox | |
000003 Xerox | |
000004 Xerox |
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 lang="en"> | |
<head> | |
<!-- Le styles --> | |
<link href="../bootstrap/css/bootstrap.css" rel="stylesheet"> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> | |
</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
## {{{ http://code.activestate.com/recipes/436873/ (r2) | |
#!/usr/bin/env python | |
""" | |
loader.py - From a directory name: | |
1: append the directory to the sys.path | |
2: find all modules within that directory | |
3: import all modules within that directory | |
4: filter out built in methods from those modules |
OlderNewer