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
"-------------------------------------------------- | |
" NeoBundle Init | |
" Use 256 colors in vim | |
" some plugins not work without it | |
set t_Co=256 | |
" Turn off filetype plugins before bundles init | |
filetype off | |
" Auto installing NeoNeoBundle |
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
### zplug | |
source ~/.zplug/init.zsh | |
zplug 'zsh-users/zsh-completions' | |
zplug 'zsh-users/zaw' | |
zplug 'zsh-users/zsh-syntax-highlighting', defer:2 | |
zplug check || zplug install | |
### cdr の設定 (zplug load 前に書かないと zaw-cdr がスキップされる) | |
autoload -Uz chpwd_recent_dirs cdr add-zsh-hook is-at-least | |
if is-at-least 4.3.10; then |
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
// import spritesmith file | |
@import _parts | |
// mixin | |
sprite-bg( $i_sprites, $i_ratio = 2 ) | |
$x = $i_sprites[2] / $i_ratio | |
$y = $i_sprites[3] / $i_ratio | |
$width = $i_sprites[4] / $i_ratio | |
$height = $i_sprites[5] / $i_ratio |
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
"use strict"; | |
// variables | |
var gulp = require("gulp"); | |
var $ = require("gulp-load-plugins")(); | |
var jade = require("gulp-jade"); | |
var stylus = require("gulp-stylus"); | |
var spritesmith = require("gulp.spritesmith"); | |
var uglify = require("gulp-uglify"); | |
var autoprefixer = require("gulp-autoprefixer"); |
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
/*----------------------------------------------------- | |
* ▼ Viewport ▼ | |
-----------------------------------------------------*/ | |
var Viewport = function() { | |
this._ua; | |
this._init.apply( this ); | |
} | |
Viewport.prototype = { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |