To test this,
- setup Vue prototyping tools
yarn global add @vue/cli @vue/cli-service-global
, ornpm install -g @vue/cli @vue/cli-service-global
- run
vue serve TestDarkMode.vue
- open http://localhost:8080/
- profit???
const { createServer } = require('node:http'); | |
const data = Buffer.from( | |
`El rápido zorro marrón salta sobre el perro perezoso. ¡Qué bello día en París! Árbol, cañón, façade.`, | |
'latin1', | |
); | |
const server = createServer((req, res) => { | |
res.setHeader('Content-Type', 'text/html; charset=latin1'); | |
res.end(data); |
$3=2 | |
$10=115 | |
$32=1 | |
$100=800.000 | |
$101=800.000 | |
$102=800.000 | |
$110=1500.000 | |
$111=1500.000 | |
$112=1200.000 | |
$120=300.000 |
import struct | |
import time | |
import board | |
import displayio | |
import rtc | |
import socketpool | |
import terminalio | |
import wifi | |
from adafruit_display_text import label |
const appId = [[PINPOINT_APPLICATION_ID]]; | |
const destination = [[YOUR_PHONE_NUMBER]]; | |
const { Pinpoint } = require('aws-sdk'); | |
const pinpoint = new Pinpoint(); | |
const payloadFn = (appId, destination, message) => { | |
const ApplicationId = appId; | |
const Addresses = {}; |
To test this,
yarn global add @vue/cli @vue/cli-service-global
, or npm install -g @vue/cli @vue/cli-service-global
vue serve TestDarkMode.vue
var exporter = requirejs.s.contexts._.defined["backend/export"] | |
exporter.fetchAllTheData() | |
.fail(e => console.log("error", e)) | |
.done(data => { | |
var link = exporter.getBlobLink(data) | |
document.body.appendChild(link) | |
link.click() | |
}) |
const sharp = require('sharp') | |
const Jimp = require('jimp') | |
const { Suite } = require('benchmark') | |
var suite = new Suite() | |
// add tests | |
suite | |
.add('Sharp', { | |
defer: true, |
"use strict"; | |
const { promisify } = require('util'); | |
const { resolveCname } = require('dns'); | |
const resolveCnameAsync = promisify(resolveCname); | |
let resultCache = null; | |
const deferClearCache = () => setTimeout(() => { resultCache = null }, 1000); | |
const resolve = async () => { |
const co = require('co') | |
const Benchmark = require('benchmark') | |
const suite = new Benchmark.Suite | |
const Generate = () => new Promise(resolve => { | |
// resolve(1) | |
setImmediate(() => resolve(1)) | |
// setTimeout(() => resolve(1), 10) | |
}) |
// This code could use comments, tests, & a million other things.. | |
// but since I did not apply at soundcloud, it doesn't matter | |
const net = require('net') | |
const split = require('split') | |
const PriorityQueue = require('priorityqueuejs') | |
const clients = {} | |
const followers = {} | |
const queue = new PriorityQueue((a, b) => b.sequence - a.sequence) |