Skip to content

Instantly share code, notes, and snippets.

@shuuheyhey
shuuheyhey / Sublime_Build_LESS.md
Created May 29, 2013 05:18
Sublime Text 2 単体でLESSをコンパイルする設定方法

Sublime Text 2 単体でLESSをコンパイルする方法

まずはnpm(Node Package manager)でlessをインストール

環境によってはsudoを付ける。

$ (sudo) npm install -g less

Node.jsを入れてない場合はこちらを参考に。

@shuuheyhey
shuuheyhey / 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
@shuuheyhey
shuuheyhey / _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
//
@shuuheyhey
shuuheyhey / 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.
##================================##
@shuuheyhey
shuuheyhey / 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
@shuuheyhey
shuuheyhey / 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デベロッパーな人たちに便利そうなのを集めてみました。

@shuuheyhey
shuuheyhey / .gitignore
Created June 27, 2013 16:32
.gitignore
# 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
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_size_limit": 4194304,
"auto_indent": true,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",