Travis CI badge Circle CI badge GitHub Actions badge Coverage badge LGTM badge npm badge pub.dev badge Download count badge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import collections | |
import multiprocessing | |
import multiprocessing.connection | |
import os | |
import subprocess | |
import sys | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compress:{,/({y,$#x@y}t)'!t:=x} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class MyType { | |
void doStuff(); | |
} | |
mixin MyTypeHelpers { | |
void protectedUtilityMethod() => print('Protected method'); | |
} | |
abstract class MyDerivedType implements MyType { | |
factory MyDerivedType.create() => MyDerivedTypeImpl(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ square root of double precision epsilon (sqrt(2^-52)) | |
E:1.4901161193847656e-8 | |
/ abs[x]: absolute value of x | |
abs::$[x>0;x;-x] | |
/ xeq[x;y]: tests if x and y are approximately equal (difference is <sqrt(epsilon)) | |
xeq::E>abs x-y | |
/ sb[q] Stern-brocot tree search, e.g. sbt[1%3] returns (1 3) | |
sbt:{[q]+/({[q;LH]~xeq[q;%/+/LH]}q;{[q;L;H]$[q>%/M:L+H;(M;H);(L;M)]}[q].)/:(0 1;1 0)} | |
/ benchmark: |
OlderNewer