Skip to content

Instantly share code, notes, and snippets.

@youthkee
youthkee / felt.config.js
Last active July 29, 2016 22:40
Feltにプラグインを追加してPostCSSを使う方法 ref: http://qiita.com/youthkee/items/81545896ea1e60b59e2b
const
postcss = require('felt-postcss'),
postcssImport = require('postcss-import'),
postcssNested = require('postcss-nested'),
postcssSimpleVars = require('postcss-simple-vars'),
postcssMixins = require('postcss-mixins'),
cssnext = require('postcss-cssnext')
module.exports = {
handlers: {
@youthkee
youthkee / deployment-config.json
Last active January 12, 2016 01:19
Atomで複数フォルダをプロジェクトに登録してSFTPする方法 ref: http://qiita.com/youthkee/items/2910b10f5ece27ba9d9f
{
"type": "ftp",
"host": "example.com",
"user": "username",
"password": "password",
"port": "21",
"remotePath": "/example/path"
}
@youthkee
youthkee / Gruntfile.js(Libsass使用時)
Last active May 16, 2017 01:17
Bootstrap 4の主な変更点とファーストインプレッション ref: http://qiita.com/youthkee/items/e9e105e35526f908f48a
// CSS distribution task.
// Supported Compilers: sass (Ruby) and libsass.
(function (sassCompilerName) {
require('./grunt/bs-sass-compile/' + sassCompilerName + '.js')(grunt);
})(process.env.TWBS_SASS || 'libsass');
@youthkee
youthkee / brew.rb(変更前)
Created September 25, 2015 04:16
Yosemiteアップグレード後に発生したHomebrewのエラー対応(2015年9月版) ref: http://qiita.com/youthkee/items/d7fcb8132b97a83e4171
if MACOS and MACOS_VERSION < 10.5
abort <<-EOABORT.undent
Homebrew requires Leopard or higher. For Tiger support, see:
http://github.com/sceaga/homebrew/tree/tiger
EOABORT
end
@youthkee
youthkee / file0.txt
Last active September 10, 2016 02:45
gulp-sassとgulp-postcssで快適コンパイル環境を構築 ref: http://qiita.com/youthkee/items/f456fb5730655cc8f9c2
$ npm i gulp gulp-sass gulp-postcss postcss-cssnext
@youthkee
youthkee / file0.txt
Created September 14, 2015 22:06
gulp-cssnextにpostcss-nestedプラグインを追加したらエラーが発生したので対処してみた ref: http://qiita.com/youthkee/items/2f3e1ed04578bb7beeb5
$ npm i gulp-cssnext --save-dev
@youthkee
youthkee / file0.txt
Last active September 14, 2015 11:58
gulp-cssnextにPostCSSプラグインを追加する方法 ref: http://qiita.com/youthkee/items/2dfdd8fdfee3bd2b7e45
$ npm i gulp-cssnext --save-dev
@youthkee
youthkee / file1.txt
Last active September 10, 2015 01:44
SourceTreeでコミット間の差分ファイル一覧をテキストファイルに出力する方法 ref: http://qiita.com/youthkee/items/5014a9be25487854249d
chmod +x list_diff.sh
@youthkee
youthkee / export_diff.sh
Last active September 9, 2015 14:26
SourceTreeでコミット間の差分ファイルを圧縮しないで取り出す方法 ref: http://qiita.com/youthkee/items/8579c7a963c24bd4e655
#!/bin/sh
git checkout-index -f --prefix=archive/ $1 `git diff --name-only $1 $2`
@youthkee
youthkee / file0.txt
Last active September 7, 2015 05:13
node-reset-scssを使ってgulpでreset cssを挿入する方法 ref: http://qiita.com/youthkee/items/b8fd03d5087c4de3f003
npm i node-reset-scss --save-dev