Skip to content

Instantly share code, notes, and snippets.

View jraff's full-sized avatar

Jordan Raffoul jraff

  • Toronto, Ontario, Canada
View GitHub Profile
function DashboardService($http) {
this.dashboards = [
'Dashboard1',
'Dashboard2'
];
this.getDashboard = function() {
return {};
};
function UserFactory($http) {
init();
var users = {};
var factory = {
getUsers: getUsers,
getUser: getUser
};
return factory;
//////////////
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;
}
// 1
var a = 1,
b = function a(x) {
return 'foo';
};
alert(a);
// 2
function a(x) {
return x * 2;
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: {
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'
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'