text
stringlengths
7
3.69M
/* global kakao */ import React, { useState, useEffect } from 'react' import Header from '../header/header'; import Footer from '../footer/footer'; import { Link } from 'react-router-dom'; import '../components/common/Button.css'; import '../components/css/map.css'; import * as App from '../App'; const APP_KEY = 'dfa2...
var gulp = require('gulp'); var gutil = require('gulp-util'); var source = require('vinyl-source-stream'); var browserify = require('browserify'); var watchify = require('watchify'); var reactify = require('reactify'); var templatify = require('react-templatify'); var sass = require('gulp-sass'); var jade = require('g...
import { GET_USER_NOW } from "./type"; export const getUserNow = (userNow) => (dispatch) => { dispatch({ type: GET_USER_NOW, payload: userNow, }); }; export default getUserNow;
const Event = require('../../../models/event'), { transformEvent } = require('../common'), log = require('../../../helpers/logger/log')(module.filename), HttpError = require('../../../error/HttpError'); const editEvent = async (args, { req, res }) => { try { if (!req.isAuth) { throw new HttpError(401); } ...
/* FlashCanvas, 2012-11-01T22:38 commit ID 34a50cbe6aeb11e050c7d41e8e2cf266a345aeed Copyright 2012 Willow Systems Corp Copyright (c) 2009 Tim Cameron Ryan Copyright (c) 2009-2011 FlashCanvas Project Released under the MIT/X License */ window.ActiveXObject && !window.CanvasRenderingContext2D && function () { ...
import count from './count'; import newsList from './news-list'; // export ...brightUiReducers from 'components/reducers'; import toast from './toast'; import loading from './loading'; export { count, newsList, toast, loading };
//YouTube Video ID let playList = [ "Yd_nsFJAXV4", "R-fQPTwma9o", "EH3zcuRQXNo", "EO0abB6gJEw", "x0Wa6ix51i0", "_eu7EZIdLMM", "U5tLGYIPGdQ", "XzwVReweL_o", "b5QXpUlEOyk", "niElcLtli_Q", "SGJIFBSCXgM" ]; //播放起訖秒數 let playTime = [ [100, 103], [110, 112], [111, 114],...
module.exports = { footerText: 'Copyright Quancy Ltd. © 2019', // Date formats from // https://www.ibm.com/support/knowledgecenter/en/SSS28S_8.1.0/XFDL/i_xfdl_r_formats_en_SG.html singaporeDateFormat: { short: 'M/d/yy', medium: 'dd-MMM-yyyy', long: 'MMMM d, yyyy', full: 'EEEE, MMMM d, yyyy' },...
import React from "react"; import images from "../../../utils/ImageHelper"; import OffersRate from "../OffersRate"; import CheckoutForm from "./CheckoutForm"; const OffersPayment = ({sendToUser, sendByUser, isOffer, makePayment, isPaid, projectId, companyId}) => { return ( <div className="chat-main-box"> ...
(function () { angular.module('app').controller('homeController', homeController); function homeController($scope, Message, FileUploader, NumerosSortiados, $http, $location, $state) { $scope.list=[]; $scope.list_testSet=[]; $scope.xlm = false; $scope.showTestset = func...
import React from 'react' export default function Header({ contents, styles }) { return ( <div style={styles}> <h1>{contents.value}</h1> </div> ); }
import React, { Component } from "react"; import "./index.css"; import "antd/dist/antd.css"; import { Row, Col, Menu } from "antd"; import {Redirect,Route} from "react-router-dom" const navigation = { backgroundColor: "#79bcdc", }; const navigation1 = { fontFamily: "lisu", fontSize: 28, color: "#3061A1", }; ...
// var temperatureInFahr = prompt("Please enter a temperature in Fahrenheit: "); // var temperatureInCelcius = (temperatureInFahr - 32) * 5 / 9; // console.log("Temperature in Fahrenheit : ", temperatureInFahr); // console.log("Temperature in Celcius : ", temperatureInCelcius); var temperature = prompt("Please ente...
var module = angular.module('ucms.app.permission'); module.controller("permissionCtrl", function ($scope, $xhttp, $filter, $uibModal, $modal, $folder, $content) { $scope.fullPath = []; $scope.permissionChanged = false; $scope.object = { id: '', type: '', parentId: '', data...
const path = require('path'); const gulp = require('gulp'); const postcss = require('gulp-postcss'); const sourcemaps = require('gulp-sourcemaps'); const sass = require('gulp-dart-sass'); const cssnano = require('cssnano'); const autoprefixer = require('autoprefixer'); const r = path.resolve.bind(null, __dirname); //...
goog.provide('olcs.VectorSynchronizer'); goog.require('goog.events'); goog.require('ol.layer.Vector'); goog.require('olcs.AbstractSynchronizer'); goog.require('olcs.core'); goog.require('olcs.core.OlLayerPrimitive'); /** * Unidirectionally synchronize OpenLayers vector layers to Cesium. * @param {!ol.Map} map * ...
import { faFileImage, faMicrophone, faPaperPlane, faPlus } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import React, { useRef, useState } from "react"; import { getImageTags } from "../../async/getImageTags"; import { addMessage } from "../../dispatches/ad...
import React from 'react' import { css } from 'theme-ui' import { Link } from 'theme-ui' import { FaLink } from 'react-icons/fa' const styles = { heading: { a: { visibility: `hidden` }, ':hover a': { visibility: `visible` }, pointerEvents: `painted` }, link: { fontSize: 2, ...
app.view.show.show(sorceData.state); app.scrollAdd($("#index_page .warp"));
var searchData= [ ['moderegister',['ModeRegister',['../_h_m_c5883_l_8h.html#a588e30fd18c31816cde04b8e3b3adf15',1,'HMC5883L.h']]] ];
import React, { useState } from 'react'; import styled from '@emotion/styled'; import ReactMapGL, { Marker } from 'react-map-gl'; import { FaMapMarkerAlt } from 'react-icons/fa'; import { CustomH2 } from '../home/HomeStyling'; const Icon = styled(FaMapMarkerAlt)` color: ${props => props.theme.colors.primary}; fo...
const bodyParser = require('body-parser') var urlencodedParser = bodyParser.urlencoded({ extended: false }) const Product = require('../model/Products.js'); const Task=require("../model/Task.js"); const User = require('../model/User.js'); const Role = require('../model/User_Role'); exports.print= (req, res) => { ...
// JavaScript - Node v8.1.3 any = (arr, fun) => arr.some(fun);
import React from "react" import '../styles/global.css' export default() => ( <footer> <div class="container"> <div class="col-3"> <p>Amanda Chesin Photography</p> </div> <div class="col-1"> <ul class="unstyled-list"> <li><strong>Instagram</strong></li> </ul> </div> <div class="col-...
import React, { useState, useEffect } from "react"; import Loading from "./Loading"; import Products from "./Products"; // ATTENTION!!!!!!!!!! // I SWITCHED TO PERMANENT DOMAIN const url = "https://my-json-server.typicode.com/keerthana-karthik/ecommerce/salwars"; function App() { const [loading, setLoading] = useSt...
var unirest = require('unirest'); var changeCase = require('change-case') const today = require('../tokens/today.json'); exports.run = function(client, message, args) { var date = new Date(); var month = date.getMonth(); var fix = 1; var monthfix = month + 1; var day = date.getDay(); unirest.ge...
// Initialize Firebase const firebaseConfig = { apiKey: "AIzaSyDqfQKweo_zzigcPmpAnNSigI2k4vXBB8o", authDomain: "train-scheduler-ff3ee.firebaseapp.com", databaseURL: "https://train-scheduler-ff3ee.firebaseio.com", projectId: "train-scheduler-ff3ee", storageBucket: "", messagingSenderId: "464761...
import React from "react"; import "./Form.css"; const Form = props => <div className="container" id="form"> <div className="card"> <div className="card-header text-center"> <h5>Search</h5> </div> <div className="card-body"> <form> <div className="form-group"> ...
const fs = require('fs'); let pkgJSON = require('./package.json'); let [argv1] = process.argv.slice(2); let pkgVersion = pkgJSON.version.split('.'); if (argv1 === '--l') { ++pkgVersion[0] } else if (argv1 === '--m') { ++pkgVersion[1]; } else { ++pkgVersion[2]; } pkgJSON.version = pkgVersion.join('.'); fs.wr...
import { SNComponent } from "@socialNetwork"; class HeaderComponent extends SNComponent { constructor(config) { super(config); } } export const header = new HeaderComponent({ selector: "app-header", template: `` });
/** * * Sticky Box * * @author Predrag Krstic * @version 1.0 * @requires jQuery.dimensions plugin (jQuery.dimensions is part of jQuery core * since 1.2.3 version) * * Parameters: * @param heightElement - * (selector) dom element that wraps details * @param options.marginT...
/* There is an array of strings. All strings contains similar letters except one. Try to find it! findUniq([ 'Aa', 'aaa', 'aaaaa', 'BbBb', 'Aaaa', 'AaAaAa', 'a' ]) === 'BbBb' findUniq([ 'abc', 'acb', 'bac', 'foo', 'bca', 'cab', 'cba' ]) === 'foo' Strings may contain spaces. Spaces is not significant, only non-spaces ...
import React from 'react'; import { styled } from 'styletron-react'; const Container = styled('div', { padding: '100px', }); const App = ({ children }) => ( <Container> {children} </Container> ); export default App;
"use strict"; const methods_host = "https://api.vk.com/method/";
import { Bar } from 'vue-chartjs' import chartBuilder from './chartBuilder' export default chartBuilder(Bar)
var apexTimeLineControllers = angular.module('apexTimelineControllers', []); apexTimeLineControllers.controller('ApexTimeLineController', ['$scope','$window','$http','ForceAuthService', function ($scope,$window,$http,ForceAuthService) { $scope.init = function(){ $scope.$apply($scope.initializeData); } ...
function hello(name){ if (name){ return "Hello, " + name.substring(0,1).toUpperCase() + name.substring(1).toLowerCase() + '!'; } else { return "Hello, World!"; } } refactored const hello = name => name ? "Hello, " + name.substring(0,1).toUpperCase() + name.substring(1).toLowerCase() + '!' : "Hello, Wo...
import React, { Component } from 'react'; import d3 from 'd3'; const width = 420, height = 420, radius = width/2; const data = [ {label: "Dogs trust", value:45, class: 'spin_1'}, {label: "CASJ", value:45, class: 'spin_2'}, {label: "SOS", value:45, class: 'spin_3'}, {label: "RSCPA", value:45, c...
// U3.W9:JQuery // I worked on this challenge [by myself, with: ]. // This challenge took me [#] hours. $(document).ready(function(){ //RELEASE 0: //link the image //RELEASE 1: //Link this script and the jQuery library to the jQuery_example.html file and analyze what this code does. $('body').css({'backgroun...
import store from "../../store"; class TableOfCheckboxes { constructor(question) { this.id = question.id; this.type = "tableOfCheckboxes"; if (!question.horizontalValues) { this.horizontalValues = []; } else { this.horizontalValues = question.horizontalValues; } if (!question.vert...
'use strict' const mongoose = require('mongoose') const Schema = mongoose.Schema // const email_match = [/^\w+([\.-]?\w+)*@\w+([\.-]?\w)*(\.\w{2,3})+$/, 'Email Not validate'] /* const password_validation = { validator: function (p) { return this.password_confirmation === p }, message: 'Las Contraseñas no son ...
require('heatshrink').decompress( atob( 'mEwxH+AClhCyoAYsIwuF4IwtF4Qxqw2GF4mG1YsqAAeF1eyAAIteFhAvHGLZbKR4guEGDItGwooBAweH6/X6wwGGKpVHE4PXGgWsAwQACGDIuFFoYvCw3WFwpjIFyuG2QkFRYQAJFwerwwvTwwmLGBeHDYQuoNwQcDFxlbCIWFRgwAJlb0HJohePdQoAKq0AlYJG1YfDRr+sgEAL4wABwxgNLy1WBZBgDF5uFLzYABwqQMBgWHdiBeKSByODJZReHBxaQMF4eyLznX2Qv...
import React, {useState} from 'react'; const AddCommentsSection = ({articleName, setArticleInfo}) => { const [userName, setUserName] = useState(''); const [commentText, setcommentText] = useState(''); const submitComments = async () =>{ setArticleInfo({ UserName:userName, Comments:commen...
/** * Mail Services */ const nodemailer = require('nodemailer'); // create reusable transporter object using the default SMTP transport const transporter = nodemailer.createTransport({ service: 'Zoho', auth: { user: process.env.USERNAME, pass: process.env.PASSWORD } }); module.exports =...
// Ajax functions $(document).on("click", ".load-btn:not(.loading)", function (e) { let loadBtn = $(this); let page = loadBtn.data("page"); let newPage = page + 1; let sort = loadBtn.data("sort"); let ajaxUrl = loadBtn.data("url"); let meta_key = loadBtn.data("meta"); loadBtn.addClass("loading"); load...
class Response { constructor (io, socketId) { this.io = io; this.socketId = socketId; } reply (event, data, error) { let con = this.getConnection(); if (con) con.emit(event, error, data); } broadcast (event, data, error) { return this.io.sockets.emit(event, error, data); } getConnection () { retur...
import styled from "styled-components"; import tokens from "@paprika/tokens"; export const TimePicker = styled.div` position: relative; .timeinput-picker { position: absolute; } input[type="text"][disabled] { background: ${tokens.color.blackLighten70}; cursor: not-allowed; } `;
// Copyright 2017 Joseph W. May. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
export const changeThemeOptions = [ 'background-image-one', 'background-image-two', 'background-image-three', 'background-image-four', 'background-image-five', 'background-image-six', 'background-image-seven', 'background-image-eight', ];
import React from 'react'; import { Transition } from 'react-transition-group'; import _ from 'lodash'; import Nav from './Nav'; class RouterNav extends React.Component { state = { in: true }; componentWillReceiveProps() { this.setState({ in: false }, () => this.setState({ in: true })); } render()...
import React from 'react'; import { connect } from 'react-redux'; import { Container, Row, Col, Input, FormGroup, Button, Alert, } from 'reactstrap'; import Link from 'next/link'; import PropTypes from 'prop-types'; import { connectWebSocket as connectWebSocketAction } from '../store/actions'; import '../css/home.c...
import {Remote, Wallet} from 'ripple-lib' import Config from './Config' import logger from './Logger' import BB from 'bluebird' if (!Config.get('RIPPLED_SERVER_WEBSOCKET')) { throw new Error('Must supply RIPPLED_SERVER_WEBSOCKET environment variable'); } else if (!Config.get('RIPPLE_ADDRESS') || !Config.get('RIPPLE...
// ================================================================================ // // Copyright: M.Nelson - technische Informatik // Die Software darf unter den Bedingungen // der APGL ( Affero Gnu Public Licence ) genutzt werden // // weblet: personnal/time/detail // =========...
export default { en: { field: "field", institution: "institution" } }
import React, { PropTypes } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles' import s from './SuperTree.less'; import {Tree} from 'antd'; const TreeNode = Tree.TreeNode; const TreeType = { root: PropTypes.string // 如下均为key-value对,value取值为{key: <string>, title: <string>, parent: <string...
"use strict"; angular.module("mushroom",["ngRoute"]) .config($routeProvider => { $routeProvider .when("/",{ templateUrl:"partials/partials.html", controller:"MushroomController" }) .otherwise("/") });
import React from "react"; import styles from "./css/topBar.module.css"; export default function TopBar() { return ( <div className={styles.topBar}> <h1 className={styles.right}> مستجدات فيروس كورونا بالمغرب <span className={styles.circle}> </span> </h1> </div> ); }
function newPassword() { var newPass = document.getElementById("newPass"); var reply = document.getElementById("replyPass"); var token = document.getElementById("token"); var message = document.getElementById("errorCurrentPass"); if ( reply.value == newPass.value ) { var data = { ...
const button = document.getElementById('button'); button.addEventListener('change', () => { document.body.classList.toggle('dark'); });
import React from "react"; import "./aboutStyles.css"; const AboutMe = () => { return ( <div id="aboutMe" className="aboutMe fullHeight d-flex"> <div className="aboutContent mobile-column d-flex"> <div className="photo d-flex" /> <div className="paragraf d-flex"> <div className="...
const mongoose = require('mongoose'); const mongoosePaginate = require('mongoose-paginate'); const CardSchema = new mongoose.Schema({ name: { type: String, require: true }, price: { type: Number, require: true }, description : { type: String, require:...
import React, {Component} from 'react'; import { withStyles } from "@material-ui/core/styles"; import Paper from '@material-ui/core/Paper'; import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import MenuItem from '@ma...
import React from "react"; import "./style.css"; import { Link } from "react-router-dom"; function MobileNav() { return ( <div id="menu-canvas" uk-offcanvas="overlay: true"> <div className="uk-offcanvas-bar"> <button className="uk-offcanvas-close" type="button" uk-close="true">...
var pg = require('pg'); //require postgres? var path = require('path'); var connectionString = process.env.DATABASE_URL; //this is the string that leads us to our server on 5432 var conString = require(path.join(__dirname, '../', '../', 'config')); var client = new pg.Client(conString); //makes a new client connect t...
// Our input frames will come from here. const videoElement = document.getElementsByClassName('input_video')[0]; const canvasElement = document.getElementsByClassName('output_canvas')[0]; const controlsElement = document.getElementsByClassName('control-panel')[0]; const canvasCtx = canvasElement.getContext('2d');...
import VueFetch, { $fetch } from '../../plugins/fetch' export function getProfile(username) { return $fetch(`users/${username}/profile/`) .then(res => res) .catch(err => { console.log(err); throw err; }); } export function editProfile(userUsername, dateOfBirth, profileBio) { return...
/* eslint-env mocha */ const bfs = require('../../../src').algorithms.search.bfs; const assert = require('assert'); describe('BFS', () => { it('should perform bfs on a tree', () => { const tree = { root: { name: 'root', children: [{ name: 'child_1', children: [{ ...
$(document).ready(function(){ $('#lg_login').on('click', function() { var conn = null; conn = new Easemob.im.Connection(); $('body').on('click', '#lg_login', function() { var username = $("#lg_username").val(); var pass = $("#lg_password").val(); ...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import s from './ShortList'; export default class ShortList extends Component { render() { let listItems = []; listItems = this.props.data.map(item => ( <li key={item....
// @flow import * as React from 'react'; import { findDOMNode } from 'react-dom'; import classNames from 'classnames'; import _ from 'lodash'; import { addStyle, getWidth } from 'dom-lib'; import { defaultProps } from '../utils'; import bindElementResize, { unbind as unbindElementResize } from 'element-resize-event'; ...
Component({ properties: { name: { type: String, value: "" }, //弹窗类型:modal:模态框 slot:自定义弹窗 type: { type: String, value: "" }, //默认关闭蒙版关闭弹窗 hidden: { type: Boolean, value: true }, //弹窗标题 title: { type: String, value: '提示' }, ...
//add by mingwei0727w 2015/07017 PRODUCT_NON_SPEC = "無規格"; CURRICULUM_SETTING = "課程設定"; POINT_OUT = "提示"; THIS_CURRICULUM_IS_SELL_CANT_DELETE_MESSAGE = "該課程已經售出,不可以刪除!"; PRODUCT_DETAIL = "商品細項"; CURRICULUM_DETAIL = "課程細項"; PEOPLE_COUNT = "人數"; NEW_ONE_ITEM = "新增"; SAVE_COMPLETE = "保存成功"; SAVE_FAIL = "保存失敗";
'use strict'; const passport = require('passport'); const Strategy = require('passport-http-bearer').Strategy; const userModel = require('../models').users; const jwt = require('jsonwebtoken'); var passportHandle = passport.use(new Strategy( function(token, cb, user) { jwt.verify(token, 'shhhhh', function...
/*global console, alert*/ /* start whit letters, underscore, $ var = JvaScript Variable Keyword myprice = Variable Name ( = ) = Assignment Operator 100 = Variable Value */ var myOldPrice = 2000, myNewPrivce = 900, myDiscount = myOldPrice - myNewPriv...
import request from '@/utils/request' export function publish(article) { return request({ url: '/publish', method: 'post', data: article }) } export function getArticleById(id) { return request({ url: `/article/${id}`, method: 'get' }) } export function getTags...
import React from "react"; import { connect } from "react-redux"; import { addTask } from "../../actions/"; import setNewTask from "../../hoc/setNewTask"; class Form extends React.Component { render() { const { text, handleOption, handleChange, isValidField, getClassName } = thi...
var searchData= [ ['error',['error',['../class_sndfile_handle.html#a3918868973e847faad5427697a2ed610',1,'SndfileHandle']]] ];
//delete for bonus #1 // var victimCount = prompt("How many victims do you wish to enter?") // var names = [] // var phoneNumbers = [] // var streets = [] // for (i = 0; i < victimCount; i++) { // names.push(prompt("What is their name?")) // phoneNumbers.push(prompt("What is their phone number?")) // streets.push(...
import { combineReducers } from "redux"; import authReducer from "./auth"; import hireReducer from "./hires"; import jobReducer from "./jobs"; import posterReducer from "./posters"; import profileReducer from "./profile"; import notifReducer from "./notifications"; const rootReducer = { auth: authReducer, hire: hir...
var basePath = window.document.location.href; basePath = basePath.substring(0,basePath.lastIndexOf('/'))+"/"; function all_read(obj){ var c = document.getElementsByClassName("col-md-1 glyphicon glyphicon-envelope"); for(var i = 0 ; i < c.length; i++){ if(c[i].style.color == "darkkhaki"){ $(c[i]).parent().sibling...
class Form { constructor(formSelector, fields) { this.formSelector = formSelector; this.fieldSet = fields; this.validator = new Validator(this); } fieldSetValidate() { this.fieldSet.forEach(function (field) { field.validate(); }); } } class Field { constructor(type, selector)...
import React, {Component} from 'react'; import {ToastAndroid,Button, StyleSheet, Text, TextInput, Picker, View, Switch, CheckBox, Slider} from 'react-native'; export default class AppBanco extends Component { constructor(props) { super(props); this.state = { mail:false, cuit:0, moneda:1, capitalInicia...
(function () { "use strict"; function getToDestination(age, isInsured, hasCar){ var isLicensed = age >= 16; var isLegalDriver = isLicensed && isInsured; if (isLegalDriver && hasCar){ console.log("Let's get in and go!"); } else if(!isLegalDriver ...
import React, { createContext, useState, useEffect } from 'react'; import { ActivityIndicator, Image } from 'react-native'; import Styled from 'styled-components/native'; import AsyncStorage from '@react-native-community/async-storage'; const Loading = Styled.View` flex: 1; background-color: #FEFFFF; align...
//login scripts $(document).ready(function(){ Path.map('#/login').to(function() { loginUserModal(); }); Path.map('#/login-email').to(function() { emailLoginModal(); }); Path.map('#/forgot').to(function() { forgotPassword(); }); Path.root("#/login"); Path.listen(true); }); var loginContent = '<div ...
export {default as calendarSvg} from './calendar.svg'; export {default as clockSvg} from './clock.svg'; export {default as commitSvg} from './commit.svg'; export {default as configureSvg} from './configure.svg'; export {default as doneSvg} from './done.svg'; export {default as failSvg} from './fail.svg'; export {defaul...
import {StyleSheet} from 'react-native'; export default StyleSheet.create({ titleText: { fontSize: 20, fontWeight: '600', color: '#333', }, boldText: { marginLeft: 5, marginRight: 5, fontSize: 15, fontWeight: '600', color: '#333', }, link: { color: '#2199d8', }, itemCo...
import React, { Component } from 'react'; import { Modal, Input } from 'antd'; import '../../static/css/shortcut.css'; class ChatMessageShortcut extends Component{ constructor(){ super(); this.state={ isSetShow: false }; } setShortcut = () => { this.toggleSet(tru...
// pages/profile/child-components/profile-list-footer/profile-list-footer.js Component({ /** * 组件的属性列表 */ properties: { }, /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { loginout() { this.triggerEvent('loginout', {}, {}) } } })
import React, { Component } from 'react'; import './App.css'; import TabContainer from "./tabContainer"; import ContactInfo from "./contactInfo"; import AboutMe from "./aboutMe"; import Resume from "./resume"; import Projects from "./projects"; class StateController extends Component { constructor() { super(); ...
import React,{ Component } from 'react'; import { Jumbotron, Button,Container,Row,Col,InputGroup,InputGroupAddon,Input } from 'reactstrap'; import "./ArtBoard.css"; export class ArtBoard extends Component { render() { return ( <div> <Jumbotron> <center> <div id="jumbotron-c...
(function(app) { 'use strict'; app.populateHomeView = function() { var el = document.getElementById('welcomeMsg'); var user = app.getUserName(); el.innerHTML = 'Welcome' + (user ? ' ' + user : '') + '!'; el = document.getElementById('activeBudgetPeriod'); var period = app.getActiv...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const assetSchema = new Schema( { japanese: { type: String, required: true }, english: { type: String, required: true }, creator: { type: Schema.Types.ObjectId, ref: 'User', required: t...
var port = 3000; var http=require('http'); var express=require('express'); var app = express(); var server = http.createServer(app).listen(3000, function() { console.log('Server On puerto 3000'); }); var io = require('socket.io').listen(server); app.get('/',function(req,res){ res.sendfile('index.html'); }) //...
import { makeStyles } from '@material-ui/core/styles'; export default makeStyles(({ iconButton: { margin: -20, }, icon: { '&:hover': { transform: 'scale(1.2)', }, }, dialog: { borderRadius: 30, }, dialogTitle: { fontSize: 20, textAlign: 'center', }, dialogAction: { m...
import {createStore, compse} from 'redux'; import {syncHistoryWithStore} from 'react-router-redux'; import {browserHistory} from 'react-router'; //import root reducer import rootReducer from '../reducers/index'; //import default data import comments from '../data/comments'; import posts from '../data/posts'; //creat...
//Входныой массив данных, деструктуризация const sponsors = { cash: [40000, 5000, 30400, 12000], eu: ['SRL', 'PLO', 'J&K'], rus: ['RusAuto', 'SBO'] }; const {cash, eu, rus} = sponsors; const ownMoney = 0; class Money { constructor(ownMoney = 0, cash) { this.ownMoney = ownMoney; this.cas...
import React from 'react'; import ReactDOM from 'react-dom'; // import createReactClass from 'create-react-class'; import NameList from './components/NameList'; class App extends React.Component { render() { return ( <div> <NameList number="1" /> <NameList number="2" /> ...
import React, { Component, PropTypes } from 'react' import ReactDOM from 'react-dom'; import CreateOutfitItemsListItem from './CreateOutfitItemsListItem'; import CreateOutfitInfos from './CreateOutfitInfos'; import habit_img from '../src/img/habit_test.png' import chaussure_img from '../src/img/chaussure_test.png' im...
var WebTorrent = require('webtorrent'); var inherits = require('inherits'); var DEFAULT_MAX_TORRENTS = 1; inherits(WebTorrentFifo, WebTorrent); function WebTorrentFifo(opts) { if (!(this instanceof WebTorrentFifo)) return new WebTorrentFifo(opts) WebTorrent.call(this, opts); if (!opts) opts = {}; th...