This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
Conventions for this fork:
- done
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
Conventions for this fork:
| function runApplication(){ | |
| setInterval(doGameLoop, 1000 / 30); | |
| } | |
| function doGameLoop(){ | |
| doLogic(); | |
| renderScene(); | |
| } |
| #!/bin/sh | |
| # Build Zsh from sources on Ubuntu. | |
| # From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file. | |
| # Some packages may be missing | |
| sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo | |
| git clone git://git.code.sf.net/p/zsh/code | |
| cd zsh |
| set -e | |
| LOCAL=$HOME/local | |
| mkdir -p $HOME/build | |
| cd $HOME/build | |
| VERSION='1.8.3.1' | |
| wget http://www.kernel.org/pub/software/scm/git/git-$VERSION.tar.gz | |
| tar xzvf git-$VERSION.tar.gz |
This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.
Here are the required steps to create a command:
Create a new Gist with a command.js and command.json file, or simply fork this one.
Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.
Add some metadata to the command.json file:
| var margin = 15; | |
| S.cfga({ | |
| "defaultToCurrentScreen" : true, | |
| "secondsBetweenRepeat" : 0.1, | |
| "checkDefaultsOnLoad" : true, | |
| "focusCheckWidthMax" : 3000 | |
| }); | |
| // Create Operations |