Skip to content

Instantly share code, notes, and snippets.

Avatar

Brandon R. Howard brayhoward

View GitHub Profile
@brayhoward
brayhoward / README.md
Created Sep 18, 2017 — forked from rafmagana/README.md
This is a way to call the Heroku command-line utility adding the name of the Heroku App automatically.
View README.md

Heroku command-line wrapper with app name

This is a kind of second version of https://gist.github.com/4208338, but in this version you don't need to call projectName_production or projecName_staging only production or staging.

How to make it work

If you have git remotes called production, staging and development already, then then the only thing you have to do is to source heroku_command_line_wrapper_with_app_name.sh in your .bash_profile or .bashrc:

source /path/to/heroku_command_line_wrapper_with_app_name.sh
@brayhoward
brayhoward / mixin-fluid-typography.scss
Created Sep 11, 2017 — forked from italodr/mixin-fluid-typography.scss
A mixin for Mike Riethmuller fluid typography
View mixin-fluid-typography.scss
@mixin fluid-type($min-font-size, $max-font-size, $min-vw: 480px, $max-vw: 1200px) {
$u1: unit($min-vw);
$u2: unit($max-vw);
$u3: unit($min-font-size);
$u4: unit($max-font-size);
@if $u1 == $u2 and $u1 == $u3 and $u1 == $u4 {
font-size: $min-font-size;
@if $min-vw != $max-vw {
@brayhoward
brayhoward / tts.js
Created Aug 4, 2017 — forked from dotproto/tts.js
ES2015 Text to Speech bookmarklet (Ctrl+S). Set up: Copy and paste the contents of this gist into a new bookmark. Use: Select some text and click the bookmarklet to start speaking. Once activated on a page, you can use Ctrl+S to speak the selected text. Speech Synthesis API Info: https://developers.google.com/web/updates/2014/01/Web-apps-that-ta…
View tts.js
javascript: {
/* Adjust voice speed. Default = 1 */
var speed = 2.5;
if (window.runTTS === undefined) {
/* Text to Speech function. Adjust the value of msg.rate to increase/decrease the playback speed. */
window.runTTS = () => {
const text = window.getSelection().toString();
View good-enough.css
body {
color: #212121;
font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
letter-spacing: 0.02em;
}
View restful_routes.md
URL HTTP Verb Action
/photos/ GET index
/photos/new GET new
/photos POST create
/photos/:id GET show
/photos/:id/edit GET edit
/photos/:id PATCH/PUT update
/photos/:id DELETE destroy
@brayhoward
brayhoward / courses_near_nashville.md
Last active Dec 8, 2017
Nashville Disk Golf Courses
View courses_near_nashville.md

Nashville Disk Golf Courses

These are courses in and around Nashville.

  1. Seven Oaks Park
  • Great course somewhat technical and usually pretty busy as it is so near the city and probably the best course Nashville proper has to offer
  1. Ceader Hill
  • Awesome course. Woodsie but with fairly wide turny fairways. Technical and but great fun. Caters well to those big arm precision shots.
  1. Cane Ridge
@brayhoward
brayhoward / gulpfile.js
Created Sep 5, 2016
Gulpfile with jade support for Ionic@2.0.0
View gulpfile.js
var gulp = require('gulp'),
gulpWatch = require('gulp-watch'),
del = require('del'),
runSequence = require('run-sequence'),
gulpJade = require('gulp-jade'),
jade = require('jade'),
argv = process.argv;
/**
View main.html.jade
body
header
a#skip-nav(href="#main-content")
nav
...
#main-content
@brayhoward
brayhoward / states.js
Created Aug 11, 2016
A javaScript style array of all the states.
View states.js
[ 'Alabama',
'Alaska',
'Arizona',
'Arkansas',
'California',
'Colorado',
'Connecticut',
'Delaware',
'District of Columbia',
'Florida',
@brayhoward
brayhoward / Brunch-Phoenix-npm.README
Last active Jun 16, 2016 — forked from scrogson/README
Use bootstrap-sass npm package with Phoenix's brunch
View Brunch-Phoenix-npm.README
1) install npm packages
2) update brunch-config.js
3) remove Bootstrap from web/static/css/app.css
4) rename web/static/css/app.css to web/static/css/app.scss
5) update web/static/css/app.scss
You can’t perform that action at this time.