text
stringlengths
7
3.69M
import React from 'react'; import Helmet from 'react-helmet'; import BgImage from '../components/BgImage'; export default function Template({ data }) { const projects = data.projects.edges.map(project => { let image = project.node.childMarkdownRemark.frontmatter.projectId; return ( <article className="...
function myOpenFunction() { document.getElementById("open").click(); } function colorChangeFunction() { document.getElementById("color").click(); } function bgColorChangeFunction() { document.getElementById("bg-color").click(); }
import { SYMBOL, OBJECT } from "reshow-constant"; import typeIs from "./getTypeOf"; const _typeof = (o) => (SYMBOL === typeIs(o) ? SYMBOL : typeIs(o, OBJECT)); export default _typeof;
import React from "react"; import Landing from './Landing'; import Navigation from "./Navigation"; import About from './About'; import { BrowserRouter, Route, Switch, Link } from "react-router-dom"; const NotFoundPage = () => ( <div> 404 - <Link to="/">Go home</Link> </div> ); const AppRouter = () => ( <Bro...
let element; let context; let imageFromCanvas; let resetButton; let trainButton; const model = tf.sequential(); const out = tf.tensor2d([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0]]); function setup() { let x = createCanvas(28, 28); element = x.canvas; context = element.getContext("2d"); background(0); resetButton = cre...
var macros________8h____8js__8js_8js = [ [ "macros____8h__8js_8js", "macros________8h____8js__8js_8js.html#adcdb6ad4e664399360f9af834012a172", null ] ];
import { Typography } from "@material-ui/core"; import { Container, Divider } from "@material-ui/core"; import React from "react"; import LoginButton from "./LoginButton"; function PleaseLogin() { return ( <Container maxWidth="sm" justify="center" align="center"> <Container style={{ marginTop: "20vh" }}>...
import { LitElement, html, css, customElement, } from 'lit-element'; @customElement('lilac-overlay-actions') class OverlayActions extends LitElement { static get styles() { return css` :host { width: 100%; } .actions { display: flex; flex-direction: column; ...
#!/usr/bin/env node var cli = require('commander'); var Promise = require('bluebird'); var invariant = require('invariant'); var converter = require('../lib').default; var templates = require('../lib/templates'); cli .version('0.0.1') .option('-i, --input <path>', 'input path to your SVG files') .option('-o, --...
import React from "react"; import AfegeixParticipants from "./AfegeixParticipants"; import AfegeixTaulell from "./AfegeixTaulell"; import LlistaParticipants from "./LlistaParticipants"; class Formulari extends React.Component { state = {open: 'hidden'}; openModal (value){ const modalState = value ? '...
/** * Created by Ratnesh on 13/09/2019. */ import React from "react"; import BaseComponent from '../baseComponent' import LoginComponent from './loginComponent' import Utils, {dispatchAction} from "../../utility"; import {eventConstants, pathConstants, stringConstants} from "../../constants"; import {history} from ...
import * as action_types from './action_types'; import {console_log} from "../utils/helper"; export const addChannelHistory = (channels) => { return { type: action_types.ADD_HISTORY_CHANNEL, data: channels } }; export const addVideoHistory = (videos) => { return { type: action_type...
var faker = require('faker'); const db = require('../database'); var fakeArr =[] for (let i=0;i<=99;i++) { var fakeObj= {}; fakeObj.textContent = faker.lorem.sentence(); fakeObj.dateCreated = new Date().toISOString().slice(0, 19).replace('T', ' '); fakeObj.user = faker.random.word() + faker.random.number({min:1,m...
var MongoClient = require('mongodb').MongoClient; module.exports = function(url) { return function(callback) { MongoClient.connect(url, callback); }; };
const sum = require('./join') test('joins "apple" and "banana" to be "applebanana"', () => { expect(sum('apple', 'banana')).toBe('applebanana') }) // This test will fail. test('joins "Na" and "Cl" to be "salt"', () => { expect(sum('Na', 'Cl')).toBe('salt') })
(function () { angular .module('myApp') .controller('uploadListController', uploadListController) uploadListController.$inject = ['$state', '$scope', '$rootScope']; function uploadListController($state, $scope, $rootScope) { $rootScope.setData('showMenubar', true); $rootSc...
var mainConfig = exports.mainConfig = function(){ var mainConfig = new Object(); mainConfig.production = true; mainConfig.revision = "1.0.6"; return mainConfig; } var mailConfig = exports.mailConfig = function(){ var mailConfig = new Object(); mailConfig.sendGridApiKey = 'SG.pj7msv6sSOO4bz8j8...
var Stack = require('./stack').Stack; // Implement Queue using two Stacks var Queue = (function() { function Queue () { this.inbox = new Stack(); this.outbox = new Stack(); } Queue.prototype = { constructor: Queue, enqueue: function(entry) { if (entry === null || entry === undefined) { ...
remark.create({ sourceUrl: 'slides.md', ratio: '16:9', countIncrementalSlides: false });
//Call, Apply, Bind help us to pass object as argument function test(a,b){ console.log(this.x+this.y+a+b) } // test(10,20) //NaN //--------------Call--------------- test.call({x:5,y:6},10,20) //--------------Apply------------- test.apply({x:50,y:60},[100,200]) //-------------Bind------------- //Bind help us t...
const config = require('config'); const fs = require('fs'); const _ = require('lodash'); //console.log(config); const jsonname = './json/colors.json'; let outputObj ={}; outputObj.colors = config.colorCode.colors; _.each(outputObj.colors,(ele,idx,ary)=>{ //console.log(idx + ' : ' + ele.color); ele.no = idx + 1 }...
<!-- Preloader --> $(window).load(function() { // makes sure the whole site is loaded $('#status').delay(350).fadeOut('slow'); // will first fade out the loading animation $('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website. $('body').delay(350).css({'overflo...
var StellarSdk = require('stellar-sdk'); var express = require('express'); var router = express.Router(); StellarSdk.Network.usePublicNetwork(); var server = new StellarSdk.Server('https://horizon.stellar.org'); router.post('/makeTrust',async function(req,res,next){ var sourceKey = "x"; //owner public key var R...
// Write your code here! let element = document.createElement('div') // let pTag = document.querySelector('p#greeting') // pTag.innerHTML = `"hello mendel"` // element.innerHTML =` <p>hello mendel</p>` document.body.appendChild(element) let ul = document.createElement('ul') for (let i = 0; i< 3; i++){ let li = d...
const isPrime = test => { if(test === 2){return true} else if (test < 2) {return false} else if(test % 2 === 0 || test < 2){return false} else{ for(let i = 3; i <= Math.sqrt(test); i = i+2){ if(test % i === 0){ return false } } return true } } const permutations = list => { ...
/* This is a multi-line comment for a simple adder function. */ // A simple function to add two number function add (a, b) { console.log(a + b); // to console log the sum of the numbers console.log('Hello') } add(10, 5);
import React, {useRef, useState, useEffect, useMemo} from 'react'; import styled from 'styled-components'; // import style from '../../assets/global-style'; import { debounce } from './../../api/utils'; import imgSearch from '../../assets/images/搜索.png'; const SearchBoxstyle = styled.div ` position: fixed; top...
// function() { //repoNamePaths defined in caller's eval() context // var args = process.argv.slice(2); //console.log("gitHubForksUpdater.js arguments: "); //console.log(args); //console.log(process.cwd()); //process.exit(-1); var fs = require('fs'); var path = require('path'); var http = require('http'); var http...
/** * Created by Administrator */ var CONSTANT = { DATA_TABLES: { DEFAULT_OPTION: { //DataTables初始化选项 language: { "sProcessing": "处理中...", "sLengthMenu": "", "sZeroRecords": "没有匹配结果", "sInfo": "", "sInfoEmpty": "当前显示第 0 至 0 项,共 0 项", "sInfoFiltered": "(由 _MAX_ 项结果过滤)", "sInfoPostFix"...
const Command = require('../../structures/Command'); const { MessageEmbed } = require('discord.js'); const moment = require("moment"); const excludeChannels = require("../../constants/exclude_channels.js"); module.exports = class AvatarCommand extends Command { constructor(client) { super(client, { name: 'last-se...
/** * Tasks: Server * * Runs a server, serving up the contents in paths.webroot.root on port 1337 * It also supports the History API for SPA's */ // Dependencies const historyApiFallback = require('connect-history-api-fallback') // Task module.exports = (paths, browserSync) => () => { browserSync.init({ ...
/* EXAMPLE HTTP POST FOR ORGANISATIONS: { "name": "My Organisation", "singleStore": false, "isDeleted": false, "isPaid": true, "storeName": "First Store", "location": [ { "lat":"latitude" }, { "lgn":"longitude" } ], "firstName":"Adrian", "lastName":"...
import React from 'react'; import CalendarDateListStyled from './CalendarDateList.styled'; // import {CalendarDateItem} from './CalendarDateItem'; const CalendarDateList = ({children}) => { return ( <CalendarDateListStyled> {children} </CalendarDateListStyled> ) } export ...
export * from './array'; export * from './context'; export * from './sequelize'; export * from './graphql';
/* 🤖 this file was generated by svg-to-ts*/ export const EOSIconsPreview = { name: 'preview', data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2V5a2 2 0 00-2-2zm0 16H5V7h14v12zm-5.5-6c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1....
require.config({ baseUrl: "./", paths: { 'jquery': 'http://code.jquery.com/jquery-1.11.1.min', 'angular':'http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular', 'angular-route': 'http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular-route.min', 'angularAMD': 'bow...
import React, { Component } from "react"; import { Container, Row, Col, ListGroup, ListGroupItem, InputGroup, FormControl, Button, Form, Badge } from 'react-bootstrap'; class InputComp extends Component { constructor(props) { super(props); this.state = { userInput:"", // typ...
"use strict"; var GAME = GAME || {}; GAME.util = { rand: function(min, max){ return Math.floor(Math.random() * (max - min + 1)) + min; }, touch: function(obj, collection, padding){ var isTouching = false; var padding = padding || 0; $.each(collection, function(idx, colObj){ if (obj !== c...
export default { command : 'removeLayer', execute: function (editor) { editor.selection.itemsByIds(editor.selection.ids).forEach(item => { item.remove(); }) editor.selection.empty(); editor.emit('refreshArtboard') } }
const mysql = require('mysql'); const inquirer = require('inquirer'); const cTable = require('console.table'); const promptQuestions = { viewAllEmployees: "View All Employees", viewByDepartment: "View All Employees By Department", viewByManager: "View All Employees By Manager", addEmployee: "Add An Emp...
var NAS_IP = "localhost"; exports.NAS_IP = NAS_IP;
var fs = require("fs"); const { curly } = require("node-libcurl"); const { Curl } = require("node-libcurl"); async function try1() { const curl = new Curl(); curl.setOpt("URL", "www.google.com"); curl.setOpt("FOLLOWLOCATION", true); curl.on("end", function (statusCode, data, headers) { console.info(stat...
import React, { useContext, useEffect, useState } from "react"; import { View, Text, ScrollView, StyleSheet, RefreshControl, FlatList, Image, Button, } from "react-native"; import { getFocusedRouteNameFromRoute, useFocusEffect } from "@react-navigation/native"; // APIs import { CreateAPI, DeleteAPI, Rea...
/* dp 青蛙一次可以跳1级或2级台阶。跳n级台阶有多少种跳法。 */ // f(n) = f(n - 1) + f(n - 2), f(1) = 1, f(2) = 2, 故[1, 1, 2, 3] function jumpFloor(number) { if (number <= 1) return number var one = 1 var two = 1 var f = 2 for (var i = 2; i <= number; i++) { f = one + two one = two two = f } return f } // console.log(j...
var images = ['jpg', 'png', 'jpeg', 'gif']; Ext.apply(Ext.form.field.VTypes, { imageFilter: function (val, field) { var type = val.split('.')[val.split('.').length - 1].toLocaleLowerCase(); for (var i = 0; i < images.length; i++) { if (images[i] == type) { return true; ...
import React from 'react' import './Sidenavright.css' import rightSideArray from './Datarightside' import {BrowserRouter as Router , Switch,Route,Link} from 'react-router-dom' const Sidenavright = () => { return ( <Router> <div className="sideRightNavContainer"> <Link to="" clas...
// Change to your lambda endpoint here var lambdaurl = 'https://private.covcough.com'; // Temporary redirect when the app is still in development. if (document.location.origin.indexOf("localhost") == -1 && document.location.origin.indexOf("192.168") == -1 && document.location.origin.indexOf("surge.sh") == -1){ // do...
import { getPortfolioItemById } from "../../lib/portfolio"; import PortfolioItemHeader from "../../components/pages/Portfolio/PortfolioItemHeader"; const itemId = "ddb9da7e-5031-11eb-ae93-2342397afsdf"; const PortfolioPage = ({ portfolioItem }) => { const [galleryShowing, setGalleryShowing] = React.useState(false)...
$(document).ready(function() { /* mouseover - mouse on the object mouseout - out of the mouse from the object click - click by mouse on the object dblclick - double click by the mouse on the object mousemove - moving of the mouse mousedown - moment of clicking by mouse on the object mouseup - moment of leaving...
/// <autosync enabled="true" /> /// <reference path="js/common/loadingdirective.js" /> /// <reference path="js/login/constants.js" /> /// <reference path="js/login/login.js" /> /// <reference path="js/login/services.js" /> /// <reference path="lib/angular/angular.js" /> /// <reference path="lib/angular-bootstrap/ui-bo...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // Displayed Components across the app import AppNavbar from '../AppNavbar/AppNavbar'; import BackButton from '../BackButton/BackButton'; // Page Views import Home from '../Home/Home'; import OrderChoi...
function setup() { createCanvas(600 , 600); img = createCapture(VIDEO); img.hide(); img.size(600,600); } function draw() { background(255); img.loadPixels(); for (var y=50;y<=img.height ; y++/i) { for (var x=100;x<img.width; x+=50) { var i = y * width + (img.width-x-1); const da...
import React from 'react' import { renderToString } from 'react-dom/server' import { StaticRouter, Route, matchPath } from 'react-router-dom' import { Helmet } from 'react-helmet' import { Provider } from 'react-redux' import { renderRoutes } from 'react-router-config' import Loadable from 'react-loadable' import { get...
import React from 'react'; import styled from 'styled-components'; import { Button } from '../Other/Button'; import MenuPopup from './MenuPopup'; import { Login as PopupLogin, CustomLink as CustomPopupLink, Signup as PopupSignup } from './MenuPopup'; import logo from '../../assets/images/logo-header....
// Components import ShowsListItem from '@/components/ShowsListItem.vue' // Utilities import { appInit } from './app-init' import { createLocalVue, shallowMount } from '@vue/test-utils' const localVue = appInit(createLocalVue()) describe('ShowsListItem.vue', () => { let wrapper const mountFunction = options => ...
import { connect } from '../../../lib/wechat-weapp-redux' import { clearError } from '../../../store/actions/loader' import { alertError } from '../../../utils' import { categorymerchandise } from '../../../api/homePage' import regeneratorRuntime from '../../../lib/regenerator-runtime' import { USER_ROLE } from '../../...
/** * @license * * Copyright IBM Corp. 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const path = require('path'); const acceptLanguageParser = require('accept-language-parser'); const Handlebars = requ...
// ==UserScript== // @name Ogame Alert Notifier // @namespace // @description Ogame Alert Notifier // @author Lidmaster & Eigna // @version 1 // @include http://*.ogame.*/* // @copyright Copyright (C) 2013 by Lidmaster (Italian translation by BoGnY | www.worldoftech.it) // ==/U...
import styled from 'styled-components'; const Item = styled.li` display: flex; justify-content: space-between; padding: 10px 0; width: 300px; align-items: center; padding: 4px 6px; `; const ColorContainer = styled.div` width: 26px; height: 16px; background-color: ${props => props.color}; margin-ri...
import React, { Component } from 'react'; import './App.css'; import axios from "axios"; import keys from "./keys.js" class App extends Component { constructor () { super(); this.state = {} } render() { return ( <div className="App"> <h1>🍜 A Whole New World (of food) 🍜</h1> </...
(function () { 'use strict'; angular .module('app') .controller('weatherController', WeatherController); WeatherController.$inject = ['weatherService']; function WeatherController(weatherService) { var vm = this; vm.data = {}; vm.error = false; vm.loading = true; vm.onInit = f...
/*################################################# For: SSW 322 By: Bruno, Hayden, Madeleine, Miriam, and Scott #################################################*/ import React, { useState, useEffect } from "react" import { Text, View, StyleSheet, TouchableOpacity, TextInput, Button, Image...
import React, { PropTypes } from 'react'; import {SuperForm, ModalWithDrag} from '../../../components'; import s from './EditDialog.less'; /** * onChange:内容改变时触发,原型func(key, value) * onSearch: search组件搜索时触发,原型为(key, value) */ class EditDialog extends React.Component { static propTypes = { title: PropTypes.str...
const axios = require('axios') async function bsc() { const result = await axios.get( "https://api.annex.finance/api/v1/governance/annex"); return result.data.data.markets.reduce( (total, market) => total + Number(market.liquidity), 0); }; async function cronos() { const result = await axi...
// rest оператор function t1(a,b,...c) { console.log(c); } t1(1,2,3,4,5); // spread оператор const arr = [1,2,3,4,5] console.log(Math.max(...arr)); // object destructuring const person = { firstName : 'Ivan', lastName : 'Ivanovo', age: 40 } const { firstName, lastName } = person; console.log(firstName...
import React, { Component } from "react"; import Draggable from "react-draggable"; import classnames from "classnames"; import "./note.css"; export default class Note extends Component { state = { isDragging: false }; clickHandler = (e, id) => { console.log("clickhandler:", this.state.isDragging); co...
console.warn('do nothing') console.warn('test webhook')
import axios from 'axios'; export default { changeActivateFormStep({commit}) { commit('setActivateFormStep'); }, changeActivateFormStepGoBack({commit}) { commit('setActivateFormStepGoBack'); }, changeDataTabData({commit}) { axios.get('/web-api/current-user') .then(response => { c...
var emitMessage = require("./shared").emitMessage, isAuthenticated = require("./shared").isAuthenticated, locateConnectionWithSession = require('./shared').locateConnectionWithSession, emitError = require("./shared").emitError; var game = require('../models/game'); /** * This function handles the sending...
function parseUnary(obj) { if (typeof obj !== 'object' || obj === null || !('kind' in obj) || obj.kind !== 'unary') { return obj; } const smartParser = require('./smartParse'); return +(obj.type + smartParser(obj.what)); } module.exports = parseUnary;
var i = document.querySelectorAll(".drum").length; var track = 0; while (track < i) { document .querySelectorAll(".drum") [track].addEventListener("click", function () { var buttonInnerHTML = this.innerHTML; detectSound(buttonInnerHTML); keyFlash(buttonInnerHTML); keyColorChan...
function positinMessage(){ var elem = document.getElementById("message"); elem.style.position = "absolute"; //创建变量保存当前元素位置 var x = elem.style.left; var y = elem.style.top; console.log(x,y); } var movement = setTimeout(positinMessage,3000);
import React, { Component } from 'react'; import { Marker, Polygon, Circle } from 'react-native-maps'; class Draw extends Component { render() { const props = this.props; switch (props.tipo) { case 1: return ( <Marker coordinate...
// Finish the uefaEuro2016() function so it return string just like in the examples below: // uefaEuro2016(['Germany', 'Ukraine'],[2, 0]) // "At match Germany - Ukraine, Germany won!" // uefaEuro2016(['Belgium', 'Italy'],[0, 2]) // "At match Belgium - Italy, Italy won!" // uefaEuro2016(['Portugal', 'Iceland'],[1, 1]) ...
var assert = require('assert'); var nodeunit = require('nodeunit'); var links = require("../http_mods/links.js"); var mocks = require('mocks'); /** * test LinkModel and persist/materialise */ module.exports.testLinkModel = function(test) { var newArr = []; var json = {url : 'http://tp23.org', title:'tp23', des...
var searchData= [ ['in6_5faddr',['in6_addr',['../structin6__addr.html',1,'']]], ['intervals_5fcfg',['intervals_cfg',['../structintervals__cfg.html',1,'']]] ];
const mapContent = (post) => { const acf = post.acf || {}; let contentArr, text, leadText; try { contentArr = post.content.rendered.split('<!--more-->'); leadText = contentArr[0]; text = contentArr[1]; } catch (err) { text = post.content.rendered; leadText = ''; } return { subtitle: post.content....
//const arr = ["ali","reza","hasan","azar"]; // const arrObj = [ // {name:'ali',age:12}, // {name:'reza',age:18}, // {name:'hasan',age:20}, // {name:'azar',age:15} // ]; // function mysort(a,b){ // if (a.name > b.name) return -1; // if (a.name < b.name) return 1; // return 0; // } // arrO...
function solve() { let text = []; text = document.getElementById('input').value.split('.').filter(e => e !== ""); let str = ''; let counter = 0; while (text.length){ str += text.shift(); counter++; if(counter === 3){ counter = 0; document.getElementById('output').inn...
import Vue from "vue"; import Router from "vue-router"; import Login from './containers/Login' import Register from './containers/Register' import AllGalleries from './containers/AllGalleries' import AuthorsGalleries from './containers/AuthorsGalleries' import Gallery from './containers/Gallery' import CreateGallery f...
import api from '@/api'; export default { state: { authState: false, login: '', avatar: '', rating: 0, followersAmount: 0, tagsFollowed: [], email: '', }, getters: { getUser(state) { return state; }, getUserAuthState(state) { return state.authState; }, ...
(function() { $(function() { // $(".search__frm input").focus(function() { $(this).parents(".search").width(400); }); // $(".search__frm input").blur(function() { $(this).parents(".search").width(200); }); $(".good-tabs li").first().addClass("current"); $(".tabs-content .box").first(...
'use strict'; var gnirts = require('gnirts'); module.exports = function(content) { this.cacheable && this.cacheable(); return content != null ? gnirts.mangle(content + '') : content; };
var assert = require('assert'); var SecureRandom = require('../index'); it("creates a 1byte string", function() { assert.equal(SecureRandom.hex(1).length, 2); }); it("creates a 12byte string", function() { assert.equal(SecureRandom.hex(12).length, 24); }); it("creates a 24byte string", function() { assert.equa...
function updateOrder() { var order_state=document.getElementById("query_order_state").value; var query_state=document.getElementById("query_state").value; var query_order_name=document.getElementById("query_order_name").value; myajax("get","updateOrder.do","order_state="+order_state+"&query_state="+quer...
import React from "react"; import styled from "@emotion/styled"; import { green, red, blue, deepPurple } from "@mui/material/colors"; import Link from "next/link"; import { Button, Container, Grid, Typography, Box } from "@mui/material"; import { spacing } from "@mui/system"; import { FontAwesomeIcon } from "...
'use strict'; const logger = require('tracer').colorConsole(), fs = require('fs'), request = require('request'), // util = require('../helpers/util'), path = require('path'); let express = require('express'), router = express.Router(); router.get('/:id?', function(req, res) { try{ if(req.params.id){ let id...
describe('ToonsController', function() { beforeEach(module('myApp')); it('should instantiate a toons model', inject(function($controller) { var scope = {}, controller = $controller('ToonsController', {$scope: scope}); expect(scope.toons.length).toBe(2); })); });
angular.module('ngApp.eCommerce') .controller("eCommerceCommunicationController", function ($scope, $interval, AppSpinner, UtilityService, DateFormatChange, eCommerceBookingService, SessionService, toaster, $translate) { //set translate code start var setMultilingualOptions = function ()...
const assert = require('assert'); class TraitSet { static fromKeys( obj ) { return TraitSet.fromStrings( Object.keys(obj) ); } static fromStrings( names ) { const obj = {}; names.forEach( name=>{ obj[name] = Symbol(name); } ); return new TraitSet(obj); } constructor( traitSet={} ) { for( let key in tr...
import React from "react"; //import PropTypes from "prop-types"; import { makeStyles } from "@material-ui/core/styles"; import { DataGrid } from "@material-ui/data-grid"; import GroupIcon from "@material-ui/icons/Group"; import DashboardIcon from "@material-ui/icons/Dashboard"; const useStyles = makeStyles({ roo...
import React, { useState, useEffect } from "react"; import { Jumbotron, Container, Row, Col, Button, Form } from 'react-bootstrap'; import { Analytics } from '../Analytics/Analytics' import { addScore, getAverageScore } from '../../requests/requests' import './SubmitScore.scss' export const SubmitScore = ({userScores...
import React, { Component } from 'react'; import Exercise from './exercise'; import Search from './search'; import Container from './container'; import Heading from './heading'; import Controls from './controls' type State = { work: Array<exercises>, step: string, counter: number, gender: boolean, ...
$(function() { /* Push the body and the nav over by 285px over */ $('.icon-menu').click(function() { $('.menu').animate({ left: "0px" }, 200); $('body').animate({ left: "90px" }, 200); }); /* Then push them back */ $('.icon-close').click(function() { $('...
'use strict'; var SVGGLSL = this.SVGGLSL = function SVGGLSL(canvas) { if (!canvas) { canvas = document.createElement('canvas'); } this.canvas = canvas; this.gl2d = WebGL2D.enable(canvas); // adds new context "webgl-2d" to canvas }; SVGGLSL.prototype.convert = function (svg, callback) { ca...
module.exports = { title: '<%= projectName %>', description: '<%= description %>', themeConfig: { nav: [ { text: 'Home', link: '/' }, { text: 'Company', link: '<%= companyWebsite %>' }, { text: 'License', link: '/LICENSE.md' }, ], sidebar: [ ['/', 'Home'], ], repo: '<%=...
/** * Created by chent on 2017/1/18. */ angular.module("myApp").controller("ProductCtrl",["$scope","$rootScope","ProductService",function ($scope,$rootScope,ProductService) { var page,time,status; $scope.changeStatus = function(newStatus){ page = 0; time = 0; status = newStatus; ...
import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import { View, ScrollView, StyleSheet, Image, Dimensions, TouchableOpacity } from 'react-native'; import StyledButton from '../../UI/StyledButton'; import { colors, baseStyles } from '../../../styles/common'; import { strings } from...
//development.js //"dburl": "mongodb://test:[email protected]:27017/test" module.exports = { "dburl": "mongodb://ecast:[email protected]:27017/ecast" };
import React, { useState, useEffect } from "react"; import { StyleSheet, Text, View, SafeAreaView, StatusBar, TouchableOpacity, ActivityIndicator, Image, FlatList, } from "react-native"; import axios from "axios"; import { ScrollView } from "react-native-gesture-handler"; export default function Home...