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 ($) { | |
| $.event.special.textchange = { | |
| setup: function (data, namespaces) { | |
| $(this).bind('keyup', $.event.special.textchange.handler); | |
| $(this).bind('cut paste input', $.event.special.textchange.delayedHandler); | |
| }, | |
| teardown: function (namespaces) { |
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 i = -1, n = map.length; | |
| // loop through each of the entries within map | |
| for(i; ++i < n;) { /* do something */ } |
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
| // removes leading zeroes from a string | |
| function removeZeroes(str) { | |
| var zeroPattern = /^[0]*/; | |
| return str.replace(zeroPattern,''); | |
| } |
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
| /* via www.jailbreakme.com | |
| pdfs available at http://www.jailbreakme.com/_/ | |
| */ | |
| var agent = navigator.userAgent; | |
| var index = agent.indexOf("OS "); | |
| function goto_faq() { | |
| if (!String(window.location).match(/faq/)) { | |
| window.location = "faq.html" |
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
| /* usage: logThis('pixel[0]',pixel[0]); */ | |
| function logThis(name,str) { | |
| console.log(name+': ' + str); | |
| } |
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/ruby -w | |
| require 'rubygems' | |
| require 'net/http' | |
| require 'rexml/document' | |
| include REXML | |
| API_KEY = 'KEY GOES HERE' | |
| LASTFM_USER = 'USERNAME GOES HERE' |
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
| <select name="states"> | |
| <option value="" selected="selected">Select a State</option> | |
| <option value="AL">Alabama</option> | |
| <option value="AK">Alaska</option> | |
| <option value="AZ">Arizona</option> | |
| <option value="AR">Arkansas</option> | |
| <option value="CA">California</option> | |
| <option value="CO">Colorado</option> | |
| <option value="CT">Connecticut</option> | |
| <option value="DE">Delaware</option> |
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
| --Kod.app Daily Updater | |
| --Author: John Michel | |
| --Email: john.michel@gmail.com | |
| --http://www.cowbird.org | |
| --Version 0.1 | |
| --set local directory info | |
| set remFile to "Kod.zip" | |
| set locDir to "~/" | |
| set locFile to "Kod.zip" |
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
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Felix Gnass <https://github.com/fgnass> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Breaking Bad · CodePen</title> | |
| <!-- | |
| Copyright (c) 2012 John Michel, http://codepen.io/johnmichel | |
| Permission is hereby granted, free of charge, to any person obtaining |