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
class MultiGrep | |
def usage | |
puts "Example: ruby multi_grep.rb base.php:10-20 search/*.php" | |
end | |
def grep(argv = ARGV) | |
base = argv.first | |
path, range = base.split(":") | |
s, e = range.split("-").map { |i| i.to_i } |
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
// AsakusaSatellite Image Paster | |
(function($, document, window, undefined){ | |
$('form.inputarea').on('paste', function(event){ | |
var items = event.originalEvent.clipboardData.items; | |
for (var i = 0, l = items.length; i < l; i++) { | |
var item = items[i]; | |
if (item.type.indexOf("image") == -1) { | |
continue; | |
} |
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
" | |
" .vimrc | |
" @author mallowlabs | |
" @update 2007/09/29 | |
" | |
" - General - | |
syntax on " enable syntax heilight | |
set nocompatible " behabe vim intead of vi | |
"set visualbell " enable visual bell |
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 Outputz for Opera | |
// @author mallowlabs (http://d.hatena.ne.jp/mallowlabs) | |
// http://outputz.com | |
// @include http://outputz.com/?from=userjs | |
// | |
// ------ Add urls to track your inputs ------ | |
// @include http://twitter.com/home | |
// @include http://d.hatena.ne.jp/*/edit | |
// ------------------------------------------- |
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 Hit-a-Hint accelerator | |
// @description Add CSS for HaH & kill page shortcut when HaH is on | |
// @namespace http://d.hatena.ne.jp/edvakf/ | |
// @include http://* | |
// ==/UserScript== | |
(function(){ | |
var log = opera.postError; | |
var moveFocusFunc = { |
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 migemo-search-with-google-suggest.js | |
//@author mallowlabs (http://d.hatena.ne.jp/mallowlabs) | |
//@version 0.0.1 | |
//@description : Inclemental migemo search with Google Suggest | |
//@include * | |
//==/UserScript== | |
// Usage | |
// Ctrl/Cmd + "/" : 検索ボックス表示 | |
// 検索ボックス表示状態 |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>0-slideshow</title> | |
<meta http-equiv="Content-Script-Type" content="text/javascript"> | |
<meta name="viewport" content="width=320" /> | |
<style type="text/css"><!-- | |
body { margin:0; } | |
img { | |
margin: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
// ==UserScript== | |
// @name Google Calendar daytime | |
// @author mallowlabs | |
// @version 0.0.3 | |
// @namespace http://mallowlabs.s206.xrea.com/ | |
// @published 2008-01-10 | |
// @modified 2009-04-11 | |
// @license public domain | |
// @description : Add daytime to Google Calendar | |
// @include http://calendar.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
<?xml version="1.0" encoding="UTF-8"?> | |
<Module> | |
<ModulePrefs title="Dokusyo Meter" author_email="mallowlabs@gmail.com"> | |
<Require feature="opensocial-0.8" /> | |
</ModulePrefs> | |
<Content type="html" view="profile,canvas,home"> | |
<![CDATA[ | |
<style type="text/css"> | |
a img { border-style: none; } | |
</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
//==UserScript== | |
//@name migemo-unite.js | |
//@author mallowlabs (http://d.hatena.ne.jp/mallowlabs) | |
//@version 0.0.1 | |
//@description : Inclemental migemo search with Opera Unite | |
//@include * | |
//==/UserScript== | |
// Usage | |
// Ctrl/Cmd + "/" : 検索ボックス表示 | |
// 検索ボックス表示状態 |
OlderNewer