Skip to content

Instantly share code, notes, and snippets.

View bamboo-c's full-sized avatar

komei otake bamboo-c

View GitHub Profile
"--------------------------------------------------
" 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
### 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
@bamboo-c
bamboo-c / _mixin.styl
Created October 21, 2014 07:10
Stylus + gulp.spritesmith で複数 dpi に対応した Mixin
// 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
@bamboo-c
bamboo-c / gulpfile.js
Last active August 29, 2015 14:07
gulpfile.js
"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");
/*-----------------------------------------------------
* ▼ Viewport ▼
-----------------------------------------------------*/
var Viewport = function() {
this._ua;
this._init.apply( this );
}
Viewport.prototype = {
@bamboo-c
bamboo-c / 0_reuse_code.js
Created May 11, 2014 14:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console