Skip to content

Instantly share code, notes, and snippets.

View bartaelterman's full-sized avatar

Bart Aelterman bartaelterman

View GitHub Profile
@bartaelterman
bartaelterman / notebook.ipynb
Created March 18, 2020 21:58
COV-19 exploration
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bartaelterman
bartaelterman / main.py
Created March 2, 2020 14:20
Simulate the number of out of order counts with varying list sizes and varying number of item delayed
import random
import pprint
def get_ooo_count(l):
count = 0
for i, el in enumerate(l[1:]):
if el != l[i] + 1:
count += 1
return count
@bartaelterman
bartaelterman / Christmas names with constraint programming.ipynb
Created November 27, 2019 20:21
Draw Christmas names with Constraint Programming
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bartaelterman
bartaelterman / intake_example.py
Created April 29, 2019 07:25
Intake custom driver
import intake
class WritableTextFilesSource(intake.source.TextFilesSource):
container = 'python'
name = 'writabletext'
partition_access = True
version = '0.0.1dev'
@bartaelterman
bartaelterman / .block
Last active July 11, 2018 08:43 — forked from mbostock/.block
Scatterplot
license: gpl-3.0
@bartaelterman
bartaelterman / notebook.ipynb
Created June 29, 2018 14:05
GIS join with multiprocessing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bartaelterman
bartaelterman / Async+sanic.ipynb
Last active March 29, 2017 09:17
Intro to async Python and Sanic
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bartaelterman
bartaelterman / big files.ipynb
Last active April 27, 2016 09:37
Reading large data files in R
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bartaelterman
bartaelterman / viz.ipynb
Created April 15, 2016 14:30
js viz in jupyter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.