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
history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' | sort -rn | head -100 |
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
# run Rhino + EnvJS in console: | |
env-js $ java -cp dist/env-js.jar jline.ConsoleRunner org.mozilla.javascript.tools.envjs.Main | |
# run Rhino + EnvJS: | |
env-js $ java -jar dist/env-js.jar -opt -1 |
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 Never MAAR! | |
// @namespace http://plurk.com/garcon | |
// @description Never mark all as read in Plurk accidentaly. | |
// @include http://plurk.com/* | |
// @include http://www.plurk.com/* | |
// ==/UserScript== | |
// | |
// Version: 20100220.01 | |
// |
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 | |
// | |
// This compiler is currently in beta status. | |
// The code is quick and dirty, but it works as far as I know. | |
// Feedback welcome: | |
// http://arantius.com/contact.php | |
// | |
// Released under GPLv2 license. | |
// |
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
// http://interval.cz/clanky/pokrocile-zpracovani-udalosti-napric-platformami/ | |
var events = new Object(); | |
events.addListener = function(element,type,fcn) | |
{ | |
if (!element.addEventListener && !element.attachEvent) return false; | |
if (element.addEventListener) element.addEventListener(type,fcn,false); | |
else if (element.attachEvent) | |
{ |
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
mysql -u username -p -h localhost data-base-name < data.sql |
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 Delicious Search Results on Google | |
// @namespace gaillard | |
// @description Shows results from Delicious on Google search pages | |
// @include http://www.google.*/search* | |
// @date 2009-03-07 | |
// @version 0.1 | |
// @GM_version 0.8.20080609.0 | |
// | |
// 99% of the code for this user script comes form markcarey's userscript 'Twitter Search Results on Google' (http://userscripts.org/scripts/show/43451) |
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 ptq(q) | |
{ | |
/* parse the query */ | |
/* semicolons are nonstandard but we accept them */ | |
var x = q.replace(/;/g, '&').split('&'), i, name, t; | |
/* q changes from string version of query to object */ | |
for (q={}, i=0; i<x.length; i++) | |
{ | |
t = x[i].split('=', 2); | |
name = unescape(t[0]); |
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 = { |