Skip to content

Instantly share code, notes, and snippets.

View yehuthi's full-sized avatar
🕎

Yehuthi yehuthi

🕎
View GitHub Profile
@yehuthi
yehuthi / event_loop.ts
Created May 9, 2024 11:03
JavaScript event loop utilities
/** @return {Promise<unknown>} */
function macrotask_tick(): Promise<unknown> {
return new Promise(resolve => setTimeout(() => resolve(undefined), 0));
}
/** @return {Promise<unknown>} */
function microtask_tick(): Promise<unknown> {
return new Promise(resolve => resolve(undefined));
}
@yehuthi
yehuthi / simdjson_intrinsics.md
Created March 23, 2024 19:36
simdjson intrinsics

simdjson intrinsics

  • _BitScanForward
  • _BitScanForward64
  • _BitScanReverse
  • _BitScanReverse64
  • _addcarry_u64
  • _blsr_u64
  • _mm256_add_epi8
  • _mm256_alignr_epi8
@yehuthi
yehuthi / `README.md
Last active September 23, 2022 21:15
build.rs nightly conditional compilation

Usage

Copy build.rs to your project directory or append its body into yours directory and use:

  • #[cfg(nightly)]
  • #[cfg(not(nightly))]
wget -O build.rs https://gist.githubusercontent.com/yehuthi/3a9f806df53421ad440341127f1c9a2f/raw/015b34038a903d95ca08b3c3598175684494e719/build.rs
@yehuthi
yehuthi / gist:337dcabc0614f6ced6e812b618d807b5
Created September 13, 2022 09:42 — forked from jatcwang/gist:ae3b7019f219b8cdc6798329108c9aee
List of all setxkbmap configuration options (including models/layout/etc)
! model
pc101 Generic 101-key PC
pc102 Generic 102-key (Intl) PC
pc104 Generic 104-key PC
pc105 Generic 105-key (Intl) PC
dell101 Dell 101-key PC
latitude Dell Latitude series laptop
dellm65 Dell Precision M65
everex Everex STEPnote
flexpro Keytronic FlexPro
@yehuthi
yehuthi / typological_numbers.md
Last active August 7, 2022 15:31
Typological Numbers [WIP]
Number Meaning Biblical Near East Ḥazal
7 Completion
  • 40 Long Duration
  • 70 Large group
  • 10 Cohesion
  • 4 All-Encompassing
  • 8 Supernatural
  • 12 [x] [ ] [x]
    בְּהַנְחֵל עֶלְיוֹן גּוֹיִם, בְּהַפְרִידוֹ בְּנֵי אָדָם; יַצֵּב גְּבֻלֹת עַמִּים לְמִסְפַּר בְּנֵי אֱלֹהִים.
    - דְּבָרִים ל"ב:ח' (נֹסַח הַשִּׁבְעִים וְקוּמְרָאן)
    Nation עַם Deity אֵל
    Judah יְהוּדָה Yahweh 𐤉𐤄𐤅𐤄 יָהוֶה
    Israel יִשְׂרָאֵל El [Elyon] 𐤀𐤋 אֵל [עֶלְיוֹן]
    Ḥittites חִתִּים Arinna אַרִינַה / Wuru(n)šemu ווּרוּשֶמוּ
    @yehuthi
    yehuthi / calc.asm.js
    Created November 26, 2021 11:15 — forked from thatisuday/calc.asm.js
    A simple asm.js module
    function Calc(stdlib, foreign, heap) {
    "use asm";
    function add(a, b) {
    a = a|0;
    b = b|0;
    return (a + b)|0;
    }
    return {
    add: add
    };
    @yehuthi
    yehuthi / [Svelte] Markdown Action.md
    Last active November 24, 2021 16:27
    [Svelte] Markdown Action

    @yehuthi
    yehuthi / [Svelte] Slide Action
    Last active November 24, 2021 16:23
    [Svelte] Slide Action