Constructing
// Basic
var timer = new Timer(1000, function () {
console.log("Tick Tac!");
});
// Call the callback imediatelly
LocalStorage = { | |
preffix: "", | |
set: function (key, value, encode) { | |
key = this.preffix + key; | |
this.preffix = ""; | |
if (encode) { | |
key = LocalStorage.encode(key); |
/** | |
* 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', |
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) |
<template> | |
<div class="zoomable"> | |
<div class="wrapper" :class="{ modal }"> | |
<div v-if="modal" class="header"> | |
<button @click="modalClose">Close</button> | |
</div> | |
<div class="content" @click="modal = true" :class="{ dragging: isDragging }"> | |
<div | |
class="container" |