Skip to content

Instantly share code, notes, and snippets.

Akshat Agarwal agakshat

Block or report user

Report or block agakshat

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
@agakshat
agakshat / viz.py
Created Mar 19, 2019
coop-sf-pixel
View viz.py
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 Jun 22, 2016
Running audio from inside Docker container
View .asoundrc
pcm.!default {
type plug
slave {
pcm "hw:1,0"
}
}
ctl.!default {
type hw
card 1
}
You can’t perform that action at this time.