Public Gists by hokaccha

Gravatar
Thu Nov 19 06:29:19 -0800 2009
1
2
3
#!/usr/bin/env perl
 
use strict;
Gravatar
Thu Nov 19 05:47:19 -0800 2009
1
2
3
#!/usr/bin/env perl
 
use strict;
Gravatar
Tue Nov 03 18:46:29 -0800 2009
1
2
3
" textobj-camelcase - Text objects for camel case.
" Version: 0.0.1
" Author: Kazuhito Hokamura
Gravatar
Wed Oct 28 06:45:27 -0700 2009
1
2
3
" textobj-template - Text objects for WAF template engine.
" Version: 0.0.1
" Author: Kazuhito Hokamura
Gravatar
Sun Oct 25 10:09:00 -0700 2009
1
2
3
" snipMate再読み込み。xxx.snippetを開いているときに:call SnipMateReload()すればOK
function! SnipMateReload()
    if &ft == 'snippet'
Gravatar
Sun Oct 25 04:21:56 -0700 2009
1
2
3
" ウインドウ単位で開いたファイルの履歴をたどる
function! FileJumpPush()
    if !exists('w:histories')
Gravatar
Sun Oct 04 02:14:16 -0700 2009
1
2
3
" Macでクリップボードにコピーするoperator
if has('mac')
    function! Pbcopy(type, ...)
Gravatar
Sat Oct 03 01:21:29 -0700 2009
1
2
3
function! ZoomToggle()
    let normal_font = 'Monaco:h12'
    let zoom_font = 'Monaco:h25'
Gravatar
Thu Oct 01 18:22:06 -0700 2009
1
2
3
" HTMLとかでドキュメントルートからの絶対パスのファイルを開く(gfみたいな感じで)
" 絶対パスじゃなかったら(/で始まってなかったら)gfと同じ
" ドキュメントルートのディレクトリは配列で複数指定できる。
Gravatar
Tue Aug 25 06:17:10 -0700 2009
1
2
3
function! VisualCurrentIndentBlock()
    let current_indent = indent('.')
    let current_line = line('.')
Gravatar
Mon Aug 03 04:03:48 -0700 2009
1
2
3
function! g:Hatena(arg, line1, line2)
perl << EOF
    use Text::Hatena;
Gravatar
Mon Aug 03 03:45:13 -0700 2009
1
2
3
if !has('ruby')
    finish
endif
Gravatar
Fri Jul 17 06:41:19 -0700 2009
1
2
3
Class("Rollover", {
    // プロパティの設定
    has: {
Gravatar
Fri Jul 17 06:38:05 -0700 2009
1
2
3
var Rollover = function(elem, suffix) {
    // 初期化する
    this.namespace = "Rollover"; // 名前空間
Gravatar
Tue Jun 16 00:11:58 -0700 2009
1
2
3
#!/usr/bin/env perl
 
use strict;
Gravatar
Thu Apr 09 16:23:39 -0700 2009
1
2
3
(function() {
    var today = new Date();
    if (today.getDate() == 9 && today.getMonth() == 3) {
Gravatar
Thu Apr 09 02:31:07 -0700 2009
1
2
3
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
gist: 58603 sfinit shell script
Gravatar
Wed Feb 04 23:44:19 -0800 2009
1
2
3
#!/bin/sh
pjName=$1
version=$2
gist: 58602 hatebu2delicious.pl
Gravatar
Wed Feb 04 23:40:34 -0800 2009
1
2
3
#!/usr/bin/env perl
 
use strict;
gist: 58601 gmailUnread user script
Gravatar
Wed Feb 04 23:38:46 -0800 2009
1
2
3
// ==UserScript==
// @name gmailUnread
// @namespace http://webtech-walker.com/