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);
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(){
@trek
trek / components.email-form.js
Last active April 18, 2017 14:18
New Twiddle
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(){