Skip to content

Instantly share code, notes, and snippets.

View BarclayII's full-sized avatar

Quan (Andy) Gan BarclayII

  • AWS Shanghai
  • Shanghai
View GitHub Profile
@chsasank
chsasank / ipynb_to_gallery.py
Last active February 21, 2024 14:29
Convert jupyter notebook to sphinx gallery notebook styled examples.
@brentp
brentp / sorted_random.py
Last active October 10, 2020 01:41
generate sorted random numbers
"""
Generate sorted random numbers.
method from: http://repository.cmu.edu/cgi/viewcontent.cgi?article=3483&context=compsci
Has same interface as random module except it takes N as the first argument
for the number of numbers to generate.
"""
from random import random as rand, seed
def random(N):