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
Show hidden characters
{ | |
"cmd": ["make"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${project_path:${folder:${file_path}}}", | |
"selector": "source.makefile", | |
"path": "/usr/bin:/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin", | |
"variants": | |
[ | |
{ |
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 Card | |
{ | |
unsigned int id; | |
unsigned int level; // 1..10 | |
unsigned int type; | |
unsigned int element; | |
unsigned int power[4]; // clockwise; top, right, down, left | |
std::string name; | |
// Card ( id, level, type, element, power[], name ); |
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
# Derives from Fielding's dotfiles repo | |
# https://github.com/justfielding/dotfiles | |
timecap () { | |
filenumber=${1:-1} | |
delay=${2:-5} | |
scdir=${3:-./} | |
date_bin=$(which date) | |
screencap_bin="$(which screencapture)" | |
i=$filenumber | |
while [ 1 ] |
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 DrawableObject | |
{ | |
public: | |
virtual void Draw(GraphicalDrawingBoard&) const = 0; //draw to GraphicalDrawingBoard | |
}; | |
class Triangle : public DrawableObject | |
{ | |
public: | |
void Draw(GraphicalDrawingBoard&) const; //draw a triangle |
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
cmake_minimum_required ( VERSION 2.6 ) | |
set ( CMAKE_VERBOSE_MAKEFILE true ) | |
set ( CMAKE_BUILD_TYPE Debug ) | |
#set ( BUILD_SHARED_LIBS true ) | |
#set ( CMAKE_OSX_ARCHITECTURES i386;x86_64 ) # OSX Universal Library | |
set ( CMAKE_CXX_COMPILER "/usr/bin/clang++" ) | |
set ( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++" ) | |
set ( CMAKE_CXX_FLAGS_DEBUG "-gfull -O0 -Wall" ) |
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 SDLInput | |
{ | |
virtual void Input ( SDL_Event *input ) | |
{ | |
// while ( SDL_PollEvent ( input ) ) | |
switch ( input->type ) | |
{ | |
case SDL_KEYDOWN: | |
onKeyDown ( input->key.keysym.sym, input->key.keysym.mod ); | |
break; |
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
[ | |
{ | |
"ID" : 1, | |
"Level" : 1, | |
"Type" : 1, | |
"Element" : 0, | |
"Name" : "Geezard", | |
"ID" : 2, | |
"Level" : 1, | |
"Type" : 1, |
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
namespace nom | |
{ | |
class SDL_Drawable | |
{ | |
public: | |
virtual void Draw ( SDL_Surface *video_buffer ) const = 0; | |
}; | |
// Canvas | |
// Image |
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
/* | |
* Filename: platform.cpp | |
* Comments: | |
* Defines functions that are to be used on specific platforms. | |
*/ | |
#ifdef __APPLE__ | |
#include "CoreFoundation/CoreFoundation.h" | |
#include <iostream> | |
#endif |
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 | |
# 2012-05/01:jeff | |
# | |
# Geeklet (GeekTools / OSX) | |
# | |
# Github Feed for i8degrees | |
# | |
URL="https://github.com/i8degrees.atom" |