Skip to content

Instantly share code, notes, and snippets.

kevin larrabee kevlarr

  • North Shore, MA
Block or report user

Report or block kevlarr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kevlarr
kevlarr / .psqlrc
Last active Nov 8, 2019
psql config
View .psqlrc
\set QUIET 1
-- Don't page output that's bigger than screen,
-- because scrolling is a thing that works
\pset pager off
-- Auto-expand when too much data for table view
\x auto
-- Make null pretty
@kevlarr
kevlarr / README.md
Last active Oct 9, 2017
Data transitions in D3 version 4
View README.md

There is an excellent example of transitioning data in D3, but this only works in version 3.

D3 version 4 requires a slightly different approach, namely that the entered selections need to be merged prior to transition.

Added transition on exit. Also did a little code cleanup, especially given that eval is pretty gross.

@kevlarr
kevlarr / controllers.application.js
Created Sep 5, 2017
Testing relationships in tests
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@kevlarr
kevlarr / controllers.application.js
Last active May 12, 2017
Transitioning by model
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View apartment.rb
class Apartment < Dwelling
include Holder
attr_accessor :rent
def initialize(address, rent, roommate_capacity)
super(address)
@rent = rent
set_capacity(roommate_capacity)
end
You can’t perform that action at this time.