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 position( speed: , time:) | |
(speed * time) % 576 | |
end | |
planets = [ | |
{ name: "A", speed: 24, }, | |
{ name: "B", speed: 15, }, | |
{ name: "C", speed: 9, }, | |
{ name: "D", speed: 6, }, | |
{ name: "E", speed: 4, }, |
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
#!/usr/bin/env bash | |
GIT_ROOT=`git rev-parse --show-toplevel` | |
MIGRATION_FILENAME="$GIT_ROOT/migrations/$1.sql" | |
git checkout -b $1 | |
touch $MIGRATION_FILENAME | |
vim $MIGRATION_FILENAME |
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 <SDL2/SDL.h> | |
#include <stdio.h> | |
/* Screen dimension constants */ | |
const int SCREEN_WIDTH = 640; | |
const int SCREEN_HEIGHT = 480; | |
int error(char *msg, const char *err) { | |
printf("Error %s: %s\n", msg, err); | |
return 1; |
OlderNewer