Skip to content

Instantly share code, notes, and snippets.

stereobooster

Block or report user

Report or block stereobooster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View deepFreeze.ts
/**
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze
*/
function deepFreeze<T>(object: T, path?: string): Readonly<T> {
const propNames = Object.getOwnPropertyNames(object);
let latest;
try {
for (const name of propNames) {
// @ts-ignore - do not verify implementation
View z85.js
// z85 alphabet - doesn't include ', ", \
const alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#";
const base = alphabet.length;
const base85 = input => {
const result = [];
do {
const remainder = input % base;
input = ~~(input / base);
result.push(alphabet[remainder]);
} while (input != 0);
View maps of ideas.md

Knowledge structure

  • Maps, Graphs, Mind Maps
  • Roadmap, curriculum
  • Dictionary, encyclopedia
  • Abstractions, analogy
  • alphabet, building blocks

Maps

You can’t perform that action at this time.