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 React from 'react' | |
import PropTypes from 'prop-types' | |
import { Broadcast } from 'react-broadcast' | |
import { Grid } from 'react-flexbox-grid' | |
import styled from 'styled-components' | |
import { media, breakpoints } from '@tds/core-responsive' | |
import Col from './Col/Col' | |
import Row from './Row/Row' | |
import calculateLevel from './calculateLevel' |
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 React from 'react' | |
import PropTypes from 'prop-types' | |
import { componentWithName } from '@tds/util-prop-types' | |
import Box from '@tds/core-box' | |
import Text from '@tds/core-text' | |
import Paragraph from '@tds/core-paragraph' | |
import InputFeedback from '@tds/core-input-feedback' | |
import safeRest from '../../utils/safeRest' |
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
const path = require('path'); | |
const Sequelize = require('sequelize'); | |
var sequelize = new Sequelize('feathers-app', '', '', { | |
dialect: 'sqlite', | |
storage: path.join(__dirname, '../db.sqlite') | |
}); | |
var User = sequelize.define('user', { | |
id: { |
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
// 1 | |
var a = 1, | |
b = function a(x) { | |
return 'foo'; | |
}; | |
alert(a); | |
// 2 | |
function a(x) { | |
return x * 2; |
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 MYAPP = MYAPP || {}; | |
MYAPP.Person = function(first_name, last_name) { | |
this.first_name = first_name; | |
this.last_name = last_name; | |
}; | |
MYAPP.Person.prototype.full_name = function() { | |
return this.first_name + ' ' + this.last_name; | |
} |
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
function UserFactory($http) { | |
init(); | |
var users = {}; | |
var factory = { | |
getUsers: getUsers, | |
getUser: getUser | |
}; | |
return factory; | |
////////////// |
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
function DashboardService($http) { | |
this.dashboards = [ | |
'Dashboard1', | |
'Dashboard2' | |
]; | |
this.getDashboard = function() { | |
return {}; | |
}; | |