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 / old connect function
Created Dec 8, 2019
This is the old connect function.
View old connect function
// async function connect() {
// window.museClient = new MuseClient();
// setStatus(generalTranslations.connecting);
// try {
// await window.museClient.connect();
// await window.museClient.start();
// setStatus(generalTranslations.connected);
// if (window.museClient && window.museClient.eegReadings) {
View updated_k_means_energy.m
function [current_error] = average_data_distance_error(n_groups, memberships, distances)
% Calculate average distance between data in clusters.
sum_error = 0;
for i_group = 1:n_groups
% indices of datapoints belonging to group i_group
i = find(memberships == i_group);
% cell array with N vectors to combine
elements = {i, i};
korymath /
Created May 13, 2019 — forked from dannguyen/
Using youtube-dl and gifify from the command-line
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]


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

Restore backup dump into local db

korymath /
Created Apr 30, 2018 — forked from duncdrum/
dark theme for Texshop
# 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
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))
# 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 --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 /
Created Mar 16, 2017
Running NAO simulations on EC2
# The people who are crazy enough to think they can change the world are the ones who do
View gist:38c0d88e021f8e9f13e231fc637f125f
You can’t perform that action at this time.