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
// Sniff out visited links by a user with jQuery | |
// by Greg Leuch <http://www.gleuch.com> | |
// based on an initial idea from Jonathan Snook <http://snook.ca> | |
// idea: <http://twitter.com/snookca/status/1121377463> | |
// Note: Only works if user has browser history enabled (save history for x >0 days) | |
// Edit: looks like my code mimics same idea that Aza Raskin's SocialHistory.js does, sans iframe and visit color matching. <http://www.azarask.in/blog/post/socialhistoryjs/> |
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
// adapted from jquery.com | |
// Hehe. | |
if ( window.addEventListener ) { | |
var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65"; | |
window.addEventListener("keydown", function(e){ | |
kkeys.push( e.keyCode ); | |
if ( kkeys.toString().indexOf( konami ) >= 0 ) { | |
// Just replace www.google.com w/ whatever | |
window.location = "http://www.google.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
# How-to expire memcache cache fragment files from script/console | |
Item.find(:all).each{|m| ActionController::Base.new.expire_fragment("item/#{m.id}")} |
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
// ==UserScript== | |
// @name Ctrl+F'd | |
// @namespace by halvfet <http://www.halvfet.com> | |
// @description Rush Limbaugh believes a censored internet can't be Ctrl+F'd (or Cmd+F for Mac users). | |
// @include * | |
// ==/UserScript== | |
/* | |
Ctrl+F'd | |
A GreaseMonkey script to censor text on a web page, in the Rush Limbaugh 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
<?php */ | |
Authorized Feeds to Google Reader | |
by Greg Leuch <http://www.halvfet.com> | |
More information at http://halvfet.com/io/adding-authorized-feeds-to-google-reader | |
*/ | |
$feeds = array( | |
'twitter'=> 'http://username:password@twitter.com/statuses/friends_timeline.rss', | |
); |
NewerOlder