This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
localhost:8080 | |
gzip | |
log ../access.log | |
mime .wasm application/wasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pause = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
await pause(400); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// date 11.11.2019 | |
// author jr | |
// purpose parsing of lawyers from https://portal.oa.pt/ website | |
// | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package worktime | |
//17.09.15, 22.02.18 | |
import ( | |
"fmt" | |
"os" | |
"strings" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//jr 12.12.19 | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
final appTitle = 'Drawer Demo'; | |
@override | |
Widget build(BuildContext context) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "module", | |
"date": "2019-12-06T12:20:00.000Z", | |
"name": "demo", | |
"version": "1.0.0", | |
"description": "demo", | |
"home": "D:\\devname\\web\\", | |
"server": "\\\\servername\\d$\\dir\\", | |
"scripts": { | |
"build": "rollup -c", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// date: 17.01.2020, jr | |
// | |
var SEARCH_QUERY = "label:inbox is:unread to:me"; | |
var SEARCH_QUERY_ALL = "label:inbox to:me"; | |
function getEmails_(q) { | |
var email = []; | |
var threads = GmailApp.search(q); | |
for (var i in threads) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const seed = 1; | |
function random() { | |
const x = Math.sin(seed++) * 10000; | |
return x - Math.floor(x); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// go build -ldflags "-s -w" .\mergecsv.go | |
// analyse 2 csv files line by line sequentially via goroutines | |
// 04/2021 | |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jr | |
// parallel versus sequential promises in Javascript | |
// 22.02.2022 | |
const parallel = true; | |
const startTime = performance.now(); | |
console.clear(); | |
const asyncTimeout = (delay, data) => (new Promise(resolve => { setTimeout(() => resolve(delay, data), delay) })).then(d => `Waited ${d} seconds`); | |
const asyncFetch = (url) => fetch(url).then(response => (response.text())).then(text => `Fetched ${url}, and got back ${text}`); | |
const runTask = (spec) => (spec.task === 'wait') ? asyncTimeout(spec.duration) : asyncFetch(spec.url); |