Entries are sorted by author last name.
- Abelson, Harold
- Structure and Interpretation of Computer Programs
- Adams, Douglas
- The Hitchhiker's Guide to the Galaxy
- Aho, Alfred Vaino
- Compilers: Principles, Techniques, & Tools
| #!/usr/bin/env node | |
| // quick and dirty script for downloading pixiv ugoira animations | |
| // dependencies: node-fetch, 7zip (external) | |
| const fetch = require("node-fetch"); | |
| const util = require("util"); | |
| const fs = require("fs"); | |
| const exec = util.promisify(require("child_process").exec); |
| const pass = (fn, value) => { | |
| fn(value); | |
| return value; | |
| }; | |
| const UP = (point, fn) => pass(fn, [point[0], point[1] + 1]), | |
| DOWN = (point, fn) => pass(fn, [point[0], point[1] - 1]), | |
| LEFT = (point, fn) => pass(fn, [point[0] - 1, point[1]]), | |
| RIGHT = (point, fn) => pass(fn, [point[0] + 1, point[1]]); |
| modid | count | |
|---|---|---|
| mcp | 18574 | |
| FML | 18574 | |
| minecraft | 15632 | |
| forge | 15632 | |
| jei | 12846 | |
| forgelin | 11616 | |
| chisel | 11237 | |
| baubles | 11101 | |
| crafttweakerjei | 10589 |
| 1.18.1 | 26398 | |
|---|---|---|
| 1.18.2 | 19615 | |
| 1.12.2 | 15388 | |
| 1.16.5 | 14855 | |
| Paper 1.18.1 | 13782 | |
| Paper 1.18.2 | 8481 | |
| Spigot 1.18.1 | 7545 | |
| 1.17.1 | 5194 | |
| 1.18 | 3902 | |
| Spigot 1.18.2 | 3252 |
| [s6-init] making user provided files available at /var/run/s6/etc...exited 0. | |
| [s6-init] ensuring user provided files have correct perms...exited 0. | |
| [fix-attrs.d] applying ownership & permissions fixes... | |
| [fix-attrs.d] done. | |
| [cont-init.d] executing container initialization scripts... | |
| [cont-init.d] 01-envfile: executing... | |
| [cont-init.d] 01-envfile: exited 0. | |
| [cont-init.d] 01-migrations: executing... | |
| [migrations] started | |
| [migrations] no migrations found |
| const sharp = require("sharp"); | |
| (async () => { | |
| const img = sharp("test.png"); | |
| const meta = await img.metadata(); | |
| const raw = await img.raw().toBuffer(); | |
| const out = Buffer.alloc(meta.width * meta.height * 3); | |
| for(let x = 0; x < meta.width; x++) { |
| // Simple script I made for use with heatmaps | |
| // color palettes from viridis | |
| const VIRIDIS = [[0.26700401,0.00487433,0.32941519],[0.26851048,0.00960483,0.33542652],[0.26994384,0.01462494,0.34137895],[0.27130489,0.01994186,0.34726862],[0.27259384,0.02556309,0.35309303],[0.27380934,0.03149748,0.35885256],[0.27495242,0.03775181,0.36454323],[0.27602238,0.04416723,0.37016418],[0.2770184,0.05034437,0.37571452],[0.27794143,0.05632444,0.38119074],[0.27879067,0.06214536,0.38659204],[0.2795655,0.06783587,0.39191723],[0.28026658,0.07341724,0.39716349],[0.28089358,0.07890703,0.40232944],[0.28144581,0.0843197,0.40741404],[0.28192358,0.08966622,0.41241521],[0.28232739,0.09495545,0.41733086],[0.28265633,0.10019576,0.42216032],[0.28291049,0.10539345,0.42690202],[0.28309095,0.11055307,0.43155375],[0.28319704,0.11567966,0.43611482],[0.28322882,0.12077701,0.44058404],[0.28318684,0.12584799,0.44496],[0.283072,0.13089477,0.44924127],[0.28288389,0.13592005,0.45342734],[0.28262297,0.14092556,0.45751726],[0.28229037,0.14591233,0.46 |
| // A simple, functional work queue | |
| module.exports = (func, concurrency) => { | |
| const tasks = []; | |
| const callbacks = new Set(); | |
| const getNextTask = () => { | |
| // if there is work available, return it |
| [Unit] | |
| Description=Minecraft Server | |
| After=network.target | |
| [Service] | |
| User=minecraft | |
| Nice=1 | |
| WorkingDirectory=/srv/mc/ | |
| ExecStart=/usr/bin/java -Xms10G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 @libraries/net/minecraftforge/forge/1.18.2-40.1.0/unix_args.txt |