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
#!/usr/bin/env ruby | |
require "optparse" | |
require "ostruct" | |
SENDMAIL = "/usr/sbin/sendmail" | |
def parse(args) | |
options = OpenStruct.new | |
options.to = [] |
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
Rubyのversion.hの日付けを更新するscript |
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
--- src/scim_skk_dictionary.cpp.orig 2005-12-18 22:02:39.000000000 +0900 | |
+++ src/scim_skk_dictionary.cpp 2008-11-30 04:38:13.000000000 +0900 | |
@@ -545,5 +545,7 @@ | |
list<CandPair> &cl = m_dictdata[key]; | |
- for (list<CandPair>::iterator it = cl.begin(); it != cl.end(); it++) { | |
+ for (list<CandPair>::iterator it = cl.begin(); it != cl.end();) { | |
if (it->first == data.first) { | |
- cl.erase(it); | |
+ it = cl.erase(it); | |
+ } else { |
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="現在の気温" | |
height="200" | |
description="livedoor 天気情報(現在の気温)1.01" | |
author="みやけむし" | |
author_email="miya.mail@gmail.com" | |
author_location="http://www7.plala.or.jp/miyake/" | |
screenshot="http://www7.plala.or.jp/miyake/Gadget/Temperature.png" | |
thumbnail="http://www7.plala.or.jp/miyake/Gadget/Temperature_thumbnail.png" |
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 ldr favicon hack | |
// @namespace http://d.hatena.ne.jp/javascripter/ | |
// @include http://reader.livedoor.com/reader/ | |
// @include http://fastladder.com/reader/ | |
// ==/UserScript== | |
(function() { | |
unsafeWindow.document.watch('title', | |
function(id, before, after) { | |
updateFavicon(); |
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 mltag | |
// @namespace http://jarp.does.notwork.org/userscripts | |
// @description Looks for things in the page that look like ML-tags but aren't hyperlinked, and converts them to clickable links. | |
// @include * | |
// ==/UserScript== | |
(function () { | |
const urlRegex = /\[(ruby[\w\-]+):(\d+)\]/ig; |
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
#! /bin/sh | |
export LC_TIME | |
LC_TIME=C | |
day=`date +%e` | |
plain=`cal -3` | |
sat=`cal -3 |sed '1s/./ /g;s/.\{18\}\(..\)\( \|$\)/ \1\2/g'` | |
sun=`cal -3 |sed '1s/./ /g;s/\(..\).\{18\}\( \|$\)/\1 \2/g'` | |
today=`cal -3 |sed 's/^\(.\{21,\}\) '"$day"' \(.\{21,\}\)$/\1 @ \2/' |tr -c '@\n' ' ' |sed s/@/"$day"/` | |
xy="${xy:=text 40,660}" | |
convert \ |
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
--- eval.c.orig 2009-12-21 17:11:42.000000000 +0900 | |
+++ eval.c 2009-12-24 19:18:21.671875000 +0900 | |
@@ -210,3 +210,3 @@ | |
# ifdef __CYGWIN__ | |
-int _setjmp(), _longjmp(); | |
+int _setjmp(); void _longjmp(); | |
# endif | |
--- gc.c.orig 2009-12-24 17:28:08.000000000 +0900 | |
+++ gc.c 2009-12-24 19:18:17.875000000 +0900 | |
@@ -42,3 +42,3 @@ |
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
# -*- coding: utf-8 -*- | |
require "fileutils" | |
require "time" | |
require "cgi" | |
Earthquake.init do | |
logdir = config[:logdir] || File.expand_path("~/.earthquake/log") | |
FileUtils.mkdir_p logdir | |
output do |item| |
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
"scriptnames | |
set nocp | |
set completeopt= | |
set viminfo='100,\"500,h,% | |
set fileencodings=iso-2022-jp,ucs-bom,utf-8,euc-jp,default | |
set incsearch | |
set notitle | |
set ambiwidth=double | |
set nf=alpha,hex | |
set clipboard=unnamed |
OlderNewer