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 angular from 'angular'; | |
import Table from 'table'; | |
import sampleData from './sample-data/data.json'; | |
let App = angular.module('ExampleApp', []); | |
App.directive('sbpTable', () => { | |
return { | |
link: (scope, element, attrs) => { |
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
// --------------------------------------------- | |
// CreateCapsule Controller | |
import angular from 'angular'; | |
import uiRouter from 'angular-ui-router'; | |
import CreateCapsule from './CreateCapsule.js'; | |
import htmlCreateCapsule from './create-capsule.html'; | |
// Services | |
import envSettingsService from '../env-settings'; |
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
/** | |
* Authenticate a user | |
*/ | |
export default class Auth | |
{ | |
constructor($http, envSettings) | |
{ | |
this.$http = $http; | |
this.envSettings = envSettings; | |
} |
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 fs = require('fs'); | |
var acorn = require('./node_modules/babel/node_modules/babel-core/lib/acorn'); | |
require('./node_modules/babel/node_modules/babel-core/lib/acorn/plugins/flow.js'); | |
var T = fs.readFileSync('./T.js'); | |
var ast = acorn.parse(T, { | |
ecmaVersion: 7, | |
sourceType: 'module', | |
plugins: { |
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 TextWidget from '../text-widget/model'; | |
import ImageWidget from '../image-widget/model'; | |
const WidgetT = { | |
text: TextWidget, | |
image: ImageWidget | |
}; | |
export default class WidgetManager | |
{ |
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 angular from 'angular'; | |
import widgetEvents from './widget-events'; | |
/** | |
* Handle the creation workflow of a new content capsule | |
*/ | |
export default class CapsuleEdit { | |
constructor($scope, widgetManager, $upload, $stateParams, ContentCapsuleAdmin) { |
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 __extends = require('dotmvc/lib/util/extends'); | |
var __mixin = require('dotmvc/lib/util/mixin'); | |
var KendoChart = require('./KendoChart.js'); | |
var KendoXYSparkline = require('./KendoXYSparkline.js'); | |
// Configs | |
var SeriesDefaults = require('./config/SeriesDefaults.js'); | |
var AxisDefaults = require('./config/AxisDefaults.js'); | |
var Series = require('./config/Series.js'); | |
var CategoryAxis = require('./config/CategoryAxis.js'); |
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
fuc off |
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 path = require('path'); | |
var Promise = require('bluebird'); | |
var uniq = require('uniq'); | |
var fs = Promise.promisifyAll(require('fs')); | |
var SERVER_APP_PATH = 'src/server/app/publish'; | |
var PREAMBLE_PATH = path.join(SERVER_APP_PATH, 'preamble.js'); | |
var CAPSULE_BUILD_PATH = path.join(SERVER_APP_PATH, 'capsule.build.js'); | |
var SAMPLE_CAPSULE_PATH = path.join(SERVER_APP_PATH, 'sample-capsule.json'); |
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 prompt = require('prompt'); | |
prompt.start(); | |
prompt.get(['diameter', 'angle'], function (err, result) { | |
console.log('Diameter: ' + result.diameter); | |
console.log('Angle: ' + result.angle); | |
}); |