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
" Ggisty | |
" just grep the gist directory. | |
" needs gisty to use this. see the pages below. | |
" http://d.hatena.ne.jp/swdyh/20081207/1228655198 | |
" TODO: needs to handle 'No match' error | |
" | |
" write the code to .vimrc to define gists root dir | |
" | |
"let g:ggistyRootPath = '~/dev/gists' | |
" |
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
-- tell application "iTerm" | |
-- tell the first terminal | |
-- tell the last session | |
-- set cmd to "cd /temp/" | |
-- write text cmd | |
-- end tell | |
-- end tell | |
-- end tell | |
-- tell application "Finder" | |
-- if exists process "iTerm" then |
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
" ======================================================= | |
" | |
" File: open_termina_custom.vim | |
" | |
" This file was modified by Takazudo. (takazudo[at]gmail.com) | |
" This opens iTerm instead of Terminal in Mac. | |
" | |
" referred web sites: | |
" http://iterm.sourceforge.net/scripting.shtml | |
" http://devilelephant.blogspot.com/2007/08/os-x-finder-iterm-applescript-window.html |
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
/** | |
* $.ua | |
* iPhone, iPad, iPod detection | |
*/ | |
$.ua = (function(){ | |
var o = {}; | |
var ua = navigator.userAgent; | |
$.each(['iPhone', 'iPod', 'iPad'], function(i, current){ | |
o[current] = Boolean(ua.match(new RegExp(current, 'i'))); | |
o.appleDevice = o.appleDevice || o[current]; |
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
/*! | |
* $.fn.isInWindow | |
* | |
* version 0.0.1 (2010/11/17) | |
* author: Takeshi Takatsudo (takazudo[at]gmail.com) | |
* license: MIT | |
* depends: jQuery 1.4.4 | |
*/ | |
(function($, undefined){ // start encapsulation |
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
/* kotaroclearfix */ | |
.clearfix { *zoom: 1; } | |
.clearfix:after { content: ''; display: block; clear : both; height: 0; } | |
@media print { .clearfix:after { height: 1px; margin-bottom: -1px; visibility: hidden; } } |
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
<!-- title: emptyhtmltemplate --> | |
<!doctype html> | |
<html class="no-js" lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="style.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></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
function! CSS3PropertyDuplicate() | |
let reg_save = @@ | |
silent normal Y | |
let css3 = @@ | |
let ind = matchlist(css3, '\v(\s*)(.*)') | |
let webkit = ind[1] . "-webkit-" . ind[2] | |
let moz = ind[1] . "-moz-" . ind[2] | |
let ms = ind[1] . "-ms-" . ind[2] | |
let o = ind[1] . "-o-" . ind[2] |
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
// usage: log('inside coolFunc', this, arguments); | |
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ | |
window.log = function(){ | |
log.history = log.history || []; // store logs to an array for reference | |
log.history.push(arguments); | |
if(this.console) { | |
arguments.callee = arguments.callee.caller; | |
console.log( Array.prototype.slice.call(arguments) ); | |
} | |
}; |
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
/** | |
* browser sinffing | |
* http://james.padolsey.com/javascript/detect-ie-in-js-using-conditional-comments/ | |
*/ | |
(function(){ | |
var ie = (function(){ | |
var undef, | |
v = 3, | |
div = document.createElement('div'), |