Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kellysutton
kellysutton / LayerVault Support Engineer.md
Last active August 29, 2015 14:01
LayerVault Support Engineer

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.

You

  • 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.
test('it created an Upvote with #createUpvote', function () {
expect(3);
var store = App.__container__.lookup('store:main');
store.scheduleSave = function(context, resolver) {
ok(1);
};
var user = null;
var story = null;
Ember.run(function () {
@kellysutton
kellysutton / gist:c08398b77e1adadc2478
Created January 15, 2015 04:37
CSS Challenge Ideas

CSS Challenge Ideas

@kellysutton
kellysutton / gist:8119b227227571012c7b
Created January 22, 2015 19:10
Computed properties with promises
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
kellysutton / show-test-1.js
Last active August 29, 2015 14:15
Unit Testing Ember Data in Controllers
// Include everything from above
test('the "save" action calls #save', function () {
// The expect is crucial here, otherwise we can get
// false positives.
expect(1);
var model = null;
store.scheduleSave = function(context, resolver) {
ok(resolver.promise); // The actual assert
@kellysutton
kellysutton / blog-post
Last active August 29, 2015 14:15
Public Drafts in Jekyll
---
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
kellysutton / clean-template.hbs
Last active August 29, 2015 14:15
Reducing “action cruft” in your Ember templates
{{post-detail post=post}}
@kellysutton
kellysutton / cleanup.js
Last active August 29, 2015 14:25
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'];
requirejs.config({
paths: {
ramda: 'https://cdnjs.cloudflare.com/ajax/libs/ramda/0.13.0/ramda.min'
}
});
require(['ramda'], function (_) {
const trace = _.curry(function(tag, x) {
console.log(tag, x);
return x;
@kellysutton
kellysutton / srcset.html
Created August 5, 2015 02:44
srcset examples
<img
srcset="asset.png,
asset-2x.png 2x,
asset-3x.png 3x"
src="asset.png"
/>