Copy the text document :
copy(document.getElementById('content').innerText)
Copy the text document :
copy(document.getElementById('content').innerText)
Kill an application/process on a non-rooted device :
adb shell run-as <package-name> kill <pid>
//To run this example : node memoization.js | |
'use strict' | |
var start, result, end; | |
var fibo = function fibonacci(n) { | |
if (n < 2) { | |
return n; | |
} else { |
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" | |
#Acer 0502 | |
#ASUS 0b05 | |
#Dell 413c | |
#Foxconn 0489 | |
#Fujitsu 04c5 | |
#Fujitsu Toshiba 04c5 | |
#Garmin-Asus 091e | |
#Google 18d1 |
Easily parse an url with JavaScript :
var url = document.createElement('a');
url.href = 'http://www.mydomain.com/path?param=value'
and then we can access every properties of this element : http://www.w3schools.com/jsref/dom_obj_anchor.asp such as :
url.pathname //=>/path