This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
showImage: false, | |
actions: { | |
toggle: function () { | |
this.toggleProperty('showImage'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import FroalaEditorComponent from 'ember-froala-editor/components/froala-editor'; | |
export default FroalaEditorComponent.extend({ | |
options: { | |
heightMin: 200 | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Modules | |
const EventsEmitter = require('events'); | |
// Libs | |
const _ = require('lodash'); | |
const Winston = require('winston'); | |
const Pluralize = require('pluralize'); | |
const Promise = require('bluebird'); | |
const bookshelf = require('./pg'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var App = Ember.Application.create(); | |
App.IndexRoute = Ember.Route.extend({ | |
model: function() { | |
return { | |
name: 'one', | |
className: 'dropdown', | |
choices: [ | |
{ choice: 'Choose One' }, | |
{ choice: 'First' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var connect = require('connect'), | |
path = require('path'), | |
routes = require('./routes'), | |
exphs = require('express3-handlebars'), | |
moment = require('moment'); | |
module.exports = function (app) { | |
app.engine('handlebars', exphs.create({ | |
defaultLayout: 'main', | |
layoutsDir: app.get('views') + '/layouts', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async.series([ | |
function(callback) { | |
sequelize | |
.authenticate() | |
.then(function() { | |
callback(); | |
}) | |
.catch(function authException(err) { | |
//console.log(err); | |
callback(err); |
NewerOlder