code related to parallelization
code related to visualization
// @ts-check | |
/** @import { RolldownOptions, OutputOptions, Plugin } from "rolldown" */ | |
import isolatedDeclarations from "@unplugin/isolated-decl/rolldown" | |
import swc from "unplugin-swc" | |
import * as esbuild from "rollup-plugin-esbuild" | |
const /** @satisfies {OutputOptions} */ output = { | |
chunkFileNames: "[name].js", | |
sourcemap: true, | |
} |
import tweepy, json, time, sys | |
auth = tweepy.OAuth1UserHandler( | |
<api keys here> | |
) | |
api = tweepy.API(auth) | |
d = json.loads(open(sys.argv[1]).read().split("=", 1)[1]) |
// Copyright 2021 Fahmi Akbar Wildana <~drsensor/public-inbox@lists.sr.ht> | |
// SPDX-License-Identifier: FSFAP | |
package utils | |
import ( | |
"path/filepath" | |
"sort" | |
"strings" | |
) |
{ | |
"dependencies": { | |
"canvas-recorder": "*", // record <canvas> then bundle as .zip | |
"cannon-es": "*", // tree-shakable physics engine! (finally😂) | |
}, | |
"devDependencies": { | |
"madge": "*", // visualize your dependencies graph | |
}, | |
} |
{ pkgs ? import <nixpkgs> | |
, lib ? pkgs.lib | |
, desktopEnvironment | |
}: with pkgs; | |
desktopEnvironment { | |
session-manager = emptty; | |
window-manager = [ sway labwc ]; | |
screen-display = { | |
use = kanshi; # autorandr | |
gui = wlay; |
# with sound and file | |
gst-launch-1.0 uridecodebin uri=file:///home/dirk/Videos/Clouds_67_Timelapse.mp4 ! video/x-raw,width=1280,height=720 ! queue ! x264enc threads=0 bitrate=400 tune=zerolatency key-int-max=30 ! queue ! flvmux name=flvmux ! queue ! rtmpsink location=rtmp://live-fra.twitch.tv/app/$APIKEY audiotestsrc ! faac ! flvmux. |
#!bin/sh | |
maim -x $1 \ | |
| convert png:- bmp:- \ | |
| sox -r 48k -c 1 -e u-law -t raw /dev/stdin -t raw /dev/stdout trim 0 100s \ | |
: treble -30 1k \ | |
| convert bmp:- rgb:- \ | |
| i3lock --image /dev/stdin --raw 1920x1080:rgb | |
# Other terms: Glitchart, Databender, Obfuscate Image |
edit_mode = "emacs" | |
use_starship = false | |
rm_always_trash = true | |
history_size = 100000 | |
completion_mode = "circular" | |
disable_table_indexes = false | |
header_align = "l" | |
header_color = "c" | |
header_bold = true | |
pivot_mode = "auto" |