Skip to content

Instantly share code, notes, and snippets.

⌚️
May be slow to respond

Jeremy Tuloup jtpio

⌚️
May be slow to respond
Block or report user

Report or block jtpio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@deeplook
deeplook / camera_state.ipynb
Last active Apr 25, 2019
Save/restore ipyvolume camera state
View camera_state.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wolfv
wolfv / crust.py
Last active Mar 8, 2019
crust prototype
View crust.py
import sys
CONDA_PATH = '/home/wolfv/Programs/conda/'
sys.path.insert(0, CONDA_PATH)
# orig, sys.path = sys.path, [CONDA_PATH]
# import conda
# from tests import helpers
# sys.path = orig + [CONDA_PATH]
# i, r = helpers.get_index_r_1()
View winders.pde
// gif by dave aka @beesandbombs :)
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
@karpathy
karpathy / nes.py
Last active Sep 6, 2019
Natural Evolution Strategies (NES) toy example that optimizes a quadratic function
View nes.py
"""
A bare bones examples of optimizing a black-box function (f) using
Natural Evolution Strategies (NES), where the parameter distribution is a
gaussian of fixed standard deviation.
"""
import numpy as np
np.random.seed(0)
# the function we want to optimize
@karpathy
karpathy / min-char-rnn.py
Last active Sep 20, 2019
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
View min-char-rnn.py
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@nicoptere
nicoptere / PRNG
Last active Mar 17, 2019
Mersenne Twister: a good Pseudo Random Number Generator ( PRNG )
View PRNG
/*
from : http://en.wikipedia.org/wiki/Mersenne_twister
*/
function PRNG(){}
PRNG.initialize_generator = function( seed )
{
// Create a length 624 array to store the state of the generator
this.MT = new Uint32Array( 624 );
View gist:670dec8e70815842eb95
<!-- solution 1, 117b, inspired by http://www.p01.org/releases/140bytes_music_softSynth/ -->
<button onclick="new Audio('data:audio/wav;base64,UklGRl9vT19XQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YU'+Array(1e3).join(123)).play()">Beep</button>
<!-- Solution 2, 107b, inspired by http://xem.github.io/chip8/c8.html -->
<button onclick="o=(A=new AudioContext()).createOscillator();o.connect(A.destination);o.start(0);setTimeout('o.stop(0)',500)">Boop</button>
@gre
gre / README.md
Last active Aug 29, 2015
Boilerplate of a JS1K submission + JSCrush & uglify tools
View README.md

JS1K Boilerplate

Build tools

Install tools

npm install
@zacstewart
zacstewart / classifier.py
Last active Jun 18, 2018
Document Classification with scikit-learn
View classifier.py
import os
import numpy
from pandas import DataFrame
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
from sklearn.pipeline import Pipeline
from sklearn.cross_validation import KFold
from sklearn.metrics import confusion_matrix, f1_score
NEWLINE = '\n'
@iamatypeofwalrus
iamatypeofwalrus / roll_ipython_in_aws.md
Last active Aug 26, 2019
Create an iPython HTML Notebook on Amazon's AWS Free Tier from scratch.
View roll_ipython_in_aws.md

What

Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.

What are we using? What do you need?

  • An active AWS account. First time sign-ups are eligible for the free tier for a year
  • One Micro Tier EC2 Instance
  • With AWS we will use the stock Ubuntu Server AMI and customize it.
  • Anaconda for Python.
  • Coffee/Beer/Time
You can’t perform that action at this time.