Skip to content

Instantly share code, notes, and snippets.

View TerasawaShuhei's full-sized avatar
:octocat:

Terasawa Shuhei TerasawaShuhei

:octocat:
View GitHub Profile
var gulp = require("gulp");
var loadPlugins = require('gulp-load-plugins');
var $ = loadPlugins();
var browserSync = require("browser-sync");
// base config
var paths = {
vhost: "***********",
cmnDir: "htdocs/cmn/",
// Original: https://github.com/gaspanik/gulpbase/
var gulp = require('gulp'),
// 列挙するのが面倒なので、load-pluginsでプラグインをロード。何使ってるかは「package.json」で
$ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'gulp.*'],
replaceString: /\bgulp[\-.]/
}),
@TerasawaShuhei
TerasawaShuhei / Gruntfile.coffee
Last active January 1, 2016 04:39
Gruntfile.coffee
module.exports = (grunt) ->
# プラグインを package.json から自動読み込み
pkg = undefined
taskName = undefined
pkg = grunt.file.readJSON("package.json")
# タスクスタート
grunt.initConfig
@TerasawaShuhei
TerasawaShuhei / _unitize.scss
Created September 4, 2013 00:00
rem pixel-fallback
$root-font-size: 15 !default;
// rem()
// Divides $input by $root-font-size and appends "rem" unit
// $input is processed via px() if it contains multiple values
//
// PARAMS:
// $input required
//
@TerasawaShuhei
TerasawaShuhei / config.rb
Created September 2, 2013 20:37
Compass → config.rb
####################################
# COMPASS CONFIG #
# --------- #
# PUT config.rb ON PROJECT ROOT #
####################################
##================================##
# Require any additional compass plugins here.
##================================##
@TerasawaShuhei
TerasawaShuhei / Rakefile
Created August 30, 2013 22:20
Pygements を利用してると Jekyll Serve --watch のファイル生成が遅い問題を解決してくれる。 参考 → http://blog.eiel.info/blog/2013/08/30/jekyll-watch-very-slow/
require 'bundler/setup'
require 'thread'
require 'launchy'
require 'directory_watcher'
require 'jekyll'
desc 'preview'
task preview: [:watch] do
Thread.new do
@TerasawaShuhei
TerasawaShuhei / Rakefile
Created August 30, 2013 14:12
jekyll serve --watch と同時にブラウザで開く。
require 'bundler/setup'
require 'thread'
require 'launchy'
desc 'preview'
task :preview do
Thread.new do
sleep 1
Launchy.open 'http://localhost:9001/'
end

Recommended Sublime Text 2 Packages for Web Developers.

Update

  • 「Browser Support」を追加しました。

2013 Spring & Summer

こもりが使っているモノやそうでないものも含め、なんとなくWebデザイナーやWebデベロッパーな人たちに便利そうなのを集めてみました。

# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global
# Ignore bundler config
###################
/.bundle
/.gem