This file contains hidden or 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 | |
#git_diff_macvim | |
mvim --servername GITDIFF --remote-tab-silent +"vertical diffsplit $2|wincmd w" "$5" | |
sleep 0.1 | |
SN=`mvim --serverlist | grep "GITDIFF"` | |
until [ "$SN" == "GITDIFF" ]; do | |
sleep 0.1 | |
SN=`mvim --serverlist | grep "GITDIFF"` |
This file contains hidden or 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
// daily_memo.js | |
// Sakura Editor Macro | |
// 日付メモファイル生成マクロ | |
// | |
// 指定フォルダ下に、最終投稿メモファイルを基に、本日分のメモファイルを作成する。 | |
// メモファイル名形式:「yyyymmdd.txt」 | |
//======================================= | |
// 設定 |
This file contains hidden or 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
// grails-app/controllers/cal/CalendarController.groovy | |
package cal | |
import net.fortuna.ical4j.data.* | |
import net.fortuna.ical4j.model.* | |
import net.fortuna.ical4j.model.property.* | |
class CalendarController { | |
def index = { |
This file contains hidden or 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
@ECHO OFF | |
REM 簡易バックアップ バッチ | |
REM 引数のファイル群のタイムスタンプを付けたコピーを作成する | |
REM ファイル名に、& , = が含まれる場合は正しく動かない | |
SETLOCAL | |
SET BACKUP_DIR=_backup | |
:BEGIN | |
if "%~1" == "" GOTO FINISH | |
SET T=%~t1 |
This file contains hidden or 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
let cmd = "!ls" | |
function! s:RunCmd() | |
let tmpfile=tempname() | |
silent exe cmd . " < " . expand("%") . " > " . tmpfile . " 2>&1" | |
execute ":sn " . tmpfile | |
endf | |
com! Run call s:RunCmd() | |
map <C-.> :call s:RunCmd()<CR> |
This file contains hidden or 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
# | |
# ActiveLdap Fixture | |
# | |
# class TestCase | |
# include ActiveLdap::TestLdapFixture | |
# self.ldap_fixture_path = "#{RAILS_ROOT}/test/fixtures/ldap" | |
# end | |
# | |
# class HogeTest < TestCase | |
# ldap_fixtures :people |
This file contains hidden or 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
// base | |
javascript:(function(d,u){var e=d.createElement('script');e.setAttribute('language','JavaScript');e.setAttribute('src',u);d.body.appendChild(e);})(document,'http://'); | |
// JQuery 1.7.2 | |
javascript:(function(d,u){var e=d.createElement('script');e.setAttribute('language','JavaScript');e.setAttribute('src',u);d.body.appendChild(e);})(document,'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'); |
This file contains hidden or 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
# | |
# Define handy methods for debug in irb. | |
# | |
module Handy | |
# Call Kernel#p method with self. | |
def _p | |
p self | |
self | |
end |
This file contains hidden or 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
" Smooth Scrooll modified | |
" 2011/01/23 | |
" [original] http://www.vim.org/scripts/script.php?script_id=1601 | |
" | |
" * The global variable g:scroll_skip_line_size is the scroll lines by one time. | |
" * The scroll is stopped when reaching the top and bottom of the buffer. | |
" | |
" Smooth Scroll | |
" |
This file contains hidden or 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
#! /opt/local/bin/ruby -Ku | |
require 'kconv' | |
require 'cgi' | |
require "rexml/document" | |
require "net/http" | |
require "uri" | |
uid = ARGV[0] | |
password = ARGV[1] | |
hatena_id = ARGV[2] |
OlderNewer