Skip to content

Instantly share code, notes, and snippets.

View antonmihaylov's full-sized avatar

Anton Mihaylov antonmihaylov

View GitHub Profile
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active July 23, 2024 14:54
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@amoutonbrady
amoutonbrady / remove_ts.md
Created November 3, 2018 21:04
Regex to remove tsc --init default config comments
  1. Go into VSCode
  2. Install typescript npm i typescriptfor local OR npm i -g typescript for global
  3. Run either node_modules/.bin/tsc --init for local installation or tsc --init for global
  4. Open the generated file tsconfig.json and press CTRL+F
  5. Make sure to tick the regex filter for search on the far right of the search input (third icon)
  6. Pase that regex \s* \/\* .* \*\/
  7. Replace by "nothing"
@jlevy
jlevy / simple-hash.js
Last active May 11, 2024 21:19
Fast and simple insecure string hash for JavaScript
// These hashes are for algorithmic use cases, such as bucketing in hashtables, where security isn't
// needed and 32 or 64 bits is enough (that is, rare collisions are acceptable). These are way simpler
// than sha1 (and all its deps) or similar, and with a short, clean (base 36 alphanumeric) result.
// A simple, *insecure* 32-bit hash that's short, fast, and has no dependencies.
// Output is always 7 characters.
// Loosely based on the Java version; see
// https://stackoverflow.com/questions/6122571/simple-non-secure-hash-function-for-javascript
const simpleHash = str => {
let hash = 0;
@igoro00
igoro00 / Chakra-UI x React-datepicker.md
Last active April 30, 2024 16:15 — forked from baumandm/Chakra-UI x React-datepicker.md
Chakra-UI x React-datepicker

Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.

<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />

Clearable version:

<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} isClearable={true} />
@davidfowl
davidfowl / .NET6Migration.md
Last active July 19, 2024 22:48
.NET 6 ASP.NET Core Migration
@depperm
depperm / ISO3166
Last active December 2, 2023 10:16
ISO3166 Countries
// https://www.iso.org/iso-3166-country-codes.html > click Online Browsing Platform > 300 results per page
// copy-paste below in console
var table = document.evaluate("/html/body/div[1]/div/div[2]/div/div/div[2]/div/div/div[2]/div/div/div/div/div/div[2]/div/div[2]/div/div/div[2]/div/div[2]/div[2]/div[3]/table", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
var countries=[];
for (var i = 1; i<table.rows.length; i++) {
var row = table.rows[i];
var country={};
for (var j = 0; j<row.cells.length; j++) {
var col=row.cells[j];