Skip to content

Instantly share code, notes, and snippets.

View clekstro's full-sized avatar

Curtis Ekstrom clekstro

View GitHub Profile
@clekstro
clekstro / first-file.txt
Created June 23, 2019 20:25
My public gist
Made this in the online editor
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@clekstro
clekstro / adapters.application.js
Created August 9, 2017 08:58 — forked from samselikoff/mirage.config.js
Mirage dev boilerplate
import DS from 'ember-data';
export default DS.RESTAdapter.extend({
host: 'https://api.travis-ci.org'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
someArray: [
Ember.Object.create({ name: 'foo' }),
Ember.Object.create({ name: 'bar' }),
],

Keybase proof

I hereby claim:

  • I am clekstro on github.
  • I am clekstro (https://keybase.io/clekstro) on keybase.
  • I have a public key whose fingerprint is F051 9654 0BCF 4ED1 B5D7 230E 4B50 21C6 1CCF AB8E

To claim this, I am signing this object:

import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@clekstro
clekstro / application.controller.js
Created November 1, 2015 23:13
No helper warnings unless blocks
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@clekstro
clekstro / plug_tests.md
Last active September 24, 2015 22:30
Issue testing halting behavior of plugs

I’m having issues testing that a plug is properly halting the pipeline when an external service returns an error. ​ Here's the test, which ensures we call our plug under test: ​

defmodule HaltTestApp do
  use Plug.Routerplug :match
  plug ValidateExternalService
@clekstro
clekstro / gist:8246760
Created January 3, 2014 21:16
sample git workflow
git checkout -b new_branch
git checkout master
git pull --rebase
git checkout new_branch
git rebase master
git checkout master
git merge new_branch
@clekstro
clekstro / countryHash.js
Created December 18, 2012 10:31
hash of country codes/names
var country_codes = {
"AD" : "Andorra",
"AE" : "United Arab Emirates",
"AF" : "Afghanistan",
"AG" : "Antigua and Barbuda",
"AI" : "Anguilla",
"AL" : "Albania",
"AM" : "Armenia",
"AN" : "Netherlands Antilles",
"AO" : "Angola",