Skip to main content

Posts

Showing posts with the label Ruby

First post using stackedit

Welcome to StackEdit! Hey! I’m your first Markdown document in StackEdit 1 . Don’t delete me, I’m very helpful! I can be recovered anyway in the Utils tab of the Settings dialog. Documents StackEdit stores your documents in your browser, which means all your documents are automatically saved locally and are accessible offline! Note: StackEdit is accessible offline after the application has been loaded for the first time. Your local documents are not shared between different browsers or computers. Clearing your browser’s data may delete all your local documents! Make sure your documents are synchronized with Google Drive or Dropbox (check out the Synchronization section). Create a document The document panel is accessible using the button in the navigation bar. You can create a new document by clicking New document in the document panel. Switch to another document All your local documents are listed in the document panel. You can switch from one to anoth...

Computer Science Programming Basics in Ruby

Get this book from Amazon (recommend) Product Details Paperback:  188 pages Publisher:  O'Reilly Media; 1 edition (May 1, 2013) Language:  English ISBN-10:  1449355978 ISBN-13:  978-1449355975 Product Dimensions:  7 x 0.4 x 9.2 inches Editorial Reviews Amazon.com Review Author Ophir Frieder offers insights on his latest book, "Computer Science Programming Basics in Ruby" "Computer Science Programming Basics in Ruby" is timely as many of the world's web sites and applications are built with a framework called Ruby on Rails. The core of that framework is a programming language called Ruby. It turns out that Ruby is an exceptional language with which to teach introductory computer science topics. Hence, a rare combination of thing-that-is-useful, along with thing-that-is-good-to-teach has occurred. Our book is the first to really treat Ruby as a solid introductory programming language with which to teach core computer sci...

Dịch Ruby với Scite

Vào thời điểm viết bài, Scite đã có version 2.01, download tại: www.scintilla.org/ SciTE Download.html. Ruby đã có version 1.9.1, download tại http://www.ruby-lang.org/en/downloads/ 1. Download Ruby về, giải nén và cài đặt (trong Windows), nhớ là nếu sử dụng bản 1.9.1 thì cần download thêm các gói cài đặt tại http://www.garbagecollect.jp/ruby/mswin32/en/documents/install.html. Sửa đổi biến PATH của Windows. 2. Cài đặt Scite. 3. Chạy Scite, chọn Option/ open ruby.properties, sửa file ruby.properties bằng cách thêm các dòng: command.name.0.*.rb=irb command.0.*.rb=irb.bat command.is.filter.0.*.rb=1 command.0.subsystem.*.rb=1 File ruby.properties sẽ có dạng: 4. Gõ code Ruby, chọn Language/Ruby, sau đó ấn F5 hoặc chọn Tools/Go để dịch code Ruby ^^.