⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/projects/rails_app/ $ ruby script/server | |
=> Booting Mongrel | |
=> Rails 2.3.14 application starting on http://0.0.0.0:3000 | |
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. | |
Gem.source_index called from /Library/Ruby/Gems/1.8/gems/rails-2.3.14/lib/rails/gem_dependency.rb:21. | |
Exception: NameError: uninitialized constant Gem::SyckDefaultKey | |
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:466:in `load_missing_constant' | |
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing' | |
/Library/Ruby/Site/1.8/rubygems/requirement.rb:180:in `fix_syck_default_key_in_requirements' | |
/Library/Ruby/Site/1.8/rubygems/requirement.rb:179:in `each' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 原則として安定版のリリースのみを列挙し、特に重要と思われる非安定版のリリースを「not stable」として記載した。 | |
* 各リリースの出所となったブランチを明記し、またそれらのブランチの発生時期も示した。なおリポジトリのSubversion化前はtrunkという用語は使われていないが、混乱を避けるために統一した。また、ruby_1_8_7ブランチは事故のために1.8.7リリース後にv1_8_7タグから切り直されている。 | |
* 全国規模あるいは全世界規模(?)のイベントを参考のために記載した。開催地は英語圏で通用していると思われる表記を採用した。 | |
* 1.2.1はrepackと称して2回目のリリースが行われた。他にも同様の例があるが、それらは日付が変わっていないので記載していない。 | |
* 1.0は大量に日付つきでリリースされたので途中は割愛した。 | |
* 各安定版系列の最終バージョンには「final」と記載した。なお、1.4系列についてはオフィシャルには終了のアナウンスはないが、終了している旨の非公式な言及は散見されるため既に終了しているとみなした。 | |
1993-02-24 (start) | |
1995-12-21 0.95 (not stable; first public release) | |
1996-12-25 1.0-961225 (from trunk) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thinkminimo.step | |
class StepExample extends Step { | |
get("/") { "Hello World!" } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) Point *.example.com in your DNS setup to your server. | |
# | |
# 2) Setup an Apache vhost to catch the star pointer: | |
# | |
# <VirtualHost *:80> | |
# ServerName *.example.com | |
# </VirtualHost> | |
# | |
# 3) Set the current account from the subdomain | |
class ApplicationController < ActionController::Base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppBuilder < Rails::AppBuilder | |
include Thor::Actions | |
include Thor::Shell | |
def test | |
append_test_gems | |
rspec | |
cucumber | |
jasmine | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================================================ | |
Benchmarking with Ruby 1.9.3 and ActiveRecord 3.2.0.beta | |
============================================================ | |
user system total real | |
============================================================ | |
RSS : 31432k (31432k) | |
Objects : 102195 (102195) | |
============================================================ | |
SINGLE-VALUE TEST |
Here are a list of headless browsers that I know about:
- [HtmlUnit][1] - Java. Custom browser engine. JavaScript support/DOM emulated. Open source.
- [Ghost][2] - Python only. WebKit-based. Full JavaScript support. Open source.
- [Twill][3] - Python/command line. Custom browser engine. No JavaScript. Open source.
- [PhantomJS][4] - Command line/all platforms. WebKit-based. Full JavaScript support. Open source.
- [Awesomium][5] - C++/.Net/all platforms. Chromium-based. Full JavaScript support. Commercial/free.
- [SimpleBrowser][6] - .Net 4/C#. Custom browser engine. No JavaScript support. Open source.
- [ZombieJS][7] - Node.js. Custom browser engine. JavaScript support/emulated DOM. Open source.
- [EnvJS][8] - JavaScript via Java/Rhino. Custom browser engine. JavaScript support/emulated DOM. Open source.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def s3_form_tag(options = {}) | |
bucket = options[:bucket] | |
access_key_id = options[:access_key_id] | |
secret_access_key = options[:secret_access_key] | |
key = options[:key] || '' | |
content_type = options[:content_type] || '' # Defaults to binary/octet-stream if blank | |
redirect = options[:redirect] || '/' | |
acl = options[:acl] || 'public-read' | |
expiration_date = options[:expiration_date].strftime('%Y-%m-%dT%H:%M:%S.000Z') if options[:expiration_date] | |
max_filesize = options[:max_filesize] || 671088640 # 5 gb |
This is all based on the [alpha release][1].
From the built-in help system:
For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).
These are simple setting = value listings where the value is a format string in which other variables can be referenced.
OlderNewer