Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeremy Kohn jeremykohn

View GitHub Profile
View core.js
// The core app code
var myApp = (function () {
'use strict';
// Create a public methods object
var methods = {};
/**
* Extend the public methods object
@KevinAst
KevinAst / article.md
Last active May 24, 2020
Integrating GitBook with JSDoc to Document Your Open Source Project
View article.md

Integrating GitBook with JSDoc to Document Your Open Source Project

Introduction

Good documentation should include two distinct elements - a Guide and an API:

  1. The Guide builds concepts, providing examples, etc.

    GitBook is well suited to

@pelson
pelson / README.md
Last active Aug 13, 2017
Feature extraction from the XKCD handwriting dataset
@xaxim
xaxim / forksync.txt
Created Jan 18, 2017
Sync fork with original
View forksync.txt
git fetch upstream
git checkout master
git merge upstream/master
git merge upstream/master
git commit
git push
@jasonkit
jasonkit / filter-visualize.py
Last active Mar 29, 2020
Python script for visualizing inception feature at different stages
View filter-visualize.py
import os.path
import tensorflow as tf
from tensorflow.python.platform import gfile
import matplotlib.pyplot as plt
log_dir = "/tmp/inception_v3_log"
if not os.path.exists(log_dir):
os.makedirs(log_dir)
@punkdata
punkdata / git-get-files-by-size.py
Last active Dec 27, 2017
Git this script lists the files that are larger than the size you specify. Example use: python git-find-big-files.py fix-remove-files 1000000 (file size in MBs)
View git-get-files-by-size.py
#!/usr/bin/python
# run the script: python git-find-big-files.py <the branch> <file size>
# Example use: python git-find-big-files.py fix-remove-files 1000000 (this value equals 1 Megabyte)
# the Fix-remove-files specifies the branch that you are cleaning
import os, sys
def getOutput(cmd):
return os.popen(cmd).read()
@akiross
akiross / imgaverage.py
Created Jan 18, 2016
A very simple tool for making average of similar images
View imgaverage.py
#!/usr/bin/env python3
import os
import re
import numpy as np
from ast import literal_eval as make_tuple
from tkinter import *
from tkinter import ttk
from tkinter import filedialog
@baraldilorenzo
baraldilorenzo / readme.md
Last active Aug 15, 2020
VGG-16 pre-trained model for Keras
View readme.md

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition
K. Simonyan, A. Zisserman
@karpathy
karpathy / min-char-rnn.py
Last active Aug 15, 2020
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)
@westc
westc / getParamNames.js
Created Jun 26, 2015
Takes a function and returns the names of the parameters for that function.
View getParamNames.js
(function(reComments, reParams, reNames) {
getParamNames = function(fn) {
return ((fn + '').replace(reComments, '').match(reParams) || [0, ''])[1].match(reNames) || [];
};
})(
/\/\*[\s\S]*?\*\/|\/\/.*?[\r\n]/g,
/\(([\s\S]*?)\)/,
/[$\w]+/g
);
You can’t perform that action at this time.