Expose env variables.
export PATH := node_modules/.bin:$(PATH)
Keep file lists.
template_source := templates/*.handlebars
template_js := build/templates.js
brew install sl | |
echo "alias ls='sl'" >> .profile | |
. .profile |
<!doctype html> | |
<meta charset=utf-8> | |
<title>requiretest</title> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script> | |
<script> | |
define("A", [], function () { | |
function A () { console.log('A') } | |
return A; | |
}); |
@JsonIgnore | |
private field; | |
@JsonPropety | |
public String getField() {} | |
/* no setter */ |
# grab the latest build | |
wget http://downloads.sourceforge.net/project/rasplex/experimental/rasplex-RPi.arm-9.9.20.tar | |
tar -xvf rasplex-RPi.arm-9.9.20.tar | |
# move into the target directory | |
cd rasplex-RPi.arm-9.9.20/target | |
# create the .update/ folder if you dont already have it | |
ssh pi mkdir .update |
git://github.com/user/project.git#commit-ish | |
git+ssh://user@hostname:project.git#commit-ish | |
git+ssh://user@hostname/project.git#commit-ish | |
git+http://user@hostname/project/blah.git#commit-ish | |
git+https://user@hostname/project/blah.git#commit-ish |
// http://stackoverflow.com/questions/1248081/get-the-browser-viewport-dimensions-with-javascript | |
var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); | |
var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); |
// http://stackoverflow.com/questions/588004/is-floating-point-math-broken | |
// https://en.wikipedia.org/wiki/IEEE_754#Basic_formats | |
// Don't use == | |
0.1 + 0.2 == 0.3 // false | |
0.1 + 0.2 // 0.30000000000000004 | |
var x = 0.2; | |
var y = 0.3; | |
var equal = (Math.abs(x - y) < 0.000001) |
Setup vagrant
vagrant init hashicorp/precise32
Make the vagrant config change (on your local computer, see Vagrantfile
)
vagrant up
vagrant ssh
var n = Number(1); | |
var m = n; | |
n = null; | |
console.log(m); // 1 | |
var o = new Number(1); | |
var p = o; | |
o = null; | |
console.log(p); // {} |