text
stringlengths
2
1.04M
/* utils to bind players to their avatars set the avatar state from the player state */ import * as THREE from 'three'; import Avatar from './avatars/avatars.js'; import {unFrustumCull, enableShadows} from './util.js'; import { getEyePosition, } from './avatars/util.mjs'; const appSymbol = 'app'; // Symbol('app'); ...
export { default } from './useOnClickOutside';
import axios from '@/libs/api.request' export function getTableData () { return axios.request({ url: '/queryMatchtableList', params: {} }) }
var fs = require('fs'); var util = require('util'); var EventEmitter = require('events').EventEmitter; function Thermometer(options) { var _this = this; EventEmitter.call(this); options = util._extend({ id: null, oneWirePath: '/sys/bus/w1/devices/%id%/w1_slave', regExp: /t=([\-0-9]+)/, i...
import defaultState from './state'; import requestAction from '../../../utils/requestAction'; import Endpoints from '../../../Endpoints'; // import fetch from 'isomorphic-fetch'; import { SubscriptionClient } from 'subscriptions-transport-ws'; import { WebSocketLink } from 'apollo-link-ws'; import { parse } from 'gra...
var class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browse_artist_results_context_1_1_run2 = [ [ "text", "d6/da7/class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browse_artist_results_context_1_1_run2.html#af5e7c29f3611c1425f58143cc75c1f4a", null ] ];
Vue.component('my-main', { template: `<main><div class="fill"> My Main <my-section @input="$emit('input', $event)"></my-section> </div></main>` })
const { environment } = require("@rails/webpacker") const webpack = require("webpack") environment.plugins.prepend("Provide", new webpack.ProvidePlugin({ $: "jquery/src/jquery", jQuery: "jquery/src/jquery" }) ) module.exports = environment
'use strict'; const { PermissionFlagsBits } = require('discord-api-types/v10'); const Base = require('./Base'); const VoiceState = require('./VoiceState'); const TextBasedChannel = require('./interfaces/TextBasedChannel'); const { Error } = require('../errors'); const GuildMemberRoleManager = require('../managers/Guil...
import { STATUS_CODES } from 'http' import Router from 'koa-router' import koaBody from 'koa-body' const parseBody = koaBody() export const apiRouter = new Router({ prefix: '/api' }) export function setApiRoutes() { apiRouter.stack.length = 0 apiRouter .all('ping', '/ping', parseBody, (ctx) => { ctx.r...
var class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browse_artist_results_context_1_1_musiciconbadgerenderer = [ [ "backgroundColor", "d2/de7/class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browse_artist_results_context_1_1_musiciconbadgerenderer.html#a0cd7ba8ec432f2d3054b80f203cb7ce4", ...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // *************************************************************** // - [#] indicates a test step (e.g. # Go to a page) // - [*] indicates an assertion (e.g. * Check the title) // - Use element ID when selec...
const version = 2 import { cloneDeep } from 'lodash' export default { version, migrate: function (originalVersionedData) { const versionedData = cloneDeep(originalVersionedData) versionedData.meta.version = version try { if (versionedData.data.config.provider.type === 'etherscan') { ve...
import React from 'react' const ToggleOn = props => ( <svg fill='currentColor' viewBox='0 0 576 512' width='1em' height='1em' {...props} > <path d='M384 96c88.426 0 160 71.561 160 160 0 88.426-71.561 160-160 160H192c-88.426 0-160-71.561-160-160 0-88.425 71.561-160 160-160h192m0-32H192C85.96...
import jwt from 'jsonwebtoken'; import lodash from 'lodash'; import dotenv from 'dotenv'; import models from '../database/models'; dotenv.config(); /** * Authenticate middleware function * @function authenticate * @param {object} req - request parameter * @param {object} res - response parameter * @param {functio...
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Badge from 'material-ui/Badge'; import IconButton from 'material-ui/IconButton'; import MailIcon from '@material-ui/icons/Mail'; import AppBar from 'material-ui/AppBar'; import Tabs, { Tab } from 'mate...
import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import thunkMiddleware from 'redux-thunk' import { createLogger } from 'redux-logger' import App from './components/App' import rootReducer from './reducers' const l...
/** * Copyright 2013-2014 Facebook, Inc. * * 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 applicable law or agree...
module.exports = { "rdfstore": require("rdfstore") }
'use strict'; const gulp = require('gulp'); const build = require('@microsoft/sp-build-web'); build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`); build.configureWebpack.mergeConfig({ additionalConfiguration: (generatedConfiguration) => { if (buil...
import Taro from '@tarojs/taro' import { View } from '@tarojs/components' import AtFloatLayout from '../../../components/float-layout/index' import AtButton from '../../../components/button/index' import DocsHeader from '../../components/doc-header' import './index.scss' export default class FloatLayoutPage extends ...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
define([ "utils", "classes/Provider", "settings", "helpers/githubHelper" ], function(utils, Provider, settings, githubHelper) { var githubProvider = new Provider("github", "GitHub"); githubProvider.publishPreferencesInputIds = [ "github-reponame", "github-username", "git...
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
'use strict' const path = require('path') const config = require('../config/index') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const packageConfig = require('../package.json') exports.assetsPath = function(_path) { const assetsSubDirectory = process.env.NODE_ENV === 'production' ? conf...
describe('sandbox library - lodash3', function () { this.timeout(1000 * 60); var Sandbox = require('../../../'), context; beforeEach(function (done) { Sandbox.createContext({}, function (err, ctx) { context = ctx; done(err); }); }); afterEach(functio...
// Copyright 2008 The Closure Library Authors. 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 requ...
WCT.loadSuites([ 'basic.html' ]);
let brackets = require('../lib/brackets') describe('.parse()', () => { it('parses simple string', () => { expect(brackets.parse('test')).toEqual(['test']) }) it('parses brackets', () => { expect(brackets.parse('a (b) a')).toEqual(['a ', ['b'], ' a']) }) it('parses many brackets', () => { expect...
import React from 'react'; import ReactDOMServer from 'react-dom/server'; // jsx require("node-jsx").install({ harmony: true }); import {ProteinViewer} from '../src/sgd_visualization'; test("should render to a viz with classes 'sgd-viz' and 'protein-viewer'",()=>{ var _data = [ { start: 1, end: 400, ...
({"removeFormat":"Αφαίρεση μορφοποίησης","copy":"Αντιγραφή","paste":"Επικόλληση","selectAll":"Επιλογή όλων","insertOrderedList":"Αριθμημένη λίστα","insertTable":"Εισαγωγή/Τροποποίηση πίνακα","underline":"Υπογράμμιση","foreColor":"Χρώμα προσκηνίου","htmlToggle":"Πρωτογενής κώδικας HTML","formatBlock":"Στυλ παραγράφου","...
/*! Summernote v0.8.8 | (c) 2013- Alan Hong and other contributors | MIT license */ !function(a){a.extend(a.summernote.lang,{"sk-SK":{font:{bold:"Tučné",italic:"Kurzíva",underline:"Podčiarknutie",clear:"Odstrániť štýl písma",height:"Výška riadku",strikethrough:"Prečiarknuté",size:"Veľkosť písma"},image:{image:"Obrázok...
const got = require('@/utils/got'); const cheerio = require('cheerio'); const iconv = require('iconv-lite'); const baseUrl = 'https://www.biquge5200.com/'; // 获取小说的最新章节列表 module.exports = async (ctx) => { const id = ctx.params.id; // 小说id const response = await got({ method: 'get', url: `${bas...
// import Reactotron from "reactotron-react-js"; // import { reactotronRedux } from "reactotron-redux"; // //use함수를 사용하여 플러그인추가 // Reactotron.configure({name:"nomadgram"}) // .use(reactotronRedux()) // .connect(); // export default Reactotron;
// The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers. const functions = require('firebase-functions'); // The Firebase Admin SDK to access the Firebase Realtime Database. const admin = require('firebase-admin'); admin.initializeApp(functions.config().firebase); // Take the text parame...
/* eslint-disable */ 'use strict'; var env = require('./env'); var create = require('../../index').create; var addonRule = require('../../addon/rule').addon; var addonCache = require('../../addon/cache').addon; var addonJsx = require('../../addon/jsx').addon; function createNano (config) { var nano = create(confi...
(function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func...
// @flow strict-local import type { Asset as IAsset, Bundle as IBundle, BundleGroup as IBundleGroup, CreateBundleOpts, Dependency as IDependency, MutableBundleGraph as IMutableBundleGraph, Target, } from '@parcel/types'; import type {ParcelOptions, BundleGroup as InternalBundleGroup} from '../types'; im...
// 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 applicable law or agreed to in writing, software // distributed...
import React from "react" const Error = () => { return ( <div> <h1>this is an error page</h1> </div> ) } export default Error
/** * Hilo 1.4.0 for standalone * Copyright 2016 alibaba.com * Licensed under the MIT License */
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
#!/usr/bin/env node const fs = require("fs"); const path = require("path"); const yargs = require("yargs/yargs"); const { hideBin } = require("yargs/helpers"); const prompts = require("prompts"); const levelup = require("levelup"); const leveldown = require("leveldown"); const encode = require("encoding-down"); const ...
const { TsconfigPathsPlugin } = require("tsconfig-paths-webpack-plugin"); const { mainPath, target, mode, isDev } = require("./env"); module.exports = { entry: { main: `${mainPath}/main.ts`, }, output: { path: target, filename: "[name].js", publicPath: "/", devtoolModuleFilenameTemplate: "fi...
export default { location: { worldName: 'Ghazzaland', world: 1, index: 5, }, rom: { tilemap: 0x1B8A28, customTilemap: 0x36A250, objects: [0xE7050, 0xE7579], portals: [0xD4B68, 0xD4BAF], }, tilemap: { totalStages: 4, height: 120, width: 270, scheme: [ { ...
var gulp = require('gulp'); gulp.task('assets', function() { return gulp.src(__dirname + '/../client/src/assets/**/*.*') .pipe(gulp.dest(__dirname + '/../public/assets/')) .on('error', function (error) { console.error(String(error)); }); });
'use strict' const akismetApi = require('akismet') const config = require('../config') const errorHandler = require('./ErrorHandler') const gitFactory = require('./GitServiceFactory') const markdownTable = require('markdown-table') const moment = require('moment') const Mailgun = require('mailgun-js') const NodeRSA = ...
import { RenderingTest, moduleFor } from '../utils/test-case'; import { applyMixins } from '../utils/abstract-test-case'; import { set } from 'ember-metal/property_set'; import { computed } from 'ember-metal/computed'; import EmberObject from 'ember-runtime/system/object'; moduleFor('Static content tests', class exten...
import { useSelector } from "react-redux"; import { Card, Avatar, Badge } from "antd"; import moment from "moment"; import {getAccountBalance, currencyFormatter, payoutSetting} from "../actions/stripe"; import { useEffect, useState } from "react"; import {SettingOutlined} from "@ant-design/icons" import {toast} from "r...
import { getReasonPhrase, StatusCodes } from 'http-status-codes' import { seedUser } from './seed' export const expectError = (error, errormessage, statusCode, status) => { statusCode = statusCode || StatusCodes.BAD_REQUEST status = status || getReasonPhrase(statusCode) expect(error.message).toBe(errormessage) ...
'use strict'; module.exports.landingPage = (event, context, callback) => { let randomIndex = Math.floor(Math.random() * 403); const html = ` <html> <style> h1 { color: #73757d; } </style> <body> <style> .videoPlayer{ width: 100%; height: 100%; } ...
// @flow export type RestState<T> = { data?: T, error?: any, processing: boolean, loaded: boolean, getStatus?: string, }; export type Endpoint = { name: string, namespaceOnUsername: boolean, checkNoSpinner: boolean, getUrl?: string|(...args: any) ...
const functions = require("firebase-functions"); const { auth, firestore, storage } = require("../../../admin"); const utils = require("../../utils"); module.exports = functions.https.onCall(async (data, context) => { // Checking that the user is authenticated. if (!context.auth) { throw new functions.https.H...
// Copyright 2018 Google LLC // // 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 applicable law or agreed to in ...
import LcColumnsMenuItem from './LcColumnsMenuItem' export default { name: 'LcColumnsMenu', components: { LcColumnsMenuItem }, render: function (h) { const content = this.content let childs = [] Object.keys(content).forEach(navigation => { const root = content[navigation] if (Array.isArra...
import styled from "styled-components"; import { device } from "@theme"; export const OurMissionWrap = styled.div` margin-top: 70px; @media ${device.small}{ margin-top: 50px; } `; export const OurMissionImageWrap = styled.div` position: relative; img{ border-radius: 5px; } `; ...
exports.one = 1; exports.fn = function(){}; exports.str = 'Hello World';
this.ckan=this.ckan||{},function(n,a,t){var i={"":{domain:"ckan",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}};n.i18n=new t({domain:"ckan",locale_data:{ckan:i}}),n.i18n.translate=a.proxy(n.i18n.translate,n.i18n),n.i18n.load=function(n){n&&n[""]&&a.extend(i,n)},n.sandbox.extend({i18n:n.i18n,translate:n.i18n.tr...
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; const Header = ({ auth }) => { const authButton = auth ? ( <a href="/api/logout">Logout</a> ) : ( <a href="/api/auth/google">Login</a> ); return ( <nav> <div className="nav-wrapper"> ...
const mongoose = require('mongoose'); const { Schema, model } = mongoose; const userSchema = new Schema({ __v: { type: Number, select: false }, username: { type: String, maxlength: 50, require: true, unique: true }, //通过 bcrypt 加密后的密码 password: { type: S...
var searchData= [ ['data',['data',['../structpvrvk_1_1_shader_constant_info.html#a5209f9e0122912116b2dc1c461f1a069',1,'pvrvk::ShaderConstantInfo']]], ['depthstencil',['depthStencil',['../structpvrvk_1_1_graphics_pipeline_create_info.html#a4e1a19206b36b40964fb23f2c58fc258',1,'pvrvk::GraphicsPipelineCreateInfo']]], ...
import styled from 'styled-components'; export const WrapperOuter = styled.section` position: relative; padding: 56.25% 0 0; width: 100%; height: 0; @media (max-width: 414px) { padding: 178% 0 0; padding: 100vh 0 0; } `; export const WrapperInner = styled.div` position: absolute; top: 0; lef...
var fish_fish_cfg = { 'denglongyu_boss' : { name : "fish_name_dly", //--鱼类名称 body_type : 3, //--体型 fish_id : 21, //--鱼ID description : "fish_desc_dly", //--鱼类描述 description2 : "0", //--特殊说明 count_type : 21, //--模型ID display_type : 3, //--类型1234 reward_fish_name_pic : "bossbaozhayu...
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); } function _defineProperties(target, props) { for(var i = 0; i < props.length; i++){ var descriptor = props[i]; descriptor.enumerable = descriptor.e...
import api from '../consts' import axios from 'axios' import Auth from '../modules/auth' import { addNotification } from './notificationActions' const CREATE_TASK_REQUESTED = 'CREATE_TASK_REQUESTED' const CREATE_TASK_SUCCESS = 'CREATE_TASK_SUCCESS' const CREATE_TASK_ERROR = 'CREATE_TASK_ERROR' const UPDATE_TASK_REQUE...
export default { DEFAULT_INSTANCE: '$default_instance', API_VERSION: 2, MAX_STRING_LENGTH: 4096, MAX_PROPERTY_KEYS: 1000, IDENTIFY_EVENT: '$identify', GROUP_IDENTIFY_EVENT: '$groupidentify', // localStorageKeys LAST_EVENT_ID: 'amplitude_lastEventId', LAST_EVENT_TIME: 'amplitude_lastEventTime', LAST...
import { HOME_REMOVE_FILE_CONTENT, } from '../../../../src/features/home/redux/constants'; import { removeFileContent, reducer, } from '../../../../src/features/home/redux/removeFileContent'; describe('home/redux/removeFileContent', () => { it('returns correct action by removeFileContent', () => { expect(...
exports.pollImpl = require('@material-ui/icons/Poll').default;
/* global describe, it, expect, before, request, assert */ import mongoose from 'mongoose'; var User = require('../models/user').default ; var defaultUser = { email: 'test@gmail.com', password: 'abcdefg' }; var serverConfig = require('../config'); var server ; var connectDB = (done) => { if (mongoose.connect...
// flow-typed signature: fa5d2ca5968dbe029db39c8f312c693a // flow-typed version: <<STUB>>/flow-copy-source_v^1.1.0/flow_v0.48.0 /** * This is an autogenerated libdef stub for: * * 'flow-copy-source' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your wo...
function getByteSize (num) { let out = num >> 3 if (num % 8 !== 0) out++ return out } class BitField { constructor (data = 0, opts) { const grow = opts != null && opts.grow this.grow = (grow && isFinite(grow) && getByteSize(grow)) || grow || 0 this.buffer = typeof data === 'number' ? new Uint8Array...
'use strict'; var global = require('./_global') , core = require('./_core') , dP = require('./_object-dp') , DESCRIPTORS = require('./_descriptors') , SPECIES = require('./_wks')('species'); module.exports = function (KEY) { var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY]; if (...
game.HeroDeathManager = Object.extend({ init: function(x, y, settings) { this.alwaysUpdate = true; }, update: function(){ if(game.data.player.dead){ me.game.world.removeChild(game.data.player); me.state.current().resetPlayer(10, 0); } return true; } });
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { __awaiter, __generator } from "tslib"; /** * Helps the core-http token authentication policies with requesting a new token if we're not currently waiting for a new token. * * @deprecated No longer used in the bearer authorization pol...
import warning from "warning"; import { canUseDOM } from "./safeHTMLElement"; let globalElement = null; /* eslint-disable no-console */ /* istanbul ignore next */ export function resetState() { if (globalElement) { if (globalElement.removeAttribute) { globalElement.removeAttribute("aria-hidden"); } el...
/** * Created by Raphael Karanja on 2019-01-31. */ import React from 'react' const Spinner = (props) => { return ( <div className="coursePage_loader"> <div className="lds-css ng-scope"> <div className="lds-spinner" > <div> </div> <div> ...
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'no', { euro: 'Eurosymbol', lsquo: 'Venstre enkelt anførselstegn', rsquo: 'Høyre enkelt anførselstegn', ldquo: 'Venstre dobbelt ...
define({ root: ({ _widgetLabel: "Draw", selectDrawMode: "Select draw mode", clear: "Clear", point: "Point", line: "Line", polyline: "Polyline", freehandPolyline: "Freehand polyline", triangle: "Triangle", extent: "Envelope", circle: "Circle", ellipse: "Ellipse", polygon...
import styled from 'styled-components'; export const FooterStyled = styled.div` .footer-container{ width: 100%; background-color: #F7F7F7; border-top: 1px solid #DDDDDD; padding-top: 30px; /* color: #222222; */ } .main-menu-footer, .footer-ref{ width: 85%; ...
// @flow import React from 'react'; import { Text } from 'react-native'; import { translate } from '../../../i18n'; import { connect } from '../../../redux'; import { _abstractMapStateToProps } from '../../functions'; import { type Props as AbstractProps } from './BaseDialog'; import BaseSubmitDialog from './BaseSub...
/** * An input field File Picker utilising the Xinha RyuXFileManager. * * Hijack the Xinha RyuXFileManager plugin to provide a file URL picker * for any form input field in the form of a "Browse" button to the * right of the field, in the same manner as a file type input field * except it opens the familiar RyuXF...
import * as _api from './api' export const api = _api
'use strict' require('../../support/zeppelinHelpers.js') contract('StandardToken', function(accounts) { var { StandardTokenMock } = require('../../../build/truffle/v0.4/StandardTokenMock') const options = { from: accounts[0] } let token beforeEach(async function() { token = await StandardTokenMock.new(ac...
const { Message, MessageEmbed } = require('discord.js'); const Bot = require('../../../index'); const { stripIndents } = require('common-tags'); const { owner, ownerID } = require('../../../config.json'); const { version } = require('../../../package.json'); const colors = require('../../../colors.json'); const { forma...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { ProjectViews } from './subViews' import './css/projects.css' export default class Projects extends Component { constructor() { super() } render() { return ( <div className="projectsContainer"> <ProjectView...
module.exports = { setupFiles: ['<rootDir>/jest.setup.js'], testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/', '^.+\\.(test|integration)\\.js$'], verbose: true, transform: { '^.+\\.js$': 'babel-jest' }, moduleFileExtensions: [ 'js', 'jsx' ], preset: 'jest-puppeteer', m...
import { __extends } from "tslib"; import { CreateStreamProcessorRequest, CreateStreamProcessorResponse } from "../models/models_0"; import { deserializeAws_json1_1CreateStreamProcessorCommand, serializeAws_json1_1CreateStreamProcessorCommand, } from "../protocols/Aws_json1_1"; import { getSerdePlugin } from "@aws-sdk/...
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // RUN: %hdb < %s.debug %s --break-after 1 | %FileCheck --match-full-lines %s // REQUIRES: debugger print("Testing async break"...
var abstract_inherit = require("abstract_inherit"); // Shouldn't be able to instantiate any of these classes // since none of them implements the pure virtual function // declared in the base class (Foo). var Foo = abstract_inherit.Foo; var Bar = abstract_inherit.Bar; var Spam = abstract_inherit.Spam; var caughtExcep...
import React from "react"; const Action = (props) => { return ( <div> <button className="big-button" onClick={props.handleTodo} disabled={!props.hasOptions} > What to do </button> </div> ); }; export default Action;
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
$(document).ready(function() { $('.load-fullcalendar').click(function(){ setTimeout(function(){ $('#calendar').fullCalendar('render'); },1000); }); /* initialize the external events -----------------------------------------------------------------*/ $('#external-events .fc-event...
import apollo from "../../lib/apolloClient"; // TODO: add paramaterization export const treasuryDataQuery = ` query { protocolMetrics(first: 100, orderBy: timestamp, orderDirection: desc) { id timestamp ohmCirculatingSupply sOhmCirculatingSupply totalSupply ohmPrice marketCap totalVal...
import React from "react" import Layout from "../components/layout" export default function Home() { return( <div> <Layout> <head> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link href="http://fonts.googleapis.com/css?family=Oswald:700|Droid+Serif:400,700italic" rel=...
/** * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.o...
// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
export const WAIT_GAME = "WAIT_GAME";
import React from 'react' import Tile from '../../components/Tile' import { connect } from 'react-redux' import {openTile, getTileList} from './actions' class TileListComponent extends React.Component { render () { const {tiles, onClick} = this.props return ( <div> {tiles.map((tile, index) => ...
var entities = { "nbsafety_full": { "title": "Fine-Grained Lineage for Safer Notebook Interactions", "link": "https://smacke.net/papers/nbsafety.pdf", "authors": "Stephen Macke, Hongpu Gong, Doris Jung-Lin Lee, Andrew Head, Doris Xin, Aditya Parameswaran", "venue": "Under revision fo...
const { VK } = require('vk-io'); const vk = new VK(); const commands = []; const request = require('prequest'); const cars = [ { name: 'Самокат', cost: 500, id: 1 }, { name: 'Велосипед', cost: 2500, id: 2 }, { name: 'Гироскутер', cost: 5000, id: 3 }, { name: 'Сегвей', cost: 7500, id: 4 ...