Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kailaix
kailaix / example.jl
Created November 30, 2018 02:45
Julia: export figures to tikz
using PyPlot
using PyCall
@pyimport matplotlib2tikz as mpl
mpl.save("figures/fig.tex")
@kailaix
kailaix / find_largest.py
Created August 14, 2018 05:05
find largest number
def find_largest(L):
N = len(L)
minL = [ [None] * N for j in range(N)]
sumL = [ [None] * N for j in range(N)]
def helper(i):
if i==0:
minL[0][0] = L[0]
else:
for j in range(i):