Skip to content

Instantly share code, notes, and snippets.

@s2t2
s2t2 / osx_install.sh
Created April 12, 2016 21:16 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@s2t2
s2t2 / README.md
Created March 27, 2016 04:08 — forked from brattonc/README.md
D3 Liquid Fill Gauge

Liquid Fill Gauge v1.1 - 7/14/2015

Changes:

  • Added support for updating the gauge value after loading is complete. The loadLiquidFillGauge method now returns an object with an update method which allows the gauge value to be changed. Click any of the gauges above to randomly update their value.

Configurable features include:

  • Changeable min/max values.
  • All colors.
@s2t2
s2t2 / index.html
Created March 27, 2016 03:23 — forked from kosamari/index.html
D3.js Hanabi
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<style>
body {
background: #222;
color:#fff;
font-family: "Helvetica Neue", Helvetica, sans-serif;
@s2t2
s2t2 / README.md
Created March 26, 2016 08:30 — forked from alecrajeev/README.md
United States Congressional Districts Hexagons

U.S. Congressional Districts as Hexagons.

Background

The purpose of this map as detailed on Daily Kos is to represent the congressional districts in the United States accurately. Currently it is difficult to show the districts because some such as those in New York City are very small, while others like Montana are the size of an entire state. Previosly the maps needed to be zoomable to see the districts containing cities. Other represntations such as cartograms warped the country's shape. This map attempts to fix that by giving each congressional district equal area i.e. five regular hexagons.

According to the original Daily Kos article, the map was built by Daniel Donner.

Porting the Map

I did not design the map. This project's purpose is to port the map to a more useable format. I ported the map t

@s2t2
s2t2 / violation_categorization.csv
Created January 30, 2016 01:10
Who wants to categorize these violation descriptions?
violation_description violation_category
33% H-H SUPPORTING MEMBERS/INSUFFICIENT TODO
50% H-H NON-SUPPORTING MEMBERS TODO
60 DAYS TO CHANGE ADDRESS TODO
ACCOUNTABILITY OF NBR OF OCCUPANTS TO BE IMMEDIATELY PROVIDED TODO
ACT VIOL TO ANOTHER TODO
ADDITIONAL FACILITY LICENSE REQ'D TODO
ADULT DANCE HALL LICENSE TODO
AFFIXING SIGNS RGT OF WAY TODO
AFFIXING SIGNS WITHIN R/WAY TODO

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.
@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")
@s2t2
s2t2 / CREDITS.md
Created January 10, 2016 19:34
slack messenger