Skip to content

Instantly share code, notes, and snippets.

View ashwinkalyan's full-sized avatar

Ashwin Kalyan ashwinkalyan

View GitHub Profile
@ashwinkalyan
ashwinkalyan / dance.py
Created March 28, 2020 01:54
Stick man dances randomly to your favorite song (.wav)
import numpy as np
import librosa
import time
import os
import pygame
steps =[
"""
o
\ /
@ashwinkalyan
ashwinkalyan / csv_utils.lua
Last active August 25, 2016 09:22
Reads a CSV into a torch table or tensor. Created with the intention of reading in data for ML!
require 'csvigo'
-- csvigo is used to convert to table and then store
-- not very clean, but convenient!
local csv_utils = {}
function csv_utils.csv_read(csv_path, delimiter, out_mode, start_idx, batch_size)
X_table = {}
local count = 1
local batch_count = 1
for line in io.lines(csv_path) do