Skip to content

Instantly share code, notes, and snippets.

@srowley
srowley / ggity_by_example.livemd
Last active February 14, 2022 12:34
GGity Examples Livebook

GGity By Example - The Livebook

Dependencies

To use GGity in Livebook, we need to install GGity, and also Kino, which renders image output in a livebook.

Mix.install([:ggity, :kino])
@srowley
srowley / db.json
Last active December 1, 2018 15:33
[
{
"id": 1,
"phrase": "Future-Proof",
"points": 100
},
{
"id": 2,
"phrase": "Doing Agile",
"points": 200
@srowley
srowley / injuries.R
Last active April 2, 2016 22:43
Injury data
library(rvest)
library(stringr)
library(plyr)
library(tidyr)
library(XML)
library(purrr)
library(dplyr)
getTeamInjuryData <- function (team, year) {
# Get the page
@srowley
srowley / rails_3_template.rb
Created May 2, 2012 03:13 — forked from mdesantis/rails_3_template.rb
Rails 3 template (Postgres, RSpec, Capybara, Guard/Linux, Spork)
#!/usr/bin/env ruby -w
#
# Rails 3 template (Postgres, RSpec, Capybara, Guard/Linux, Spork)
# This should be used in this way:
#
# rails new APP_NAME -d postgresql -T --skip-bundle -m https://raw.github.com/gist/2489048/rails_3_template.rb
# 1. Non-SSL source proposal (due to bundler bug)
if yes?("Do you want to use the non-SSL source of rubygems.org as gems source?")
# run %q(sed -i 's/https:\/\/rubygems.org/http:\/\/rubygems.org/' Gemfile)
@srowley
srowley / rails_3_template.rb
Created May 2, 2012 02:18 — forked from mdesantis/rails_3_template.rb
Rails 3 template (Postgres, RSpec, Capybara, Guard/Linux, Spork)
#!/usr/bin/env ruby -w
#
# Rails 3 template (Postgres, RSpec, Capybara, Guard/Linux, Spork)
# This should be used in this way:
#
# rails new APP_NAME -d postgresql -T --skip-bundle -m https://raw.github.com/gist/2489048/rails_3_template.rb
# 1. Non-SSL source proposal (due to bundler bug)
if yes?("Do you want to use the non-SSL source of rubygems.org as gems source?")
# run %q(sed -i 's/https:\/\/rubygems.org/http:\/\/rubygems.org/' Gemfile)
# Delete unnecessary files
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm public/robots.txt"
# Set up git repository
git :init
git :add => '.'