Skip to content

Instantly share code, notes, and snippets.

View manlycode's full-sized avatar

Chris Rittersdorf manlycode

  • Collective Idea
  • Grand Rapids, MI
View GitHub Profile
@manlycode
manlycode / keybase.md
Created November 9, 2020 15:18
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

statement_join = customer
.statements
.joins("LEFT JOIN buildings_users ON buildings_users.building_id = statements.building_id")
.where(id: statements.map(&:id))
.where(buildings_users: { receive_reports: true })
class Account < ActiveRecord::Base
establish_connection Urjanet::Client.config
self.table_name = "Accounts"
alias_attribute :account_number, "AccountNumber"
alias_attribute :due_by_date, "DueByDate"
alias_attribute :total_bill_amount, "TotalBillAmount"
alias_attribute :amount_due, "AmountDue"
alias_attribute :outstanding_balance, "OutstandingBalance"
alias_attribute :source_link, "SourceLink"

Keybase proof

I hereby claim:

  • I am manlycode on github.
  • I am manlycode (https://keybase.io/manlycode) on keybase.
  • I have a public key ASCR3i9AQk2_SceF5s73nGpw-4izmT0GRG4fWdhNUoVFnwo

To claim this, I am signing this object:

@manlycode
manlycode / my-first-plugin.log
Created October 25, 2015 16:40
Here's a log
[12:20:43 INFO]: Preparing start region for level 0 (Seed: -195023862919857616)
[12:20:44 INFO]: Preparing spawn area: 66%
[12:20:44 INFO]: Preparing start region for level 1 (Seed: -195023862919857616)
[12:20:45 INFO]: Preparing spawn area: 93%
[12:20:45 INFO]: Preparing start region for level 2 (Seed: -195023862919857616)
[12:20:46 INFO]: [MyFirstPlugin] Enabling MyFirstPlugin v1
[12:20:46 INFO]: [MyFirstPlugin] This is totally getting logged!!!!
[12:20:46 INFO]: Server permissions file permissions.yml is empty, ignoring it
[12:20:46 INFO]: Done (3.071s)! For help, type "help" or "?"
class MyController < ApplicationController
def index
end
end
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any styles
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
#content.wrapper {
@extend .container-fluid;
min-height: 100%;
padding-top: 65px; // 50px for navbar + 15px for padding
&.with-subnav {
padding-top: 115px; // 50px x 2 for navbars + 15px for padding
}
require "rails_helper"
describe Filter do
let(:filter) { Filter.new(User) }
it "can be initialized" do
expect(filter).to be_a(Filter)
end
it "has no rows by default" do
class Filter
attr_reader :rows
def initialize(filtered_class)
@filtered_class = filtered_class
@rows = []
end
def add_row(row)
@rows << row