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
////////////// contraining bits libarary | |
// parse.com CloudCode functions to allow kind-of unique column (when requests do not come for 1 object at the very same time) | |
// (that may happen with queue of commands, which can cause multiple objects to be created) | |
// Generic Functions, used as the sample at the end of file | |
// ALLOW NEW OBJECT, NEW WINNER TAKES IT ALL = OVERWRITE OLD OBJECT | |
function parseDBrequestUpdateUniqueOne(request,response,dbName,keyName) { | |
if (request.object.existed() ) { |
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
//extract from class ObCommons, hence the calls to this class are named so | |
+(UIImage*) createImageFromView:(UIView*)newt withRect:(CGSize)rensize { | |
UIGraphicsBeginImageContextWithOptions(rensize,NO,[ObCommons retinaFactor]); | |
[newt.layer renderInContext:UIGraphicsGetCurrentContext()]; | |
UIImage *ximage = UIGraphicsGetImageFromCurrentImageContext(); | |
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
#!/usr/bin/env /usr/local/bin/node | |
/*jshint node: true */ | |
/* had to change path to be absolute , mac os x server 10.9.4 (had to also enable CGI on apache settings)*/ | |
'use strict'; | |
var Processor = require('/usr/local/lib/node_modules/node-cgi/lib/Processor'); | |
var filename = process.env.PATH_TRANSLATED; | |
var options = { | |
defaultType: 'js', |
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
#put extension filter instead of * , like *jar | |
for file in *; do md5sum "$file" > "${file}".md5; done |
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
# courtesy of https://encode.su/threads/1315-PAQ8PX-for-Mac-OS-X | |
g++ paq8px_v69.cpp -DUNIX -DNOASM -O2 -Os -s -fomit-frame-pointer -o paq8px_v69 |