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
var Geo = navigator.geolocation, // {Object|null} a shortcut to the geolocation static class | |
options = { // {Object} options available to calls for position | |
enableHighAccuracy: false, // {Boolean} Whether or not to use more resources to get a more accurate position | |
maximumAge: 0, // {Number|Infinity} The maximum number of milliseconds since the last check. | |
timeout: null // {Number|null} The maximum number of milliseconds to wait for a fix | |
}, | |
watchId; // {Number} an ID to a watch timeout | |
// handles an error finding the user's position | |
function onError(error) { |
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
/^(?:[a-z\d!#\$%&'\*\+\-\/=\?\^_`\{\|\}~]+|\.)+@[a-z\d\-]+(?:\.[a-z\d\-]+)*$/i |
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
// c.f. http://twitter.com/trek/status/19360844819 | |
Object.prototype.toString = function() { | |
return "Fuck you, bitches"; | |
}; | |
alert({ foo: 'bar' }); |
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
var GRUBERS_URL_RE = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i; |
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 { | |
import flash.display.MovieClip; | |
import flash.events.Event; | |
/** | |
* Sometimes, when the SWF is pulled from cache, the first frame is | |
* is played before the Flash player is actually initialized. Many | |
* functions do not yet exist at this point. In addition, stage.stageWidth |
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
Modernizr.addTest('textoverflow', function () { | |
var s = document.documentElement.style; | |
return 'textOverflow' in s || 'OTextOverflow' in s; | |
}); |