Skip to content

Instantly share code, notes, and snippets.

View steveclarke's full-sized avatar

Steve Clarke steveclarke

View GitHub Profile
source :rubygems
# We are not loading Active Record, nor Active Resources etc.
# We can do this in any app by simply replacing the rails gem
# by the parts we want to use.
gem "actionpack", "~> 4.0"
gem "railties", "~> 4.0"
gem "tzinfo"
# Let's use thin
box: wercker/ubuntu12.04-ruby1.9.3
services:
- wercker/postgresql
build:
# The steps that will be executed on build
steps:
- script:
name: Enable virtual display
code: |-
# Start xvfb which gives the context an virtual display
@steveclarke
steveclarke / cinst.bat
Last active August 29, 2015 14:01 — forked from beakr/cinst.bat
cinst GoogleChrome
cinst 7zip
cinst git.install
cinst putty
cinst ruby
cinst ruby.devkit
cinst RubyMine
cinst SourceTree
@steveclarke
steveclarke / gist:2384616
Created April 14, 2012 13:57 — forked from panicsteve/gist:1641705
Form letter template for acquired startups
Dear soon-to-be-former user,
We've got some fantastic news! Well, it's great news for us anyway. You, on
the other hand, are screwed.
We've just been acquired by:
[ ] Facebook
[ ] Google
[ ] Twitter
@steveclarke
steveclarke / TechDecisions.md
Created April 14, 2012 13:55
Choices to make in a new Rails project. Would love to see this forked with other's opinions.

Team Support

Source Code Control

BitBucket
Alternative: GitHub, private git

Time Tracking

Pivotal Tracker

@steveclarke
steveclarke / Contract Killer 3.md
Created December 5, 2012 15:54 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

/**
* Vertical centering with Flexbox + margin fallback
* Lea Verou & David Storey
*/
html, body { height: 100%; }
body {
width: 100%; /* needed for FF */
margin: 0;
=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')
@steveclarke
steveclarke / gist:d7412ee4d38b712c8226b156d1260354
Created February 23, 2018 21:50 — forked from forgotpw1/gist:0dd4df2674a2f302fb0b3ffb3d1fb5df
Upgrading quasar framework - Maintaining old quasar-cli on upgrades
Install the 0.14-compatible quasar-cli as a dev dependency in your legacy project:
npm install --save-dev quasar-cli@0.6.5
this will place the legacy cli in your project node_modules
to run quasar for your project:
npx quasar dev etc
npx is a wrapper that runs ./node_modules/.bin/quasar
source: steveclarke @ quasar discourse channel 2.23.2018
@steveclarke
steveclarke / quasar-grid.sass
Created October 11, 2023 15:46 — forked from yoyosan/quasar-grid.sass
Grid classes for Quasar framework - inspired from Tailwindcss
.grid
display: grid
// Grid template columns
.grid-cols-1
grid-template-columns: repeat(1, minmax(0, 1fr))
.grid-cols-2
grid-template-columns: repeat(2, minmax(0, 1fr))