A very simple local-time only date formatting tool that lives in one file and does the minimum for mvp.
const {format} = require('./dateUtil.js')
let date=Date.now()
let formatStr='www, DD mmmm, YYYY H:I:s.SS'
#!/usr/bin/env python3 | |
""" | |
Convert YouTube subtitles(vtt) to human readable text. | |
This script is designed to be used as a command-line tool, | |
reading from stdin and writing to stdout. | |
Example Usage: | |
yt-dlp --skip-download --sub-langs en --convert-subs vtt -o ~/.tmp.subtitle <video_url> | vtt2txt; cat ~/.tmp.subtitle.en.vtt | vtt2txt | fabric -ps extract_wisdom | |
""" |
/** | |
* Tetris Game | |
* | |
* Features: | |
* - Adjustable board width and height | |
* - Adjustable game speed | |
* - Adjustable game hardness (rate of speed increase) | |
* - Score, speed, and hardness display | |
* - Keyboard controls for moving, rotating, and dropping pieces | |
* |
import fs from 'fs' | |
import path from 'path' | |
import YAML from 'js-yaml' | |
/** | |
* Process an object with references | |
* @param {object} obj - the object to process | |
* @param {string} rootFolder - the folder where the yaml file is located | |
* @returns {object} | |
*/ |
const fs = require('fs') | |
const events = require('events') | |
const readline = require('readline') | |
const readLinesFromFile = async function(file, start, count) { | |
let end = start + count | |
let lines = [] | |
try{ | |
let rl = readline.createInterface({ | |
input: fs.createReadStream(file), |
This function will remove all cookies that are:
/
)const {start, measure, create} = require('./timer.js') | |
const MAX=1000 | |
var seed = Math.random()*1000; | |
function random() { | |
var x = Math.sin(seed++) * 10000; | |
return x - Math.floor(x); | |
} |
const debug=require('./qdebug.js') | |
const log1 = debug('log1') | |
const log2 = debug('log2') | |
const sublog = log1.ext('sublog') | |
log1.info('hello world', {test:Math.random()}) | |
log2.info('hello world', {test:Math.random()}) | |
sublog.info('hello world', {test:Math.random()}) |
# VsCode Local Settings :: The team is too cool to standardise IDE | |
.vscode/ | |
# Temp-Folder ::I am so dumb I need a persistent scratch-pad | |
tmp/ | |
# Dev Scripts :: The team is too advanced for this shit | |
dev/ | |
# Unofficial Docs :: The team is too clever for this shit |
#!/bin/bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" |