This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &default | |
adapter: postgresql | |
encoding: unicode | |
pool: 5 | |
timeout: 5000 | |
username: <%= ENV['POSTGRES_USERNAME'] %> | |
password: <%= ENV['POSTGRES_PASSWORD'] %> | |
host: localhost | |
development: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "id": 245438, "type": "banner_zone"}, | |
{ "id": 245440, "type": "banner_zone"}, | |
{ "id": 245442, "type": "banner_zone"}, | |
{ "id": 245444, "type": "banner_zone"}, | |
{ "id": 245446, "type": "banner_zone"}, | |
{ "id": 245448, "type": "banner_zone"}, | |
{ "id": 245450, "type": "banner_zone"}, | |
{ "id": 245452, "type": "banner_zone"}, | |
{ "id": 245454, "type": "banner_zone"}, | |
{ "id": 245456, "type": "banner_zone"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'csv' | |
class User | |
attr_reader :user_lists_data, :ein, :name | |
def initialize(array) | |
@user_lists_data = array[0] | |
@ein = array[4] | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
const { inject: { service }, Component } = Ember; | |
export default Component.extend({ | |
session: service('session'), | |
currentUser: service('currentUser'), | |
myAssignments: Ember.computed.filter('assignments', function(assignment) { | |
let user = this.get('currentUser').user; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! setw -g mode-keys vi */ | |
set -sg escape-time 0 | |
setw -g aggressive-resize on | |
#! bind -n M-h select-pane -L */ | |
#! bind -n M-j select-pane -D */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#<HTTPI::Request:0x007f979daf2b20 | |
@body= | |
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><env:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:tns=\"http://www.knowwho.info/\" xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\"><env:Body><tns:GetService><KnowWho><Customer><CustomerCode>EODS00_01</CustomerCode><PageNumber>1</PageNumber><ServiceLevel>Premium</ServiceLevel></Customer><RequestParameters></RequestParameters></KnowWho></tns:GetService></env:Body></env:Envelope>", | |
@follow_redirect=false, | |
@headers= | |
{"SOAPAction"=>"\"http://www.knowwho.info/GetService\"", | |
"Content-Type"=>"text/xml;charset=UTF-8", | |
"Content-Length"=>"490"}, | |
@url= | |
#<URI::HTTP:0x007f979e345610 URL:http://knowwho.info/Services/ElectedOfficialsDirectoryService.asmx>> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add the current directory to the path Thor uses | |
# to look up files | |
RAILS_REQUIREMENT = "~> 4.2.6" | |
def apply_template! | |
add_template_repository_to_source_path | |
assert_minimum_rails_version | |
template "Gemfile.tt", :force => true | |
# assert_valid_options |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Test | |
def foo | |
"bar" | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require "pg" | |
def list_expenses | |
connection = PG.connect(dbname: "expenses") | |
result = connection.exec("SELECT * FROM expenses ORDER BY created_on ASC") | |
result.each do |tuple| | |
columns = [ tuple["id"].rjust(3), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install slackcat | |
slackcat --configure | |
<Follow authorization instructions and run command in commandline> | |
<Add to ~/.vimrc> | |
function! g:SlackThis() | |
let chan = input('Channel: ', 'falonofthetower') |
NewerOlder