Skip to content

Instantly share code, notes, and snippets.

@D-system
D-system / service-checklist.md
Last active September 27, 2016 07:49 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@D-system
D-system / rails_resources.md
Last active January 30, 2019 12:53 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • jbuilder - JSON builder shipped with Rails.
  • builder XML builder shipped with Rails.
  • Puma - A Ruby/Rack web server built for concurrency. Shipped with Rails.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • bootstrap - Bootsnap preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests is faster.
  • factory_bot - factory_
@D-system
D-system / autogrow.ng.js
Last active May 17, 2017 06:50 — forked from thomseddon/gist:4703968
Angularjs: fit textarea size to text
/*
* Adapted from: http://code.google.com/p/gaequery/source/browse/trunk/src/static/scripts/jquery.autogrow-textarea.js
* Updated from: https://gist.github.com/thomseddon/4703968
*
* Works nicely with the following styles:
* textarea {
* resize: none;
* transition: 0.05s;
* -moz-transition: 0.05s;
* -webkit-transition: 0.05s;