Skip to content

Instantly share code, notes, and snippets.

View mattd's full-sized avatar

Matt Dawson mattd

  • WillowTree Apps
  • Charlottesville, VA
View GitHub Profile
config: {
i18n: {
locale: 'fr-fr'
}
}
define([
'marionette',
'templates',
'i18n!nls/colors'
], function (Marionette, Templates, colors) {
"use strict";
return Marionette.ItemView.extend({
template: Templates['user/item.hbs'],
templateHelpers: {
requirejs: {
compile: {
options: {
name: 'config',
baseUrl: './app/scripts/',
mainConfigFile: 'app/scripts/config.js',
out: 'dist/build/require.js',
optimize: 'none'
}
}
define([
'underscore',
'marionette',
'vent',
'views/mixins/resizable',
'views/group/collection/item'
], function (
_,
Marionette,
vent,
@mattd
mattd / gist:4611792
Last active December 11, 2015 14:08
define([
'jquery',
'underscore'
], function ($, _) {
"use strict";
return {
onRender: function () {
var column = this.$el.parents('.column');
var debounceResize = _.debounce(this.resize, 100);
a.email-share {
display: block;
height: 34px;
width: 34px;
background: url(../images/btn_mail.png) no-repeat #302f2f;
text-indent: -9999px;
}
@media all and (-webkit-min-device-pixel-ratio: 2),
all and (min-device-width: 641px) {
@mattd
mattd / gist:4505087
Last active December 10, 2015 22:49
define([
'marionette',
'vent',
'views/layouts/manage/groups',
'views/group/collection',
'views/learner/collection',
'collections/api/group',
'collections/api/learner'
], function (
Marionette,
@mattd
mattd / gist:4502387
Last active December 10, 2015 22:29
define([
'vent',
'routers/manage/groups',
'routers/manage/learners',
'controllers/manage/groups',
'controllers/manage/learners',
'views/layouts/manage/module',
'views/tab/collection/section',
'collections/client/tab/section'
], function (
define([
'vent',
'routers/manage/groups',
'routers/manage/learners',
'controllers/manage/groups',
'controllers/manage/learners',
'views/layouts/manage/module',
'views/tab/collection',
'collections/client/tab'
], function (
define([
'routers/dashboard/index',
'controllers/dashboard/index',
'views/layouts/dashboard/module'
], function (
DashboardIndexRouter,
DashboardIndexController,
DashboardModuleLayout
) {
"use strict";