text
stringlengths
2
1.04M
/** * Created by jf on 15/12/10. */ "use strict"; import React from 'react'; import { ButtonArea, Button, CellHeader, CellBody, Form, FormCell, Input, Label, Toast, } from 'react-weui'; import { withRouter } from 'react-router' import Ajax from '../../util/ajax'; import auth from '....
'use strict'; /* jshint bitwise:false */ /** * @module comparableBits * @desc A module to encapsulate bitmasking flags. Bitmasks have different limitations across browsers, ranging from 31 bits to 53 bits. * @desc This is due to Javascript using double-precision floating-point format numbers. If the number of bits...
/** * skylark-threejs-ex - A version of threejs extentions library that ported to running on skylarkjs * @author Hudaokeji, Inc. * @version v0.9.0 * @link https://github.com/skylark-integration/skylark-threejs-ex/ * @license MIT */ //# sourceMappingURL=../sourcemaps/misc/GPUComputationRenderer.js.map
var MetadataView = require('../../../app/views/metadata'); var mockFile = require('../../mocks/models/file'); var mockFiles = require('../../mocks/collections/files') var mockFileView = require('../../mocks/views/file'); var templates = require('../../../dist/templates'); var $ = require('jquery-browserify'); var _ = ...
/*! ========================================================= * Paper Kit React - v1.3.0 ========================================================= * Product Page: https://www.creative-tim.com/product/paper-kit-react * Copyright 2021 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https://github.com...
var struct_uni_engine_1_1_data_component_holder = [ [ "Deserialize", "struct_uni_engine_1_1_data_component_holder.html#a2c695f136df5b93cde8db9d9ba45ffce", null ], [ "Serialize", "struct_uni_engine_1_1_data_component_holder.html#ab5bd1d2a8bd2938db02fff7a47d61e4a", null ], [ "m_data", "struct_uni_engine_1_1_d...
/** * charmap.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ tinyMCEPopup.requireLangPack(); var charmap = [ [' ', ' ', true, 'no-break space'], ['&'...
import React from "react"; import Document, { Head, Main, NextScript } from "next/document"; import { ServerStyleSheets } from "@material-ui/core/styles"; import theme from "../lib/theme"; export default class MyDocument extends Document { render() { return ( <html lang="en"> <Head> {/* P...
(function() { if (typeof console === "undefined" || console === null) { console = { log: function() {} }; } if(jQuery){ init(jQuery); }else{ var s = document.createElement('script'); s.type = 'text/javascript'; s.onload = function(){init(jQuery.noConflict(true));}; s.src = 'https://ajax...
import React, { memo } from "react"; import { StyleSheet, Text, View, Image } from "react-native"; import GlobalStyle from "../../style/GlobalStyle"; const NoSearchItem = ({}) => { return ( <View style={[GlobalStyle.flex, styles.container]}> <Image source={require("../../../assets/no-tokens.png")} /> ...
var searchData= [ ['raw_5fsetup_5fbuiltins',['raw_setup_builtins',['../def__proto_8h.html#ae56e53d1b3dd871c8bbc47a38fbde85b',1,'raw_setup_builtins():&#160;raw.c'],['../raw_8c.html#ae56e53d1b3dd871c8bbc47a38fbde85b',1,'raw_setup_builtins():&#160;raw.c']]], ['read_5fchar',['read_char',['../def__proto_8h.html#ab62ecc3...
var localizedStrings = {} $(document).ready(function() { getLocalizedString(['BUTTON_ADD','BUTTON_EDIT','BUTTON_DONE','BUTTON_REMOVE','CONFIG_SAVED','ACTION_SUCCESSFUL','ADMIN_SECTION_REMOVE_PROMPT','ADMIN_SECTION_ADD_PROMPT']); $('#message').hide(); }); function getLocalizedString(key) { if (...
import {ERROR_DICTIONARY} from '../../constants'; /** * Extended Error object to signify password related errors */ export default class PasswordError extends Error { /** * * @constructor * @param {String} [message] * @param {Object} [error] */ constructor(message = ERROR_DICTIONARY.PASSWORD.MESSAGE, e...
var FIFO = require('fifo'); var once = require('once'); var assign = require('object-assign'); var createProcesor = require('maximize-iterator/lib/createProcessor'); var fifoRemove = require('./fifoRemove'); var drainStack = require('./drainStack'); var processOrQueue = require('./processOrQueue'); function StackBas...
import React from 'react' import { navigate } from 'gatsby' const SecondPage = () => ( <div> <h1>Hi from the second page</h1> <p>Welcome to page 2</p> <Link navigate="/">Go back to the homepage</Link> </div> ) export default SecondPage
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var child_process = require("child_process"); var gutil = require("gulp-util"); var util = require("../util/util"); var PLUGIN_NAME = 'gulp-sme-ng2'; function getArguments() { return process.argv.slice(2); } function spawnNgCommand(command...
var foo = "bar"; function bar(){ console.log(foo) var foo = "baz"; } // function bar(foo){ // foo = "bam"; // bam = "yay"; // } bar()
"use strict"; ns("plugins.graph.metrics"); (function() { analyzr.plugins.graph.metrics.Metric = analyzr.plugins.graph.Graph.extend({ init: function(target, attrs) { this.scales = {}; this.brushHeight = attrs.brushHeight || 50; this.brushMargin = attrs.brushMargin || ...
/* * OpenSeadragon * * Copyright (C) 2009 CodePlex Foundation * Copyright (C) 2010-2013 OpenSeadragon contributors * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * - Redistributions of source code must re...
import React from "react" import classes from "./Dialog.module.css" import { close } from "../../images" let dialog = ({ display, onClose, children }) =>{ return ( <div className={ [classes.container, (display ? classes.displayed : "")].join(" ") }> <div className={ classes.background } onClick...
import PropTypes from 'prop-types'; import React from 'react'; const DEFAULT_SIZE = 36; /** * Implements an Icon component that takes a loaded SVG file as prop and renders it as an icon. */ export default class Icon extends React.PureComponent { static propTypes = { color: PropTypes.string, heig...
const { override, fixBabelImports, addLessLoader } = require('customize-cra'); module.exports = override( fixBabelImports('import', { libraryName: 'antd', libraryDirectory: 'es', style: true, }), addLessLoader({ lessOptions: { javascriptEnabled: true, }, ...
function idate (format, timestamp) { // http://kevin.vanzonneveld.net // + original by: Brett Zamir (http://brett-zamir.me) // + input by: Alex // + bugfixed by: Brett Zamir (http://brett-zamir.me) // + improved by: Theriault // + derived from: date // + derived from: gettimeofday // * ...
{ "metadata" : { "formatVersion" : 3, "generatedBy" : "Blender 2.60 Exporter", "vertices" : 444, "faces" : 884, "normals" : 444, "colors" : 0, "uvs" : 322, "materials" : 1, "morphTargets" : 24 ...
'use strict' const merge = require('webpack-merge') const prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"' })
/** * @license * Copyright 2016 Google 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 ...
const Path = require('path'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: { app: Path.resolve(__dirname, '../src/scripts/index.js'), }, output: { ...
/* * * HistoryPage reducer * */ import { fromJS } from 'immutable'; import { DEFAULT_ACTION, } from './constants'; const initialState = fromJS({}); function historyPageReducer(state = initialState, action) { switch (action.type) { case DEFAULT_ACTION: return state; default: return state; ...
import React, { useEffect, useState } from 'react'; import { ErrorMessage, Field } from 'formik'; import Select from 'react-select'; import { reactSelectStyles } from '../../../../../styles/ReactSelectStyles'; const Tracks = ({ track_id, track_options }) => { // Tracks uses state to hold the current selection // ...
module.exports = { globals: { ENV_DEV_NAME: "development", ENV_PROD_NAME: "production" }, transform: { "^.+\\.[tj]s?$": "babel-jest" }, projects: ["./server/jest.config.js"] };
const { User } = require('../models'); const logger = require('../../utils/winstonUtil')('info', 'sessionController'); const sessionController = { store: async (req, res) => { try { if (req.body && req.body.email && req.body.password) { const { email, password } = req.body; const user = awa...
const express = require('express'), pool = require('../database/database'), router = express.Router(), middleware = require('../middleware/index'); // BOOKS ROUTES // Show all Books router.get('/', (req, res) => { pool.query( `SELECT b.id, b.ISBN, b.title, b.title, b.author, b.publisher, b.image_url, b.ra...
/* eslint-disable prettier/prettier */ import styled from 'styled-components/native'; import { getStatusBarHeight } from 'react-native-iphone-x-helper'; export const Container = styled.View` flex: 1; background: #8B10AE; padding-top: ${getStatusBarHeight()}px; justify-content: center; `; export const Content ...
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */
angular.module('headerModule') .directive('headerDirective', [function() { return { restrict: 'E', templateUrl: '/javascripts/module/headerModule/headerDirective/headerDirective.html', replace: true, controller: 'headerController' }; }]);
define( function() { return []; } );
var mongoose = require('mongoose'); var CommentSchema = require('../schemas/comment'); var Comment = mongoose.model('Comment' , CommentSchema); module.exports = Comment;
sap.ui.define([ "sap/ui/core/mvc/Controller", "gitman/web/modules/GitAPI.module", "sap/ui/model/json/JSONModel" ], function (Controller, GitAPI, JSONModel) { "use strict"; return Controller.extend("gitman.web.controller.SupportedPlatform", { /** * Called when a controller is instantiated and its View contro...
"use strict"; var csrfToken = ""; var handleDomo = function handleDomo(e) { e.preventDefault(); $("#domoMessage").animate({ width: 'hide' }, 350); if ($("#domoName").val() == '' || $("#domoAge").val() == '' || $("#domoHeight").val() == '') { handleError("RAWR! All fields are required"); return false; ...
/** * Created by PanJiaChen on 16/11/18. */ /** * @param {string} path * @returns {Boolean} */ export function isExternal(path) { return /^(https?:|mailto:|tel:)/.test(path) } /** * @param {string} str * @returns {Boolean} */ export function validUsername(str) { const valid_map = ['admin', 'editor','stati...
"use strict"; console.log(name);
/* global module:false */ module.exports = function(grunt) { var port = grunt.option('port') || 8000; var base = grunt.option('base') || '.'; // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*!\n' + ' * reveal.js <%= pkg.version %> (<%= grunt.te...
/** * User will be created using loginradius api */ let router = require('./../../route.js'); let config = require(router.config); var lrv2 = require('loginradius-sdk')(config); module.exports = { command: async function (accountCreateModel, cb) { /** * @param {object} accountCreateModel - js...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
const request = require('request'); const Hospital = require('../models/hospital.model'); const Managers = require('../models/hospital-managers.model'); const wechatHospital = require('./wechat-hospital.controller'); const wechatPatient = require('./wechat-patient.controller'); const Util = require('./utils'); // 环境变量...
/* test custom filename and content-type: re: https://github.com/felixge/node-form-data/issues/29 */ var common = require('../common'); var assert = common.assert; var http = require('http'); var fs = require('fs'); var FormData = require(common.dir.lib + '/form_data'); var IncomingForm = require('formidable').Incomi...
import { command, showMessage } from '../../utils/helpers' import sudo from 'sudo-prompt' export default { template: `<li> {{ name }} <input type="checkbox" class="switch" :id="'s_' + name" :checked="isRun" @change="statusChange" /> <label :for="'s_' + name" class="fr"></label> </li>`, props: ['...
import styled from 'styled-components'; import {COLORS, SemiBoldText} from 'styles'; import {FlatList} from 'react-native'; import {Illustration} from 'components'; const Container = styled.View` background-color: ${COLORS.WHITE}; width: 100%; border-radius: 15px; elevation: 4; flex: 1; padding: 10px 0; `;...
const { getSplittedDataFromFile, str2num, range, sum } = require('../utilities'); const d = str2num(getSplittedDataFromFile(8, '')); const W = 25, H = 6; const N = d.length / (W * H); const layers = range(0, N).map(() => Array(H).fill(null).map(() => Array(W).fill(-1))); d.forEach((el, i) => { const z = Math.flo...
/** * @version 0.9 */ import DBInterface from '../DB/DBInterface' import Log from '../../../services/Log/Log' import walletDS from '../Wallet/Wallet' const tableName = 'app_news' class AppNews { /** * @param {string} appNews.id * @param {string} appNews.newsName */ setRemoved = async (appNe...
import gulp from 'gulp'; import plugins from 'gulp-load-plugins'; import browser from 'browser-sync'; import rimraf from 'rimraf'; import panini from 'panini'; import yargs from 'yargs'; import lazypipe from 'lazypipe'; import inky from 'inky'; import fs from 'fs'; import siphon from 'siphon-media-query'; import beep f...
"use strict"; if (typeof Promise !== "function" || typeof Promise.reject !== "function" || typeof Promise.resolve !== "function") { throw new Error("a standard Promise implementation is required (https://github.com/JsCommunity/promise-toolbox#usage)"); } var isPromise = require("./isPromise"); var _require = requi...
/** * Acces control * @author Roman Stoian */ 'use strict'; var accessControl = (function () { var env; function CModalAccessControl ( ok, exit, noExit ) { var self = this, html = element('table', {className:'main maxw'}, [ element('tr', {}, [ element('td', {className:'name'}, _('Password')), ...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENS...
/* * A comparison operator, greater than, smaller than, etc. */ // A map of Blueberry operators to JS operators var operatorMap = { '==': '===', '!=': '!==', '>' : '>', '<' : '<', '>=': '>=', '<=': '<=' }; module.exports = function(obj) { if(obj.type !== 'COMPARISON') { throw "This is not a compar...
import Domain from '@/api/domain' import Clients from '@/api/clients' const state = { domain: [], currentDomain: { clients: [], }, totalNumber: 0, } const getters = { getDomains: _state => _state.domain || [], getDomain: _state => _state.currentDomain, getTotalNumberOfDomains: _state => _state.total...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
new Crawler({ appId: "", apiKey: "", rateLimit: 8, startUrls: ["https://mayahi.net/"], renderJavaScript: false, sitemaps: ["https://mayahi.net/sitemap.xml"], exclusionPatterns: [], ignoreCanonicalTo: false, discoveryPatterns: ["https://mayahi.net/**"], schedule: "at 10:00 on Thursday", actions: [ ...
/** * @description CircleQuestion SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor....
/** * Antenny API * This is an api that allows you to interact with the Antenny platform. It allows you to manage your clients and subscriptions. * * The version of the OpenAPI document: 1.0.0 * Contact: admin@antenny.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech)...
import * as helpers from '../helpers.js' const formatResult = (result) => Object.assign(result, { formattedPrice: helpers.formatPrice(result.price.amount) }) const markCheapest = (results) => { if (!results) return null // add handy short-hand attributes like "duration" for (const journey of results) { const dep...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.paginateListEntityRecognizers = void 0; const Comprehend_1 = require("../Comprehend"); const ComprehendClient_1 = require("../ComprehendClient"); const ListEntityRecognizersCommand_1 = require("../commands/ListEntityRecognizersCommand"...
var faker = require("faker"); var randomName = faker.name.findName(); // Rowan Nikolaus var randomEmail = faker.internet.email(); // Kassandra.Haley@erich.biz var randomCard = faker.helpers.createCard(); // random contact card containing many properties var randomProductName = faker.commerce.productName(); var rando...
import firebaseConfig from "./config"; import { navigate } from 'gatsby' class Firebase { constructor(app) { if(!firebaseInstance) { app.initializeApp(firebaseConfig); this.auth = app.auth(); this.db = app.firestore(); this.functions = app.functions(); this.storage = app.storage();...
"use strict" const iconSources = [ "https://urbaneproduktion.ruhr/wp-content/uploads/2022/01/Massnahmentool/img/personalCost.png", "https://urbaneproduktion.ruhr/wp-content/uploads/2022/01/Massnahmentool/img/investmentCost.png", "https://urbaneproduktion.ruhr/wp-content/uploads/2022/01/Massnahmentool/img/t...
const ustclugv1 = require("./ustclug-v1"); module.exports = async function () { const site = await ( await fetch("https://mirrorz.org/static/json/site/xtom-hk.json") ).json(); const data = await ustclugv1( "https://r.zenithal.workers.dev/https://mirrors.xtom.com.hk/", "https://mirrors.xtom.com.hk/api...
let testimonies = document.getElementsByClassName("testimony"); let slide = 0; let rightArr = document.getElementById("right-arr"); let leftArr = document.getElementById("left-arr"); testimonies[slide].style = "display: flex"; rightArr.addEventListener("click", rightSlide); leftArr.addEventListener("click", leftSlide);...
goog.provide('plugin.file.gpx.GPXDescriptor'); goog.require('os.data.FileDescriptor'); goog.require('os.layer.LayerType'); goog.require('os.style'); goog.require('plugin.file.gpx.GPXProvider'); /** * GPX file descriptor. * * @extends {os.data.FileDescriptor} * @constructor */ plugin.file.gpx.GPXDescriptor = fun...
import EXIF from 'exif-js'; import { wgs2bd } from '@/util/geo'; import './index.css'; let map; function loadMap() { const tag = document.createElement('script'); tag.src = "https://api.map.baidu.com/api?v=2.0&ak=xKN1lGY9lNDXBDQ4WPdTmYsZ73hww0UU&callback=_init_story"; const body = document.body || documen...
new Vue({ el:'#lab', data:{ test: '', tests: [], consultancy_id: '', doctor_id: '', user_id: '', lab_tech_id: '', test_result:'', test_sample:'', test_required: '', users: [], user: '', doctor: '', patient:'...
import AgeCalculator from './../src/ageCalculator.js'; describe('Age Calculator', () => { let user; let user2; let user3; beforeEach (() => { user = new AgeCalculator(25, 2, 6, 2); }); test('should create a class storing the users Earth age and life expectancy', () => { expect(user.age).toEqual(2...
const fs = require('fs-extra'); const path = require('path'); const distPath = path.join(process.cwd(), 'dist'); fs.emptyDirSync(distPath);
import React from 'react' import * as S from './styles' const Loading = () => { return <S.Wrapper>Loading...</S.Wrapper> } export default Loading
/** * @module node * @submodule node-pluginhost */ /** * Registers plugins to be instantiated at the class level (plugins * which should be plugged into every instance of Node by default). * * @method plug * @static * @for Node * @param {Function | Array} plugin Either the plugin class, an array of plugin cl...
// Search script generated by doxygen // Copyright (C) 2009 by Dimitri van Heesch. // The code in this file is loosly based on main.js, part of Natural Docs, // which is Copyright (C) 2003-2008 Greg Valure // Natural Docs is licensed under the GPL. var indexSectionsWithContent = { 0: "_abcdefghilmnopqrstuvwx~", 1...
var DDATest = DDATest || {}; DDATest.MeteorShower = function(game) { }; DDATest.MeteorShower.prototype.create = function() { // constants this.MAX_LEVELS = 20; this.STAR_VELOCITY = 10; this.LEVEL_DURATION = Phaser.Timer.SECOND * 45; this.COUNTDOWN_DURATION = Phaser.Timer.SECOND * 5; this.STAR_INTERVAL = ...
'use strict'; import when from 'when'; import { EOL } from 'os'; import { fileURLToPath } from 'url'; import { dirname, join, sep, sep as nativeSeparator, normalize } from 'path'; import { spawning, isUndefined, isArray, isString, isWindows, isBool } from 'node-sys'; const __filename = fileURLToPath(import.meta.url);...
/** * @ignore * dom-attr * @author yiminghe@gmail.com, lifesinger@gmail.com */ KISSY.add('dom/base/attr', function (S, DOM, undefined) { var doc = S.Env.host.document, NodeType = DOM.NodeType, docElement = doc && doc.documentElement, EMPTY = '', nodeName = DOM.nodeName, ...
import React from 'react'; import GithubIcon from './github_icon'; import { Button, IconButton } from '../../components/button'; const ButtonTest = () => ( <section> <h5>Buttons</h5> <p>lorem ipsum...</p> <Button href='http://github.com/javivelasco' target='_blank' raised> <GithubIcon /> Github ...
module.exports = (id,bot) => { console.log(`Shard ${id} ready!`); };
/*jshint undef: false, unused: false*/ /*globals w:true, h:true, loader:true, ultimo:true, txt:true, clickTime:true, moveScrollPasso:true, moveScrollObject:true, moveScrollLimit:true, moveScrollTempo:true, moveScrollInicio:true, showTxt:true, controle:true, stage:true, canvas:true, rybCtn:true, controlsCtn:true, loadCt...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
(function($) { return { addModuleHandler: function(moduleId, moduleName) { $('.dnnModuleDialog').on('click', ' .dnnModuleItem[data-moduleid=' + moduleId + ']', function() { window.forceLoadScriptsInSingleMode = true; }); } }; })(jQuery);
import React, {Component} from 'react'; import { FlatList, ActivityIndicator, View } from 'react-native'; import Reservation from './reservation'; import PropTypes from 'prop-types'; import XDate from 'xdate'; import dateutils from '../../dateutils'; import styleConstructor from './style'; class ReactComp exten...
exports.run = async ({ client, message }) => { client.send('yes', message, 'success!'); client.send('wait', message, 'working!'); client.send('no', message, 'failed!'); client.send('test', message, 'error!'); }; exports.config = { enabled: true, required: false, aliases: ['t'], permLeve...
/* eslint-env node */ module.exports = { useYarn: true, scenarios: [ { name: 'ember-lts-2.8', bower: { dependencies: { 'ember': 'components/ember#lts-2-8' }, resolutions: { 'ember': 'lts-2-8' } }, npm: { devDependencies: { ...
import { webFrame } from 'electron' import DatArchive from './lib/web-apis/dat-archive' import UserSession from './lib/web-apis/user-session' import beaker from './lib/web-apis/beaker' import { setup as setupLocationbar } from './webview-preload/locationbar' import { setup as setupPrompt } from './webview-preload/promp...
import inputBase from './input-base' export default { mixins: [inputBase], watch: { value (value, oldValue) { // 父组件收到input事件后会通过v-model改变value参数的值 // 然后此处会watch到value的改变,发出change事件 // change事件放在此处发射的好处是,当外部修改value值时,也能够触发form-data-change事件 this.onChange(value) if (!this.isValueCha...
export default { run(canvasEl) { const canvas = canvasEl; const ctx = canvas.getContext('2d'); const devicePixelRatio = window.devicePixelRatio || 1; const backingStorePixelRatio = ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio |...
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
'use strict'; const key = 'YOURAPIKEY'; const SparkPost = require('sparkpost'); const client = new SparkPost(key); // Promise client.sendingDomains.get('example1.com').then((data) => { console.log('Congrats you can use our client library!'); console.log(data); }).catch((err) => { console.log('Who...
const express = require('express'); const emojis = require('./emojis'); const marsWeather = require('./marsWeather'); const router = express.Router(); router.get('/', (req, res) => { res.json({ message: 'API - 👋🌎🌍🌏' }); }); router.use('/emojis', emojis); router.use('/mars-weathers', marsWeather); modul...
// import { mat3, vec3, vec4 } from 'gl-matrix' import { gltfTextureInfo } from './texture.js' import { jsToGl, initGlForMembers } from './utils.js' import { GltfObject } from './gltf_object.js' import { Material, Vec3, Vec4, Mat3, Color } from '@zeainc/zea-engine' class gltfMaterial extends GltfObject { constructo...
/*! ========================================================= * Argon Design System React - v1.1.0 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-design-system-react * Copyright 2020 Creative Tim (https://www.creative-tim.com) * Licensed under MIT ...
const express = require('express'); const path = require('path'); const router = express.Router(); router.get('/', (req, res) => { res.sendFile(path.join(__dirname, '../../../frontend/index.html')); }); router.use('/admin', require('./admin')); module.exports = router;
const utils = require('../utils/utils') const PARTS_REG_EXP = /([^.[\]\s]+)/g const cache = new Map() const EMPTY = utils.deepFreeze({}) function get(data, path) { data = data || EMPTY if (!path) { return data } const tokens = tokenize(path) for (let i = 0; i < tokens.length; i++) { if (data == n...
angular.module('gridshore.c3js.chart') .directive('chartTooltip', function () { var tooltipLinker = function (scope, element, attrs, chartCtrl) { var tooltip = null; var show = attrs.showTooltip; var hideTitle = attrs.hideTooltipTitle; var joined = att...
/*eslint-disable*/ import React from "react"; import classNames from "classnames"; import PropTypes from "prop-types"; import { NavLink } from "react-router-dom"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import Drawer from "@material-ui/core/Drawer"; import Hidden from "@ma...
import Relay from 'react-relay'; export default class TripPlannerRemoveCountryMutation extends Relay.Mutation { getMutation() { return Relay.QL`mutation{removeCountryTripPlanner}`; } getVariables() { return { tripId: this.props.tripId, tripKey: this.props.tripKey, removedIndex: this.pr...
const db = require("../models"); const Survey = db.survey; const Op = db.Sequelize.Op; const { QueryTypes } = require('sequelize'); module.exports = { create: (survey) => { return new Promise((resolve, reject) => { Survey.create(survey) .then((data) => { resolve(data); }) ....