- computers:
- asus:
- burst: 40
- normal usage: 25-40
- on but wifi off/screen dimmed: 22
- off: 0.6
- sleeping: 2
- asus:
- charging: 40-85
- michael haneke at sfpl or download:
- The Piano Teacher
- Amour
- Trilogy
- The Castle
- time of the wolf
This file contains hidden or 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
| #N canvas 116 315 450 300 12; | |
| #X obj 48 90 route start stop; | |
| #X obj 82 170 dac~; | |
| #X obj 39 119 noise~; | |
| #X obj 82 143 *~ 0; | |
| #X msg 134 118 0, f 1; | |
| #X msg 90 117 0.5; | |
| #X obj 221 103 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 | |
| -1 -1; | |
| #X text 160 42 0 for tcp \, see [help]; |
This file contains hidden or 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
| # https://arxiv.org/pdf/2110.01111.pdf | |
| def exchange_sort(A): | |
| for i in range(len(A)): | |
| for j in range(i + 1, len(A)): | |
| if A[i] > A[j]: | |
| A[i], A[j] = A[j], A[i] | |
| def exchange_sort_improved(A): | |
| for i in range(1, len(A)): |
This is an unorganized dump of resources I've looked at for ffmpeg.
ffmpeg -i ./example_image/outputfinal.gif -i ./example_image/qrborder.gif -filter_complex "fps=24.999999999999996,overlay=0:0,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" D:/webbsites/seapad/adapter/finaloutput.gif
ffmpeg -i initialimage.gif -filter:v "setpts=(newdurationinMSeconds / initialDuration)*PTS" out.gif
- https://stackoverflow.com/questions/40083041/pass-array-to-c-function-with-emscripten
- https://emscripten.ru/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html
- http://41j.com/blog/2014/11/calling-c-javascript-emscripten-minimal-example/
- I wrote some code here for moving strings back and forth:
- https://medium.com/front-end-weekly/webassembly-part-3-different-ways-to-call-the-exported-function-in-webassembly-194830bad873
- https://web.dev/drawing-to-canvas-in-emscripten/
- Shrinking code size: https://hacks.mozilla.org/2018/01/shrinking-webassembly-and-javascript-code-sizes-in-emscripten/
This file contains hidden or 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
| // emcc -s USE_SDL=2 index.c -o index.html | |
| // For images, see https://lyceum-allotments.github.io/2016/06/emscripten-and-sdl2-tutorial-part-4-look-owl/ | |
| // See also https://github.com/paked/sdl2-cmake-emscripten/blob/master/src/main.cpp | |
| #include <emscripten.h> | |
| #include <SDL2/SDL.h> | |
| SDL_Surface *screen; | |
| SDL_Window *window; | |
| SDL_Renderer *renderer; |
- https://en.wikipedia.org/wiki/Framework_Computer
- https://mntre.com/media/reform_md/2020-05-08-the-much-more-personal-computer.html
- https://www.raspberrypi.com/products/raspberry-pi-400/
- coding without a laptop:
- small computers (i had a list of these somewhere...)
- GPD pocket
This file contains hidden or 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
| class TicTacToe { | |
| constructor() { | |
| this.x = 0; // 0b0xxx0xxx0xxx | |
| this.o = 0; // 0b0ooo0ooo0ooo | |
| this.str = new Array(9).fill(0).map((e, i) => i); | |
| this.ply = 0; | |
| } | |
| copy() { | |
| const ttt = new TicTacToe(); |
This file contains hidden or 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
| // This script programmatically adjusts tags on Codewars kata | |
| // list of untagged kata: https://www.codewars.com/kata/search?untagged | |
| const puppeteer = require("puppeteer"); // ^20.2.0 | |
| let browser; | |
| (async () => { | |
| //////////////////////////////////////////////////////////////////// | |
| // SETUP STEP 1: Set headless: false temporarily and log in manually. |