Skip to content

Instantly share code, notes, and snippets.

View olivia's full-sized avatar
🐢
I am slow

Olivia olivia

🐢
I am slow
View GitHub Profile
[
{
"backcolor": "#b0b0b0",
"name": "M65 SA Template"
},
[
{
"c": "#f6d9d5",
"t": "#363636",
"p": "SA",
@olivia
olivia / application.controller.js
Last active November 3, 2015 22:24
Yield example
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
plural: Ember.computed(function() {
return Ember.Inflector.inflector.pluralize("gas");
}),
singular: Ember.computed(function() {
return Ember.Inflector.inflector.singularize("gases");
}),
@olivia
olivia / application.controller.js
Last active October 22, 2015 16:19 — forked from corrspt/application.controller.js
EmberInflector Bug
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
plural: Ember.computed(function() {
return Ember.Inflector.inflector.pluralize("gas");
}),
singular: Ember.computed(function() {
return Ember.Inflector.inflector.singularize("gases");
}),

Keybase proof

I hereby claim:

  • I am olivia on github.
  • I am ofbriggs (https://keybase.io/ofbriggs) on keybase.
  • I have a public key whose fingerprint is C649 B3D0 3794 D290 5C7F 033B F6BE 699B B559 B06A

To claim this, I am signing this object:

@olivia
olivia / ed-notes.md
Last active August 29, 2015 14:07
Ember Data Notes

Ember Data Adapters and Serializers

General Adapter Logic

  • Calling a find with 1 argument returns a record array (identity map)
  • Ajax Errors will cause the failure callback to execute
  • Created records exist in the record array returned by all
  • data returned from commit will overwrite record data -- This happens for model data which is an update -- Can also add new models by updating relationships and sideloading data
  • meta object in payload allows you to store type specific data
  • buildURL can make nested relationship calls (/posts/:post_id/comments/:comment_id)
@olivia
olivia / .vimrc
Last active August 29, 2015 14:01
My .vimconfig
execute pathogen#infect()
set nocompatible " choose no compatibility with legacy vi
syntax enable
set encoding=utf-8
set showcmd " display incomplete commands
filetype plugin indent on " load file type plugins + indentation
"" whitespace
set nowrap " don't wrap lines