Skip to content

Instantly share code, notes, and snippets.

Avatar
💨

Lance Pollard lancejpollard

💨
View GitHub Profile
@lancejpollard
lancejpollard / config.json
Created Jul 9, 2021
Notion API: Get Webhook Event When Notion Task is Created
View config.json
{
"notionToken": "secret_Qmcaaiodcjoiad...."
}
@lancejpollard
lancejpollard / block-idea.js
Last active Jul 14, 2021
Old Block idea for React
View block-idea.js
/**
* Import modules.
*/
const bind = require('../bind')
const React = require('react')
const useState = React.useState
/**
@lancejpollard
lancejpollard / parse.oracc.js
Created Jul 6, 2021
Parse ORACC Global Cuneiform Sign List Hack
View parse.oracc.js
const fs = require('fs')
const signs = require('./ogsl/ogsl-sl.json')
const stuff = [
...require('./saao/saa02/gloss-akk-x-neoass.json').entries,
...require('./saao 2/saa01/gloss-akk-x-neoass.json').entries,
// ...require('./saao 3/saa03/gloss-akk-x-neoass.json').entries,
// ...require('./saao 4/saa04/gloss-akk-x-neoass.json').entries,
...require('./saao 5/saa07/gloss-akk-x-neoass.json').entries,
@lancejpollard
lancejpollard / minimal-pairs.csv
Last active Jul 5, 2021
Minimal Pairs for French, English, Arabic, Punjabi, Russian, Finnish, Hebrew, Georgian, and more
View minimal-pairs.csv
language native call-script
arabic سُؤَال su'aal
arabic سُعَال suQ~aal
arabic كشع kaxuQ~Q~
arabic كشغل kaxuQl
arabic لدع ladaQ~Q~a
arabic لدغا ladaQaa
arabic معاز maQ~Q~aaz
arabic معاص maQ~aas~
arabic سيفاصل seIufaas~il
View Railway-Model.md
@lancejpollard
lancejpollard / powerset.js
Last active Jun 6, 2021
Compute the Powerset of a Set in JavaScript
View powerset.js
const computePowerSetOfSetOfNumbers = (set) => {
const powerset = []
const n = set.length
let i = 0
while (i < n) {
let x = n
while (x > i) {
powerset.push(set.slice(i, x))
x--
View korean-syllables.csv
ㄱㅏ
ㄱㅏㄱ
ㄱㅏㄲ
ㄱㅏㄳ
ㄱㅏㄴ
ㄱㅏㄵ
ㄱㅏㄶ
ㄱㅏㄷ
ㄱㅏㄹ
ㄱㅏㄺ
@lancejpollard
lancejpollard / list.csv
Created Mar 28, 2021
List of Wiktionary Languages
View list.csv
language url
'Are'are language https://en.wiktionary.org/wiki/Category:%27Are%27are_language
A'ou language https://en.wiktionary.org/wiki/Category:A%27ou_language
A-Hmao language https://en.wiktionary.org/wiki/Category:A-Hmao_language
A-Pucikwar language https://en.wiktionary.org/wiki/Category:A-Pucikwar_language
Aari language https://en.wiktionary.org/wiki/Category:Aari_language
Aasax language https://en.wiktionary.org/wiki/Category:Aasax_language
Aba language https://en.wiktionary.org/wiki/Category:Aba_language
Abaga language https://en.wiktionary.org/wiki/Category:Abaga_language
Abai language https://en.wiktionary.org/wiki/Category:Abai_language
@lancejpollard
lancejpollard / bool.rs
Created Feb 28, 2021 — forked from bodil/bool.rs
Simple type level natural numbers in Rust
View bool.rs
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub struct True;
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub struct False;
pub trait Bool {
fn new() -> Self;
}
impl Bool for True {
@lancejpollard
lancejpollard / bool.rs
Created Feb 28, 2021 — forked from bodil/bool.rs
Simple type level natural numbers in Rust
View bool.rs
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub struct True;
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub struct False;
pub trait Bool {
fn new() -> Self;
}
impl Bool for True {