text
stringlengths
2
1.04M
const graphql = require("graphql"); const users = require("./users"); const lessons = require("./lessons"); const courses = require("./courses"); const siteinfo = require("./siteinfo"); const media = require("./media"); const design = require("./design"); const navigation = require("./navigation"); const widgets = req...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview Test suite for chrome://personalization. Tests individual * polymer components in isolation. */ GEN_INCLUDE(['//chrome/test/data/w...
import { dragon } from '../event/dragonkiller' export default { name: `${t('area.temple')} - ${t('areaSub.temple.g')}`, create (scene) { const sonberk = scene.map.getObjectById(2) sonberk.image.y += 55 const king = scene.map.getObjectById(3) const area1 = scene.map.getObjectById(4) const area2 =...
import styled from "styled-components"; import { Accordion } from "antd-mobile"; import { Checkbox } from "antd"; import { theme, mq } from "constants/theme"; const { display } = theme.typography.font.family; export const AccordionHeader = styled.div` width: 100%; text-align: left; `; export const FilterAccordion...
/* glsl-simulator.js 0.1.0 https://www.github.com/burg/glsl-simulator/ Copyright (c) 2014, Brian Burg <burg@cs.uw.edu> Copyright (c) 2014, Xiao Sophia Wang. All rights reserved. Distributed under the terms of the Simplified BSD License: Redistribution and use in source and binary forms, with or without...
const CustomError = require("../extensions/custom-error"); module.exports = function countCats(matrix) { if (!Array.isArray(matrix) || matrix.length == 0) return 0 let cat = matrix.reduce((a, b) => a.concat(b), []); return cat.filter(elem => elem === '^^').length; };
/** * Copyright 2020 The Magma Authors. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, ...
'use strict'; module.exports = { up: function (queryInterface, Sequelize) { return queryInterface.bulkInsert('oauth_client', [ { id: 'idm_admin_app', name: 'idm', description: 'idm', url: '', redirect_uri: '', grant_type: '', response_type: '', ...
import expect from 'expect'; import todosReducer from '../../reducers/todosReducer'; import * as actions from '../../actions/todosActions'; describe('todo reducer', () => { const initialState = { todos: [], errorMsg: '', }; it('should create new todo when CREATE_TODO_SUCCESS is passed', () => { cons...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError, ArgumentsRequired, ExchangeNotAvailable, InsufficientFunds, OrderNotFound, InvalidOrder, DDoSProtection, InvalidNonce, AuthenticationError, InvalidAddress,...
const CustomError = require("../extensions/custom-error"); module.exports = function calculateHanoi(disksNumber, turnsSpeed) { let result = {}; result.turns = Math.pow(2, disksNumber) - 1; result.seconds = Math.floor((3600 * result.turns) / turnsSpeed); return result; };
// @flow strict /* eslint-disable import/newline-after-import */ import React, { type Element } from 'react'; export default function ExitRight(props: {}): Element<'svg'> { return ( <svg height="1em" viewBox="0 0 21 21" width="1em" xmlns="http://www.w3.org/2000/svg" {...props}> <path d="M14.595 13....
import React, { Component } from 'react' export default class Cart extends Component { render() { return ( <div> <h3>Hello from Cart</h3> </div> ) } }
/*eslint no-console: ["error", { allow: ["warn", "error", "info"] }] */ "use strict"; const _ = require("underscore"); const appSettings = require('../app-settings'); const ArrayStorage = require("./../util/array-storage"); const ArrayStorageBridge = require("./../util/array-storage-bridge"); const FlushItem = require...
module.exports = function (sequelize, DataTypes) { const Example = sequelize.define('Example', { mediaType: DataTypes.STRING, image: DataTypes.TEXT, title: DataTypes.TEXT, year: DataTypes.INTEGER, author: DataTypes.STRING, director: DataTypes.STRING, cast: DataTypes.TEXT, genre: DataTy...
import React from 'react'; import { Link } from 'react-router-dom'; import BaseURL from '../misc/BaseURL'; import './BlogHome.css'; class BlogHome extends React.Component { state = { blog: null } fetchBlogHomeData() { return fetch(`${BaseURL}/api/blog`, { accept: 'application/json' }) .then((r...
'use strict'; module.exports = require('../../utils/model-schema-generator')( 'OrderBCMI', { _schemaName: { type: String, default: 'OrderBCMI', index: true }, _epicProjectId: { type: 'ObjectId', default: null, index: true }, _sourceRefId: { type: 'ObjectId', default: null, index: true }, _sourceRef...
import React from "react"; import { Table, Button } from "reactstrap"; import IconButton from "@material-ui/core/IconButton"; import { Delete, Edit, Visibility } from "@material-ui/icons"; import ModalStore from './ModalStore.js'; import Pagination from '../../components/Pagination'; import Search from "../../component...
/*! * ${copyright} */ //Provides control sap.ui.unified.PlanningCalendarRow. sap.ui.define(['jquery.sap.global', 'sap/ui/core/Element', './StandardListItem', './StandardListItemRenderer', 'sap/ui/core/Renderer', './library', 'sap/ui/unified/library'], function(jQuery, Element, StandardListItem, StandardListItemRen...
import { babel } from '@rollup/plugin-babel'; import replace from '@rollup/plugin-replace'; const config = [{ input: 'src/client/index.js', output: { file: 'dist/pn.js', format: 'esm' }, treeshake: false, plugins: [ babel({ babelHelpers: 'bundled', ba...
import Chart from 'react-apexcharts' import Flatpickr from 'react-flatpickr' import { Calendar } from 'react-feather' import { Card, CardHeader, CardTitle, CardBody, CardSubtitle } from 'reactstrap' const ApexCandleStickChart = ({ danger, success, direction }) => { const options = { chart: { parentHeightOf...
const chalk = require('chalk'); const yellow = chalk.bold.yellow; const handleError = require('cli-handle-error'); const shouldCancel = require('cli-should-cancel'); const { Toggle } = require('enquirer'); const to = require('await-to-js').default; module.exports = async () => { const [errCustom, custom] = await to( ...
const { clone } = require('lodash'); const config = clone(require('../default.config')); config.features = { alwaysIssueRefresh: true }; module.exports = { config, clients: [{ client_id: 'client', client_secret: 'secret', grant_types: ['authorization_code', 'refresh_token'], response_types: ['code...
'use strict'; let angular = require('angular'); module.exports = angular .module('spinnaker.core.insight', [ require('./insight.controller.js') ]).name;
// Everything is explained here: // @link https://gekko.wizb.it/docs/commandline/plugins.html var config = {}; // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // GENERAL SETTINGS // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.debug = true; // f...
// All of the Node.js APIs are available in the preload process. // It has the same sandbox as a Chrome extension. const replaceText = (selector, text) => { const element = document.getElementById(selector) if (element) { element.innerText = text }else{ console.log(`couldn't find element with id ${selecto...
/*global __dirname, require, module*/ const webpack = require('webpack'); const UglifyJsPlugin = webpack.optimize.UglifyJsPlugin; const path = require('path'); const env = require('yargs').argv.env; // use --env with webpack 2 const version = require('./package.json').version let libraryName = 'tctip'; let plugins ...
import React, { Component } from 'react' import { connect } from 'react-redux' import WeekendDay from '../WeekendDay' import ClickableDay from '../ClickableDay' import SwipeableDay from '../SwipeableDay' import OtherMonthDay from '../OtherMonthDay' import NextMonth from '../NextMonth' import PreviousMonth from '../Prev...
export { DialogAlert } from "./alert.min.js" export { DialogError } from "./error.min.js" export { DialogConfirm } from "./confirm.min.js" export { DialogForm } from "./form.min.js" export { DialogFormUser } from "./form-user.min.js" export { DialogFormAccount } from "./form-account.min.js" export { DialogFormEntry } f...
/*! Raven.js 3.22.1 (7584197) | github.com/getsentry/raven-js */ //# sourceMappingURL=raven.min.js.map Raven.config(sentry_dsn_js_public).install();
/* eslint-env node, mocha */ /* eslint-disable prefer-arrow-callback, func-names, no-unused-expressions */ 'use strict'; const fs = require('fs'); const chai = require('chai'); const sinon = require('sinon'); const sinonChai = require('sinon-chai'); const chaiAsPromised = require('chai-as-promised'); const expect = ...
const ZONES = { GREED: 'GREED', FEAR: 'FEAR', }; const COLORS = { [ZONES.FEAR]: '#105e62', [ZONES.GREED]: '#b5525c', }; const MESSAGING = { [ZONES.FEAR]: 'A high extreme fear value (<20) suggests a good time to open fresh positions as markets are likely to be oversold and might turn upwards.', [ZONES....
/** * Layout component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import * as React from "react" import PropTypes from "prop-types" import { useStaticQuery, graphql } from "gatsby" import { Link } from "gatsby" import Header from "./h...
/* This file is part of Ext JS 6.0.0.640 Copyright (c) 2011-2015 Sencha Inc Contact: http://www.sencha.com/contact This version of Sencha Ext JS is licensed commercially for a limited period for evaluation purposes only. Production use or use beyond the applicable evaluation period is prohibited under this licens...
import React, { Component } from 'react'; import { connect } from 'react-redux'; const mapStateToProps = state => { return { participants: state.participants } } class DropDownBuyerList extends Component { render() { const { participants, buyer } = this.props; const tempBuyer = JSO...
var webdriver = require('selenium-webdriver'); var log = require('./logger'); var clientSideScripts = require('./clientsidescripts.js'); var WEB_ELEMENT_FUNCTIONS = [ 'click', 'sendKeys', 'getTagName', 'getCssValue', 'getAttribute', 'getText', 'getSize', 'getLocation', 'isEnabled', 'isSelected', 'submit', 'clear',...
'use strict'; var Hapi = require('hapi'); var HapiGoldwasher = require('./index'); var server = new Hapi.Server(); server.connection({ port: 7979 }); server.register({ register: HapiGoldwasher, options: { path: '/goldwasher', cors: { origin: ['*'] } } }, function(err) { if (err) { throw...
/*! abcjs_plugin v3.3.1 Copyright © 2009-2018 Paul Rosen and Gregory Dyke (http://abcjs.net) */ /*! For license information please see abcjs_plugin_3.3.1-min.js.LICENSE */
import getInfo from '../../../../../src/clients/api/info/get'; global.fetch = jest.fn(() => Promise.resolve({ ok: true, json: () => ({ network: '84a0681b-494a-4ac2-8298-2b888799f467' }) })); describe('get(options)', () => { let options; let returnValue; beforeEach(() => { fetch.mockClear(); ...
import http from 'k6/http'; import { sleep } from 'k6'; export let options = { scenarios: { normal: { executor: 'constant-vus', vus: 200, duration: '10s', exec: "normal", gracefulStop: '0s', }, notFound: { executor: 'constant-vus', vus: 200, duration: '10s'...
const controllers = require('./controllers'); const mid = require('./middleware'); const router = (app) => { app.get('/seeMore/:recipeid', mid.requiresSecure, controllers.Recipe.getMoreRecipe); app.get('/seeMoreRecom/:recomrecipeid', mid.requiresSecure, controllers.RecomRecipe.getMoreRecomRecipe); app.get('/getT...
/** * * The MIT License (MIT) * * https://www.flowchain.co * * Copyright (c) 2016-present Jollen * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including wit...
System.register(['angular2/core', './todo.service', './sort-pipe.component'], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? ta...
//# sourceMappingURL=webpack-runtime-1edef6d2e44496389fd3.js.map
sap.ui.define([ "sap/ui/base/Object", "sap/ui/Device", "sap/ui/core/routing/History" ], function(BaseObject, Device, History) { "use strict"; // 'Constants' for the route names used in this app var sDisplayRoute = "display", sEditRoute = "edit", sCreateRoute = "create", sMasterRoute = "master"; // The ma...
/* ----Modo Mapeo----- */ var startX = 0; var startY = 0; var endX = 0; var endY = 0; var objects = []; var coordinates = document.getElementById("coordinates"); let canvas = document.getElementById('game'); let ctx = canvas.getContext('2d'); canvas.addEventListener("mousemove", e => { coordinates.innerText = "X:...
'use strict' const markdownItKatex = require('..') describe('@mathssyfy/markdown-it-katex', () => { it('needs tests') })
'use strict'; class GraphManagementClient { constructor(credentials, subscriptionId, baseUri, options) { this.credentials = credentials; this.apiVersion = '1.6'; this.acceptLanguage = 'en-US'; this.generateClientRequestId = true; if (!options) options = {}; ...
var exec = require('child_process').exec; var child = exec('yarn serve', function(err, stdout, stderr) { // if (err) throw err; console.log(stdout); });
var data = { "body": "<path d=\"M15.5 10.5h2v1h-2z\" fill=\"currentColor\"/><path d=\"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-10 6.5H6.5v.75H10V15H5v-1.5h3.5v-.75H5V9h5v1.5zm3 4.5h-2V9h2v6zm6-6v4h-3.5v2H14V9h5z\" fill=\"currentColor\"/>", "width": 24, "height": 24 }; exports.__e...
var dbShapes = require('./CanvasShapesManager'); var SeedDb = require('../seedDatabase/seedDatabase'); var database = require('../database'); var Promise = require('bluebird'); SeedDb.seedDb() .then(function() { dbShapes.init({}, 'session1'); }) new Promise(function(resolve, reject) { dbShapes.findOne('rj34kskd...
define([ 'put-selector', 'esri/request', 'esri/geometry/Extent', 'esri/symbols/jsonUtils', 'esri/symbols/SimpleFillSymbol', 'esri/symbols/SimpleLineSymbol', 'esri/symbols/SimpleMarkerSymbol', 'dojo/_base/array', 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/on', 'dijit/_WidgetBase', 'di...
import { Store, createStore } from './store' import { storeKey, useStore } from './injectKey' import { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from './helpers' import { createLogger } from './plugins/logger' export default { version: '__VERSION__', Store, storeKey, createStore...
(function (global, factory) { if (typeof define === 'function' && define.amd) { define(['exports', 'module', './data', './cookies', 'dayjs', 'dayjs/plugin/relativeTime'], factory); } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { factory(exports, module, require('./data'), requi...
var isBrowser = typeof window !== 'undefined', request = isBrowser ? require('./request') : require('request').defaults({ jar: true }), he = require('he'), after = require('after'); module.exports = suggest; var urlBase = 'https://clients1.google.com/complete/search' var resRegex = /^window\.google\.ac\.h...
////////////////////////////////////////////////////////////// // plugins ////////////////////////////////////////////////////////////// var gulp = require('gulp'), sourcemaps = require('gulp-sourcemaps'), sass = require('gulp-sass'), uglify = require('gulp-uglify'), minifyCSS = require('gulp-minify-css...
import _regeneratorRuntime from 'babel-runtime/regenerator'; import _asyncToGenerator from 'babel-runtime/helpers/asyncToGenerator'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/hel...
// Local file imports import StarRating from './StarRating'; export default StarRating;
import React from 'react'; import PropTypes from 'prop-types'; class Person extends React.Component { constructor(props) { super(props) this.name = "Person" } render() { return ( <div> <h1>个人中心</h1> <p>用户名: {this.props.name}</p> ...
// not using the subscription for the client as it was not stable during the development time // But Can integrate later import graphQLApolloClient from './apolloClientWithoutSubscription.js' export const client = graphQLApolloClient;
import './style.css'; const orderTasks = (tasks) => { for (let i = 0; i < tasks.length; i += 1) { tasks[i].index = i + 1; } }; const showList = (tasksList) => { const listDiv = document.getElementById('list'); listDiv.innerHTML = ''; for (let index = 0; index < tasksList.length; index += 1) { const ...
import { combineReducers } from 'redux'; import { routerReducer } from 'react-router-redux'; import { error } from './error'; const rootReducer = combineReducers({ error, routing: routerReducer }); export default rootReducer;
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: | The | regular expression operator separates two alternatives. The pattern first tries to match the left Alternative (followed by the sequel of the regular expression...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _ExtensionProvider = require("./components/ExtensionProvider"); Object.keys(_ExtensionProvider).forEach(function (key) { if (key === "default" || key === "__esModule") return; Object.defineProperty(exports, key, { enumerable: ...
export default { heading1: '一级标题', heading2: '二级标题', heading3: '三级标题', heading4: '四级标题', heading5: '五级标题', heading6: '六级标题', upgradeHeading: '标题提升', degradeHeading: '标题降级', table: '表格', codeFences: '代码块', quoteBlock: '引用', mathBlock: '公式块', htmlBlock: 'HTML 块', orderList: '有序列表', bulletLis...
import React from 'react' import Link from '../components/link' import {css} from '@emotion/core' import theme from '../../config/theme' import {bpMaxSM} from '../lib/breakpoints' import {GitHub, RSS} from './social' import Container from './container' import Signature from '../images/signature.png' const Footer = ({...
"use strict"; import { app, protocol, Tray, BrowserWindow, ipcMain, shell, session, } from "electron"; import path from "path"; import pkg from "./../../package.json"; import initIpcEvent from "./modules/ipcEvent"; import createTray from "./modules/tray"; import createTrayWindow from "./win...
module.exports = function toReadable(number) { let dozens = [ '', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'n...
/*! * jQuery UI Monthpicker * Copyright (c) 2011, Julien Poumailloux * Original version : https://github.com/thebrowser/jquery.ui.monthpicker * Maintained version: https://github.com/zorab47/jquery.ui.monthpicker */
// === Global variables === let menuIsOpen = false; let slidCount = 0; // === Global Components const menuBtn = document.getElementById("menu"); const controllsSlider = document.querySelectorAll(".controllers button"); const dog = document.getElementById("dog"); // === Open/Close Menu === menuBtn.addEventListener("cl...
$(function() { // Used for accessing the GCS JSON API. var GCS_BASE_URL = 'https://www.googleapis.com/storage/v1'; // Used for downloading the contents of a file through CORS. var GCS_DOWNLOAD_URL = 'http://' + GCS_BUCKET + '.storage.googleapis.com'; // XHR request objects returned from $.ajax. var metad...
import Typography from "typography" import Wordpress2016 from "typography-theme-wordpress-2016" import '../fonts/pyidaungsu.css' import './global.css' import './prism.css' Wordpress2016.overrideThemeStyles = () => { return { "a.gatsby-resp-image-link": { boxShadow: `none`, }, 'body': { // bac...
import _ from 'underscore'; import Syntaxer from '../build/syntaxer'; import TokenParser from '../parse/token_parser'; import TokenUtil from '../utils/token_util'; import { SyntaxError } from '../errors/errors'; class Node { static identity(token) { const validTypes = ['word', 'str...
// Start the // API CONNETION function myFunction() { var citySearch = document.querySelector('#citySearch').value; fetch ( 'http://api.openweathermap.org/data/2.5/weather?q=' + citySearch + '&units=Imperial&appid=80537c5878d1c4c5e4b0fb4912dedc85' ) .then (function(response) { return response.json(); }) .t...
var Stack = require('./_Stack'), arrayEach = require('./_arrayEach'), assignValue = require('./_assignValue'), baseAssign = require('./_baseAssign'), baseAssignIn = require('./_baseAssignIn'), cloneBuffer = require('./_cloneBuffer'), copyArray = require('./_copyArray'), copySymbols = require...
'use strict' /*** * This reducer handles the state of data for the application. * For example when data is selcted or needs to be synchronized * we will handle it in this reducer for all slices of our data. **/ // import { createReducer } from './index.js' import utils from '../../js/utils' // Define Initial State...
function main() { const v2 = {lastIndexOf:"function",source:"function",reduce:"function",concat:-65535,asin:-65535,setUint32:-65535,trimEnd:-65535,MAX_SAFE_INTEGER:-65535,NaN:-65535}; const v3 = v2.__proto__; v3[2966170018] = v2; let v6 = 0; const v11 = [13.37]; function v16(v17,v18,v19,v20,v21) { for (const v25 of...
var Shader = require('../renderer/Shader'); var ShaderLib = require('../renderer/shaders/ShaderLib'); var MeshData = require('../renderer/MeshData'); var RenderTarget = require('../renderer/pass/RenderTarget'); var FullscreenPass = require('../renderer/pass/FullscreenPass'); var Pass = require('../renderer/pass/Pass');...
// Libraries import React from 'react'; // Components import Nav from '../Nav'; import Bottom from '../Bottom'; export default class App extends React.Component { render() { const { children } = this.props; // const { pathname, query } = location; return ( <div> <Nav/> {childre...
/* eslint-env mocha */ import titleCase from './title-case' const expect = require('chai').expect describe('strings :: reverse tests', () => { it("should be 'Introduction to Algorithms' for all lowercase strings", () => { const lowerCaseBookTitle = 'introduction to algorithms' expect(titleCase(lowerCaseBoo...
"use strict"; // Class definition var KTAppReceiptDatatable = function () { // variables var datatable; // init var init = function () { $('.kt-selectpicker').selectpicker(); datatable = $('#datatable_list_receipt').KTDatatable({ data: { type: 'remote', ...
/** * Modules in this bundle * @license * * a-template: * license: MIT (http://opensource.org/licenses/MIT) * author: steelydylan * version: 0.5.5 * * ie-array-find-polyfill: * license: MIT (http://opensource.org/licenses/MIT) * author: Carlos Abdalla * maintainers: abdalla <carlos.abdalla@msdev...
{ let x = 42 }
class mainController{ constructor(){ this.emails=['sidorov@mail.ru']; } addRandomEmail(){ this.emails.push(Math.random().toString(36).replace(/[^a-z]+/g, '')+'@gmail.com'); } getEmailsCount(){ alert(this.emails.length); } } export default mainController;
/* * Copyright 2003-2006, 2009, 2017, United States Government, as represented by the Administrator of the * National Aeronautics and Space Administration. All rights reserved. * * The NASAWorldWind/WebWorldWind platform is licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file...
module.exports = { scripts: { watch: './src/app/**/*.js', src: './src/app/app.js', dest: './web/js', outputName: 'scripts.js' }, clean: { scripts: './web/js', spec: './spec/spec-tests.js' }, browserSync: { server: { baseDir: './web'...
import {voronoi as d3voronoi} from 'd3-voronoi'; export const defaultExtent = {width: 1, height: 1}; // code that exposes some functions goes here export function generatePoints(n, extent) { extent = extent || defaultExtent; var pts = []; for (var i = 0; i < n; i++) { pts.push([(Math.random() - 0....
/* Copyright (C) 2019 Google Inc. Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> */ import {reify} from '../../plugins/utils/reify-utils'; /** * Util methods for integration with Dashboards. */ let DASHBOARD_CA_TYPES = ['text']; function getCaConfiguration() { let caNameRegexpSt...
import { hydrate } from "react-dom" import { createClientRenderer } from "@alexseitsinger/react-ssr" import { createStore } from "./store" import { composed } from "./composed" export const store = createClientRenderer({ createStore, render: (store, history) => { const App = composed({ store, history }) c...
var data = { "body": "<path d=\"M14 1v2h-4V1H8v21h2v-2h4v2h2V1h-2m0 4v3h-4V5h4m0 5v3h-4v-3h4m-4 8v-3h4v3h-4z\" fill=\"currentColor\"/>", "width": 24, "height": 24 }; exports.__esModule = true; exports.default = data;
"use strict"; function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { retur...
// from data.js var tableData = data; // Populate table function showData (ufo) { var row = d3.select('tbody').append('tr').attr('class', 'ufo-row'); Object.values(ufo).forEach(val => row.append('td').attr('class', 'text-center').text(val)); }; // Populating table with the entire dataset tableData.forEach(sho...
// Other important pens. // Map: https://codepen.io/themustafaomar/pen/ZEGJeZq // Navbar: https://codepen.io/themustafaomar/pen/VKbQyZ 'use strict' function $(selector) { return document.querySelector(selector) } function find(el, selector) { let finded return (finded = el.querySelector(selector)) ? finded : null...
import Post from './tumblr-post'; import attr from 'ember-data/attr'; export default Post.extend({ title: attr('string'), body: attr('string') });
"use strict"; const express = require("express"); let FiboController = require("../controllers/fibo"); const api = express.Router(); api.get("/fibo/:index", FiboController.getByIndex); module.exports = api;
//var createViewModel = require("./Local-Not-view-model").createViewModel; var LocalNotifications = require("nativescript-local-notifications").LocalNotifications; const platformModule = require("tns-core-modules/platform"); var dialogs = require("ui/dialogs"); const { fromObject } = require('tns-core-modules/data/obse...
/* * * Copyright (c) 2019-present for symbol * * 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 la...
function controle(form1) { var name1 = document.form1.input.value; var name2 = document.form1.input2.value; $.getJSON({ url: 'https://love-calculator.p.mashape.com/getPercentage?', // The URL to the API. You can get this by clicking on "Show CURL example" from an API profile type: 'GET', // The HTTP Method ...
/** * The MIT License (MIT) * * Copyright (c) 2015 Famous Industries Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the righ...
/** * @fileoverview Rule to disallow use of new operator with the `require` function * @author Wil Moore III */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module....