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/sh | |
echo "Stopping all containers" | |
docker stop $(docker ps -a -q) || echo "Failed to stop containers, no containers running?"; | |
echo "Pruning system (docker system prune -af)" | |
docker system prune -af | |
echo "Pruning volumes (docker volume prune -af)" | |
docker volume prune -af |
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
/* * | |
* example.h | |
* | |
* "No" Copyright 2014 Dejaime <dejaime@Funny-Unix> | |
* | |
* http://www.buildandgun.com/2014/02/yaml-yaml-aint-markup-language.html | |
* Released under Public Domain. | |
* More information here: | |
* http://creativecommons.org/publicdomain/zero/1.0/ | |
* |
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 <iostream> | |
#include <string> | |
#include "Controller.h" | |
#include "KeyboardController.h" | |
#include "GestureInterpreter.h" | |
#include "DisplayManager.h" | |
#include "allegro5.h" |
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 <iostream> | |
#include <unistd.h> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <string> | |
#include <time.h> | |
#define MAPW 7500 | |
#define MAPH 7500 | |
#define TEXT_FILE_NAME "mapAsText.map" |
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
//Shortcut to call updateStep how many times necessary. | |
void GestureInterpreter::update() { | |
while (updateStep()); | |
} | |
//Updates the Interpreter until it process all events or find a match, whatever comes first. | |
//May need to be called multiple times. | |
//Returns true on a match or false when it is empty. | |
bool GestureInterpreter::updateStep() { |
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
void draw(const int position_x, const int position_y, const unsigned int anim_current, | |
const unsigned int frame_current, const int rotation, const short int anim_dir, const float scale, | |
const bool flip_horizontal, const bool flip_vertical, const float taint_r, const float taint_g, | |
const float taint_b, const float taint_a, const unsigned int time_step); |
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
class sprite { | |
private: | |
//All unshared data should come here, speed, rotation, etc. | |
sysSprite renderer*; //This is where the shared data is stored. | |
public: | |
sprite () { | |
//Initialize the sprite and set up the 'renderer' pointer. | |
} | |
}; |
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 <cstdio> | |
int main(){ | |
printf("Hello World!"); | |
return 0; | |
} |