Skip to content

Instantly share code, notes, and snippets.

View falonofthetower's full-sized avatar

Peter Karth falonofthetower

  • Bendyworks
  • Myrtle Beach, SC
View GitHub Profile
default: &default
adapter: postgresql
encoding: unicode
pool: 5
timeout: 5000
username: <%= ENV['POSTGRES_USERNAME'] %>
password: <%= ENV['POSTGRES_PASSWORD'] %>
host: localhost
development:
{ "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"},
require 'csv'
class User
attr_reader :user_lists_data, :ein, :name
def initialize(array)
@user_lists_data = array[0]
@ein = array[4]
end
end
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;
#! 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 */
#<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>>
# 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
class Test
def foo
"bar"
end
end
#! /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),
brew install slackcat
slackcat --configure
<Follow authorization instructions and run command in commandline>
<Add to ~/.vimrc>
function! g:SlackThis()
let chan = input('Channel: ', 'falonofthetower')