This file contains hidden or 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
function removeIfExists { | |
if [ -e "$1" ]; then | |
echo removing "$1" | |
rm -rf "$1" 2>&1 > /dev/null | |
fi | |
} |
This file contains hidden or 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 formatted_output | |
{ | |
private: | |
int width; | |
ostream& stream_obj; | |
public: | |
formatted_output(ostream& obj, int w): width(w), stream_obj(obj) {} | |
template<typename T> |
This file contains hidden or 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
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
source "${DIR}/myFileToInclude.sh" | |
source "${DIR}/myOtherFileToInclude.sh" | |
# see http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
#include "vector.h" | |
void vector_init(vector *v) | |
{ | |
v->data = NULL; | |
v->size = 0; | |
v->count = 0; |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
#include "vector.h" | |
void vector_init(vector *v) | |
{ | |
v->data = NULL; | |
v->size = 0; | |
v->count = 0; |
NewerOlder