Skip to content

Instantly share code, notes, and snippets.

@gaspanik
gaspanik / .editorconfig
Last active August 29, 2015 14:06
sample-editorconfig
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@gaspanik
gaspanik / express-gen4arr.markdown
Created August 28, 2014 08:25
express-generator@4 template

express-generator@4 template

express-generator@4から「express project-name」した時にもろもろ古かったりするので、そのテンプレをもとにdeprecatedのお知らせが出ないように書き換えたもの("/public/favicon.ico" を入れないとエラーになるので注意)。


package.json

{

"name": "project-name",

gulp.task('ngrok', function() {
ngrok.once('connect', function(url) {
console.log('we got a tunnel', url);
});
ngrok.connect(3000);
});
@gaspanik
gaspanik / gulpfile.js
Last active July 10, 2021 13:37
sample gulpfile.js
// Original: https://github.com/gaspanik/gulpbase/
// Update 0.2.0
var gulp = require('gulp'),
// 列挙するのが面倒なので、load-pluginsでプラグインをロード。何使ってるかは「package.json」で
var $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'gulp.*'],
replaceString: /\bgulp[\-.]/
@gaspanik
gaspanik / installed.markdown
Last active September 3, 2017 06:11
ST3: Installed package list on my Sublime Text 3.

Installed packages

Installed package list on my Sublime Text 3. Exclude Themes and ColorSchemes.

2016.02.29 update

  • AdvancedNewFile
  • All Autocomplete
  • AndyPHP
  • AngularJS
@gaspanik
gaspanik / package.json
Created June 4, 2014 02:36
WP bs4wp_s
{
"name": "BSC4WP_s",
"version": "0.0.1",
"description": "Browser-Sync Config for WordPress Theme Development ~ underscores.me",
"main": "index.php",
"scripts": {
"start": "browser-sync start",
"postinstall": "git clone git@github.com:Automattic/_s.git ../_s",
"test": "echo \"Error: no test specified\" && exit 1"
},
@gaspanik
gaspanik / bs-config.js
Created June 3, 2014 09:08
Browser-Sync Config for WordPress Theme Dev.
/*
|--------------------------------------------------------------------------
| Browser-sync config file
|--------------------------------------------------------------------------
|
| Please report any issues you encounter:
| https://github.com/shakyShane/browser-sync/issues
|
| For up-to-date information about the options:
| https://github.com/shakyShane/browser-sync/wiki/Working-with-a-Config-File
@gaspanik
gaspanik / sketch-plugins.markdown
Created May 14, 2014 08:51
Installed-sketch-plugins

Installed Sketch Plugins

こもりがインストールしてSketch 3で動作確認できてるもの

  • 2014.7.24 update

Content-generator-sketch-plugin

@gaspanik
gaspanik / mongod-genghis.markdown
Last active August 29, 2015 14:00
Update mongodb v2.6.x w/ homebrew and install genghis.

Mongod & Genghis

Install or Upgrade Mongodb

Homebrewで新規にインストールするとかアップデートする(ここでは、v2.6.0)。
素直に動けばいいけど、問題があるようなら以下を。

ERROR: dbpath (/data/db) does not exist.

1. 新規にDBを作る

@gaspanik
gaspanik / package.json
Created March 27, 2014 05:50
package.json sample
{
"name": "project-name",
"version": "0.0.1",
"description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit.",
"main": "index.html"
}