python のパッケージ Pygments をインストール。
$ sudo easy_install Pygments
pygmentize -f rtf -O 'fontface=Monaco,style=monokai' path/to/file.html | pbcopy
var scrollbarWidth = ( function () { | |
var outer = document.createElement( 'div' ); | |
outer.style.visibility = 'hidden'; | |
outer.style.width = '100px'; | |
outer.style.msOverflowStyle = 'scrollbar'; | |
document.body.appendChild( outer ); | |
var widthNoScroll = outer.offsetWidth; |
.myDiv { | |
padding-right: #{'5px' + '\\9'}; /* IE8,9,10 */ | |
} |
.s5--alignStart {text-align:left !important; } | |
.s5--alignEnd {text-align:right !important; } | |
.s5--alignCenter {text-align:center !important; } | |
.s5--alignTop {vertical-align:top !important; } | |
.s5--alignMiddle {vertical-align:middle !important; } | |
.s5--alignBottom {vertical-align:bottom !important; } | |
/* modifier:font size | |
========================================================================== */ |
var a = [ {x:1}, {x:2}, {x:1}, {x:1}, {x:3} ]; | |
console.log( unique( a ) ); // -> [ {x:1}, {x:2}, {x:3} ] | |
function unique ( array ) { | |
var result = []; | |
array.forEach( function ( el ) { | |
AutoFileName | |
Codecs33 | |
ConvertToUTF8 | |
Hayaku | |
HTML5 | |
Surround | |
Tag | |
THREE.js Autocomplete |
<div id="xxx"></div> | |
<script> | |
var noise = function ( x ) { | |
x = ( x << 13 ) ^ x; | |
return 1 - ( ( x * ( x * x * 15731 + 789221 ) + 1376312589 ) & 0x7fffffff ) / 1073741824; | |
} |
// UNDERSCORE PARTIAL | |
// | |
// Underscore.js 1.8.3 | |
// http://underscorejs.org | |
// (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | |
// Underscore may be freely distributed under the MIT license. | |
(function() { | |
// Baseline setup |
python のパッケージ Pygments をインストール。
$ sudo easy_install Pygments
pygmentize -f rtf -O 'fontface=Monaco,style=monokai' path/to/file.html | pbcopy
~/.atom/packages/open-in-browser/lib/open-in-browser.coffee
の25行目を
when 'darwin' then exec ('open -a "/Applications/Google Chrome.app" '+filePath)
にすれば chrome で開ける