はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    WWDC25

『$ command line ruby cheat sheets』

  • 人気
  • 新着
  • すべて
  • $ cheat capybara

    3 users

    cheat.errtheblog.com

    Capybara ======== Webrat alternative which aims to support all browser simulators. API === Navigating ---------- visit articles_path Clicking links and buttons -------------------------- click 'Link Text' click_button click_link Interacting with forms ---------------------- attach_file fill_in 'First Name', :with => 'John' check 'A checkbox' uncheck 'A checkbox' choose 'A radio button' select 'Pet

    • 学び
    • 2012/01/18 19:08
    • capybara
    • css
    • $ cheat mocha

      3 users

      cheat.errtheblog.com

      Mocking a class method product = Product.new Product.expects(:find).with(1).returns(product) assert_equal product, Product.find(1) Mocking an instance method on a real object product = Product.new product.expects(:save).returns(true) assert product.save Stubbing instance methods on real object prices = [stub(:pence => 1000), stub(:pence => 2000)] product = Product.new product.stubs(:prices).return

      • 学び
      • 2011/11/02 19:42
      • test
      • ruby
      • $ cheat rspec_shoulda

        3 users

        cheat.errtheblog.com

        Shoulda Rspec Matchers For more information on rspec, rspec-rails, shoulda $ cheat rspec $ cheat rspec_on_rails_matchers $ cheat shoulda Models Matchers Data it { should_not have_db_column(:admin).of_type(:boolean) } it { should have_db_column(:salary). of_type(:decimal). with_options(:precision => 10, :scale => 2) } Associations it { should belong_to(:parent) } it { should have_many(:friends) } i

        • 世の中
        • 2011/10/11 22:46
        • Rails
        • $ cheat rinari

          5 users

          cheat.errtheblog.com

          "Rinari Is Not A Rails IDE" Actually, it kind of is. Rinari's a set of Emacs libraries to help work with Rails. Moving around in Rinari: C-c ; f c rinari-find-controller C-c ; f e rinari-find-environment C-c ; f f rinari-find-file-in-project C-c ; f h rinari-find-helper C-c ; f i rinari-find-migration C-c ; f j rinari-find-javascript C-c ; f l rinari-find-plugin C-c ; f m rinari-find-model C-c ; f

          • 暮らし
          • 2011/07/05 16:45
          • rinari
          • rails
          • emacs
          • $ command line ruby cheat sheets

            11 users

            cheat.errtheblog.com

            CONSOLE COMMANDS help show all the console commands (same as this section) show dbs show database names show collections show collections in current database show users show users in current database show profile show most recent system.profile entries with time >= 1ms use <db name> set curent database to <db name> db.help() help on DB methods db.foo.help() help on collection methods db.foo.find()

            • テクノロジー
            • 2011/06/23 15:37
            • mongodb
            • cheatsheet
            • mongo
            • cheat
            • tips
            • $ cheat factory_girl

              3 users

              cheat.errtheblog.com

              Factory girl is an object factory library to be used with your tests. Installation: $ [sudo] gem install factory_girl or with Rails >2.1 dependency management, add to environment.rb config.gem "factory_girl", :lib => false Then add: require 'factory_girl' to your test_helper.rb or spec_helper.rb Defining factories: # This will guess the User class Factory.define :user do |u| u.first_name 'John' u.

              • 暮らし
              • 2011/03/17 01:23
              • rails
              • test
              • $ cheat heroku

                3 users

                cheat.errtheblog.com

                === General Commands help # show this usage version # show the gem version list # list your apps create [<name>] # create a new app keys # show your user's public keys keys:add [<path to keyfile>] # add a public key keys:remove <keyname> # remove a key by name (user@host) keys:clear # remove all keys === App Commands (execute inside a checkout directory, or use --app <appname>) info # show app inf

                • 暮らし
                • 2011/02/11 02:09
                • heroku
                • git
                • $ command line ruby cheat sheets

                  5 users

                  cheat.errtheblog.com

                  = Webrat - Ruby Acceptance Testing for Web applications - http://gitrdoc.com/brynary/webrat - http://groups.google.com/group/webrat - http://webrat.lighthouseapp.com/ - http://github.com/brynary/webrat - #webrat on Freenode == Description Webrat lets you quickly write expressive and robust acceptance tests for a Ruby web application. == Features * Browser Simulator for expressive, high level accep

                  • テクノロジー
                  • 2010/12/13 17:05
                  • Ruby
                  • test
                  • Rails
                  • $ cheat mongo

                    3 users

                    cheat.errtheblog.com

                    CONSOLE COMMANDS help show all the console commands (same as this section) show dbs show database names show collections show collections in current database show users show users in current database show profile show most recent system.profile entries with time >= 1ms use <db name> set curent database to <db name> db.help() help on DB methods db.foo.help() help on collection methods db.foo.find()

                    • 学び
                    • 2010/12/10 15:56
                    • MongoDB
                    • $ command line ruby cheat sheets

                      4 users

                      cheat.errtheblog.com

                      Starting ------- M-x magit-status Status Buffer ------------- l show history buffer starting from head L show history buffer starting from a specified point b check out a different branch B create and check out a new branch d compare working tree with specified branch m manual merge M automatic merge R rebase / continue to rebase F pull P push p show a buffer with push/pull command transcript g re

                      • テクノロジー
                      • 2010/10/18 18:00
                      • magit
                      • $ cheat permalink_fu

                        3 users

                        cheat.errtheblog.com

                        Install: >> ./script/plugin install http://svn.techno-weenie.net/projects/plugins/permalink_fu/ >> piston import http://svn.techno-weenie.net/projects/plugins/permalink_fu/ Modify table: >> ./script/generate migration add_permalink_to_article >> add_column :designers, :permalink, :string Model: class Article < ActiveRecord::Base # title is the field name you want to convert to a permalink

                        • 学び
                        • 2009/03/05 21:59
                        • Rails
                        • permalink_fu
                        • $ cheat rspec

                          20 users

                          cheat.errtheblog.com

                          INSTALL ======= INSTALL rspec ============= $ sudo gem install rspec OR $ ./script/plugin install git://github.com/dchelimsky/rspec.git INSTALL rspec_on_rails plugin ============================= $ ./script/plugin install git://github.com/dchelimsky/rspec-rails.git BOOTSTRAP THE APP ================= $ ./script/generate rspec create spec create spec/spec_helper.rb create spec/spec.

                          • 暮らし
                          • 2008/11/21 18:00
                          • rspec
                          • cheatsheet
                          • ruby
                          • cheat
                          • rails
                          • ruby on rails
                          • tips
                          • $ cheat datamapper

                            11 users

                            cheat.errtheblog.com

                            DataMapper, the ruby object relational mapper website: http://www.datamapper.org git: git://github.com/sam/dm-core.git mail: http://groups.google.com/group/datamapper wiki: http://github.com/sam/dm-core/wikis now: http://www.twitter.com/datamapper Setting up a Connection DataMapper.setup(:default, "adapter://user:password@hostname/dbname") supported adapters: mysql, sqlite3, postgres, sqli

                            • 学び
                            • 2008/06/27 23:24
                            • datamapper
                            • cheatsheet
                            • ruby
                            • validates
                            • database
                            • $ command line ruby cheat sheets

                              91 users

                              cheat.errtheblog.com

                              Setup ----- git clone <repo> clone the repository specified by <repo>; this is similar to "checkout" in some other version control systems such as Subversion and CVS Add colors to your ~/.gitconfig file: [color] ui = auto [color "branch"] current = yellow reverse local = yellow remote = green [color "diff"] meta = yellow bold frag = magenta bold old = red bold new = green bold [color "status"] add

                              • テクノロジー
                              • 2008/04/11 14:59
                              • git
                              • cheatsheet
                              • reference
                              • github
                              • Ruby
                              • $ cheat sequel

                                7 users

                                cheat.errtheblog.com

                                Open a database require 'rubygems' require 'sequel' DB = Sequel.sqlite 'my_blog.db' DB = Sequel.connect('postgres://user:password@localhost/my_db') DB = Sequel.mysql 'my_db', :user => 'user', :password => 'password', :host => 'localhost' DB = Sequel.ado 'mydb' Open an SQLite memory database Without a filename argument, the sqlite adapter will setup a new sqlite database in RAM. DB = Sequel.sqlite

                                • 暮らし
                                • 2008/02/05 10:36
                                • sequel
                                • cheatsheet
                                • ruby
                                • sql
                                • db
                                • $ cheat git

                                  6 users

                                  cheat.errtheblog.com

                                  Setup ----- git clone <repo> clone the repository specified by <repo>; this is similar to "checkout" in some other version control systems such as Subversion and CVS Add colors to your ~/.gitconfig file: [color] branch = auto diff = auto status = auto [color "branch"] current = yellow reverse local = yellow remote = green [color "diff"] meta = yellow bold frag = magenta bold old = red bold new = g

                                  • 世の中
                                  • 2007/12/25 13:38
                                  • git
                                  • cheatsheet
                                  • $ cheat capistrano

                                    9 users

                                    cheat.errtheblog.com

                                    http://www.dizzy.co.uk/cheatsheets This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 2.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/2.0/uk ########## Shell Commands ########## Installation: $ gem install capistrano Add your application to Capistrano (capify): $ capify . # NOTE: Rake access to capistrano is deprecat

                                    • 学び
                                    • 2007/01/07 00:01
                                    • capistrano
                                    • cheatsheet
                                    • command
                                    • rails
                                    • http://cheat.errtheblog.com/b

                                      9 users

                                      cheat.errtheblog.com

                                      • 学び
                                      • 2006/11/02 23:17
                                      • cheatsheet
                                      • ruby
                                      • $ command line ruby cheat sheets

                                        57 users

                                        cheat.errtheblog.com

                                        Welcome. You've reached the central repository for cheat, the RubyGem which puts Ruby-centric cheat sheets right into your terminal. The inaugural blog entry is here. Get started: $ gem install cheat $ cheat strftimeA magnificent cheat sheet for Ruby's strftime method will be printed to your terminal. To get some help on cheat itself: $ cheat cheatHow meta. Cheat sheets are basically wiki pages ac

                                        • テクノロジー
                                        • 2006/10/31 13:57
                                        • ruby
                                        • cheatsheet
                                        • gem
                                        • cheat
                                        • reference
                                        • cheatsheets
                                        • library
                                        • command
                                        • programming
                                        • tools

                                        このページはまだ
                                        ブックマークされていません

                                        このページを最初にブックマークしてみませんか?

                                        『$ command line ruby cheat sheets』の新着エントリーを見る

                                        キーボードショートカット一覧

                                        j次のブックマーク

                                        k前のブックマーク

                                        lあとで読む

                                        eコメント一覧を開く

                                        oページを開く

                                        はてなブックマーク

                                        • 総合
                                        • 一般
                                        • 世の中
                                        • 政治と経済
                                        • 暮らし
                                        • 学び
                                        • テクノロジー
                                        • エンタメ
                                        • アニメとゲーム
                                        • おもしろ
                                        • アプリ・拡張機能
                                        • 開発ブログ
                                        • ヘルプ
                                        • お問い合わせ
                                        • ガイドライン
                                        • 利用規約
                                        • プライバシーポリシー
                                        • 利用者情報の外部送信について
                                        • ガイドライン
                                        • 利用規約
                                        • プライバシーポリシー
                                        • 利用者情報の外部送信について

                                        公式Twitter

                                        • 公式アカウント
                                        • ホットエントリー

                                        はてなのサービス

                                        • はてなブログ
                                        • はてなブログPro
                                        • 人力検索はてな
                                        • はてなブログ タグ
                                        • はてなニュース
                                        • ソレドコ
                                        • App Storeからダウンロード
                                        • Google Playで手に入れよう
                                        Copyright © 2005-2025 Hatena. All Rights Reserved.
                                        設定を変更しましたx