Skip to content

Instantly share code, notes, and snippets.

View shivangg's full-sized avatar
:electron:
Focusing

Shivang Tripathi shivangg

:electron:
Focusing
View GitHub Profile
@shivangg
shivangg / songs.txt
Created June 21, 2017 07:10
Audiophile testing songs
Ella Fitzgerald & Louis Armstrong - "Gee Baby, Ain't I Good To You"
Ella Fitzgerald & Louis Armstrong - "Learnin' The Blues" (test shouty mids on trumpet)
Diana Krall - "Maybe, You'll BeThere" (sibilance test on 'Ssss')
Diana Krall - "Baby, All The Time"
Van Halen - "Hot For Teacher" (test of busy drum intro)
Metallica - "Nothing Else Matters"
Dream Theater - "Pull Me Under"
Tourniquet - "The Hand Trember"
Shania Twain - "No one needs to know"
Tim McGraw - "She Was Mine For A Little While"
@shivangg
shivangg / algo.py
Created May 6, 2017 15:25
Union Find algorithm with improved quick union implementation
n, m = input().strip().split(' ')
n, m = [int(n), int(m)]
id = [i for i in range(n+1)]
def rootParent(i):
commonGeneration = []
while(id[i] is not i):
# print(i, id[i])
commonGeneration.append(i)
@shivangg
shivangg / try.py
Created March 15, 2017 19:03
Trying out OpenAI cartpole example
import gym
from gym import wrappers
env = gym.make('CartPole-v0')
env = wrappers.Monitor(env, '/tmp/cartpole-experiment-1')
for i_episode in range(200):
observation = env.reset()
for t in range(1000):
env.render()
print(observation)
action = env.action_space.sample()