- Moom
- iTerm
- Alfred
- Jitouch: http://bbs.feng.com/read-htm-tid-6810107-page-1.html
- Rime/Squirrel Input: http://rime.im/
- Powerlint font: https://github.com/powerline/fonts/blob/master/DroidSansMono/Droid%20Sans%20Mono%20for%20Powerline.otf
- Clip Menu
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
bind '"\e[A": history-search-backward' | |
bind '"\e[B": history-search-forward' |
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
<!-- /#study-information --> | |
{# <div id="participant-information">#} | |
{# <h3>Participant Information</h3>#} | |
{# <form id="participant-info-form">#} | |
{# <label>Gender</label>#} | |
{# <div class="checkbox">#} | |
{# <label>#} | |
{# <input type="checkbox" name="gender[male]" value="true" data-unchecked-value="false" checked/>Male#} | |
{# </label>#} |
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
$("div.errorlist").remove(); | |
//console.log(response.hasOwnProperty("errors")); | |
if (response.hasOwnProperty("errors")) { | |
//console.log(response["errors"]); | |
$commentInputFormRightDiv = $("li[class='post-item post-comment active'][data-post-id='" + postID + "'] div.row.post-comment-submit div.post-div-right"); | |
for (var key in response["errors"]) { | |
$commentInputFormRightDiv.append($("<div>").html(response["errors"][key]).addClass("errorlist")); | |
} |
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
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
./manage.py createsuperuser |
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
virtualenv --no-site-packages env | |
source env/bin/activate | |
pip install -r requirements.txt | |
python monospace/manage.py syncdb | |
python monospace/manage.py runserver | |
https://github.com/stripe/monospace-django |
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
dd - delete line | |
Ndd - delete the following N lines |
cp source destination
e.g.
cp ~/Desktop/MyFile.rtf ~/Documents
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
Scanner scanner = new Scanner(System.in); | |
System.out.println("Please enter input"); | |
String input = scanner.nextLine(); | |
scanner.close(); |
NewerOlder