Constructing
// Basic
var timer = new Timer(1000, function () {
console.log("Tick Tac!");
});
// Call the callback imediatelly
function hexdump (data: Uint8Array, bytesPerLine = 16): string { | |
const result: string[] = [] | |
for (let i = 0; i < data.length; i += bytesPerLine) { | |
const chunk = data.slice(i, i + bytesPerLine) | |
const address = i.toString(16) | |
.padStart(8, '0') | |
const hex = Array.from(chunk, byte => byte.toString(16) |
/** | |
* List of all SSHFS options available in the manual | |
* The manual reference can be found here: | |
* https://linux.die.net/man/1/sshfs | |
*/ | |
const sshfsOptions = [ | |
{ | |
name: 'reconnect', | |
type: 'bool', |
LocalStorage = { | |
preffix: "", | |
set: function (key, value, encode) { | |
key = this.preffix + key; | |
this.preffix = ""; | |
if (encode) { | |
key = LocalStorage.encode(key); |