Skip to content

Instantly share code, notes, and snippets.

@Milly
Milly / make
Created January 27, 2009 04:19
autorun make or ant
#!/bin/sh
MAKECMD=/usr/bin/make
# ANTCMD=/usr/local/bin/ant
ANTCMD=/cygdrive/c/dev/ant/bin/ant
FILTER="/usr/bin/nkf -Swud"
if [ -r Makefile -o -r makefile ]; then
"$MAKECMD" "$@"
elif [ -r build.xml ]; then
@Milly
Milly / pixiv_ajaxer.user.js
Last active September 3, 2015 17:45
pixiv to dynamic greasemonkey script
// ==UserScript==
// @name pixiv ajaxer
// @namespace http://d.hatena.ne.jp/MillyC/
// @include http://www.pixiv.net/*
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// @author Milly
// @version 1.0.20130315
// ==/UserScript==
@Milly
Milly / wikipedia_citenote_tooltip.user.js
Created September 14, 2009 15:06
Add citenote tooltip to Wikipedia
// ==UserScript==
// @name WikipediaCiteNoteTooltip.user.js
// @namespace http://d.hatena.ne.jp/MillyC/
// @description Wikipedia cite-note tooltip
// @include http://*.wikipedia.org/wiki/*
// ==/UserScript==
(function(){
GM_addStyle(
@Milly
Milly / highlight_spaces.vim
Created February 10, 2010 08:29
Add highlight for spaces.
" Vim plugin file - highlight_spaces
"
" Last Change: 08 February 2010
" Maintainer: Milly
" Purpose: Add highlight for spaces.
"=============================================================================
if exists("loaded_highlight_spaces")
finish
endif
@Milly
Milly / commentout.vim
Created February 10, 2010 08:30
Mapping keys to commentout(\c) and uncomment(\u).
" Vim plugin file - commentout
"
" Last Change: 08 February 2008
" Maintainer: Milly
" Purpose: Mapping keys to commentout(\c) and uncomment(\u).
"=============================================================================
" Define "{{{1
if exists("loaded_commentout")
finish
endif
@Milly
Milly / openurl.vim
Created February 10, 2010 08:42
[VIM] Open url or file with default viewer.
" Vim plugin file - openurl
"
" Last Change: 13 Mar 2013
" Maintainer: Milly
" Purpose: Open url or file with default viewer.
" Options:
" g:openurl_regex - URL match regex (default: empty)
" g:openurl_dos_path - Enable DOS path (default: 0)
" g:openurl_encoding - Character encoding for URL (default: auto detect)
" g:openurl_highlight - Highlight URL (default: 1)
@Milly
Milly / twitter_follow_button.js
Created March 16, 2010 15:01
Add follow button to Twitter time line
// ==UserScript==
// @name Twitter Follow Button
// @namespace http://d.hatena.ne.jp/MillyC/
// @description Add follow button
// @include http://twitter.com/*
// @exclude http://twitter.com/oauth_clients*
// @exclude http://twitter.com/oauth/*
// @exclude http://twitter.com/settings/*
// @version 0.1
// ==/UserScript==
@Milly
Milly / cocolo-clock.gg.xml
Created May 24, 2010 06:20
ブログ妖精ココロ Google Gadget
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="ココロ"
title_url="http://www.cocolog-nifty.com/cocolo/"
author="Milly"
author_link="http://d.hatena.ne.jp/MillyC/"
width="120"
height="220">
</ModulePrefs>
<UserPref name="character" display_name="キャラ" datatype="enum" default_value="">
@Milly
Milly / allunofficialnet_extend.user.js
Created June 25, 2010 14:38
allunofficial.net extender
// ==UserScript==
// @name allunofficial.net extender
// @namespace http://d.hatena.ne.jp/MillyC/
// @include http://allunofficial.net/trpg/action.php*
// @include http://allunofficial.net/trpg/arianrhod_pc_making.html
// ==/UserScript==
// Sortable skill table {{{1
if ('addLineSkill' in unsafeWindow) {
@Milly
Milly / gem-fetch-dependencies
Created April 8, 2011 09:43
Extend 'gem fetch' command. Fetch all dependencies.
#!/usr/bin/ruby
require 'rubygems'
require 'rubygems/commands/fetch_command'
class Gem::Commands::FetchCommand
def add_version_option_with_fetch_depends
add_version_option_without_fetch_depends
add_option('-y', '--[no-]dependencies',
"Fetch dependent gems") do |value, options|