Skip to content

Instantly share code, notes, and snippets.

Kohei Hasegawa banyan

Block or report user

Report or block banyan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

test of http-proxy-middleware

> node-sass@1.1.0 install /jenkins/workspace/Tutor Client (deploy to edge)/node_modules/sass-brunch/node_modules/node-sass
> node build.js

`linux-x64-v8-3.14` exists; testing
make: Entering directory `/jenkins/workspace/Tutor Client (deploy to edge)/node_modules/sass-brunch/node_modules/node-sass/build'
  CXX(target) Release/
cc1plus: error: unrecognized command line option ‘-std=c++11’
cc1plus: error: unrecognized command line option ‘-std=c++11’
make: *** [Release/] Error 1
banyan /
Last active Aug 29, 2015
Most of quotation comes from this post:

React Overview

Why did we build React?

  • React isn't an MVC framework.
  • React doesn't use templates.

It's used by

  • Facebook
banyan / Gemfile
Created Jun 12, 2014
oj benchmark
View Gemfile
source ''
gem 'multi_json'
gem 'yajl-ruby'
gem 'json'
gem 'oj'
banyan / papertrail-settings-for-rails4.rb
Last active Jan 2, 2016
papertrail setttings for rails4 application
View papertrail-settings-for-rails4.rb
# config/environments/production.rb
# Be sure to add remote_syslog_logger to Gemfile
config.after_initialize do
require "remote_syslog_logger"
require "uri"
url = URI.parse(ENV["SYSLOG_URL"])
logger =, url.port, program: "#{url.path[1..-1]}-#{Rails.env}")
View post-commit
systemsetup -getusingnetworktime | grep On >/dev/null 2>&1
if [ $? -ne 0 ]; then
systemsetup -setusingnetworktime on
echo "Hi, bring back to now from a future."
sleep 1
git commit -C HEAD --amend --date="`LANG=en date`"
View update-irc-hooks-events.rb
#!/usr/bin/env ruby
require 'pit'
require 'octokit'
slug = ARGV[0]
unless slug
abort "Usage #{$0} slug"
banyan / gist:6778539
Created Oct 1, 2013
4th-token for benesse
View gist:6778539
basic_201310, 993485
basic_201310, 328750
basic_201310, 546413
basic_201310, 704981
basic_201310, 167810
basic_201310, 303238
basic_201310, 797833
basic_201310, 121456
basic_201310, 092737
basic_201310, 490033
View update-hipchat-hooks-event.rb
#!/usr/bin/env ruby
require 'pit'
require 'octokit'
org_name = ARGV[0]
unless org_name
abort "Usage #{$0} org_name"
View qiita-team-expand.user.js
// ==UserScript==
// @name Qiita::Team Expand
// @namespace
// @description Qiita::Team のトップページの content を expand する
// @include https://**
// ==/UserScript==
var load,execute,loadAndExecute;load=function(a,b,c){var d;d=document.createElement("script"),d.setAttribute("src",a),b!=null&&d.addEventListener("load",b),c!=null&&d.addEventListener("error",c),document.body.appendChild(d);return d},execute=function(a){var b,c;typeof a=="function"?b="("+a+")();":b=a,c=document.createElement("script"),c.textContent=b,document.body.appendChild(c);return c},loadAndExecute=function(a,b){return load(a,function(){return execute(b)})};
You can’t perform that action at this time.