Skip to content

Instantly share code, notes, and snippets.

View rwdaigle's full-sized avatar

Ryan Daigle rwdaigle

View GitHub Profile
@rwdaigle
rwdaigle / error.txt
Created February 1, 2013 20:16
Heroku healthcheck plugin install error
$ h plugins:install https://github.com/neilmiddleton/heroku-healthcheck.git
Installing heroku-healthcheck... failed
! Unable to load plugin heroku-healthcheck.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new
Error: no such file to load -- json (LoadError)
Backtrace: /Users/ryan/.heroku/plugins/heroku-healthcheck/init.rb:2:in `require'
/Users/ryan/.heroku/plugins/heroku-healthcheck/init.rb:2
@rwdaigle
rwdaigle / styles.css
Created January 21, 2013 14:55
Heroku Dev Center stylesheet for use in article draft rendering.
/*
title: reset css
author: maximilian schoening (@mschoening)
*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
@rwdaigle
rwdaigle / styles.css
Last active May 17, 2021 04:05
Marked's "Upstanding Citizen" stylesheet
/*
This document has been created with Marked.app <http://markedapp.com>, Copyright 2011 Brett Terpstra
Please leave this notice in place, along with any additional credits below.
---------------------------------------------------------------
Upstanding Citizen by Brett Terpstra
Non-standard fonts used:
* OSPDIN
* League Gothic
* Fjord
* Inconsolata
@rwdaigle
rwdaigle / styles.css
Last active December 11, 2015 07:59
Marked's Swiss stylesheet
/*
This document has been created with Marked.app <http://markedapp.com>, Copyright 2011 Brett Terpstra
Please leave this notice in place, along with any additional credits below.
---------------------------------------------------------------
Title: Swiss
Author: Brett Terpstra
Description: Clean, Swiss typography with no frills.
*/
body{-webkit-font-smoothing:antialiased;font:normal .8764em/1.5em Arial,Verdana,sans-serif;margin:0;margin-left:auto;margin-right:auto;width:500}html>body{font-size:13px}li{font-size:110%}li li{font-size:100%}li p{font-size:100%;margin:.5em 0}h1{color:#000;font-size:2.2857em;line-height:.6563em;margin:.6563em 0}h2{color:#111;font-size:1.7143em;line-height:.875em;margin:.875em 0}h3{color:#111;font-size:1.5em;line-height:1em;margin:1em 0}h4{color:#111;font-size:1.2857em;line-height:1.1667em;margin:1.1667em 0}h5{color:#111;font-size:1.15em;line-height:1.3em;margin:1.3em 0}h6{font-size:1em;line-height:1.5em;margin:1.5em 0}body,p,td,div{color:#111;font-family:"Helve
@rwdaigle
rwdaigle / github.css
Last active December 11, 2015 07:59 — forked from tuzz/github.css
GitHub's Markdown stylesheet.
body {
width: 800px;
margin-right: auto;
margin-left: auto;
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
@rwdaigle
rwdaigle / writing.md
Created December 17, 2012 18:42
What prevents us from writing? What motivates us to write?

Preventatives:

  • Publishing friction: Have something to share but have to get approval first, or go through editorial process. Anything that puts time between thought inception and publishing is detrimental. Personal blogs/Tumblr excel at this, highly edited sites do not.
  • High effort: Longer-form, high quality writing takes a lot of effort. When writing is a side-project or labor of love it's tough to justify high-cost.
  • Expectation: If I write something, will people expect me to write again? I'm not sure it's an expectation/pressure I want to create for myself. Personal blogs can create this sense of expectation whereas community sites don't.
  • Channel mis-match: This thing I want to talk about isn't right for channel X (where X is a personal blog, company blog, etc…). Could be because of the topic, scope or medium.
  • Lack of topic confidence: I'm not confident my ideas are worthy or not. What if I'm wrong? Afraid to expose myself to public shaming.

Motivators:

@rwdaigle
rwdaigle / test
Created November 27, 2012 15:48
Testing comments
test
@rwdaigle
rwdaigle / process-partitioning.md
Created November 21, 2012 19:16 — forked from ryandotsmith/process-partitioning.md
Process Partitioning in Distributed Systems

The problem

When working with large, high volume, low latency systems, it is often the case that processing data sequentially becomes detrimental to the system's health. If we only allow 1 process to work on our data we run into several challenges:

  • Our process may fall behind resulting in a situation which it is impossible for our process to catch up.
  • Our singleton process could crash and leave our system in a degraded state.
  • The average latency of data processing could be dramatically affected by outlying cases.

For these reasons, we wish to design a system which allows N number of processes to work on a single data set. In order to arrive at a possible solution, let me outline some assumptions of the system.

@rwdaigle
rwdaigle / feedback.md
Created November 2, 2012 01:08
GitHub Gists API feedback

I've spent some time working with the GitHub Gist API for the development of Gisted and have some thoughts on its usability. My workflow may be unique, but I suspect my needs are representative of more general purpose use-cases as well.

Gist updated_at

The gist.updated_at field is not updated when its child file objects are updated. This makes it very difficult to perform last-modified queries since all API calls are invoked at the gist level. Clients are required to fetch all gists to determine if there have been any updates since the last call, forcing a very inefficient workflow and burning through users' hourly request limits.

List filtering

It would be very helpful to have a set of adjectives to perform filtering against the Gist list call. Specifically an updated_since param would be helpful to only fetch Gists updated since the given timestamp.

@rwdaigle
rwdaigle / gist:3932131
Created October 22, 2012 15:40 — forked from mwhuss/gist:3766692
Static Sites with Ruby on Heroku
This article includes contributions from [Lee Reilly](http://www.leereilly.net). Lee is a toolsmith and master pintsman hacking on [GitHub Enterprise](https://enterprise.github.com).

Static sites are sites that don't contain any dynamic server-side functionality or application logic. Examples include brochure sites made up completely of HTML and CSS or even interactive client-side games built in Flash that don't interact with a server component. Though these sites only require a web-server to deliver their content to users it's still useful to use a platform like Heroku to quickly provision and deploy to such infrastructure.

Using the Rack framework, static sites can be quickly deployed to Heroku.

Source for this article's sample application is [available on GitHub](https://github.com/leereilly/static-site-heroku-cedar-example) and can be seen running at [http://frozen-hollows-6619.herokuapp.com/](http://frozen-