Comparison of a simple, idiomatic ruby program to a similar go program.
To run the ruby program: ruby mammals.rb
To run the go program: go run mammals.go
| source 'https://rubygems.org' | |
| ruby '2.0.0' | |
| gem 'rails', '4.0.1' | |
| gem 'pg' | |
| gem 'sass-rails', '~> 4.0.0' | |
| gem 'uglifier', '>= 1.3.0' | |
| gem 'coffee-rails', '~> 4.0.0' | |
| gem 'jquery-rails' | 
Comparison of a simple, idiomatic ruby program to a similar go program.
To run the ruby program: ruby mammals.rb
To run the go program: go run mammals.go
| gem 'dotenv-rails' | |
| group :deployment do | |
| gem 'capistrano', '~>2.15' | |
| gem 'chef' | |
| end | 
| class TicTacToeApp | |
| NIL_GAME = [ | |
| [nil, nil, nil], | |
| [nil, nil, nil], | |
| [nil, nil, nil] | |
| ] | |
| def initialize | |
| @game = NIL_GAME | 
| source "https://rubygems.org" | |
| gem "guard-rake" | 
| POST rolodex/people/_bulk | |
| {"index":{}} | |
| {"first_name":"elit","last_name":"orci"} | |
| {"index":{}} | |
| {"first_name":"diam","last_name":"habitant"} | |
| {"index":{}} | |
| {"first_name":"quis","last_name":"scelerisque"} | |
| {"index":{}} | |
| {"first_name":"ligula","last_name":"Nunc"} | |
| {"index":{}} | 
| // ==UserScript== | |
| // @name Trello Card Links | |
| // @namespace https://opensolitude.com/ | |
| // @version 0.2 | |
| // @description Adds support for markdown hyperlink syntax in your Trello card titles. | |
| // @author Jordan Bach | |
| // @match https://trello.com/* | |
| // @grant none | |
| // ==/UserScript== |