SDL_Init(SDL_INIT_AUDIO);
SDL_AudioSpec spec, aspec;
SDL_zero(spec);
spec.freq = 48000; //declare specs
spec.format = AUDIO_S16SYS;
spec.channels = 1;
spec.samples = 4096;
spec.callback = callback;
spec.userdata = NULL;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd + alt + ctrl - s : yabai -m space --focus recent | |
cmd + alt + ctrl - b : yabai -m space --balance | |
cmd + alt + ctrl - f : yabai -m window --toggle float | |
cmd + alt + ctrl - m : yabai -m window --grid 1:1:0:0:1:1 | |
cmd + alt + ctrl - x : yabai -m space --layout bsp | |
cmd + alt + ctrl - z : yabai -m space --layout float |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def tick args | |
defaults args | |
render args | |
calc args | |
inputs args | |
end | |
def defaults args | |
args.state.arr1 ||= ['Cat1', 'Cat2', 'Cat3', 'Cat4'] | |
args.state.arr2 ||= ['Dog1', 'Dog2', 'Dog3', 'Dog4'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduboy2.h> | |
Arduboy2 arduboy; | |
boolean gameStarted = false; | |
int x, y; | |
byte snake[11][2]; | |
byte last_move; |