Skip to content

Instantly share code, notes, and snippets.

@kazgorot
kazgorot / keybindings.json
Last active December 4, 2023 17:05
vs code / rust / bindings and settings
// 3rd party extention: Toggle (Peng Lv)
{
"key": "ctrl-u",
"command": "toggle",
"when": "editorTextFocus",
"args": {
"id": "toogle_inlay_hints",
"value": [
{
"editor.inlayHints.enabled": "on",
# all imports
from IPython.display import Javascript
from google.colab import output
from base64 import b64decode
RECORD = """
const sleep = time => new Promise(resolve => setTimeout(resolve, time))
const b2text = blob => new Promise(resolve => {
const reader = new FileReader()
reader.onloadend = e => resolve(e.srcElement.result)
/*
gcc -o dcraw -O4 dcraw.c -lm -DNODEPS
./dcraw -4 -d -v -T <raw_file_name>
dcraw.c -- Dave Coffin's raw photo decoder
Copyright 1997-2018 by Dave Coffin, dcoffin a cybercom o net
This is a command-line ANSI C program to convert raw photos from
any digital camera on any computer running any operating system.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
bs=$(du -bs . | cut -f1 )
tar -cf - . | tqdm --bytes --total "$bs" --desc 'Processing' | xz -e -T0 | tqdm --bytes --total "$bs" --desc 'Result' --position 1  > out.$(date +%s).xz