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
open -n ./emptyExampleDebug.app/ --args 1 2 3 4 |
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
/** | |
* Created by Mike on 2/21/2017. | |
*/ | |
import React, { PropTypes } from 'react'; | |
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; | |
import FlatButton from 'material-ui/FlatButton'; | |
//TODO: grab avatar image dynamcially | |
//TODO: wire up edit button | |
//TODO: wire up delete button |
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
/** | |
* Created by Mike on 2/21/2017. | |
*/ | |
import React, { PropTypes } from 'react'; | |
import { Link } from 'react-router' | |
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; | |
import FlatButton from 'material-ui/FlatButton'; | |
//TODO: grab avatar image dynamcially | |
//TODO: wire up edit button |
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
/** | |
* Created by Mike on 2/22/2017. | |
*/ | |
import React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { feathersServices } from '../../../feathers'; | |
import TranscriptEditor from './TranscriptEditor' |
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 DeviceManager(driverFactory) { | |
var devices = {}; | |
function addDevice(name, driver, config){ | |
if(devices[name] !== undefined){ | |
return Promise.reject(new Error(`Device with name of ${ name } already exists`)); | |
} | |
driverFactory.create(driver, config, {}) | |
.then( |
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
// media-model.js - A mongoose model | |
// | |
// See http://mongoosejs.com/docs/models.html | |
// for more of what you can do here. | |
module.exports = function (app) { | |
const mongooseClient = app.get('mongooseClient'); | |
const { Schema } = mongooseClient; | |
const options = { | |
discriminatorKey: 'type', |
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 feathers from '@feathersjs/feathers'; | |
import socketio from '@feathersjs/socketio-client'; | |
import io from 'socket.io-client'; | |
const socket = io('http://127.0.0.1:3030'); | |
const app = feathers(); | |
export default app; | |
// Set up Socket.io client with the socket | |
app.configure(socketio(socket)); |
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 foreignKeyJoin = ( | |
idKey, | |
populatedKey, | |
serviceName, | |
) => args => async (item, context) => { | |
const res = await context.app.services[serviceName].find({ | |
query: { | |
_id: { $in: item[idKey] } | |
} |
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 Lorem(C){ | |
var lorem = ""; | |
for(var N=1; N < C; N = N + 1){ | |
var RN = Math.floor(Math.random()*129); | |
switch(RN){ | |
case 0: | |
lorem = lorem + "\n\n" | |
case 1: | |
lorem = lorem + "Sed" + " " | |
break |
OlderNewer