データモデリング
- データと情報
- エンティティとリレーションシップ
- リソースエンティティとイベントエンティティ
- リレーションシップと多重度(カージナリティ)
- PK と AK と FK
| #!/usr/bin/env ruby | |
| # A quick and dirty implementation of an HTTP proxy server in Ruby | |
| # because I did not want to install anything. | |
| # | |
| # Copyright (C) 2009-2014 Torsten Becker <[email protected]> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files (the | |
| # "Software"), to deal in the Software without restriction, including | |
| # without limitation the rights to use, copy, modify, merge, publish, |
| // jQuery UI doesn't work with Japanese, Chinese and probably other | |
| // languages' IMEs. | |
| // | |
| // This code snippet is a modified code of jQuery UI Autocomplete 1.8.16 | |
| // that works with Japanese IME. It's based on the code in the ticket below. | |
| // http://bugs.jqueryui.com/ticket/5933 | |
| // | |
| // I briefly tested it, and it seems ok. | |
| // Any comments/feedback would be appreciated. | |
| // |
| # based on http://www.223soft.net/35 | |
| class W | |
| def initialize(opts) | |
| @dest_dir = opts[:dest_dir] | |
| end | |
| def exec(cmd, md) | |
| p = Pathname.new(@dest_dir + "/" + File.dirname(md[0])) | |
| p.mkdir if not p.exist? |
| # an example Monit configuration file for delayed_job | |
| # | |
| # To use: | |
| # 1. copy to /var/www/apps/{app_name}/shared/delayed_job.monitrc | |
| # 2. replace {app_name} and {environment} as appropriate | |
| # 3. add this to your /etc/monit/monitrc | |
| # | |
| # include /var/www/apps/{app_name}/shared/delayed_job.monitrc | |
| check process delayed_job with pidfile /var/www/apps/{app_name}/shared/pids/delayed_job.pid |
| source 'http://rubygems.org' | |
| gem 'guard' | |
| gem 'guard-shell' |
Ruby の HTTP クライアントライブラリ Faraday が便利そう
API ラッパの開発には [RestClient gem][rest_client_gem] だとか
OAuth の必要なものは [Net/HTTP][net_http] + [OAuth gem][oauth_gem] を使ってた
[Twitter gem][twitter_gem] や [Instagram gem][instagram_gem] など API ライブラリのソースを読んでみると
[Faraday gem][faraday_gem] というものがよく使われてた
#プロトタイプと、あとクラス、継承、ミックスインと呼ばれている物の説明
この文書はなるべく正確な情報を書きたいのでちょくちょく更新されます。あと、ちょくちょくキャラが変わるのは気にしないでください。修正した部分に関する情報は コメント やリビジョンを参照してください。
Javascriptの変数にはプリミティブ型とオブジェクト型が存在する。
###プリミティブ型