Skip to content

Instantly share code, notes, and snippets.

Avatar

Davincb

  • London and Dublin
View GitHub Profile
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@kylemcdonald
kylemcdonald / _tsne.pdf
Last active Oct 16, 2019
Exploring antonyms with word2vec.
View _tsne.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hrywlms
hrywlms / generate sox spectrograms.sh
Last active Mar 2, 2018
A quick way to generate spectrograms for a bunch of audio files
View generate sox spectrograms.sh
### Generate PNG spectrograms using SoX
### Use the input file name as the title within the image as well as the output file name
### Set the width to 2000 (seems to output a ~2140px wide image)
### Generate for FLAC
for file in *.flac;do
outfile="${file%.*}.png"
title_in_pic="${file%.*}"
sox "$file" -n spectrogram -t "$title_in_pic" -o "$outfile" -x 2000
done
@karpathy
karpathy / nes.py
Last active Oct 15, 2020
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
@kylemcdonald
kylemcdonald / 1m-analysis.ipynb
Created Aug 6, 2017
Histogram analysis of the 1 million song dataset.
View 1m-analysis.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kylemcdonald
kylemcdonald / Triplet Loss.ipynb
Last active Jun 15, 2020
Experimenting with triplet loss embeddings.
View Triplet Loss.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.