Skip to content

Instantly share code, notes, and snippets.

View trek's full-sized avatar
🏳️‍🌈

Trek Glowacki trek

🏳️‍🌈
View GitHub Profile
import { Readable } from 'stream';
import fetch from 'node-fetch';
import { FormData, File } from 'formdata-node';
import { FormDataEncoder } from 'form-data-encoder';
let form = new FormData();
form.append('email', email);
form.append('first_name', firstName);
form.append('last_name', lastName);
10io-jekyll (0.10.0, 0.10.0)
1234567890_ (1.0, 1.0)
12_hour_time (0.0.3, 0.0.3)
24games (0.2.1, 0.2.1)
2Performant (0.0.8, 0.0.8)
360_services (1.1.3, 1.1.3)
3d-ribbon (0.1.1, 0.1.1)
3scale_client (2.2.7, 2.2.7)
4info (2.0.0, 2.0.0)
7digital (0.0.6, 0.0.6)
def avatar_geometry(style = :original)
@geometry ||= {}
@geometry[style] ||= Paperclip::Geometry.from_file(avatar.to_file(style))
end
honeycomb-beeline error: finishing an event with unfinished nested events. almost certainly not what we want.
please paste this message (everything between the "----" lines) into an issue
at https://github.com/honeycombio/beeline-nodejs/issues. feel free to edit
out any application stack frames if you'd rather not share those
Error:
at LibhoneyEventAPI.askForIssue (/Users/trek/code/flashrecruit/api/node_modules/honeycomb-beeline/lib/api/libhoney.js:295:7)
at LibhoneyEventAPI.finishSpan (/Users/trek/code/flashrecruit/api/node_modules/honeycomb-beeline/lib/api/libhoney.js:187:12)
at LibhoneyEventAPI.finishTrace (/Users/trek/code/flashrecruit/api/node_modules/honeycomb-beeline/lib/api/libhoney.js:105:10)
at Object.finishTrace (/Users/trek/code/flashrecruit/api/node_modules/honeycomb-beeline/lib/api/index.js:52:20)
at api.bindFunctionToTrace (/Users/trek/code/flashrecruit/api/node_modules/honeycomb-beeline/lib/instrumentation/express.js:154:9)
<img class='rounded-full object-cover' src={{this.src}} alt={{this.alt}} height={{this.size}} width={{this.size}} onerror={{this.useLetterform}}>
@trek
trek / controllers.application.js
Last active October 26, 2017 00:43
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
foo: function(){
console.log("foo")
}
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
ember generate <blueprint> <options...>
Generates new code from blueprints.
aliases: g
--dry-run (Boolean) (Default: false)
aliases: -d
--verbose (Boolean) (Default: false)
aliases: -v
--pod (Boolean) (Default: false)
aliases: -p
import Ember from 'ember';
import EmberValidations from 'ember-validations';
export default Ember.Component.extend(EmberValidations, {
validations: {
value: {
presence: { message: 'must not be blank' }
}
},
isDisabled: Ember.computed('isValid', function(){
import Ember from 'ember';
import EmberValidations from 'ember-validations';
export default Ember.Component.extend(EmberValidations, {
validations: {
value: {
presence: { message: 'must not be blank' }
}
},
isDisabled: Ember.computed('isValid', function(){