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 / 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 / django.md
Created April 5, 2018 14:35
Django Cheatsheet

Django Cheatsheet

Install Python

$ brew install pyenv
$ eval "$(pyenv init -)"
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$ pyenv install --list
$ pyenv install 2.7.14
@spilth
spilth / python-cheatsheet.md
Created August 30, 2017 13:50
Python Cheatsheet

Python Cheatsheet

Python Version Manager

Use Homebrew to install pyenv and pyenv-virtualenv:

$ brew install pyenv
$ brew install pyenv-virtualenv