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
javascript:d=document;w=window;t='';if(d.selection){t=d.selection.createRange().text;}else%20if(d.getSelection){t=d.getSelection();}else%20if(w.getSelection){t=w.getSelection();}%20;void(w.open('http://eow.alc.co.jp/'+encodeURIComponent(t)+'/UTF-8/',%20'_blank',%20'')) |
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
javascript:d=document;w=window;t='';if(d.selection){t=d.selection.createRange().text;}else%20if(d.getSelection){t=d.getSelection();}else%20if(w.getSelection){t=w.getSelection();}%20;void(w.open('http://ja.wikipedia.org/wiki/'+encodeURIComponent(t),%20'_blank',%20'')) |
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
<?php | |
// テスト対象のコントローラ | |
// app/controllers/hoge_controller.php | |
class HogeController extends AppController { | |
var $name = 'Hoge'; | |
var $uses = array('Hoge'); | |
function index() { | |
$this->Hoge->recursive = 0; | |
$this->set('hoge', $this->paginate()); |
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
/* @charset "euc-jp" */ | |
/* 京 hatena 4.01 transitinal quirks mode */ | |
/* overwrite hatena_simpleheader color=wh */ | |
#simple-header { | |
background-color: #06101a; | |
} | |
#simple-header input.search-button { |
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
<?php | |
// array_change_key_case.php | |
$cnt = 1000; | |
$ret = array(); | |
$array = makeAssoc($cnt); | |
while ($cnt--) { | |
$ret = array_change_key_case($array); | |
} |
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
" こういうHTMLがあったときに | |
" <div id="hoge" class="fuga"> | |
" ... | |
" </div> | |
" | |
" 実行するとこうなる | |
" <div id="hoge" class="fuga"> | |
" ... | |
" </div><!-- /div#hoge.fuga --> |
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
if exists("b:did_ftplugin_css_flyquickfixmake") | |
finish | |
endif | |
let b:did_ftplugin_css_flyquickfixmake = 1 | |
if (has('mac')) | |
setlocal makeprg=csslint\ --rules= | |
\display-property-grouping, | |
\ids, |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
# use Data::Dumper; | |
my $str = <<EOF; | |
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
; | |
; Solarized [1] for TeraTerm [2] | |
; | |
; [1] <http://ethanschoonover.com/solarized> | |
; [2] <http://ttssh2.sourceforge.jp/> | |
; | |
; * Add this to your TERATERM.ini | |
; * ANSIColor setting is the same between Solarized Light and Dark, | |
; but you need to choose VTColor and VTReverseColor settings | |
; depending on your flavour (Light or Dark). |
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 -- | |
set -e | |
echo "" | |
echo "START POST-MERGE HOOK" | |
echo "" | |
HOOK_DIR=`dirname $0` #git_hooks directory | |
PROC_DIR="$HOOK_DIR/../.." #vimproc directory |