Skip to content

Instantly share code, notes, and snippets.

View enyo's full-sized avatar
🙌
Primarily working on Pausly

Matias Meno enyo

🙌
Primarily working on Pausly
View GitHub Profile
// Setting the tags
var tagGroups = Inc.store.find(Inc.ALL_TAG_GROUPS_QUERY);
Inc.allTagGroupsController.set('content', tagGroups);
// The controller in question
@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%;
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 ""
App.Model = DS.Model.extend
namingConvention:
keyToJSONKey: (key) -> key
foreignKey: (key) -> key
Shop.jsonProducts = [{"_id":"50145602d71fe6bdb0000003","descriptionHtml":"","descriptionSource":null,"name":"",ect....]
Shop.store.loadMany Shop.Product, Shop.jsonProducts
@enyo
enyo / app.js
Created December 18, 2012 12:42
var myCoolFunc = require("my-mod");
myCoolFunc("yeah");
{
"name": "boot",
"description": "Lisa's website",
"version": "0.0.1",
"private": true,
"dependencies": {
"enyo/opentip": "*",
"enyo/dropzone": "*"
},
"scripts": [
App.Router = Ember.Router.extend
enableLogging: yes
showFinancialTransfers: Ember.State.transitionTo "finances"
App.Router.map (match) ->
match("/").to "finances"
match("/finances").to "finances", (match) ->
match("/").to "listFinancialEvents"
match("/:financial_event_id").to "financialEvent"
@enyo
enyo / storefile.js
Last active December 10, 2015 22:29
var path = require("path");
exports.media = function(req, res, next) {
var file = req.files.media_upload;
// code to handle file here:
// file should already be in the right location
// The path, this file has been saved at should be:
file.path;
// To get only the filename of this path: