Skip to content

Instantly share code, notes, and snippets.

View theodorton's full-sized avatar

Theodor Tonum theodorton

View GitHub Profile
@theodorton
theodorton / SketchSystems.spec
Last active September 23, 2019 15:21
Lead Tab
Lead Tab
Approved
Book -> Booked
Unqualify -> Unqualified
Postpone -> Postponed
Send SMS and email macro -> Approved
Lead*
Book and approve -> Booked
Approve -> Approved
Postpone -> Postponed
@theodorton
theodorton / SketchSystems.spec
Last active September 9, 2019 11:43
Initial State
Initial State
vanilla -> Lead
smartcar -> Authorized
smartcar model3 -> Equipment Delivered
prelead -> Prelead
create installation directly in CRM -> Active
create lead from CRM -> Lead
Lead Tab
Prelead*
user and listing connected -> Lead

Keybase proof

I hereby claim:

  • I am theodorton on github.
  • I am theodorton (https://keybase.io/theodorton) on keybase.
  • I have a public key ASDf8FtUdURnksgFK0pIJ7luMs2CfIGfT177T6gOI6a3cwo

To claim this, I am signing this object:

@theodorton
theodorton / routes--my-route.js
Created March 18, 2015 18:56
Persisiting routes across tabs in mobile apps
import Ember from 'ember';
import StatefulRoute from 'respoller-app/utils/stateful-route';
export default Ember.Route.extend(StatefulRoute, {
model: function(){
// ...
}
});
@theodorton
theodorton / examples.emblem
Last active December 22, 2015 12:39
Handlebars li-to helper that let's you wrap a link in a parent element that gets the class name bindings (active, loading etc.) Useful for twitter-bootstrap + ember.js
ul.nav.navbar-nav
= liTo 'index' | Home
= liTo 'about | Index
= liTo 'contact' | Contact
footer
= liTo 'privacy' tagName="p"
| I'm a link wrapped in a p, and when you click on the p you get routed to my link!
@theodorton
theodorton / Example
Last active December 18, 2015 21:39
Support file for RSpec aimed at DRYing up ActiveModel Serializer specs.
describe BlogPostSerializer do
include_context "serializer spec"
let(:model) do
BlogPost.new({
title: "Lol",
author_attributes: { email: "john@doe.com"}
})
end