Skip to content

Instantly share code, notes, and snippets.

View wrburgess's full-sized avatar
:shipit:
Shippin'

Randy Burgess wrburgess

:shipit:
Shippin'
View GitHub Profile
@wrburgess
wrburgess / .block
Created June 14, 2016 21:40 — forked from mbostock/.block
Bar Chart with Negative Values
license: gpl-3.0
@wrburgess
wrburgess / ultimate-ut-cheat-sheet.md
Created June 2, 2016 14:51 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@wrburgess
wrburgess / event.rb
Last active April 25, 2016 17:20
i18n solution for Rails, PG, JSONB
def name(locale = "default")
end
@wrburgess
wrburgess / example_activejob.rb
Created April 8, 2016 04:50 — forked from ChuckJHardy/example_activejob.rb
Example ActiveJob with RSpec Tests
class MyJob < ActiveJob::Base
queue_as :urgent
rescue_from(NoResultsError) do
retry_job wait: 5.minutes, queue: :default
end
def perform(*args)
MyService.call(*args)
end
@wrburgess
wrburgess / Gemfile
Last active March 24, 2016 02:27 — forked from tylerhunt/Gemfile
ActiveAdmin association autocomplete without complicated plugins.
gem 'active_model_serializers'
gem 'activeadmin'
gem 'jquery-ui-rails'
@wrburgess
wrburgess / fix-homebrew-npm.md
Created December 5, 2015 18:09 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

If you just want to fix the issue quickly, scroll down to the "solution" section below.

Explanation of the issue

If you're a Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -g, you may see an error like this:

$ npm update npm -g
@wrburgess
wrburgess / genreView.js
Created November 30, 2015 04:22 — forked from joshhunt/genreView.js
Routing in TVML app using Page.js
import genreTemplate from 'templates/genre.tvml.jade';
import get from 'lib/api/get';
import tvOS from 'lib/tvOS';
export default function tvSeriesView({params}) {
get(`/genres/${params.genreSlug}`).then((viewData) => {
const doc = genreTemplate(viewData);
tvOS.pushDocument(doc);
});
}
@wrburgess
wrburgess / missing_stimuli.md
Last active October 27, 2015 21:35
Missing Word Examples For TutorMate Flashcard Stimuli

Stage 5 Rimes

  • ute

Stage 5 Onsets

  • sk
  • sp
  • st
@wrburgess
wrburgess / index.ios.js
Created October 26, 2015 12:54
index.ios.js
var React = require('react-native');
var {
Text,
View,
TouchableHighlight,
AppRegistry,
StyleSheet
} = React;
var StopWatch = React.createClass({