- Make sure device USB debugging mode turned on (Google around for the latest instructions)
- Install Android SDK - http://developer.android.com/sdk/index.html#download (Follow direction kinda outlined here - http://forum.xda-developers.com/showthread.php?t=1917237 adjust as necessary because these instructions probably will be outdated.)
- Create ~/android
- Unzip the sdk into ~/android
- Make sure tools and platform-tools directory are there, if not install, by running ~/android/adt-bundle-mac/sdk/tools/android.
- Make sure adb and fastboot are installed in ~/android/adt-bundle-mac/sdk/platform-tools/
- Export $PATH to include ~/android/adt-bundle-mac/sdk/platform-tools so we can access adb and platform-tools from anywhere
- Download CWM Touch and place it in ~/android - http://clockworkmod.com/rommanager
This file contains hidden or 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
javascript: var i = 0; while (i<=69) { | |
localStorage.setItem('level_star_'+i,'3'); i++; | |
} | |
window.location.reload(); |
This file contains hidden or 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
(function () { | |
var RealXMLHttpRequest = XMLHttpRequest; | |
var FakeXMLHttpRequest = function () { | |
this._req = new RealXMLHttpRequest(); | |
}; | |
FakeXMLHttpRequest.prototype = { | |
abort: function () { | |
this._req.abort.apply(this._req, arguments); | |
}, | |
getAllResponseHeaders: function () { |
This file contains hidden or 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/zsh | |
# This hook is run after a new virtualenv is activated. | |
echo "Do you want to install ipython & bpython?" | |
select yn in "Yes" "No"; do | |
case $yn in | |
Yes ) | |
pip install ipython bpython; | |
easy_install readline; | |
break;; | |
No ) |
This file contains hidden or 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 | |
""" | |
Install a package from your local pip download cache without having to touch | |
the 'net at all. | |
You'll need to be using a pip download cache; that is, you'll need the | |
following in your ~/.pip/pip.conf: | |
[install] |
This file contains hidden or 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 os | |
upDir = '/Users/sambao21' | |
rootDir = '{0}/ipad_pics'.format(upDir) | |
y = 100 | |
for dirName,subdirList,fileList in os.walk( rootDir ) : | |
print "Found directory:" , dirName | |
x = 0 | |
for fname in fileList: | |
path = dirName + '/' |
This file contains hidden or 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
.icon-heart:before { content: '\2665'; } /* '♥' */ | |
.icon-cog:before { content: '\2699'; } /* '⚙' */ | |
.icon-edit:before { content: '\270d'; } /* '✍' */ | |
.icon-comment:before { content: '\e718'; } /* '' */ | |
.icon-left-open:before { content: '\e75d'; } /* '' */ | |
.icon-right-open:before { content: '\e75e'; } /* '' */ | |
.icon-left-open-big:before { content: '\e765'; } /* '' */ | |
.icon-right-open-big:before { content: '\e766'; } /* '' */ | |
.icon-facebook-rect:before { content: '\f301'; } /* '' */ | |
.icon-twitter-bird:before { content: '\f303'; } /* '' */ |
This file contains hidden or 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
{ | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Railscasts.tmTheme", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
".tags*", |
This file contains hidden or 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
local rvm='%{$fg[green]%}‹$(rvm-prompt i v g)›%{$reset_color%}' | |
local user='%{$fg[cyan]%}%n%{$reset_color%}@%{$fg[magenta]%}%m%{$reset_color%}' | |
local pwd='%{$fg_bold[green]%}%p%{$fg[blue]%}%~ %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}%{$reset_color%}' | |
local time="%{$fg[white]%}%{$fg[yellow]%}%T%{$fg[white]%}%{$reset_color%}" | |
local ruby="%{$fg[white]%}[%{$fg[magenta]%}\$(rvm-prompt i v g)%{$fg[white]%}]%{$reset_color%}" |
OlderNewer