start new:
tmux
start new with session name:
tmux new -s myname
/* | |
String is primitive value, that is a finite ordered sequence of zero or more 16-bit unsigned integer | |
Each integer value in the sequence usually represents a single *16-bit* unit of UTF-16 text. | |
However, ECMAScript does not place any restrictions or requirements on the values except that they must be 16-bit unsigned integers | |
Number is primitive value, corresponding to a *double-precision* *64-bit* binary format IEEE 754 value | |
*/ | |
function sizeof(data) { | |
if (typeof data === 'string') { |
```` | |
//without using [].reverse() | |
function palindrome(string) { | |
var normalized = string.match(/\w*/g).filter(function(value){return value}).join('').toLowerCase(); | |
var length = normalized.length; | |
for( var start = 0;; start < length/2; start ++) { | |
if(normalized[start] != normalized[length -1 -start]) return false; | |
} | |
return true; | |
} |