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
// Setup canvas .. | |
var canvas = document.getElementById('main-canvas'), | |
ctx = canvas.getContext('2d'); | |
// setup lines styles .. | |
ctx.strokeStyle = "#DDD"; | |
ctx.lineWidth = 2; | |
// some variables we'll need .. | |
var drawing = false; |
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
#!/bin/bash | |
# .. | |
# Installation guide: | |
# 1. Paste this code in a file. Let say - in "/home/{user}/bin" and name it - for example - "goto" | |
# 2. In .bash_alias add an alias like so: "alias gt=". /home/{user}/bin/goto". NOTE the dot and the interval after it! | |
# 3. Make sure you've "sourced" the .bash_alias file. (cd ~; source .bash_alias) | |
# 4. Try "gt" anywhere, with or without parameters | |
# .. |