Skip to content

Instantly share code, notes, and snippets.

:octocat:
`git bisect run make -j${CORES-1}`

Steven R. Loomis srl295

:octocat:
`git bisect run make -j${CORES-1}`
Block or report user

Report or block srl295

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 Any_Hex_Spoken.txt
# Any-Hex/Spoken
# Author: srl
# Email: srl
# Description: so pure
::Any-Hex/Unicode;
U > 'you ';
'+' > 'plus ';
0>'zero ';
1>'one ';
2>'two ';
@srl295
srl295 / fmt_fast.js
Created Jul 12, 2019
slow and fast formats?
View fmt_fast.js
// Test Scaffold
const colors = { normal: x => process.stdout.write(x), bold: x => process.stdout.write('<b>'+x+'</b>') };
const newline = () => console.log(); // starting to be a pattern here.
const obj = { builtAt: 0 };
const fmt = new Intl.DateTimeFormat([], {
day: "2-digit",
month: "2-digit",
year: "numeric",
hour: "2-digit",
@srl295
srl295 / calloop.js
Created Jun 17, 2019
get hebrew calendar numbers
View calloop.js
// for https://github.com/tc39/ecma402/pull/345#issuecomment-501813382
const l="en-u-ca-hebrew";
const f0 = new Intl.DateTimeFormat("en-u-ca-hebrew",{month:"numeric"});
const f1 = new Intl.DateTimeFormat("en-u-ca-hebrew",{year:"numeric",month:"short"});
const s0 = new Date('2018-01-01 00:00:00Z').getTime();
for(var i=0;i<30;i++) {
const d2 = new Date(s0+(86400*28*1000*i));
console.log( 'M=', f0.formatToParts(d2)[0].value,
d2.toLocaleDateString(), f1.format(d2));
}
@srl295
srl295 / branches.txt
Created May 1, 2019
cldr svn/git branches.txt
View branches.txt
master
origin/Root_srl-l2i-branch
origin/branch-Corrigendum-2
origin/branch-for-release-1-4-1
origin/branch-srl-1-4
origin/cldrfile-decouple
origin/emmons
origin/icu52m1-work
origin/jali01
origin/jchye
@srl295
srl295 / replacement.txt
Last active Apr 26, 2019
replacement for Adlam
View replacement.txt
$ java -DCLDR_DIR=${HOME}/src/cldr -jar cldr.jar modify -fp '-mff.*' -s${HOME}/src/cldr/seed/main
>> org.unicode.cldr.tool.CLDRModify
Source: /Users/srl/src/cldr/seed/main/
Target: /Users/srl/src/Generated/cldr/cldrModify/
13 Locales: [ff_Adlm, ff_Adlm_BF, ff_Adlm_CM, ff_Adlm_GH, ff_Adlm_GM, ff_Adlm_GN, ff_Adlm_GW, ff_Adlm_LR, ff_Adlm_MR, ff_Adlm_NE, ff_Adlm_NG, ff_Adlm_SL, ff_Adlm_SN]
%ff_Adlm Replacing - «𞤃𞤢𞤱𞤦𞤢𞥄𞤪𞤫 𞤀𞤪𞤢𞤴𞤲‘𞤣𞤫» → «𞤃𞤢𞤱𞤦𞤢𞥄𞤪𞤫 𞤀𞤪𞤢𞤴𞤲𞥋𞤣𞤫» //ldml/dates/fields/field[@type="tue"]/relative[@type="1"]
%ff_Adlm Replacing - «𞤲‘𞤣𞤫𞤪 {0} 𞤤𞤫𞤱.» → «𞤲𞥋𞤣𞤫𞤪 {0} 𞤤𞤫𞤱.» //ldml/dates/fields/field[@type="month-short"]/relativeTime[@type="future"]/relativeTimePattern[@count="one"]
%ff_Adlm Replacing - «𞤨𞤢𞤱𞤲‘𞤣𞤵 𞤅𞤫𞤲-𞤖𞤫𞤤𞤫𞤲𞤢» → «𞤨𞤢𞤱𞤲𞥋𞤣𞤵 𞤅𞤫𞤲-𞤖𞤫𞤤𞤫𞤲𞤢» //ldml/numbers/currencies/currency[@type="SHP"]/displayName[@count="one"]
%ff_Adlm Replacing - «𞤊𞤢𞤪𞤢𞤲 𞤅𞤊𞤀 𞤖𞤭𞥅𞤪𞤲𞤢𞥄𞤲‘𞤺𞤫 𞤀𞤬𞤪𞤭𞤳𞤢» → «𞤊𞤢𞤪𞤢𞤲 𞤅𞤊𞤀 𞤖𞤭𞥅𞤪𞤲𞤢𞥄
View current_ver.dep.asc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
[
{
"url": "https://github.com/unicode-org/icu/releases/download/release-64-2/icu4c-64_2-src.tgz",
"md5": "a3d18213beec454e3cdec9a3116d6b05"
}
]
-----BEGIN PGP SIGNATURE-----
@srl295
srl295 / rpath.diff
Last active Apr 17, 2019
< --enable-rpath | > --disable-rpath
View rpath.diff
9c9
< GENLIB=clang -dynamiclib -dynamic -O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Qunused-arguments -Wno-parentheses-equality -Wl,-rpath,/usr/local/lib
---
> GENLIB=clang -dynamiclib -dynamic -O2 -std=c11 -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Qunused-arguments -Wno-parentheses-equality
11c11
< LD_SONAME=-Wl,-compatibility_version -Wl,64 -Wl,-current_version -Wl,64.2 -install_name /usr/local/lib/≈
---
> LD_SONAME=-Wl,-compatibility_version -Wl,64 -Wl,-current_version -Wl,64.2 -install_name•
@srl295
srl295 / subsubthing.c
Created Apr 3, 2019
successful failure
View subsubthing.c
#include <stdio.h>
#include <stdlib.h>
int main(int argc, const char *argv[]) {
int rc = 1;
// printf("%s got return value: %d\n", argv[0], rc);
printf("%s returning value %d\n", argv[0], rc);
@srl295
srl295 / node_exporters.json
Created Feb 20, 2019
Prometheus Scratchpad
View node_exporters.json
[
{
"labels": {
"job": "nodes"
},
"targets": [
"host1", "host2", "host3"
]
}
]
@srl295
srl295 / pkg-config-build.txt
Created Feb 6, 2019
building pkg-config on mac
View pkg-config-build.txt
(download and unpack from https://pkg-config.freedesktop.org/releases/ )
$ ./configure --prefix=/tmp/pk
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
You can’t perform that action at this time.