Skip to content

Instantly share code, notes, and snippets.

💯
How can I help you?

Chris Hough chrishough

💯
How can I help you?
View GitHub Profile
@chrishough
chrishough / keybase.md
Created Apr 30, 2020
Keybase Verification
View keybase.md

Keybase proof

I hereby claim:

  • I am chrishough on github.
  • I am chrishough (https://keybase.io/chrishough) on keybase.
  • I have a public key ASC-8R7asEgf1NESci99gnaBQnkJRd3oq-z2goTJGK5DpQo

To claim this, I am signing this object:

@chrishough
chrishough / Guardfile
Created Mar 10, 2020
Example Guardfile for Ruby on Rails Applications with the front end inside of Rails
View Guardfile
clearing :on
directories %w(app lib config spec) \
.select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
group :cops do
guard 'rake', task: 'myapp:test:rubocop' do
watch(%r{(app|lib|spec)/(.+)\.(rb|rake)$})
watch(%r{config/(application|routes).rb})
end
@chrishough
chrishough / build.yml
Created Feb 25, 2020
GitHub Actions Ruby 2.7 Rails 6 Build and Test WorkFlow
View build.yml
name: Build and Test Application
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
@chrishough
chrishough / meyers-reset.scss
Last active Sep 12, 2017 — forked from trey/reset.sass
Eric Meyer's reset.css in Sass. Originally by @postpostmodern.
View meyers-reset.scss
/*
http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
@chrishough
chrishough / deploy.rake
Last active Jul 26, 2017
Deploy to Heroku via Rake since Capistrano is unavailable and Notify Sentry
View deploy.rake
# frozen_string_literal: true
namespace :myapp do
namespace :deploy do
desc 'deploy current branch to staging'
task staging: :environment do
puts "\nDeploying #{current_branch} to heroku staging\n"
system("git push staging #{current_branch}:master")
system("heroku run rake db:migrate --app #{my_staging_server}")
Raven.capture_message("Deployed Branch: #{current_branch}", level: 'info')
@chrishough
chrishough / circle.yml
Last active Oct 30, 2018
Circle 2.0 : Ruby 2.4.1, Postgres 9.6.3, Redis 4.0.6, Dockerize v0.6.0, Rspec with Circle Formatted Errors, Brakeman, Rubocop, Rubocop-Rspec, Gem Caching
View circle.yml
version: 2
jobs:
build:
working_directory: ~/gathrly-smartforms
docker:
- image: circleci/ruby:2.4.1-node
environment:
RAILS_ENV: continous_integration
PGHOST: 127.0.0.1
PGUSER: rails_test_user
@chrishough
chrishough / print-markdown-bookmarklet.js
Last active Oct 13, 2016
A bookmarklet to make all markdown files printable. This works with both public and private repositories.
View print-markdown-bookmarklet.js
javascript:var content = document. querySelector('article'); var body = document.querySelector('body'); body.innerHTML = ''; body.appendChild(content);
You can’t perform that action at this time.