Skip to content

Instantly share code, notes, and snippets.

@s2t2
s2t2 / cheapest_cost_avoider.md
Last active October 19, 2015 23:50
torts notes

which party has more info?

@s2t2
s2t2 / radio_data_erd_beginnings.svg
Created November 1, 2015 19:12
testing ms visio export to svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@s2t2
s2t2 / index.html
Created November 1, 2015 19:33
ms publisher test export to html
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<link rel=File-List href="Publication2_files/filelist.xml">
<!--[if !mso]>
<style>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Student Site Title</title>
<link rel="stylesheet" src="style.css">
<style>
//h1 {color:red}
</style>
</head>
@s2t2
s2t2 / colorbrewer.v1.min.js
Created December 13, 2015 00:39
production scripts
// source: http://d3js.org/colorbrewer.v1.min.js
var colorbrewer = {
YlGn: {
3: ["#f7fcb9", "#addd8e", "#31a354"],
4: ["#ffffcc", "#c2e699", "#78c679", "#238443"],
5: ["#ffffcc", "#c2e699", "#78c679", "#31a354", "#006837"],
6: ["#ffffcc", "#d9f0a3", "#addd8e", "#78c679", "#31a354", "#006837"],
7: ["#ffffcc", "#d9f0a3", "#addd8e", "#78c679", "#41ab5d", "#238443", "#005a32"],
8: ["#ffffe5", "#f7fcb9", "#d9f0a3", "#addd8e", "#78c679", "#41ab5d", "#238443", "#005a32"],
@s2t2
s2t2 / Gemfile
Created January 10, 2016 19:30
repo converter
source 'https://rubygems.org'
gem 'github_api'
gem 'pry' # insert `binding.pry` for debugging
@s2t2
s2t2 / CREDITS.md
Created January 10, 2016 19:34
slack messenger
@s2t2
s2t2 / money.rb
Created January 12, 2016 19:26 — forked from c-lliope/money.rb
Reports on the status of your goals in Simple, and catches them up if necessary
require 'capybara/poltergeist'
require 'ruby-progressbar'
session = Capybara::Session.new(:poltergeist)
session.visit("https://bank.simple.com/signin")
session.fill_in("username", with: "USERNAME")
session.fill_in("password", with: "PASSWORD")
session.click_on("Sign in")

Pros:

  • presence of controllers/admin/* upon installation - it takes away the unnecessary mystery about how to configure the files which override default behavior
  • look and feel of views

Cons:

  • Installation errors, although they are currently solvable.
  • can't run bundle commands while rails server is running.