Attack skill reference
Inventory
0
to not touch, 1
if you don't care about that slot:
<h1><%= @name_plural %></h1> | |
<%% @<%= @name_plural %>.each do |<%= @name_singular %>| %> | |
<li><a href="/<%= @name_plural %>/<%%= <%= @name_singular %>.id %>"><%%= <%= @name_singular %>.id %></a></li> | |
<ul> | |
<%%= @attributes.each do |attribute| %> | |
<li><%%= attribute %>: <%%= <%= @name_singular %> %>.<%%= attribute %></li> | |
<%% end %> | |
</ul> | |
<%% end %> | |
</ul> |
require 'sinatra' | |
# require and use controllers from within the `./controller` directory | |
controller_paths = Dir["./controllers/*.rb"].each { |file| require_relative file } | |
controllers = controller_paths.map { |controller_path| controller_path[/controllers\/(.*?)_controller/m, 1] } | |
controllers.each { |controller| use Object.const_get("#{controller.capitalize}Controller") } |
General: | |
0 - Attack | |
1 - Kick | |
2 - Throw | |
3 - Unsummon | |
4 - Left Hand Throw | |
5 - Left Hand Swing | |
Amazon: | |
6 - Magic Arrow |
Attack skill reference
Inventory
0
to not touch, 1
if you don't care about that slot:
// 1.) Write a function `cigs()` that takes an argument `perHour`, and | |
// logs "You smoke (however many perHour) cigs per hour." | |
function cigs(perHour) { | |
first = "You smoke "; | |
middle = perHour; | |
last = " cigs per hour."; | |
msg = first + middle + last; | |
console.log(msg); | |
} |
Shippable has a nice blog post on CI/CD pipelines with Amazon EC2 Container Service and Amazon EC2 Container Registry.
Start out with the 'Getting Started' wizard, which told me to do the following:
1.) Retrieve the docker login
command
aws ecr get-login --region us-west-2
2.) Run the returned docker login
command
// log_example.go | |
package main | |
import ( | |
"fmt" | |
mypackage "github.com/ogryzek/log_practice/mypackage" | |
"log" | |
"net/http" | |
"os" | |
) |
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"net/http" | |
) | |
var ThirdPartyApi = "http://www.coolsongssite.api" |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
) | |
type Greetings struct { | |
Greetings []Greeting `json:"data"` |
/* `go run family.go` to run this on your localhost at port 3000 | |
curl -X POST -d '{"family_name": "Smith", \ | |
"members": [{"role": "parent", "gender": "female" \ | |
, "age": 33}, {"role": "child", "gender": "male", "age": 5}, \ | |
{"role": "parent", "gender": "male", "age": 40}]}' \ | |
http://localhost:3000/family/new | |
Will print the following to the console: | |