Skip to content

Instantly share code, notes, and snippets.

View mihaibujanca's full-sized avatar
👁️
51:9 Cast me not off in the time of execution of a sequential instruction stream

Mihai Bujanca mihaibujanca

👁️
51:9 Cast me not off in the time of execution of a sequential instruction stream
  • University of Manchester
  • Manchester, UK
View GitHub Profile
@mihaibujanca
mihaibujanca / check_convex.py
Created May 2, 2020 14:50 — forked from mblondel/check_convex.py
A small script to get numerical evidence that a function is convex
# Authors: Mathieu Blondel, Vlad Niculae
# License: BSD 3 clause
import numpy as np
def _gen_pairs(gen, max_iter, max_inner, random_state, verbose):
rng = np.random.RandomState(random_state)
# if tuple, interpret as randn
@mihaibujanca
mihaibujanca / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console