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
#!/bin/bash | |
# uses github.com/defunkt/gist | |
## run `gem install gist` | |
## make sure to run `gist --login` on install | |
# uses github.com/astrand/xclip | |
## run `sudo apt install xclip` | |
# this could be anything and it'll use zenity, nothing and it won't | |
use_zenity="" |
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
#!/bin/bash | |
# uses github.com/defunkt/gist | |
## run `gem install gist` | |
## make sure to run `gist --login` on install | |
# uses github.com/astrand/xclip | |
## run `sudo apt install xclip` | |
# this could be anything and it'll use zenity, nothing and it won't | |
use_zenity="" |
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 <allegro5/allegro.h> | |
#include <iostream> | |
class Vector { | |
public: | |
Vector(int x, int y); | |
Vector(); | |
Vector operator+(Vector &); | |
private: |
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
.PHONY: clean | |
all: *.o | |
g++ *.o | |
%.o: %.cpp | |
g++ -c $(CXXFLAGS) $^ | |
clean: | |
-rm *.o |
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
template <class T = float> class Vector { | |
public: | |
T x; | |
T y; | |
Vector() : x(T(0)), y(T(0)){}; | |
Vector(T inx, T iny) : x(inx), y(iny){}; | |
Vector<double> normalize() { | |
double len = this->length(); | |
return Vector<double>(this->x / len, this->y / len); | |
}; |
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
time | |
way | |
year | |
work | |
government | |
day | |
man | |
world | |
life | |
part |
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
.game-container { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; | |
min-height: 100vh; | |
padding: 20px; | |
} | |
.controls { |