I hereby claim:
- I am jessecurry on github.
- I am jessecurry (https://keybase.io/jessecurry) on keybase.
- I have a public key whose fingerprint is AE69 C486 9CEC 9606 4C4E C394 B08C 3BFB C402 9463
To claim this, I am signing this object:
require: | |
- rubocop-rails | |
Rails: | |
Enabled: true | |
Metrics/ClassLength: | |
Enabled: false | |
Metrics/AbcSize: | |
Enabled: false | |
Metrics/LineLength: |
'use strict'; | |
const keyMirror = (list, namespace) => { | |
let newList= {}; | |
let prefix = namespace ? namespace + ":" : ""; | |
Object.keys(list).map(element => { | |
var key = String(element); | |
newList[key] = prefix + element | |
}); |
module JsonWrapper | |
class Base | |
MAPPING_TYPES = { | |
array: :to_a, | |
boolean: :to_bool, | |
date: :to_date, | |
datetime: :to_datetime, | |
float: :to_f, | |
hash: :to_h, | |
integer: :to_i, |
class EmailReportJob < ActiveJob::Base | |
queue_as :mail | |
def perform recipients, report_builder | |
recipients.each do |recipient| | |
ReportMailer.new_report_email(recipient, report_builder).deliver | |
end | |
end | |
end |
class ReportMailer < ApplicationMailer | |
def new_report_email recipient, report_builder | |
attachments['report.pdf'] = { mime_type: 'application/pdf', content: report_builder.generate_stream } | |
mail(to: recipient, subject: report_builder.title) | |
end | |
end |
class ReportBuilder | |
include GlobalID::Identification | |
def id | |
report.id | |
end | |
def self.find id | |
new(report_class.find(id)) | |
end |
.directive('jcKeypress', function () { | |
return { | |
template: '', | |
restrict: 'AE', | |
scope: { | |
keyCode: '@', | |
keyAction: '&' | |
}, | |
link: function(scope, element, attrs) { | |
attrs.altKey = attrs.altKey || false; |
I hereby claim:
To claim this, I am signing this object:
// | |
// BFParallaxImageView.h | |
// bout-osx | |
// | |
// Created by Jesse Curry on 8/26/14. | |
// Copyright (c) 2014 Bout Fitness, LLC. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.h> |
app.filter('bytes', function() { | |
return function(bytes, precision) { | |
if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) { | |
return '-'; | |
} | |
if (typeof precision === 'undefined') { | |
precision = 1; | |
} |