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
// | |
// Kumulos+MD5.h | |
// | |
@import KumulosSDK; | |
@interface Kumulos (MD5) | |
- (NSString*) md5:(NSString*) inString; |
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
// NOTE implementation created in March 2013, may no longer work with Emscripten master | |
// http://pubs.opengroup.org/onlinepubs/9699919799/functions/scandir.html | |
// filter and compar are currently ignored | |
_scandir = function (dirp, namelist, filter, compar) { | |
var dirPath = Pointer_stringify(dirp); | |
var path = FS.analyzePath(dirPath); | |
var files = []; | |
if (path.error == 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
<?php | |
$js = new JSContext(); | |
$js->registerFunction('var_dump', 'var_dump'); | |
$window = (object) [ | |
'foo' => function () { | |
print 'foo'; | |
} | |
]; |
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() { | |
Backbone.Model.prototype._save = Backbone.Model.prototype.save; | |
Backbone.Model.prototype.save = function (attrs, options) { | |
var that = this; | |
if (!options) { | |
options = {}; | |
} | |
if (this.savingNewRecord) { | |
// store or replace last PUT request with the latest version, we can safely replace old PUT requests with new ones | |
// but if there are callbacks from a previous PUT request, we need to make sure they are all called as well |