Skip to content

Instantly share code, notes, and snippets.

Evan Solomon evansolomon

Block or report user

Report or block evansolomon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
someData: 'hello'
didReceiveAttrs() {
didUpdateAttrs() {
View components.child-component.js
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
clearPersonData() {
this.set('person', null)
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
contentHtml: Ember.String.htmlSafe(`
<p>Hello <strong>world</strong></p>
<p>This content has html like images</p>
<p><img src=""></p>
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'video',
attributeBindings: [
View components.a11y-label.js
import Ember from 'ember';
const {
} = Ember;
export default Component.extend({
View gist:7ebcb5e4ae331e1997cd
├── JSONStream
│   ├── examples
│   │   └── all_docs.js
│   ├── index.js
│   ├── package.json
│   ├── readme.markdown
│   └── test
evansolomon / xhr.js
Created May 21, 2015
Chrome 43 changed the way XMLHttpRequest objects get serialized to JSON. Almost all of the fields as missing now.
View xhr.js
var xhr = new XMLHttpRequest()'GET', '')
xhr.onreadystatechange = function () {
if (xhr.readyState !== 4) return
var jsonifiedXhr = JSON.parse(JSON.stringify(xhr))
// Chrome 42
View gist:60de7441423f6444d8fa
This file has been truncated, but you can view the full file.
View gist:7dab16b72ec1561ee715
$ aws lambda get-event-source --uuid my-events-uuid
"Status": "OK",
"UUID": "my-events-uuid",
"LastModified": "2014-11-22T02:37:00.000+0000",
"BatchSize": 1,
"Parameters": {
"InitialPositionInStream": "TRIM_HORIZON"
"Role": "arn:aws:iam::acct-number:role/lambda_exec_role",
evansolomon / gist:9535323
Created Mar 13, 2014
Even when you don't care about a stream's data, you need to make sure it's produced.
View gist:9535323
var https = require('https')
https.get('', function (res) {
res.on('end', function () {
console.log('You will never see this')
https.get('', function (res) {
// This sets the stream to flowing mode and makes sure it gets through all of its
You can’t perform that action at this time.