As configured in my dotfiles.
start new:
tmux
start new with session name:
| So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear! | |
| Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy. | |
| * Off the top of my head * | |
| 1. Fork their repo on Github | |
| 2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it | |
| git remote add my-fork git@github...my-fork.git |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
| <html> | |
| <head> | |
| <title>HTML5 Canvas Scratch-off Demo</title> | |
| <style type="text/css"> | |
| body { |
| // All navigation that is relative should be passed through the navigate | |
| // method, to be processed by the router. If the link has a `data-bypass` | |
| // attribute, bypass the delegation completely. | |
| $(document).on("click", "a[href]:not([data-bypass])", function(evt) { | |
| // Get the absolute anchor href. | |
| var href = { prop: $(this).prop("href"), attr: $(this).attr("href") }; | |
| // Get the absolute root. | |
| var root = location.protocol + "//" + location.host + Application.root; | |
| // Ensure the root is part of the anchor href, meaning it's relative. |
| """ | |
| jQuery templates use constructs like: | |
| {{if condition}} print something{{/if}} | |
| This, of course, completely screws up Django templates, | |
| because Django thinks {{ and }} mean something. | |
| Wrap {% verbatim %} and {% endverbatim %} around those | |
| blocks of jQuery templates and this will try its best |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| /* | |
| =============================================================================== | |
| A C++ port of a speed-improved simplex noise algorithm for 2D in Java. | |
| Based on example code by Stefan Gustavson (stegu@itn.liu.se). | |
| Optimisations by Peter Eastman (peastman@drizzle.stanford.edu). | |
| Better rank ordering method by Stefan Gustavson in 2012. | |
| C++ port and minor type and algorithm changes by Josh Koch (jdk1337@gmail.com). | |
| This could be speeded up even further, but it's useful as it is. |
| var p1 = { | |
| x: 20, | |
| y: 20 | |
| }; | |
| var p2 = { | |
| x: 40, | |
| y: 40 | |
| }; |
| float heleCirkel = TWO_PI; //tau | |
| void setup() { | |
| size(500,500); | |
| background(0); | |
| smooth(); | |
| } | |
| void draw() { | |
| background(0); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Tournament Bracket Generator</title> | |
| <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
| <script src="http://underscorejs.org/underscore-min.js"></script> | |
| <script> | |
| $(document).on('ready', function() { | |
| var knownBrackets = [2,4,8,16,32], // brackets with "perfect" proportions (full fields, no byes) |