text stringlengths 2 1.05M |
|---|
(function(mask, Compo){
// source vars
var __Compo = typeof Compo !== 'undefined' ? Compo : (mask.Compo || global.Compo),
__dom_addEventListener = __Compo.Dom.addEventListener,
__registerHandler = mask.registerHandler,
__registerAttr = mask.registerAttrHandler,
__registerUtil = mask.registerUt... |
var cursor : Texture2D;
var cursorOffset : Vector2;
/*
function Start() {
Screen.showCursor = false;
}
*/
function OnGUI () {
if(Screen.lockCursor) {
GUI.depth = -999;
//GUI.Label(Rect (Event.current.mousePosition.x - cursorOffset.x, Event.current.mousePosition.y - cursorOffset.y, cursor.width, cursor.height), ... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
import { Box, Container, Grid, makeStyles, Typography } from "@material-ui/core";
import React from "react";
import TeamCard from "../TeamCard";
const mentorList = [
{
image: "assets/members/amit.png",
name: "Amit Kumar",
},
{
image: "assets/members/anuj.png",
name: "Anuj Garg",
},
{
im... |
const userAdapter = require('./../adapter');
const logger = require('./../../../infrastructure/logger');
const { safeUser } = require('./../../../utils');
const searchV2 = async (req, res) => {
try {
const users = await userAdapter.getUsers(req.body.ids.split(','), req.header('x-correlation-id'));
if (!user... |
import React from 'react';
export default function SvgCustomPay(props) {
return (
<svg
width="1em"
height="1em"
viewBox="0 0 1000 1000"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M656.3 781.3H343.8... |
require([ "jquery", "public/assets/javascripts/lib/components/lightbox.js" ], function($, LightBox) {
"use strict";
describe("LightBox", function() {
var lightbox;
beforeEach(function() {
loadFixtures("lightbox.html");
lightbox = new LightBox({ customClass: "lightbox-foo" });
});
d... |
//// [derivedClassOverridesPublicMembers.ts]
var x: { foo: string; }
var y: { foo: string; bar: string; }
class Base {
a: typeof x;
b(a: typeof x) { }
get c() { return x; }
set c(v: typeof x) { }
d: (a: typeof x) => void;
static r: typeof x;
static s(a: typeof x) { }
static get t() { ... |
/*
jQWidgets v2.7.0 (2013-Feb-08)
Copyright (c) 2011-2013 jQWidgets.
License: http://jqwidgets.com/license/
*/
(function(a){a.jqx.jqxWidget("jqxListBox","",{});a.extend(a.jqx._jqxListBox.prototype,{defineInstance:function(){this.disabled=false;this.width=null;this.height=null;this.items=new Array();this.multiple=false... |
import React, { Component } from 'react';
import PropTypes from 'prop-types'
import {connect } from 'react-redux';
import {getCustomers} from '../../store/actions/customer'
import './customers.css';
class Customers extends Component {
static propTypes = {
getCustomers: PropTypes.func.isRequired,
customers: ... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
const alwaysImportedTests = [require.resolve('../test/functional/config.js')]... |
/**
* Bio component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import { Link, useStaticQuery, graphql } from "gatsby"
import Image from "gatsby-image"
import { rhythm } from "../utils/typography"
const Bio ... |
'use strict';
"use strict";
const jws = require('jws');
const { exec } = require('child_process');
const { readFileSync } = require('fs');
const path = require('path');
// Configuration file location for IBM Cloud CLI.
// This will contain the current IAM tokens for the user.
const DEFAULT_CONFIG_LOCATION = `.bluemi... |
// Copyright 2014 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.
import '../../core/dom_extension/dom_extension.js';
import '../../Images/Images.js';
import * as Platform from '../../core/platform/platform.js'; // eslint... |
import React from 'react';
import { createPortal } from 'react-dom';
import { Spin } from 'antd';
import PropTypes from 'prop-types';
import './style/index.less';
/**
* MyLoading 组件
* @param {string} tip - loading的文本描述
* @param {string} size - size控制Spin的大小
* @param {boolean} loading - loading控制是否展示
* @param {bo... |
var MolViewer = function(customConfig, customInfo) {
/**
* http://www.w3.org/wiki/JavaScript_best_practices
* configuration options
*/
var config = {
CSS : {
IDs : {
parentDivId : '',
jmolcontent : 'divJmolcontent',
btnReset : 'btnReset',
viewOptions : 'viewOptions',
PfamDomains : 'Pfam... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Animated } from 'react-native';
import withTheme from '../../../Theme/withTheme';
import styles from './Undrline.styles';
class Underline extends Component {
static propTypes = {
color: PropTypes.string,
value: PropTypes.... |
import iPol from '../ipol';
import AContainer from './acontainer';
import ASprite from './asprite';
import A9Slice from './a9slice';
import Fipps from './fippstext';
import { callMaybe, tapHandler } from './util';
export default function CButton(play, ctx, bs) {
const { textures } = ctx;
const mhud = textures['m... |
import fs from './fs'
// List all files and folders within given diretory
export function fsAPIgetItemByPath(path) {
let components = path.split('/')
const name = components.pop()
const parent = components.join('/')
fs.files.where({parent: parent, name: name}).first((item) => {
return item
})
}
|
/**
* @private
* Flyweight object to process the attributes of a sprite.
* A single instance of the AttributeDefinition is created per sprite class.
* See `onClassCreated` and `onClassExtended` callbacks
* of the {@link Ext.draw.sprite.Sprite} for more info.
*/
Ext.define('Ext.draw.sprite.AttributeDefiniti... |
import LoveIllustration from './LoveIllustration';
export default LoveIllustration;
|
/**
* Do not modify this file unless you have too
* This file has UI handlers.
*/
// eslint-disable-next-line no-unused-vars
function connect() {
$('#connectButton').prop('disabled', true);
var computation_id = $('#computation_id').val();
var party_count = parseInt($('#count').val());
if (isNaN(party_count... |
const webpack = require('webpack')
const MemoryFS = require('memory-fs')
const FS = require('fs')
const webpackDevMiddleware = require('webpack-dev-middleware')
const webpackHotMiddleware = require('webpack-hot-middleware')
const VueCliConfiger = require('@vapper/configer-vue-cli')
const Vapper = require('../lib/index'... |
/*jslint white: true, browser: true, windows: true, forin: true, undef: true,
eqeqeq: true, plusplus: true, bitwise: true, regexp: true, immed: true */
/*global window: false */
/**!
* @license FusionCharts JavaScript Library
* Copyright FusionCharts Technologies LLP
* License Information at <http://www.fusionc... |
/**
* @license jqGrid French Translation
* Tony Tomov tony@trirand.com with changes by Laurent Rajchenbach.
* http://trirand.com/blog/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
**/
/*jslint white: true */
... |
/**
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'use stri... |
// Copyright 2021 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 ... |
require('./lib/WebAudioRecorder');
require('./lib/WebAudioRecorderMp3');
require('./lib/WebAudioRecorderOgg');
require('./lib/WebAudioRecorderWav');
require('./lib/Mp3LameEncoder.min');
require('./lib/OggVorbisEncoder.min');
require('./lib/WavAudioEncoder.min');
module.exports = 'WebAudioRecorder'; |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _utils = require("./utils");
var _errors = require("@ledgerhq/errors");
var _bignumber = require("bignumber.js");
var _rlp = require("rlp");
/***************************************************************... |
'use strict';
var _api = require('./api');
var _api2 = _interopRequireDefault(_api);
var _base_model = require('./base_model');
var _base_model2 = _interopRequireDefault(_base_model);
var _isString = require('lodash/isString');
var _isString2 = _interopRequireDefault(_isString);
var _isFunction = require('lodash... |
// Generated on 2014-03-05 using generator-angular 0.7.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Load grunt tasks ... |
define("ace/snippets/javascript",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='# Prototype\nsnippet proto\n ${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n ${4:// body...}\n };\n# Function\nsnippet fun\n function ${1?:function_name}(${2:argument}) {\n ${3://... |
/// init lua api
function Love_Thread_CreateTable (G) {
var t = lua_newtable();
var pre = "love.thread.";
G.str['love'].str['thread'] = t;
t.str['getThread'] = function () { return NotImplemented(pre+'getThread'); }
t.str['getThreads'] = function () { return NotImplemented(pre+'getThreads'); }
t.str['newT... |
function solve() {
let $singMeUpButton = $('.courseFoot button');
$singMeUpButton.on('click', function () {
let $courses = $('.courseBody ul li');
let $educationForm = $('#educationForm input');
let coursePrices = {
fundamentals: 170,
advanced: 180,
applications: 19... |
/*!
* OpenUI5
* (c) Copyright 2009-2019 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['sap/base/Log','./library','sap/ui/core/Control','sap/ui/core/delegate/ItemNavigation','./RadioButton','./RadioButtonGroupRenderer','sap/ui/core/library']... |
var Model = require('mongoose').Model
, ms = require('ms')
/**
* Exports.
*/
module.exports = exports = ttl;
function ttl (schema, options) {
options || (options = {});
var key = '__ttl'
, overridden = '__ttlOverride'
, ttl = options.ttl || 60000
, interval = options.interval || 60000*5
, reap = fal... |
var THREEx = THREEx || {}
THREEx.OutlineHelper = function(object3d, renderer, camera, thickness){
thickness = thickness !== undefined ? thickness : 8
// TODO handle dilatation
// compute the object height
var boundingBox = new THREE.Box3().setFromObject(object3d)
var objectHeight= boundingBox.size().y
// bui... |
import {request} from "./ruquest";
//将home中全部的url在home.js中管理
export function getHomeMultidata() {
return request({
url: '/home/multidata'
})
}
export function getHomeGoods(type, page) {
return request({
url: '/home/data',
params: {
type,
page,
}
})
}
|
const Database = require("@replit/database")
const db = new Database()
module.exports = (client, message) => {
require("../scripts/dm.js")(message,client)
const Discord = require('discord.js');
if (message.author.bot) return;
function x(prefix){
if (message.content.indexOf(prefix) !== 0) return;
con... |
const fs = require('fs');
const xpath = require('xpath-html');
// Assuming you have an html file locally,
// Here is the content that I scraped from www.shopback.sg
const html = fs.readFileSync(`${__dirname}/shopback.html`, 'utf8');
// Don't worry about the input much,
// you are able to use the HTML response of an H... |
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
/* Your site config here */
plugins: [
`gatsby-plugin-react-helmet`,
]
}
|
import Utils from "./utils.js";
let Model = {
api: undefined,
view: ko.observable("signin"),
signin: {
username: ko.observable(""),
password: ko.observable(""),
error: ko.observable(false)
},
signup: {
username: ko.observable(""),
password: ko.observable(""... |
export * from 'bpmn-js/test/helper';
import {
insertCSS
} from 'bpmn-js/test/helper';
insertCSS('diagram-js.css', require('bpmn-js/dist/assets/diagram-js.css'));
insertCSS('bpmn-embedded.css', require('bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css'));
insertCSS('diagram-js-testing.css',
'.test-container .r... |
/*
MIT License
Copyright (c) 2018 monya-wallet zenypota
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 rights
to use, copy, modify, me... |
module.exports = new Date(1975, 3, 24)
|
/*
* Copyright 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
*/
/* jshint node: true, devel: true */
'use strict';
const
bodyParser = require('body-parser'),
config = require('c... |
import { useState } from "react";
import { AiOutlineCamera, AiOutlineDelete } from "react-icons/ai";
import { BiCopy } from 'react-icons/bi';
import { connect } from 'react-redux';
import {
delScene,
changeNameScene,
duplicateScene,
createThumbnail,
changeCurScene,
changeCurLayer,
} from '../../../redux/act... |
export default [
//possible future migrations go here
]
|
const { test } = require("tap");
const sandbox = require("@log4js-node/sandboxed-module");
const util = require("util");
const recording = require("../../lib/appenders/recording");
test("log4js", batch => {
batch.test("shutdown should return appenders and categories back to initial state", t => {
const stringify... |
//>>built
define("dojox/data/QueryReadStore",["dojo","dojox","dojo/data/util/sorter","dojo/string"],function(f,p){return f.declare("dojox.data.QueryReadStore",null,{url:"",requestMethod:"get",_className:"dojox.data.QueryReadStore",_items:[],_lastServerQuery:null,_numRows:-1,lastRequestHash:null,doClientPaging:!1,doClie... |
import { defineMessages } from 'react-intl';
const messages = defineMessages({
emailPlaceholder: {
id: 'EmailPasswordSignUpForm.emailPlaceholder',
defaultMessage: 'Enter your email',
description: 'Placeholder for the email input in the sign up form',
},
passwordPlaceholder: {
... |
if ( (typeof module === "object" || typeof module === "function") && typeof module.exports === "object" ) {
// Expose jQuery as module.exports in loaders that implement the Node
// module pattern (including browserify). Do not create the global, since
// the user will be storing it themselves locally, and globals ar... |
import axios from "axios";
//Revealing Module Pattern
const F1API = (function () {
console.log("F1API created.");
const apiEndpoint = "http://ergast.com/api/f1";
//public methods
const getConstructorDrivers = async (season, constructorId) => {
try {
const response = await axios.get(
`http://... |
!function(e){"use strict";function t(t,a){var n=[];return e.forEach(t,function(t){n.push(e.isFunction(a)?a(t):t[a])}),n}var a=[].indexOf||function(e){for(var t=0,a=this.length;a>t;t++)if(t in this&&this[t]===e)return t;return-1};e.module("pickadate",[]).provider("pickadateI18n",function(){var e={prev:"prev",next:"next"... |
import React from 'react';
import Icon from '../Icon';
/* eslint-disable react/jsx-props-no-spreading */
export default function IconCamera(props) {
return (
<Icon {...props}>
<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z" />
<circle cx="12" cy="13" r="4" ... |
const net = require("net");
const yargs = require("yargs");
const { hideBin } = require("yargs/helpers");
const { blake2bInit, blake2bUpdate, blake2bFinal } = require("blakejs");
const NO_CONNECTION = 14;
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.rand... |
const core = require('@actions/core')
const versionSeparator = '\n## '
const semverLinkRegex = /^\[v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-?((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?\]/
const unreleasedLinkRegex = /^\[unre... |
'use strict'
var log = require('npmlog')
var path = require('path')
var Promise = require('promise')
var fs = require('vigour-fs/lib/server')
var _ = require('lodash')
var readJSON = Promise.denodeify(fs.readJSON)
var editXML = Promise.denodeify(fs.editXML)
module.exports = exports = function () {
if (this.builds) ... |
import React, { useState } from 'react';
import { withRouter } from 'react-router-dom';
var browserError = false;
try {
var SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
var recognition = new SpeechRecognition();
recognition.lang = 'en-US';
} catch (error) {
browserError = tru... |
(function() {
"use strict";
var a = window.anima = window.a = {};
a.world = function() {
return new World();
};
a.timeline = function() {
return new Timeline();
};
if (typeof module === "object" && typeof module.exports === "object") {
module.exports = a;
} else if (typeof define === "functi... |
import React from "react";
import cx from "classnames";
import "./_background.scss";
import { SettingsContext } from "../../contexts";
const Background = () => (
<SettingsContext.Consumer>
{context =>
context.bgImg || context.bgColor ? (
<div
className={cx("Background", {
"Ba... |
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var React=_... |
function(t,e,o){"use strict";var r=t("./ui.scheduler.work_space.grouped.strategy"),i="dx-group-column-count",n=10,a=1,l=r.inherit({prepareCellIndexes:function(t,e,o){var r=t.rowIndex+e*this._workSpace._getRowCount();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(r+=e,o||(r+=1)),{... |
const path = require('path')
const express = require('express')
const React = require('react')
const Application = require('./components/Application.js').default
const server = express()
server.get('/', (req, res) => {
const ampHtmlRenderer = require('../bundle/AmpHtmlRenderer.js')
res.send(
ampHtmlRenderer(... |
import { useEffect } from "react";
// react-router-dom components
import { useLocation, NavLink } from "react-router-dom";
// prop-types is a library for typechecking of props.
import PropTypes from "prop-types";
// @mui material components
import List from "@mui/material/List";
import Divider from "@mui/material/... |
import PropTypes from "prop-types";
import { Icon } from "@iconify/react";
import eyeFill from "@iconify/icons-eva/eye-fill";
import { Link as RouterLink } from "react-router-dom";
import shareFill from "@iconify/icons-eva/share-fill";
import messageCircleFill from "@iconify/icons-eva/message-circle-fill";
// material
... |
const {EventTarget} = require('./Event');
class FileReader extends EventTarget {
constructor() {
super();
this.result = null;
}
get onload() {
return _elementGetter(this, 'load');
}
set onload(onload) {
_elementSetter(this, 'load', onload);
}
get onerror() {
return _elementGetter(t... |
import React from "react";
import { rhythm } from "../utils/typography";
const Footer = () => {
return (
<footer
style={{
marginTop: rhythm(2.5),
paddingTop: rhythm(1),
}}
>
<div style={{ float: "right" }}>
<a href="/rss.xml" target="_blank" rel="noopener noreferrer... |
import { TempNode } from '../TempNode.js'
var ReflectNode = function ( scope ) {
TempNode.call( this, 'v3', { unique: true } );
this.scope = scope || ReflectNode.CUBE;
};
ReflectNode.CUBE = 'cube';
ReflectNode.SPHERE = 'sphere';
ReflectNode.VECTOR = 'vector';
ReflectNode.prototype = Object.create( TempNode.pr... |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* 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 a... |
// @link https://schemas.tmz.com/json-schema/tmz/news/event/article-renamed/1-0-0.json#
import DayOfWeek from '@gdbots/schemas/gdbots/common/enums/DayOfWeek';
import Fb from '@gdbots/pbj/FieldBuilder';
import Format from '@gdbots/pbj/enums/Format';
import GdbotsPbjxEventV1Mixin from '@gdbots/schemas/gdbots/pbjx/mixin/e... |
/*globals require*/
/*eslint-env node, mocha*/
/**
* @author lattmann / https://github.com/lattmann
* @author pmeijer / https://github.com/pmeijer
*/
var testFixture = require('../../../_globals.js');
describe('USER REST API', function () {
'use strict';
var gmeConfig = testFixture.getGmeConfig(),
... |
'use strict';
/*
* Jaden Smith Case
*
* Make a `jadenCase` function that takes a string as parameter
* and return the string with each words capitilized.
*
* Example : "How are you ?" -> "How Are You ?"
*
*/
// Your code:
function jadenCase(str){
let tmpStr = '';
for(let i = 0; i < str.length; i++){
... |
"use strict";(self.webpackChunkdocusaurus_template=self.webpackChunkdocusaurus_template||[]).push([[9874],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return d}});var r=n(67294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}... |
const KEY = Object.freeze({
UP: "ArrowUp",
DOWN: "ArrowDown",
LEFT: "ArrowLeft",
RIGHT: "ArrowRight",
A: "a",
B: "b"
})
const KONAMI_PATTERN = Object.freeze([
KEY.UP,
KEY.UP,
KEY.DOWN,
KEY.DOWN,
KEY.LEFT,
KEY.RIGHT,
KEY.LEFT,
KEY.RIGHT,
KEY.B,
KEY.A
])
const DEFAULT_SUCCESS_FUNCTION = (... |
"function"!=typeof Object.create&&(Object.create=function(t){function o(){}return o.prototype=t,new o}),function(t,o,i,s){"use strict";var n={_positionClasses:["bottom-left","bottom-right","top-right","top-left","bottom-center","top-center","mid-center"],_defaultIcons:["success","error","info","warning"],init:function(... |
"main";let OrdersService;_c27.w("../services/orders/orders",[["default",["OrdersService"],function(v){OrdersService=v}]]);let SettingsService;_c27.w("../services/settings/settings",[["default",["SettingsService"],function(v){SettingsService=v}]]);let PaymentGatewaysService;_c27.w("../services/settings/paymentGateway... |
import * as BABYLON from 'babylonjs';
import * as Pts from 'pts';
import PtsCanvas from '../../components/PtsCanvas';
import CaseTexture from 'src/images/mix-art/mx011.jpg';
import CDLabelTexture from '../../images/mix-labels/cd_template_MX011.png';
import {scaleLinear} from 'd3';
export const caseTexture = CaseTextur... |
import * as types from '../constants/types';
import { APP } from './actionsTypes';
export function appStart(root, text) {
return {
type: APP.START,
root,
text
};
}
export function appReady() {
return {
type: APP.READY
};
}
export function appInit() {
return {
type: APP.INIT
};
}
export function appI... |
const express = require('express')
const Twitter = require('twit')
/*
usually this would live inside the configurations of the server as
ENV variables but for the sake of this exercise I will put the access tokens here...
To prevent basic misusage, I have set the access token to be read only instead of read/write... |
const _ = require('lodash')
const path = require('path')
const { fmImagesToRelative } = require('gatsby-remark-relative-images')
exports.onCreateNode = ({ node }) => {
fmImagesToRelative(node)
}
exports.createPages = ({ actions, graphql }) => {
const { createPage } = actions
return graphql(`
{
allMa... |
export { default } from './WalletContent.connect';
|
const MainContainerReducer = (state = {'currentTab':0}, action) => {
switch (action.type) {
case 'switchTab':
return Object.assign({}, state, {
currentTab: action.tabId
})
case 'loadAboutPatter':
return Object.assign({}, state, {
aboutPattern: action.data
})
def... |
function plugin(UIkit) {
if (plugin.installed) {
return;
}
var {util, mixin} = UIkit;
var {append, attr, doc, flipPosition, includes, isTouch, isVisible, matches, on, pointerDown, pointerEnter, pointerLeave, remove, within} = util;
var actives = [];
UIkit.component('tooltip', {
... |
import request from '@/utils/request'
const estimateApi = {
detail: '/boss/project/assess/getTumourAssessDetail', // 评估详情
add: '/boss/project/assess/addTumourAssess',
update: '/boss/project/assess/updateTumourAssess',
delete: '/boss/project/assess/deleteTumourAssessById',
unInputStageList: '/boss/project/ass... |
/* global suite, test */
var error = require('../lib/error');
var database = require('../lib/database');
require('should');
suite('Database', function() {
test('FINDFIELD', function() {
database.FINDFIELD([['Tree','Apple','Pear','Cherry','Apple','Pear','Apple'],['Height',18,12,13,14,9,8],['Age',20,12,14,15,8,... |
"use strict";
var sc_lobby = new Phaser.Scene("Lobby");
sc_lobby.preload = function() {
}
sc_lobby.create = function() {
cont.playing = false;
mus_game.pause();
mus_game.currentTime = 0;
mus_victory.pause();
mus_victory.currentTime = 0;
mus_defeat.pause();
mus_defeat.currentTime = 0;
... |
const Discord = require('discord.js');
const data = require('quick.db');
const ms = require('ms');
exports.run = async (client, message, args) => {
let açıkmı = await data.fetch(`premium.${message.guild.id}`)
if(açıkmı) {
// premium açıksa yapılack işlemler buraya
} else { return message.channel.send(`${message.au... |
import React from "react";
import { ScrollView, Text } from "react-native";
import { VictoryChart, VictoryScatter, createContainer } from "victory-native";
import viewStyles from "../styles/view-styles";
import { generateRandomData } from "../data";
const VictoryZoomVoronoiContainer = createContainer("zoom", "voronoi"... |
export const ERROR_STATUS = [
'FRAUD_DOCS_REQUESTED',
'FRAUD_MANUAL_REVIEW',
'FRAUD_REFUSED',
'notPaid',
];
export const WAITING_PAYMENT_LABEL = 'custom_payment_waiting';
export default {
ERROR_STATUS,
WAITING_PAYMENT_LABEL,
};
|
import React, { useState, Fragment, useEffect } from "react";
import { makeStyles } from "@material-ui/core/styles";
import TitleContext, { withSetTitle } from "./TitleContext";
import {
Typography,
Grid,
TextField,
CircularProgress,
Button,
Link
} from "@material-ui/core";
import querystring from "query-s... |
const { ApolloServer, gql } = require("apollo-server");
const ResultAPI = require("./datasources/results");
const typeDefs = require("./schema.js");
const resolvers = require("./resolvers.js");
const dataSources = () => ({
resultAPI: new ResultAPI()
});
const server = new ApolloServer({
typeDefs,
resolvers,
... |
const CustomError = require("../extensions/custom-error");
module.exports = function calculateHanoi(disk, speed) {
let turnsPerSec = speed / 3600;
let turns = (2 ** disk) - 1;
let seconds = Math.floor(turns / turnsPerSec);
return { turns, seconds };
};
|
!function(v){var c,h='<svg><symbol id="icon-zhuanji" viewBox="0 0 1024 1024"><path d="M511.654123 959.701578c-247.249197 0-447.683159-200.433962-447.683159-447.682136S264.404925 64.336284 511.654123 64.336284s447.683159 200.433962 447.683159 447.682136S758.902296 959.701578 511.654123 959.701578zM511.654123 120.143311c... |
(function(){
window.app('const', {
APP_PREFIX: 'f1'
});
})();
|
"use strict";function u(u){return u&&"object"==typeof u&&"default"in u?u.default:u}var D=u(require("util")),e=require("path"),t=require("fs"),r=u(require("os")),n=u(require("tty"));"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&sel... |
import React from "react";
import css from "./CardText.css";
const CardText = ({
item,
limitTitle,
limitVenue,
setEventPrice,
ticketMasterCategories
}) => {
return (
<div
className={`searchResultCardTextWrapper ${css.searchResultCardTextWrapper}`}
>
<ul className={`itemText ${css.itemTe... |
export default {
cartLength(state){
return state.shops.length
},
cartList(state){
return state.shops
}
}
|
import { handleBugs } from './bug.js'
// Add `error.config` and `error.errors` to every error
// Also mark exceptions that are probably bugs as such
export const topLevelHandler = function(error, config) {
// eslint-disable-next-line fp/no-mutation, no-param-reassign
error.config = config
const errorA = handleB... |
var postcss = require('postcss');
module.exports = postcss.plugin('pseudoelements', function(options) {
options = options || {};
var selectors = options.selectors || [
'before',
'after',
'first-letter',
'first-line'
]
var replacements = new RegExp('::(' + selectors.join('|') +... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.