Skip to content

Instantly share code, notes, and snippets.

View kamito's full-sized avatar

Shinichirow KAMITO kamito

  • Groovenauts, Inc.
  • Japan
View GitHub Profile
/**
* app.js
*/
// オブジェクト領域を確保する
goog.provide("app");
goog.provide("app.Base");
goog.provide("app.Page");
app.Base = function() {
python ./google-closure-library/closure/bin/build/depswriter.py --output_file=deps.js --root_with_prefix="app ../../../app"
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>416.bz: Google Closure Library Sample</title>
<!--// common.cssを読み込む //-->
<link rel="stylesheet" type="text/css" href="google-closure-library/closure/goog/css/common.css" />
</head>
<body>
<h1>416.bz: Google Closure Library Sample</h1>
<div id="content"></div>
/**
* app.js
*/
// オブジェクト領域を確保する
goog.provide("app");
goog.provide("app.Base");
goog.provide("app.Page");
goog.require("goog.dom"); // DOM関連ライブラリを読み込む
[amazon asin=1234567890 type=mini]
/**
* app.js
*/
// オブジェクト領域を確保する
goog.provide("app");
goog.provide("app.Base");
goog.provide("app.Page");
goog.require("goog.dom"); // DOM関連ライブラリを読み込む
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>416.bz: Google Closure Library Sample</title>
<!--// common.cssを読み込む //-->
<link rel="stylesheet" type="text/css" href="google-closure-library/closure/goog/css/common.css" />
<link rel="stylesheet" type="text/css" href="google-closure-library/closure/goog/css/button.css" />
<link rel="stylesheet" type="text/css" href="google-closure-library/closure/goog/css/custombutton.css" />
</head>
<body>
var http = require('http');
http.createServer(function(request, response) {
response.writeHead(200, {'Content-Type':'text/html'});
response.end('<h1>Hello! node.js</h1>');
}).listen(8081);
console.log('Server running at http://127.0.0.1:8081/');
@kamito
kamito / i3-rails-template.rb
Created August 9, 2012 07:37
i3 Rails template
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
run "rm public/index.html"
# gem
gem 'mysql2'
gem 'json'
gem 'rspec-rails', :group => [:development, :test]

#NoSQLデータモデリング技法

原文:NoSQL Data Modeling Techniques « Highly Scalable Blog

I translated this article for study. contact matope[dot]ono[gmail] if any problem.

NoSQLデータベースはスケーラビリティ、パフォーマンス、一貫性といった様々な非機能要件から比較される。NoSQLのこの側面は実践と理論の両面からよく研究されている。ある種の非機能特性はNoSQLを利用する主な動機であり、NoSQLシステムによく適用されるCAP定理がそうであるように分散システムの基本的原則だからだ。一方で、NoSQLデータモデリングはあまり研究されておらず、リレーショナルデータベースに見られるようなシステマティックな理論に欠けている。本稿で、私はデータモデリングの視点からのNoSQLシステムファミリーの短い比較といくつかの共通するモデリングテクニックの要約を解説したい。

本稿をレビューして文法を清書してくれたDaniel Kirkdorfferに感謝したいと思う