ctrl+alt+/ - gives you an on screen keyboard guide
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/python | |
| import urllib2 | |
| import sys | |
| f = open('push-tokens') | |
| lines = f.readlines() | |
| f.close() | |
| for line in lines: |
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
| # To diff two folders that should be the same | |
| diff <(ls Images-1/) <(ls Images-2/) |
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
| // Don't do this | |
| - (BOOL)boolForObject:(id)object { | |
| return (BOOL)object; | |
| } | |
| // Do this instead - this is because casting to BOOL just takes | |
| // the 8 least significant bits of an object | |
| - (BOOL)boolForObject:(id)object { | |
| return (object!=nil); | |
| } |
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
| # An alternative slightly fuller color prompt, that will work on any *nix platform | |
| if [ -z "$PS1" ]; then | |
| return | |
| fi | |
| PS1='\h:\W \u\$ ' | |
| # Make bash check its window size after a process completes | |
| shopt -s checkwinsize | |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) |