This file contains hidden or 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
require('babel-polyfill') | |
import gulp from 'gulp' | |
import zip from 'gulp-zip' | |
import babel from 'gulp-babel' | |
import dox from 'dox' | |
import glob from 'glob' | |
import minimist from 'minimist' | |
import async from 'async' | |
import fs from 'fs' |
This file contains hidden or 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
{ | |
"body": $input.json("$"), | |
"resourceId": "$input.params('id')", | |
"header": { | |
"Authorization": "$input.params('Authorization')" | |
}, | |
"info": { | |
"sourceIp": "$context.identity.sourceIp", | |
"userAgent": "$context.identity.userAgent" | |
} |
This file contains hidden or 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
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"caret_extra_width": 1, | |
"caret_style": "smooth", | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme", | |
"file_exclude_patterns": | |
[ | |
"smart.lock", | |
".DS_Store", |
This file contains hidden or 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
(function (window) { | |
'use strict'; | |
var c3 = window.c3 = {}; | |
var d3 = window.d3; | |
/* | |
* Generate chart according to config | |
*/ | |
c3.generate = function (config) { |
This file contains hidden or 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
{ | |
"bold_folder_labels": true, | |
"caret_style": "smooth", | |
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme", | |
"file_exclude_patterns": | |
[ | |
"smart.lock", | |
".DS_Store", | |
".bowerrc", | |
".gitignore", |
This file contains hidden or 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
define ['templates/layout'], (template) -> | |
class Blog.Layouts.Index extends Backbone.Marionette.Layout | |
template: template | |
regions: | |
navigation: 'nav' | |
article: 'article' | |
modal: | |
selector: '.modal' | |
regionClass: Backbone.Marionette.Modals |
This file contains hidden or 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
define ['templates/modal'], (template) -> | |
class Blog.Views.Modal extends Backbone.Modal | |
template: template | |
cancelEl: ".bbm-button" |
This file contains hidden or 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
.bbm-modal__topbar | |
%h3.bbm-modal__title Hello | |
.bbm-modal__section | |
%p World! | |
.bbm-modal__bottombar | |
%a.bbm-button{:href => "#"} Close |
This file contains hidden or 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 Layout = Backbone.Marionette.Layout.extend({ | |
template: _.template($('#template').html()), | |
regions: { | |
modals: { | |
selector: '.your-modals-container', | |
regionClass: Backbone.Marionette.Modals | |
} | |
} | |
}); |
This file contains hidden or 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
views: { | |
'click #tab': { | |
myActiveTabClass: '.my-tab' | |
view: _.template($('#tab-view').html()), | |
onActive: 'setActive' | |
} | |
}, | |
setActive: function (options) { | |
this.$(options.myActiveTabClass).addClass('active') | |
} |
NewerOlder