As configured in my dotfiles.
start new:
tmux
start new with session name:
""" | |
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) |
library(cdlTools) | |
library(rgdal) | |
library(raster) | |
library(rgeos) | |
# rasterize in the R 'raster' package is really slow, depending on your needs this may work better | |
# Author: Jonathan Lisic | |
# License BSD | |
polyExtract <- function(x) { |
""" | |
This is a batched LSTM forward and backward pass | |
""" | |
import numpy as np | |
import code | |
class LSTM: | |
@staticmethod | |
def init(input_size, hidden_size, fancy_forget_bias_init = 3): |
import pyaudio | |
import wave | |
FORMAT = pyaudio.paInt16 | |
CHANNELS = 2 | |
RATE = 44100 | |
CHUNK = 1024 | |
RECORD_SECONDS = 5 | |
WAVE_OUTPUT_FILENAME = "file.wav" | |
ffmpeg -i shame-run.mov -r 24/1 test/output%03d.jpg |
require(ncdf) | |
require(raster) | |
## Input: a netCDF file | |
file.nc <- 'rain.nc' | |
## Output: a GeoTIFF file | |
file.tiff <- 'rain.tiff' | |
## Import netCDF |
%-----------------------------------------------------------------------------% | |
% Letter class | |
\documentclass[a4paper, 10pt]{letter} | |
% Name of sender | |
\name{Joe Fox} | |
% Signature of sender | |
\signature{Joe Fox} |
# .. Memory benchmarks for SciPy's Singular Value Decomposition .. | |
# .. Author: Fabian Pedregosa <[email protected]> | |
import numpy as np | |
from scipy.sparse import linalg as splinalg | |
from scipy import sparse, linalg | |
import pylab as pl | |
from memory_profiler import memory_usage | |
dims = np.arange(500, 1500, 20) |
def rolling_window(array, window=(0,), asteps=None, wsteps=None, axes=None, toend=True): | |
"""Create a view of `array` which for every point gives the n-dimensional | |
neighbourhood of size window. New dimensions are added at the end of | |
`array` or after the corresponding original dimension. | |
Parameters | |
---------- | |
array : array_like | |
Array to which the rolling window is applied. | |
window : int or tuple |
As configured in my dotfiles.
start new:
tmux
start new with session name: