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
on his 8th birthday | |
a magic hammer | |
becomes the fate | |
of a new hero | |
A new 16 Bit adventure | |
is about to begin | |
get ready | |
for 2d platform action |
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
{ | |
"components": [ | |
{ | |
"id": 1, | |
"layerId": 369, | |
"visible": true, | |
"type": "layer", | |
"path": [ | |
"level completed" | |
], |
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
import Image | |
import shutil | |
import os | |
def resize(sourceImage, newWidth, newHeight, destName): | |
img = Image.open(sourceImage) | |
img = img.resize((newWidth, newHeight), Image.ANTIALIAS) | |
img.save(destName) | |
print destName, "saved" |
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
do | |
{ | |
... | |
} while(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
FILE *fopenFile( String path,String mode ){ | |
if( !path.StartsWith( "monkey:" ) ){ | |
path=path; | |
}else if( path.StartsWith( "monkey://data/" ) ){ | |
path=pathForResource( path ); | |
}else if( path.StartsWith( "monkey://internal/" ) ){ | |
NSString *docs=[@"~/Documents" stringByExpandingTildeInPath]; | |
path=String( docs )+"/"+path.Slice(18); | |
}else{ |
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 AnimationStep | |
End | |
Class AnimationStepLinearMove Extends AnimationStep | |
End | |
Class AnimationStepFadeOut Extends AnimationStep | |
End | |
Class AnimationStepAction Extends AnimationStep |
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
# | |
# Create Table | |
# | |
DROP TABLE IF EXISTS `mytable`; | |
CREATE TABLE IF NOT EXISTS `mytable` ( | |
`id` int unsigned AUTO_INCREMENT, | |
`myEnum` enum('foo', 'bar'), | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
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> | |
class MyCallbacks | |
{ | |
public: | |
virtual void onResponse(char* response) | |
{ | |
std::cout << response << std::endl; | |
} | |
}; |
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 "bubblesort.h" | |
#include <algorithm> | |
void bubblesort(int *array, int len) { | |
if (!array || (len < 2)) | |
return; | |
bool completed = false; | |
while (!completed) { |
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
/* simple example */ | |
#include <iostream> | |
#include "prime.h" | |
int main (int argc, char * const argv[]) { | |
long number = 33; | |
Prime::Vec2 factors = Prime::GetPrimeFactors(number); | |
NewerOlder