Skip to content

Instantly share code, notes, and snippets.

#! /bin/sh
npm install --save-dev extract-text-webpack-plugin node-libs-browser file-loader sass-loader style-loader webpack copy-webpack-plugin babel-core babel-loader babel-preset-es2015 babel-preset-react react-autocomplete
npm install --save-dev bootstrap@4.0.0-alpha.4 postcss-flexbugs-fixes autoprefixer react react-dom
npm install --save node-sass
@ecpplus
ecpplus / webpack.config.js
Created September 24, 2016 09:35
Change config between environments
const webpack = require('webpack');
const config = {
entry: './source/javascripts/app.js',
output: {
filename: 'bundle.js',
path: './source/javascripts'
},
@ecpplus
ecpplus / gist:87a9b239110093cbb7239a58711ea282
Created September 13, 2016 10:39
create neo4j sample data
MERGE (station:Station {name: '海岸1'});
MERGE (station:Station {name: '海岸2'});
MERGE (station:Station {name: '海岸3'});
MERGE (station:Station {name: '山b'});
MERGE (station:Station {name: '山c'});
MERGE (station:Station {name: '山d'});
MERGE (station:Station {name: '町C'});
MERGE (station:Station {name: '海岸1'});
MERGE (station:Station {name: '町A'});
MERGE (station:Station {name: '町B'});
@ecpplus
ecpplus / swagger.yml
Created March 3, 2016 02:01
[ifconfig API] Exported YAML of Swagger + API Gateway Extention
---
swagger: "2.0"
info:
version: "2016-03-01T14:43:03Z"
title: "ifconfig"
host: "IFCONFIGEXAMPLE.execute-api.ap-northeast-1.amazonaws.com"
basePath: "/prod"
schemes:
- "https"
paths:
#! /bin/sh
###############################
# setup script for CentOS7
# - Run as root
# - Don't forget to set $USER
# export USER=hoge
###############################
if [ "${ADMINUSER-undefined}" = "undefined" ]; then
#-----------------------------------------------
# 普通の設定
#-----------------------------------------------
# 表示をUTF-8に変更
#set-window-option -g utf8 on
setw -g utf8 on
set -g status-utf8 on
# ESCキーのdelayを0にする(vim用)
set -s escape-time 0
# window内の選ばれたプロセスにリネームするのを無効にする
@ecpplus
ecpplus / FBMissingSymbols.m
Last active August 29, 2015 14:05
Missing FB symbols required by Parse SDK
NSString *FBTokenInformationExpirationDateKey = @"";
NSString *FBTokenInformationTokenKey = @"";
NSString *FBTokenInformationUserFBIDKey = @"";
@interface FBAppCall:NSObject
@end
@implementation FBAppCall
@end
@interface FBRequest:NSObject
@end
@implementation FBRequest
@ecpplus
ecpplus / expand.rb
Created July 4, 2013 09:02
replace tab -> 4 spaces all files.
Dir.glob(["**/*.h", "**/*.m"]) do |f|
cmd = "expand -t4 #{f} > #{f}.tmp && mv #{f}.tmp #{f}"
#p cmd
`#{cmd}`
end
@ecpplus
ecpplus / Gemfile
Last active December 10, 2015 20:18
Rails3.2.x で github/ripple を使う。
gem 'ripple', "~>1.0.0.beta2"
@ecpplus
ecpplus / gist:1959881
Created March 2, 2012 17:36
Rails で bootstrap1->2に上げたときのvimの置換(form)
:%S/clearfix/control-group/gc
:%S/class="input"/class="controls"/gc
:%S/(f.label.*)\s%>/\1, :class => 'control-label' %>/gc