Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

import random
total_test_cases = 10**2
current = 0
previous = -1
test_cases = [""]*total_test_cases
for i in range(total_test_cases):
current += random.randint(0, current//2)
if current == previous:
current += 1
previous = current
0
1
0,2
1,0
0,1
1,2
0,0,2
1,1,3
0,2,0
1,0,1
class Order(customer: Customer) {
option country=Countries.US
items: Map<Item, Integer<Positive>>
fn addItem(item: Item){
option quantity: Integer<Positive>=1
items[item] = quantity
}
fn getCount(item: Item): Int<Positive>?{
0
0,1
1,0
2,0,1
0,1,2
1,2,0
3,2,1,0
https://github.com/vihanb/PPCG-Design/raw/cbf0b00f85830c60b9a327ac6ea7218c53d5bcbb/ppcg.user.js https://github.com/vihanb/PPCG-Design/raw/7be53f2b2517bc701cf937f953aff80a30855d3c/ppcg.user.js
https://github.com/vihanb/PPCG-Design/raw/c0f8b47df6ebde7623610c23b4f080636d15389a/ppcg.user.js https://github.com/vihanb/PPCG-Design/raw/cbf0b00f85830c60b9a327ac6ea7218c53d5bcbb/ppcg.user.js
https://github.com/betseg/git-scm.com/raw/39e795528f595657b93a75eb6d6b3fe27dbfc435/app/views/downloads/download_linux.html.erb https://github.com/betseg/git-scm.com/raw/ca564e5e0ffab2c34f8127264976a5de168d9536/app/views/downloads/download_linux.html.erb
https://github.com/ubuntu-tr/ubuntu-tr.github.io/raw/b05c660f64104065adb1da7675a5c5651186ef9a/theme/ubuntu-tr/js/ubuntu-tr.js https://github.com/ubuntu-tr/ubuntu-tr.github.io/raw/b3855bf32daf6be334bac5b6442fc35dd0f96006/extension/asset/backToTop/_asset.html
https://github.com/KeyboardFire/oldstuffs/raw/0e5733665f3023da5a5da93b87d29301a214456b/web/chaos/style.css https://github.com/Ke
span.site-title-name {
white-space: nowrap;
}
span.site-title-title {
white-space: nowrap;
}
#canvas {
margin-top: 0;

Keybase proof

I hereby claim:

  • I am nathanmerrill on github.
  • I am thenameipicked (https://keybase.io/thenameipicked) on keybase.
  • I have a public key whose fingerprint is 085A AD71 ADB4 3E60 EFFC D1E1 71C9 7242 31DE 8EC5

To claim this, I am signing this object: