Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Kory korymath

💭
I may be slow to respond.
Block or report user

Report or block korymath

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
@korymath
korymath / readmecats.md
Created May 13, 2019 — forked from dannguyen/readmecats.md
Using youtube-dl and gifify from the command-line
View readmecats.md
@korymath
korymath / gist:1c1c4a8a7aabce4b1882cbfc7906b079
Created Jun 1, 2018 — forked from guisehn/gist:6648c8fdcd1102a22a22
Backup Heroku Postgres database and restore to local database
View gist:1c1c4a8a7aabce4b1882cbfc7906b079

Grab new backup

Command: heroku pg:backups capture -a [app_name]

Download

Command: curl -o latest.dump `heroku pg:backups public-url -a [app_name]`

Restore backup dump into local db

@korymath
korymath / safari-night.sh
Created Apr 30, 2018 — forked from duncdrum/safari-night.sh
dark theme for Texshop
View safari-night.sh
# Safari Reader Night Theme
# by @LogicaEns
# background = 39 40 34 (#272822)
defaults write TeXShop background_R 0.05
defaults write TeXShop background_G 0.06
defaults write TeXShop background_B 0.03
# commands = 102 217 239 (#66D9EF)
defaults write TeXShop commandred 0.3
View partition.py
import random
import itertools
import numpy as np
from tqdm import tqdm
# 0) define the starting set
num_students = 20
student_ids = np.arange(num_students)
all_combinations = list(itertools.combinations(student_ids, 2))
View tmux_install.sh
#!/bin/bash
# Exit on error #
set -e
# Clean up #
rm -rf ~/programs/libevent
rm -rf ~/programs/ncurses
rm -rf ~/programs/tmux
# Variable version #
View TAL on AWS
python train.py --data_dir data/TAL --rnn_size 1024 --num_layers=3 --batch_size=128 --seq_length=256 --input_keep_prob 0.8 --output_keep_prob 0.5
@korymath
korymath / nao_ec2.sh
Created Mar 16, 2017
Running NAO simulations on EC2
View nao_ec2.sh
# The people who are crazy enough to think they can change the world are the ones who do
View gist:38c0d88e021f8e9f13e231fc637f125f
https://krb-sjobs.brassring.com/TGnewUI/Search/home/HomeWithPreLoad?PageType=JobDetails&jobid=74414&partnerid=26059&siteid=5016&type=mail
View torch-twrl policy gradient
Following the installation and first test for torch-twrl
https://github.com/twitter/torch-twrl
Run code:
cd examples
chmod u+x cartpole-pg.sh
./cartpole-pg.sh
@korymath
korymath / nips-accepted-papers.py
Last active Aug 23, 2016
Quick n-gram discovery on the NIPS 2016 accepted papers, from https://nips.cc/Conferences/2016/AcceptedPapers.
View nips-accepted-papers.py
from sklearn.feature_extraction.text import CountVectorizer
from collections import Counter
import numpy as np
with open('accepted-papers.txt', 'r') as myfile:
data=myfile.read().replace('\n', '')
lectures = data
bigram_vectorizer = CountVectorizer(ngram_range=(2, 10), stop_words='english')
analyze = bigram_vectorizer.build_analyzer()
You can’t perform that action at this time.