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
--- p6.cpp 2014-03-28 22:55:37.000000000 -0500 | |
+++ p6.c 2014-03-28 23:02:28.000000000 -0500 | |
@@ -7,9 +7,8 @@ | |
#define PNG_DEBUG 3 | |
#include <png.h> | |
-#include <glm/glm.hpp> | |
-#include <glm/gtc/matrix_transform.hpp> | |
-#include <glm/gtc/type_ptr.hpp> | |
+#include <kazmath/kazmath.h> |
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
local random = math.random | |
local function uuid() | |
local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' | |
return string.gsub(template, '[xy]', function (c) | |
local v = (c == 'x') and random(0, 0xf) or random(8, 0xb) | |
return string.format('%x', v) | |
end) | |
end |
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
### Keybase proof | |
I hereby claim: | |
* I am jaybaird on github. | |
* I am jaybaird (https://keybase.io/jaybaird) on keybase. | |
* I have a public key whose fingerprint is 03D2 571D BB3B 13EA 14DF 41EB E387 51C8 785C 80DE | |
To claim this, I am signing this object: |
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
#import <Foundation/Foundation.h> | |
@interface Node : NSObject | |
@property (nonatomic) NSInteger identifier; | |
@property (nonatomic, copy) NSString *value; | |
+ (Node *)nodeWithIdentifier:(NSInteger)identifier value:(NSString *)value; | |
@end | |
@implementation Node | |
+ (Node *)nodeWithIdentifier:(NSInteger)identifier value:(NSString *)value { |
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
NSString * eventForCategoryAction(NSString *category, NSString *action) { | |
return [NSString stringWithFormat:@"%@:%@", (category) ? category : @"default", action] | |
} | |
void __attribute__((overloadable)) TrackEvent(NSString *category, NSString *action, NSDictionary *infoDict) { | |
[Flurry trackEvent:eventForCategory(category, action) withParameters:infoDict]; | |
} | |
void __attribute__((overloadable)) TrackEvent(NSString *category, NSString *action) { | |
TrackEvent(category, action, nil); |
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
package my.elasticsearch; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.RandomAccessFile; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Map; |
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
javascript:(function() { | |
var object_tags = document.getElementsByTagName('object'); | |
var embed_tags = document.getElementsByTagName('embed'); | |
var filter = new RegExp('.*?((?:[a-z][a-z\\.\\d\\-]+)\\.(?:[a-z][a-z\\-]+))(?![\\w\\.])'); | |
var pullUrls = function(elements, attr) { | |
var urls = []; | |
for (var i=0; i < elements.length; i++) { | |
var data = elements[i].getAttribute(attr); |
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
import foo |