Skip to content

Instantly share code, notes, and snippets.

View wesdotcool's full-sized avatar

Wes Hunt wesdotcool

View GitHub Profile
class Foo
protected
def y
'world'
end
end
class Bar < Foo
def yy
y
class Provider < ActiveRecord::Base
include ImportablesMixin
has_many :units, :dependent => :destroy
has_many :communities, :dependent => :destroy
has_many :provider_groups
has_many :active_provider_groups, class_name: 'ProviderGroup', conditions: {active: true}
has_attached_file :image_brand,
@wesdotcool
wesdotcool / emacs gist-mode
Last active December 15, 2015 13:09
emacs gist-mode
This is gist was made from emacs using gist-mode.
But how do you get gist mode? Well you can either find it here:
https://github.com/defunkt/gist.el, or you can get it from marmelade
using M-x package-list-packages.
Once you have it it's pretty easy to use. The easiest way to figure it
out is to do a "M-x gist-" and let the autocomplete work it's magic!
The first time you use a command you'll have to type in your github
credentials.
@wesdotcool
wesdotcool / emacs gist-mode
Last active December 15, 2015 13:08
emacs gist-mode
This is gist was made from emacs using gist-mode.
But how do you get gist mode? Well you can either find it here:
https://github.com/defunkt/gist.el, or you can get it from marmelade
using M-x package-list-packages.
Once you have it it's pretty easy to use. The easiest way to figure it
out is to do a "M-x gist-" and let the autocomplete work it's magic!
The first time you use a command you'll have to type in your github
credentials.
@wesdotcool
wesdotcool / .psqlrc
Created March 2, 2013 00:35
My ~/.psqlrc file
-- This file was constructed from snippets from these websites
-- https://github.com/kylpo/dot-files/blob/master/psqlrc
-- http://www.if-not-true-then-false.com/2009/postgresql-psql-psqlrc-tips-and-tricks/
--
-- See http://www.postgresql.org/docs/8.3/static/app-psql.html for the list of other useful variables
-- extended display mode
-- \x
-- Show nulls explicitly as NULL instead of blank