rémi's most favoritest idiomatic bits from Google Cloud Client Libraries
task = datastore.entity "Task" do |t|
t["type"] = "Personal"
t["done"] = false
t["priority"] = 4
t["description"] = "Learn Cloud Datastore"| ruby-docs-samples/stackdriver | |
| ├── README.md | |
| ├── rails_configuration.rb | |
| ├── sinatra_debugger.rb | |
| ├── rack_debugger.rb | |
| ├── sinatra_trace.rb | |
| └── rack_trace.rb |
| require "google/cloud/datastore" | |
| datastore = Google::Cloud::Datastore.new | |
| query = datastore.query("Dog").limit(5) | |
| datastore.run(query).each do |dog| | |
| puts dog["name"] | |
| end |
| require "webrick" | |
| server = WEBrick::HTTPServer.new Port: ENV["PORT"] | |
| server.mount_proc("/"){|_,r| r.body = "Hello" } | |
| server.start |
Run a simple Ruby app! Just using WEBrick, no dependencies! Ruby standard library only!
$ ruby app.rb
rails c - people didn't now to go to the root dir of the rails appMisc: will we do a retrospective? Without volunteers?
| source "https://rubygems.org" | |
| gem "sequel" | |
| gem "sqlite3" | |
| gem "poltergeist" |
| <html> | |
| <head> | |
| <script src='background.js'></script> | |
| <style> | |
| a#link { | |
| color: #15c; | |
| font-family: arial; | |
| font-size: 13px; | |
| } | |
| </style> |