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
<canvas id="canvas" width=600 height=400></canvas> | |
<div id="pad"> | |
<button data-x=0 data-y=-1>⬆️</button> | |
<button data-x=0 data-y=1>⬇️</button> | |
<button data-x=-1 data-y=0>⬅️</button> | |
<button data-x=1 data-y=0>➡️</button> | |
<button data-x=-1 data-y=-1>↖️</button> | |
<button data-x=1 data-y=-1>↗️</button> | |
<button data-x=-1 data-y=1>↙️</button> |
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
[alias] | |
st = status -sb | |
co = checkout | |
br = branch | |
br-merged = branch --merged | |
br-no-merged = branch --no-merged | |
mg = merge | |
ci = commit | |
ds = diff --staged | |
dt = difftool |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/** | |
* core code from http://threejs.org/examples/canvas_geometry_birds.html | |
* edit by lcs | |
* date 2013-07-11 16:45:02 | |
*/ | |
(function($){ | |
if(!$)return; | |
var isSuportCanvas = function(){ var c = document.createElement("canvas") ; return !!(c.getContext && c.getContext("2d")); }; | |
if( !isSuportCanvas() ){return;} |