View post-receive
#!/bin/bash
target_branch="gh-pages"
working_tree="/home/meherranjan/aerosailor.com"
while read oldrev newrev refname
do
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then
View js-swap
var a = 100;
var b = 3124783;
//Using XOR-bitwise operator
a = a ^ b; // a = 3124811
b = a ^ b; // b = 100
a = a ^ b; // a = 3124783
//Using a simple arithmetic operators
b = a + (a=b)-b;