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, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { Link } from 'react-router'; | |
import { Button } from 'react-bootstrap'; | |
import _ from 'lodash'; | |
import * as teacherActions from '../../actions/teachers'; | |
import * as classActions from '../../actions/classes'; | |
import { isTeacherFetching, getTeacher } from '../../reducers/teachers'; |
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
Show hidden characters
{ | |
"compileOnSave": true, | |
"compilerOptions": { | |
"watch": true, | |
"target": "es5", | |
"outFile": "demo.js", | |
"inlineSourceMap": true, | |
"removeComments": true | |
} | |
} |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 16, | |
// font family with optional fallbacks |
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
// Before | |
import { RSGButton } from 'rsg-components' | |
import { RSGBox } from 'rsg-components'; | |
import { RSGCheckbox, RSGLabel } from 'rsg-components' | |
import { RSGProgressBar as PB } from 'rsg-components' | |
// After 3.0.0-beta.1 | |
import { Button } from 'rsg-components' | |
import { Box } from 'rsg-components'; | |
import { Checkbox, Label } from 'rsg-components' |
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
.keyboard { | |
position: absolute; | |
width: 600px; | |
height: 300px; | |
color: darkslategray; | |
border: 2px solid currentColor; | |
border-radius: 12px; | |
margin: 300px 10px 10px 65px; | |
transform: rotateX(30deg) rotateZ(0deg); | |
box-shadow: 2px 5px 12px currentColor; |
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
// simple vocabulary with positive and negative terms | |
const vocabulary = ["bad", "slow", "ugly", "overrated", "expensive", "wrong", "good", "amazing", "fast", "kind", "cheap"]; | |
const fitData = string => { | |
const stringSplit = string.replace(/[^a-zA-Z ]+/g, "").split(" "); | |
const words = {}; | |
stringSplit.forEach(ev => { | |
words[ev] = | |
typeof words[ev] === "number" ? (words[ev] += 1) : (words[ev] = 1); |
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
exports.runLinearModel = functions.https.onRequest((request, response) => { | |
// Get x_test value from the request body | |
const x_test = Number(request.body.x); | |
// Check if the x value is number. Otherwise request a valid one and terminate the function. | |
if (typeof x_test !== "number" || isNaN(x_test)) | |
response.send("Error! Please format your request body."); | |
// Define a model for linear regression. | |
const linearModel = tf.sequential(); |