Skip to content

Instantly share code, notes, and snippets.

View datashaman's full-sized avatar

datashaman datashaman

  • datashaman
  • Cape Town, South Africa
View GitHub Profile
#!/usr/bin/python3
import math
population = 100e3
days = 200
death_prob = 0.50
time_to_death = 21
time_to_heal = 21
hist = []
@datashaman
datashaman / keybase.md
Created January 6, 2020 13:10
keybase.md

Keybase proof

I hereby claim:

  • I am datashaman on github.
  • I am datashaman (https://keybase.io/datashaman) on keybase.
  • I have a public key whose fingerprint is FEF0 409F A006 4A12 8508 BD5C 5AE8 6373 A31F 965D

To claim this, I am signing this object:

@datashaman
datashaman / Datashaman\Logic\J Example
Created May 8, 2019 05:18
Datashaman\Logic\J Example
<?php
<<<CONFIG
packages:
- "datashaman/logic: dev-master"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\Logic\J;
@datashaman
datashaman / Datashaman\Logic\I Example
Created May 8, 2019 05:18
Datashaman\Logic\I Example
<?php
<<<CONFIG
packages:
- "datashaman/logic: dev-master"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\Logic\I;
@datashaman
datashaman / Datashaman\Logic\D Example
Created May 8, 2019 05:18
Datashaman\Logic\D Example
<?php
<<<CONFIG
packages:
- "datashaman/logic: dev-master"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\Logic\D;
@datashaman
datashaman / Datashaman\Logic\C Example
Created May 8, 2019 05:18
Datashaman\Logic\C Example
<?php
<<<CONFIG
packages:
- "datashaman/logic: dev-master"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\Logic\C;
@datashaman
datashaman / Datashaman\Logic\repr Example
Created May 8, 2019 05:06
Datashaman\Logic\repr Example
<?php
<<<CONFIG
packages:
- "datashaman/logic: dev-master"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\Logic\repr;
@datashaman
datashaman / Datashaman\Logic\fromMaybe Example
Last active May 8, 2019 05:07
Datashaman\Logic\fromMaybe Example
<?php
<<<CONFIG
packages:
- "datashaman/logic: dev-master"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\Logic\fromMaybe;
@datashaman
datashaman / Datashaman\Logic\fromJust Example
Last active May 8, 2019 05:07
Datashaman\Logic\fromJust Example
<?php
<<<CONFIG
packages:
- "datashaman/logic: dev-master"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\Logic\fromJust;
@datashaman
datashaman / Datashaman\Logic\catMaybes Example
Last active May 8, 2019 05:07
Datashaman\Logic\catMaybes Example
<?php
<<<CONFIG
packages:
- "datashaman/logic: dev-master"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\Logic\catMaybes;