To use GGity in Livebook, we need to install GGity, and also Kino, which renders image output in a livebook.
Mix.install([:ggity, :kino])
[ | |
{ | |
"id": 1, | |
"phrase": "Future-Proof", | |
"points": 100 | |
}, | |
{ | |
"id": 2, | |
"phrase": "Doing Agile", | |
"points": 200 |
library(rvest) | |
library(stringr) | |
library(plyr) | |
library(tidyr) | |
library(XML) | |
library(purrr) | |
library(dplyr) | |
getTeamInjuryData <- function (team, year) { | |
# Get the page |
#!/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) |
#!/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 => '.' |