This is mostly just the result of some searching, troubleshooting and setup for Docker, AdventureWorks, and Azure Data Studio on macOS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// log_example.go | |
package main | |
import ( | |
"fmt" | |
mypackage "github.com/ogryzek/log_practice/mypackage" | |
"log" | |
"net/http" | |
"os" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"net/http" | |
) | |
var ThirdPartyApi = "http://www.coolsongssite.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
) | |
type Greetings struct { | |
Greetings []Greeting `json:"data"` |
NewerOlder