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
/* | |
Ancestry - jquery.ancestry.js | |
As discussed in the jQuery Development Google Group. | |
Released under the MIT license. | |
Involved: Michael Geary, Diego Perini, John-David Dalton, John Resig, and Nathan Hammond | |
Compiled: Nathan Hammond | |
*/ | |
jQuery.comparePosition = function ( element, context) { |
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
/* | |
Serialize Subsection - jquery.subsection.js | |
Copyright (c) 2008 Nathan Hammond | |
Released under the MIT license. | |
With thanks to Michael Geary, Diego Perini, John-David Dalton, John Resig, and Garrett Smith for vetting elements of this idea. | |
Requires jQuery revision 5826 or later with the change to jQuery.fn.serializeArray() to query this.elements. | |
Requires Ancestry plugin. | |
*/ | |
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
/*! | |
* jQuery TextChange Plugin | |
* http://www.zurb.com/playground/jquery-text-change-custom-event | |
* | |
* Copyright 2010, ZURB | |
* Released under the MIT License | |
*/ | |
(function ($) { | |
$.event.special.textchange = { | |
setup: function (data, namespaces) { |
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
/* | |
* Textarea Diff | |
* Simple textarea diff functionality. | |
* | |
* Copyright 2010, Nathan Hammond | |
* Released under the MIT License | |
*/ | |
function diff(oldtext, newtext) { | |
// Only one difference. Guaranteed contiguous. |
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
/* | |
To run test... | |
1. Get wsbench. Update the shebang in wsbench/wsbench if necessary. | |
> git clone git://github.com/pgriess/wsbench.git | |
> cd wsbench | |
2. Add in our test case by saving this file (wsbenchtest.js) into the wsbench directory. | |
3. Start the socket.io chat example. |
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
var http = require('http'); | |
var fs = require('fs'); | |
var redisio = http.createClient(80, 'redis.io'); | |
function getCommands() { | |
var commandrequest = redisio.request('GET', '/commands.json', {'Host': 'redis.io'}); | |
commandrequest.end(); | |
var commandsfile = fs.createWriteStream('commands.json'); | |
commandrequest.on('response', function (response) { |
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
// Load jQuery. | |
var $loader = function(callback) { | |
this.callback = callback; | |
this.check$(); | |
} | |
$loader.prototype = { | |
// Check to see if we have our own copy of jQuery. | |
check$: function(version) { | |
// Load event version. | |
// TODO: Limit to our earliest supported version of jQuery. |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Ember Bug</title> | |
<script type="text/x-handlebars" data-template-name="president"> | |
The President of the United States is {{name}}. | |
</script> | |
</head> | |
<body> | |
<script src="http://code.jquery.com/jquery-1.7.1.js"></script> |
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
<!doctype html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<style type="text/css"> | |
html { overflow-y: scroll; } | |
.tile td { width: 20px; height: 20px; } | |
.tile td.full { background: red;} | |
.board { width: 800px; height: 800px; background: black; } | |
</style> |
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
====================================================================== | |
ERROR: test_openjpeg (__main__.default) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "tests/runner.py", line 4744, in test_openjpeg | |
make_args=[]) # no -j 2, since parallel builds can fail | |
File "tests/runner.py", line 275, in get_library | |
copy_project=True) | |
File "/Users/nathanhammond/Repos/emscripten/tools/shared.py", line 450, in build_library | |
stderr=open(os.path.join(project_dir, 'configure_err'), 'w'), env=env) |
OlderNewer