Skip to content

Instantly share code, notes, and snippets.

View spilth's full-sized avatar
👽
spilth.org

Brian Kelly spilth

👽
spilth.org
View GitHub Profile
@spilth
spilth / albums-index.html.erb
Created February 25, 2022 02:46
Tabbed Navigation with Turbo Frames
<p style="color: green"><%= notice %></p>
<h1>Albums</h1>
<%= turbo_frame_tag :items do %>
<% @albums.each do |album| %>
<%= render album %>
<p>
<%= link_to "Show this album", album %>
</p>
@spilth
spilth / turboframes.md
Last active February 17, 2022 15:38
Quick Turbo Frames Tutorial

Turbo Frames

Create a Rails Project

$ rails new turboframes -d postgresql
$ cd turboframes
$ bin/setup

class: center, middle

Running Application Services for Local Development using Docker & Docker Compose

⚡️⚡️⚡️

Brian Kelly


Sabotage Device

Player Spawn Pad

Determines where players from each team spawn and updates a Player Reference for each team

  • Enabled During Phase: Game Countdown or Gameplay Only or All
  • Team: Team 1 / Team 2
  • When Player Spawned Transmit On: 131 / 132
@spilth
spilth / pointers.go
Created August 27, 2018 13:31
Pointers in Go
package main
import (
"fmt"
)
func main() {
// Create variable i that holds an integer value
var i int
@spilth
spilth / go-unit-testing.md
Last active August 3, 2018 14:50
Unit Testing in Go

Unit Testing in Go

Install Go

$ brew install golang
$ export GOPATH="$HOME/go"
$ export GOBIN="$GOPATH/bin"
$ export PATH="$GOBIN:$PATH"
@spilth
spilth / go-web-outside-in.md
Last active August 6, 2018 17:14
Outside In Web Development with Go

Outside In Web Development with Go

I'd like to build a simple web application in Go using Outside In Testing. This means starting by writing a test that pretends to be a user visiting the application and setting up expectations about what they should be seeing.

We'll be using the following:

  • Agouti - an acceptance testing framework
  • Gingko - a BDD-style testing framework
  • Gomega - a matcher/assertion library
@spilth
spilth / jira-url-to-markdown-url.js
Created May 4, 2018 20:47
Turn your currently open JIRA issue into a Markdown link for GitHub PRs
javascript:!function(a){var b=document.createElement("textarea"),c=document.getSelection();b.textContent=a,document.body.appendChild(b),c.removeAllRanges(),b.select(),document.execCommand("copy"),c.removeAllRanges(),document.body.removeChild(b)}("["+document.title+"]("+document.URL+")");