Skip to content

Instantly share code, notes, and snippets.

@kckennylau
kckennylau / instructions.txt
Last active March 15, 2018 16:40
How to install Lean with mathlib
This assumes that you have:
1. msys2
2. cmake
3. VSCode with Lean plugin
4. ninja
Run the following commands in order in msys2:
cd /c/
git clone https://github.com/leanprover/lean
This file has been truncated, but you can view the full file.
1 1
2 2
3 6
4 12
5 60
6 20
7 140
8 280
9 2520
10 2520
This file has been truncated, but you can view the full file.
100001 121341142
100002 121341346
100003 121341442
100004 121341646
100005 121342246
100006 121342444
100007 121343146
100008 121343242
100009 121343248
100010 121343446
This file has been truncated, but you can view the full file.
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 11
@kckennylau
kckennylau / gist:b0b67ee917f0c9b60e5787f06c1dda4b
Created June 3, 2016 13:58
Shortest code in /// to generate <linenumber> many "x"s.
x
xx
xxx
xxxx
xxxxx
xxxxxx
xxxxxxx
xxxxxxxx
xxxxxxxxx
xxxxxxxxxx
CJam: YG#
Actually: ╦K╙╙
Jelly: ØHŒPL
J: *:#a.
MATL: YPXkWW
Pyth: hC"ÿÿ
Pyth: *FCM" @
Golfscript: ,))..*.*?
Minkolang: "@ "$*N.
Pyth: hC"\uFFFF
:0
0
:1
1
:2
2
:3
3
:4
4
@kckennylau
kckennylau / repeated factorial, leaderboard
Last active May 22, 2016 06:23
repeated factorial, leaderboard
Jelly: !¡
05AB1E: F! (swaps order)
J: !^: (swaps order)
Actually: `!`n
MATL: :":p
CJam: q~{m!}*
Pyth: u.!GEQ
Pyth: Mem=.!GH
Jolf: e+*j"!Y (swaps order)
Mathematica: #!&~Nest~##&