background preloader

RubyInstaller for Windows

RubyInstaller for Windows
Related:  Ruby ProgrammingRuby

Ruby and SciTE Daniela Robles (Guest) on 2012-11-11 20:58 Hi all, Ruby no longer comes together with SciTE, so I had to download the SciTE text editor separately. However, I find that Ruby and ScITE do not work together. Carlo E. on 2012-11-11 21:11 Subject: Ruby and SciTE Date: Mon 12 Nov 12 04:58:09AM +0900 Quoting Daniela Robles (daniela.robles15@gmail.com): > ... on 2012-11-12 00:32 Am Mon, 12 Nov 2012 04:58:09 +0900 schrieb Daniela Robles <daniela.robles15@gmail.com>: > Hi all, Hi Daniela, > Ruby no longer comes together with SciTE, so I had to download the> SciTE text editor separately. Please log in before posting.

traveling-ruby/TUTORIAL-1.md at master · phusion/traveling-ruby JavaScript Garden Although JavaScript deals fine with the syntax of two matching curly braces for blocks, it does not support block scope; hence, all that is left in the language is function scope. function test() { // a scope for(var i = 0; i < 10; i++) { // not a scope // count } console.log(i); // 10} There are also no distinct namespaces in JavaScript, which means that everything gets defined in one globally shared namespace. Each time a variable is referenced, JavaScript will traverse upwards through all the scopes until it finds it. In the case that it reaches the global scope and still has not found the requested name, it will raise a ReferenceError. The Bane of Global Variables // script Afoo = '42'; // script Bvar foo = '42' The above two scripts do not have the same effect. Again, that is not at all the same effect: not using var can have major implications. // global scopevar foo = 42;function test() { // local scope foo = 21;}test();foo; // 21 Local Variables var foo = 3; bar = 4;}test(10); Hoisting

Introduction to Ruby Ruby is a powerful, flexible programming language you can use in web/Internet development, to process text, to create games, and as part of the popular Ruby on Rails web framework. Ruby is: High-level, meaning reading and writing Ruby is really easy—it looks a lot like regular English! This course assumes no previous knowledge of Ruby in particular or programming/computer science in general.

Offres d'emploi développeur Ruby et Ruby on Rails CDI Haute-Savoie (télétravail possible) CodeurAidez les développeurs freelances à trouver des projetsgithubruby-on-rails CDI Paris, france (télétravail possible) Le CollectionistLe "airbnb" des happy fewreactjspostgresqljavascriptfull-stackruby-on-rails CDI Marseille (télétravail possible) agilidéeNous sommes des amoureux du coderorcontinuous-integrationhtml-css-jquerygittdd CDI Rennes LUNAWEBLunaWeb est une agence web privilégiant l’approche sur l'UX.pythonphpruby CDI Rennes LUNAWEBLunaWeb est une agence web privilégiant l’approche UX.phpjavascriptruby CDI Paris, France WizypayWizypay disrupte le marché de la carte cadeauwebdjangoapi-restmvcrails CDI Paris (Levallois-Perret), France VodeclicStart-up en pleine croissance, équipe hyper conviviale! CDI Paris (Levallois-Perret), France VodeclicStart-up en pleine croissance, équipe hyper conviviale! CDI Paris (Levallois-Perret), France VodeclicStart-up en pleine croissance, équipe hyper conviviale! CDI Rennes LUNAWEBAgence LunaWeb

45 Fresh Useful JavaScript and jQuery Techniques and Tools - Smashing Magazine Advertisement Yes, this is another round-up of fresh and useful Javascript techniques, tools and resources. But don’t close the tab yet, as you might find this one very useful. In this selection we present calendars, forms, buttons, navigation, debugging, optimization and compatibility tables as well as handy resources and tools. We also cover various jQuery-plugins that will help you extend the functionality of your website and improve user experience with ready components or coding solutions. The last section also covers a number of useful educational resources such as a compilation of useful JavaScript coding practices, a detailed comparison of JavaScript frameworks and general JavaScript programming conventions. You may be interested in the following related posts: Calendars and Timelines jDigiClock – Digital Clock (HTC Hero inspired)4 jDigiClock is a jQuery plugin inspired from HTC Hero Clock Widget. jQuery Sliding Clock v1.15 jQuery transpearant Slider clock with CSS sprites. Flip!

Object Oriented Ruby Ruby is pure object-oriented language and everything appears to Ruby as an object. Every value in Ruby is an object, even the most primitive things: strings, numbers and even true and false. Even a class itself is an object that is an instance of the Class class. This chapter will take you through all the major functionalities related to Object Oriented Ruby. A class is used to specify the form of an object and it combines data representation and methods for manipulating that data into one neat package. Ruby class definition: When you define a class, you define a blueprint for a data type. A class definition starts with the keyword class followed by the class name and is delimited with an end. class Box code end The name must begin with a capital letter and by convention names that contain more than one word are run together with each word capitalized and no separating characters (CamelCase). Define ruby objects: box1 = Box.new box2 = Box.new The initialize method: The instance variables: #! #!

How to append text to a file with Ruby By Alvin Alexander. Last updated: Feb 21, 2013 Ruby file FAQ: How do I append text to a file in Ruby? Solution: Appending text to a file with Ruby is similar to other languages: you need to open the file in "append" mode, write your data, and then close the file. Here's a quick example that demonstrates how to append "Hello, world" to a file named myfile.out in the current directory: open('myfile.out', 'a') { |f| f.puts "Hello, world." } It's very important to note that I use f.puts in that example. Variations There are actually quite a few different ways to append data to a file. open('myfile.out', 'a') do |f| f.puts "Hello, world. And in this example I show how to append to the file using the << operator: open('myfile.out', 'a') do |f| f << "and again ... (Note the use of the \n at the end of the string when using the << operator. Writing multiple lines Finally, if you want to append more than one line at a time, here's a quick demo showing how to do this:

JScience

Related: