Skip to content

Instantly share code, notes, and snippets.

@daem-on
daem-on / us.json
Last active March 4, 2024 19:28
Snazzy-compatible json of Cards Against Humanity's Base Set. Licensed under BY-NC-SA 4.0.
{
"responses": [
["\"Tweeting.\""],
["(I am doing Kegels right now.)"],
["10,000 Syrian refugees"],
["100% Pure New Zealand"],
["2 Girls 1 Cup"],
["400 years of colonial atrocities"],
["50 mg of Zoloft daily"],
["50,000 volts straight to the nipples"],
@daem-on
daem-on / Death Giver 2.asl
Last active April 21, 2018 21:58
Autosplitter (LiveSplit) for Death Giver 2
// Death Giver 2 ASL v2.0 (c) Daemon
state("stdrt", "standalone")
{
byte level : 0x05760C, 0x1EC;
}
state("stdrt", "gamescollection")
{
byte level : 0x0AB4B4, 0x1EC;
@daem-on
daem-on / splat.lua
Created May 2, 2017 19:39
Splat: utilities for LÖVE
--SPLAT: utilities for LÖVE
--CLASSES
Classes = {}
function Classes:extend()
o = {}
setmetatable(o, self)
self.__index = self
return o
@daem-on
daem-on / pong.lua
Created May 1, 2017 11:45
Simple pong game in lua with LÖVE
ball = {}
ball.x = 300
ball.y = 200
ball.vel = {}
ball.vel.x = 3
ball.vel.y = 1
ball.height = 30
ball.width = 30
map = {}
@daem-on
daem-on / sdlgraph.c
Created April 12, 2017 10:07
Simple graphing program with SDL
#include <stdio.h>
#include <stdlib.h>
#include "SDL.h"
int main(int argc, char **argv)
{
SDL_Window *window;
SDL_Renderer *renderer;
SDL_Init(SDL_INIT_VIDEO);
@daem-on
daem-on / graph.c
Created April 3, 2017 17:34
My first C program that does anything
#include <stdio.h>
#include <stdlib.h>
void main()
{
int range;
printf("Horizontal range: ");
scanf("%d",&range);
int vrange;