Skip to content

Instantly share code, notes, and snippets.

App.Router.map (match) ->
match("/").to "finances"
match("/finances").to "finances", (match) ->
match("/").to "listFinancialEvents"
match("/:financial_event_id").to "financialEvent"
App.Router = Ember.Router.extend
enableLogging: yes
showFinancialTransfers: Ember.State.transitionTo "finances"
{
"name": "boot",
"description": "Lisa's website",
"version": "0.0.1",
"private": true,
"dependencies": {
"enyo/opentip": "*",
"enyo/dropzone": "*"
},
"scripts": [
@enyo
enyo / app.js
Created December 18, 2012 12:42
var myCoolFunc = require("my-mod");
myCoolFunc("yeah");
Shop.jsonProducts = [{"_id":"50145602d71fe6bdb0000003","descriptionHtml":"","descriptionSource":null,"name":"",ect....]
Shop.store.loadMany Shop.Product, Shop.jsonProducts
App.Model = DS.Model.extend
namingConvention:
keyToJSONKey: (key) -> key
foreignKey: (key) -> key
elements = [ ]
className = "boa"
elements.push """<div class="#{className}">bli</div>"""
elements.push """<div class="#{className}">bli</div>"""
elements.push """<div class="#{className}">bli</div>"""
$("#container").html elements.join ""
@enyo
enyo / dabblet.css
Created September 14, 2012 13:59
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(60deg, #f06, yellow);
min-height: 100%;
// Setting the tags
var tagGroups = Inc.store.find(Inc.ALL_TAG_GROUPS_QUERY);
Inc.allTagGroupsController.set('content', tagGroups);
// The controller in question
// ==========================================================================
// Project: Inc.CheckboxListItemView
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals Inc */
/** @class
(Document Your View Here)