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
jsonp123( | |
{ | |
"//" : "Here comes the callback", | |
"callback": { | |
"//": "This has the first item", | |
"item": { | |
"title": "Databases", | |
"content": { | |
"item": { | |
"//": "Here's where the content is", |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net; | |
using System.IO; | |
namespace MyApplication | |
{ | |
/// <summary> |
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 JavaScript Library v1.5.1 | |
* http://jquery.com/ | |
* | |
* Copyright 2011, John Resig | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license | |
* | |
* Includes Sizzle.js | |
* http://sizzlejs.com/ |
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
/* | |
* Notes: Optimized for "set" operations | |
* Performance test URL: http://jsperf.com/global-storage-vs-jquery | |
*/ | |
(function($, unknown) { | |
// Usage: Instead of $(elem).data('key'), you use $.storage.get('key') for retrieval. | |
// Usage: Instead of $(elem).data('key', 'value'), you use $.storage.set('key', 'value') for set. | |
$.storage = { | |
get: function(key) { | |
if (typeof $.storage.db == 'undefined') { |
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
chrome.extension.onRequest.addListener( | |
function(request, sender, sendResponse) { | |
switch (request.message.action){ | |
case "addSong" : | |
Grooveshark.addSongsByID(request.message.ID, true); | |
break; | |
case "getSong" : | |
var song = GrooveShark.getCurrentSongStatus().song; | |
sendResponse({"songTitle": song}); | |
break; |
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 grid; | |
function Grid() { | |
var grid, quadrant, dash, stilt, breaks; | |
dash = '-------------------------'; | |
stilt = '| | | |'; | |
breaks = '\n\r'; | |
quadrant = { |
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
// {String} f File name | |
// {Boolean} c Condition | |
// {undefined} [l,j,s] Shortcut for var. | |
var loadjs = function(f,c,l,j,s,a) { | |
a = ((typeof f == 'object')? f : []); | |
f = ((typeof f == 'undefined') ? '' : | |
((typeof f == 'object') ? | |
((typeof f[0] !== 'undefined')? f[0] : '') | |
: f)); | |
l = f.length; |
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.getScript('http://code.jquery.com/jquery-latest.min.js', function(){ | |
$('iframe#appFrame').contents().find('button[name|="No, thanks"]').click(); | |
}); |
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.extend(jQuery.browser, | |
{ | |
IOS : navigator.userAgent.toLowerCase().match(/iP(hone|ad|od)/i) | |
} | |
); | |
// ... | |
if ($.browser.IOS) { | |
// Do something IOS-y |
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
(function($){ | |
var ns = {}; | |
ns.snoop = function(defaultStreamID){ | |
if (window.location.pathname == "/"){ | |
window.location = "https://plus.google.com/stream/cicles/" + defaultStreamID; | |
} else { | |
// | |
} | |
}; | |
$(window).ready(function(){ |