- Learn by doing
- Take away a sound understanding of new concepts learned at the end of each activity
- Transform knowledge into intuition
- Share your learnings
- Experiment to avoid/overcome procrastination
- Go further, Carpe noctem
π
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
| /* | |
| * Copyright (c) 2022 Karsten Schmidt | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | |
| * |
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
| import { int, parseCSVSimple } from "@thi.ng/csv"; | |
| import { readText } from "@thi.ng/file-io"; | |
| import { pickRandom } from "@thi.ng/random"; | |
| import { split } from "@thi.ng/strings"; | |
| import { | |
| comp, | |
| distinct, | |
| mapcat, | |
| push, | |
| repeat, |
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
| import { suite } from "@thi.ng/bench"; | |
| const w = 640; | |
| const h = 480; | |
| const idata = new ImageData(w, h); | |
| // exposed u8clampedarray | |
| const u8 = idata.data; | |
| // rewrap same memory as u32 | |
| const u32 = new Uint32Array(u8.buffer); |
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
| #!/bin/sh | |
| zig build-lib -O ReleaseSmall -target wasm32-freestanding -dynamic --strip \ | |
| --pkg-begin wasmapi ../../node_modules/@thi.ng/wasm-api/include/wasmapi.zig --pkg-end \ | |
| --pkg-begin dom ../../node_modules/@thi.ng/wasm-api-dom/include/dom.zig --pkg-end \ | |
| src/main.zig | |
| # optional post processing & optimization | |
| wasm-opt main.wasm -o main.wasm -O3 |
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
| import { SYSTEM } from "@thi.ng/random"; | |
| import { blitMask, canvas, canvasFromText, formatCanvas, hline } from "@thi.ng/text-canvas"; | |
| // overlay text canvas | |
| const logo = canvasFromText([ | |
| "########### #### #### # #######", | |
| "######### βββ ## βββ ## βββ ββββββ ββββββ ######", | |
| "######## βββββββββ βββββββββ βββββββββ ββββ ββββ #######", | |
| "####### ββββ ββββ ββββ ββββ ββββ ββββ ββββ ββββ #######", | |
| "####### ββββ ββββ ββββ ββββ ββββ ββββ ββββ ββββ #######", |
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
| import { equiv } from "@thi.ng/equiv"; | |
| import { encode, decode } from "./pack-intervals.js"; | |
| // example source array (will be compressed into just 7 bytes) | |
| const src = [ | |
| 1, 2, 3, 4, | |
| 6, 7, | |
| 9, 10, 11, 12, 13, 14, | |
| 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 | |
| ]; |
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
| import { float, parseCSVSimpleFromString } from "@thi.ng/csv"; | |
| import { readText } from "@thi.ng/file-io"; | |
| import { weightedRandomKey } from "@thi.ng/random"; | |
| import { | |
| assocObj, | |
| keys, | |
| map, | |
| normFrequenciesAuto, | |
| repeatedly, | |
| transduce, |
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
| I am attesting that this GitHub handle postspectacular is linked to the Tezos account tz1d4ThofujwwaWvxDQHF7VyJfaeR2ay3jhf for tzprofiles | |
| sig:edsigtzC6ZGMWGVC7jWZBBe26iNdewHxc9oxJFq4b2mXo3nzovaoDW5b3V9wP6rVaQfDLVT7TS3vdBQiqMZaqsyxAbqDH1onUPP |
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
| [["adapt-dpi/src/index.ts","adjacency/src/bfs.ts","adjacency/src/binary.ts","adjacency/src/dfs.ts","adjacency/src/disjoint-set.ts","adjacency/src/mst.ts","adjacency/src/sparse.ts","api/src/api/assoc.ts","api/src/api/bind.ts","api/src/api/buffered.ts","api/src/api/clear.ts","api/src/api/compare.ts","api/src/api/contains.ts","api/src/api/copy.ts","api/src/api/deref.ts","api/src/api/dissoc.ts","api/src/api/enable.ts","api/src/api/equiv.ts","api/src/api/event.ts","api/src/api/fn.ts","api/src/api/get.ts","api/src/api/hash.ts","api/src/api/id.ts","api/src/api/indexed.ts","api/src/api/into.ts","api/src/api/keyval.ts","api/src/api/length.ts","api/src/api/meta.ts","api/src/api/object.ts","api/src/api/path.ts","api/src/api/predicate.ts","api/src/api/range.ts","api/src/api/release.ts","api/src/api/reset.ts","api/src/api/seq.ts","api/src/api/set.ts","api/src/api/stack.ts","api/src/api/tuple.ts","api/src/api/typedarray.ts","api/src/api/watch.ts","api/src/assert.ts","api/src/constants.ts","api/src/decorators/configurable.t |