Skip to content

Instantly share code, notes, and snippets.

View sagarpandya82's full-sized avatar

Sagar Pandya sagarpandya82

  • UK
View GitHub Profile
@russolsen
russolsen / for_calls_each.rb
Created October 3, 2016 18:36
Demo that in Ruby the for expression is just sugar around a call to the each method.
# Demo that for calls each
class ThreeOf
def initialize(value)
@value = value
end
def each(&block)
block.call(@value)
block.call(@value)
@rachelmyers
rachelmyers / Chromebook_setup.md
Last active October 25, 2023 10:00
How I set up my Chromebooks' dev environment

Chromebook Setup Options

Option 1: Stay in Chrome OS

If you're writing bare-bones javascript for the browser, creating Chrome Apps and Extensions, or using remote coding apps like cloud9, Koding, or Nitrous, you may not need to install Ubuntu. Some tutorials can be done entirely within the browser. The tradeoff is that you won't have a full-featured command line, and you may hit a point where you can't install something that you need.

To start coding within Chrome OS, install Text or Caret as a text editor. (Text stores files in Google Docs and Caret stores the files locally on your machine, which may help you choose.) After that, you're good to go, since Chromebooks come with a browser installed.

Optio