Skip to content

Instantly share code, notes, and snippets.


Kelly Sutton kellysutton

View GitHub Profile
kellysutton / LayerVault Support
Last active Aug 29, 2015
LayerVault Support Engineer
View LayerVault Support

We're searching for a support engineer to help our customer support team grow.

You will be the engineering resource for the growing support team. You'll be learning the ropes of all LayerVault services to quickly diagnose and fix customer problems. But we're not just looking for short-term fixes to keep things running; you will also be in charge of crafting long-term solutions. If the support process can be improved, you will work with the support team to do so.

LayerVault is a remote company, with headquarters in New York, NY. This position can either be remote or in New York.


  • Have experience with Ruby and Ruby on Rails.
  • Have patience for dealing with both humans and computers. You know that humans can have their feelings hurt and that computers are cold, metal boxes put on this earth to torment your very existence.
View controller-test.js
test('it created an Upvote with #createUpvote', function () {
var store = App.__container__.lookup('store:main');
store.scheduleSave = function(context, resolver) {
var user = null;
var story = null; () {
kellysutton / gist:8119b227227571012c7b
Created Jan 22, 2015
Computed properties with promises
View gist:8119b227227571012c7b
export default Ember.ObjectController.extend({
canVoteOnMotd: false,
_setCanVoteOnMotd: (function () {
var _self = this;
this.get('currentUser.motd_upvotes').then(function () {
if (/* some logic */) {
_self.set('canVoteonMotd', true);
kellysutton / show-test-1.js
Last active Aug 29, 2015
Unit Testing Ember Data in Controllers
View show-test-1.js
// Include everything from above
test('the "save" action calls #save', function () {
// The expect is crucial here, otherwise we can get
// false positives.
var model = null;
store.scheduleSave = function(context, resolver) {
ok(resolver.promise); // The actual assert
kellysutton / blog-post
Last active Aug 29, 2015
Public Drafts in Jekyll
View blog-post
layout: post
title: "Public Drafts in Jekyll"
date: 2015-02-18 00:00:00
draft: true
One of the things I like to do with more…
kellysutton / clean-template.hbs
Last active Aug 29, 2015
Reducing “action cruft” in your Ember templates
View clean-template.hbs
{{post-detail post=post}}
View cleanup.js
import Ember from 'ember';
const { computed, on } = Ember;
// Our Higher Order Function, as before
let has = field => computed.notEmpty(field);
// The Component UI fields as before.
const UI_FIELDS = ['userName', 'password'];
View float-array-to-hex-string.js
paths: {
ramda: ''
require(['ramda'], function (_) {
const trace = _.curry(function(tag, x) {
console.log(tag, x);
return x;
View srcset.html
asset-2x.png 2x,
asset-3x.png 3x"
You can’t perform that action at this time.