やりたいこと
- 親側の変更を子のComponentに伝えたい
- 子にどうやって渡したらいいのかわからな
- イベント/ハンドラもどうやって渡せばいいのか
やりたいこと
# coding: utf-8 | |
class Concern < ActiveRecord::Base | |
belongs_to :publication | |
end |
**課題1 | |
なぜエラーが発生したのかその理由を記述しなさい。 | |
server.close()を呼ぶとこれ以上のコネクションは受け付けなくなるが、 | |
既存のコネクションに関してはそのまま接続された状態になる。 | |
また、HTTPの接続はkeep-aliveで行われるため、明示的にコネクションを | |
終了させなければ接続がタイムアウトするまでコネクションは生きている。 | |
最初のリクエスト(GET /)のときにserver.close()が呼ばれ、新規接続を |
require 'rubygems' | |
require 'bundler' | |
Bundler.require | |
require './application' | |
namespace :assets do | |
desc 'compile assets' | |
task :compile => [:compile_js, :compile_css] do | |
end |
/** | |
Sample Propane caveatPatchor.js file based on tmm1's avatar hack. | |
You'll need at least version 1.1.1 to experiment with this: | |
http://propaneapp.com/appcast/Propane.1.1.1.zip | |
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'; |
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(); |
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'; |
" Capture {{{ | |
command! | |
\ -nargs=1 | |
\ -complete=command | |
\ Capture | |
\ call Capture(<f-args>) | |
function! Capture(cmd) | |
redir => result | |
silent execute a:cmd |