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
#OS junk files | |
[Tt]humbs.db | |
*.DS_Store | |
#Visual Studio files | |
*.[Oo]bj | |
*.user | |
*.aps | |
*.pch | |
*.vspscc |
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
git config --global user.name "John Doe" | |
git config --global user.email johndoe@example.com | |
git config --global core.editor vim | |
git config --global merge.tool vimdiff | |
git config branch.master.remote origin | |
git config branch.master.merge refs/heads/master | |
git config --global core.whitespace cr-at-eol |
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
$('#input_text').on('keyup', function(e){ | |
if (e.keyCode == 13) doTheWork(); | |
} |
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
# Get <rom>.zip (like ICS or what not) | |
# Copy to sdcard | |
> adb push "c:\path\to\file" /sdcard/ | |
from command prompt, type adb reboot fastboot | |
from phone choose wipe -> wipe user data/cache/dvorak | |
from phone return to developer menu -> flash zip menu -> choose zip from sdcard -> pick <rom>.zip | |
# if you get "Main Version if Older" |
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
# Dynamic class | |
# Instantiate with bla=Dyamic(x=1, y=2) | |
# then just set of call like bla.foo = True | |
class Dynamo: | |
__init__ = lambda self, **kw: setattr(self, '__dict__', kw) |
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 os.path import abspath, dirname, basename, join | |
ROOT_PATH = abspath(dirname(__file__)) | |
PROJECT_NAME = basename(ROOT_PATH) | |
DEBUG = False | |
TEMPLATE_DEBUG = DEBUG | |
ADMINS = ( |
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
Stuck on bootloader/white screen/etc | |
download recovery img | |
http://forum.xda-developers.com/showthread.php?t=1339679 | |
If phone is off, turn on with volume-down and power button | |
Get phone to usb flashboot (select fastboot from menu and hit power if it doesn't say it already) | |
Make sure phone is unlocked (http://htcdev.com) |
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
sudo vim /private/etc/hosts |
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
keytool -list -keystore "keystore name" -v |
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
python -m SimpleHTTPServer |
OlderNewer