Skip to content

Instantly share code, notes, and snippets.

Kazuhito Hokamura hokaccha

Block or report user

Report or block hokaccha

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


  • 親側の変更を子のComponentに伝えたい
  • 子にどうやって渡したらいいのかわからな
  • イベント/ハンドラもどうやって渡せばいいのか
View concern.rb
# coding: utf-8
class Concern < ActiveRecord::Base
belongs_to :publication
hokaccha / answer.txt
Created Nov 22, 2012 — forked from shigeki/hello.js
第1回Node.js入門勉強会 レポート課題
View answer.txt
最初のリクエスト(GET /)のときにserver.close()が呼ばれ、新規接続を
hokaccha / Rakefile
Created Aug 2, 2012 — forked from jeffreyiacono/Rakefile
rake task for precompiling assets using sprockets within a sinatra app + view helpers
View Rakefile
require 'rubygems'
require 'bundler'
require './application'
namespace :assets do
desc 'compile assets'
task :compile => [:compile_js, :compile_css] do
hokaccha / caveatPatchor.js
Created Apr 12, 2012 — forked from protocool/caveatPatchor.js
Sample Propane caveatPatchor.js file
View caveatPatchor.js
Sample Propane caveatPatchor.js file based on tmm1's avatar hack.
You'll need at least version 1.1.1 to experiment with this:
Once I'm sure exposing this hack-injection point doesn't cause problems
I'll do an official auto-updating version.
As of version 1.1.1, Propane will load and execute the contents of
#!/usr/bin/env perl
use strict;
use warnings;
use Pod::Usage;
use Text::Markdown 'markdown';
use HTML::TreeBuilder;
use List::Util 'max';
hokaccha / routes.js
Created Oct 15, 2011 — forked from tj/routes.js
Express routes
View routes.js
var app = require('../app');
var colors = require('colors');
function format(method) {
switch (method) {
case 'get': return 'GET '.grey;
case 'post': return 'POST '.cyan;
case 'put': return 'PUT '.green;
case 'delete': return 'DELETE '.magenta;
default: return method.toUpperCase();
hokaccha / gist:951652
Created May 2, 2011 — forked from tacamy/gist:951646
JavaScript UA Navigator(Android+'Mobile')
View gist:951652
if ((navigator.userAgent.indexOf('iPhone') !== -1 && navigator.userAgent.indexOf('iPad') === -1) || navigator.userAgent.indexOf('iPod') !== -1 || /Android.+Mobile/.test(navigator.userAgent)) {
location.href = '/hoge/';
#!/usr/bin/env perl
use strict;
use warnings;
use Pod::Usage;
use Text::Markdown 'markdown';
use HTML::TreeBuilder;
use List::Util 'max';
View .vimrc
" Capture {{{
\ -nargs=1
\ -complete=command
\ Capture
\ call Capture(<f-args>)
function! Capture(cmd)
redir => result
silent execute a:cmd
You can’t perform that action at this time.