Update system packages -- will migrate system forward to CentOS 5.8. (Optional?)
$ sudo yum update
Install the EPEL Repo:
private Handler createExternalServlet(ImmutableMap<String, ServletHolder> servlets, | |
ImmutableMultimap<String, FilterHolder> filters, | |
ImmutableSet<EventListener> listeners) { | |
// set ServletContextHandler.SESSIONS option | |
final ServletContextHandler handler = new ServletContextHandler(ServletContextHandler.SESSIONS); | |
// set a default SessionHandler | |
handler.setSessionHandler(new SessionHandler()); | |
handler.addFilter(ThreadNameFilter.class, "/*", EnumSet.of(DispatcherType.REQUEST)); | |
handler.setBaseResource(Resource.newClassPathResource(".")); |
/*! | |
* backbone.collectioncache.js v0.0.2 | |
* Copyright 2012, Tim Branyen (@tbranyen) | |
* backbone.collectioncache.js may be freely distributed under the MIT license. | |
*/ | |
(function(window) { | |
"use strict"; | |
// Dependencies |
import Control.Applicative | |
-- fmap : (a -> b) -> f a -> f b | |
-- fmap は関数とファクター値を引数にとって, 関数をファンクター値の中の値に適用 | |
class Functor f where | |
fmap :: (a -> b) -> f a -> f b | |
-- <*> : f (a -> b) -> f a -> f b (f is Fanctor) | |
-- <*> は関数の入っているファンクター値と値の入っているファンクター値を引数にとって, ひとつ目のファンクターの中身の関数をふたつ目のファンクターの中身に適用 |
# stage の操作 | |
git add . # stage に加える | |
git add -p # stage にインタラクティブに加える | |
git add -N . # stage にファイルだけ加える | |
git rm hoge/hoge.rb # stage から消す | |
git rm -f hoge/hoge.rb # stage から無理矢理消す、先にファイルを消してしまった場合 | |
git mv hoge/hoge.rb hoge/hoge2.rb # ファイル名変える | |
# 差とか状態を確認する系 | |
git diff # HEADとunstagedの差分を確認する |
com.mysema.query.sql.ant.AntMetaDataExporter
を用いると、データベーススキーマから Java Beanとメタクラスを生成してくれる。今回は下記のようなリレーションをもつBeanを生成した前提の例である。/* vim: set tabstop=2 shiftwidth=2 softtabstop=2: */ | |
define([ | |
'backbone', | |
'backbone-forms' | |
], | |
function(Backbone) { | |
var Form = Backbone.Form, |
原文: The Twitter Engineering Blog: Introducing Gizzard, a framework for creating distributed datastores
This article is translated by @ono_matope. Please contact me if any problem.