Skip to content

Instantly share code, notes, and snippets.

View agakshat's full-sized avatar

Akshat Agarwal agakshat

View GitHub Profile
@agakshat
agakshat / viz.py
Created March 19, 2019 20:38
coop-sf-pixel
import sfcoop
import numpy as np
import matplotlib.pyplot as plt
g = sfcoop.Game()
g.draw()
scr = np.array(g.pb_pixels).reshape(-1,4)[:,:3]
scr = scr.reshape(g.pb_height,g.pb_width,3)
# to display it
@agakshat
agakshat / .asoundrc
Created June 22, 2016 19:00
Running audio from inside Docker container
pcm.!default {
type plug
slave {
pcm "hw:1,0"
}
}
ctl.!default {
type hw
card 1
}