text stringlengths 3.07k 16k |
|---|
/**
* @license Copyright (c) 2003-2018, CKSource - <NAME>. All rights reserved.
* For licensing, see LICENSE.md.
*/
'use strict';
/* eslint-env node */
const path = require( 'path' );
const options = parseArguments( process.argv.slice( 2 ) );
module.exports = function getKarmaConfig() {
const basePath = proces... |
/**
* @Description: 路由配置
* @author Roman
* @date 2020/6/18
*/
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
/* Layout */
import Layout from '@/layout'
import indexPage from '@/views/index'
/* Router Modules */
// import componentsRouter from './modules/components'
/**
* Note: sub-m... |
function toDataUrl(url, callback) {
var xhr = new XMLHttpRequest();
xhr.onload = function() {
var reader = new FileReader();
reader.onloadend = function() {
callback(reader.result);
}
reader.readAsDataURL(xhr.response);
};
xhr.open('GET', url);
xhr.respons... |
/* jshint esversion: 6 */
import PropTypes from 'prop-types';
import classnames from 'classnames';
import SocialIcons from './icons.js';
import FontIconPicker from '@fonticonpicker/react-fonticonpicker';
const { __ } = wp.i18n;
const { MediaUpload } = wp.blockEditor;
const { ButtonGroup, Dashicon, Tooltip, TextControl... |
import React from 'react';
import classNames from 'classnames';
// import Todo from './todo';
import TodoStore from '../../stores/TodoStore';
import TodoActions from '../../actions/TodoActions';
// import '../../styles/basic_demos.scss';
import '../../styles/todolist.scss'
const MESSAGE = 'No items on the list';
cla... |
import React, { Component } from 'react';
import { StyleSheet, Dimensions, ScrollView, Image, ImageBackground, Platform } from 'react-native';
import { Block, Text, theme, Button as GaButton } from 'galio-framework';
import {connect} from 'react-redux';
import { Button } from '../components';
import { Images, nowTheme ... |
/*
* Copyright 2020 the original author or 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 applicabl... |
// JavaScript Document
$(document).ready(function(){
//问卷调查
$(".amount").click(function(){
$(this).addClass("radioCur");
$(this).siblings().removeClass("radioCur")
})
//mygame
$(".mypop").hover(function() {
$(this).animate({"top": "0"}, 400, "swing");
},function() {
$(this).stop(true,false).animate({"top":... |
/* global $, document */
const moment = require('moment-timezone');
const _ = require('underscore');
const gutil = require('app/common/gutil');
const commands = require('../components/commands');
const dispose = require('../lib/dispose');
const dom = require('../lib/dom');
const kd = require('../lib/koDom');
const Text... |
const Logo = ({ height }) => (
<svg height={height} viewBox='0 0 70 70' fill='none'>
<circle cx='35' cy='35' r='35' fill='currentColor' />
</svg>
)
const Vercel = ({ height = 20 }) => (
<svg height={height} viewBox='0 0 283 64' fill='none'>
<path
fill='currentColor'
d='M141.04 16c-11.04 0-19 ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.localLighthouse = void 0;
var _fs = _interopRequireDefault(require("fs"));
var _lodash = _interopRequireDefault(require("lodash.get"));
var _lighthousePersist = _interopRequireDefault(require("@foo-software/ligh... |
import { Api } from "@mui/icons-material";
import React, { Component } from "react";
import ApiRequests from "../utils/ApiRequests";
import "../css/profile.css";
import Avatar from "@mui/material/Avatar";
import PhotoCamera from "@mui/icons-material/PhotoCamera";
import IconButton from "@mui/material/IconButton";
impor... |
const isHttp = (service) => {
if (service.txt) {
if(service.txt.uri) {
return service.txt.uri.startsWith("/");
}
}
return false;
};
const usesMulticast = (service) => {
return (service.txt) ? service.txt.use_multicast === "1" : false;
};
const getMulticastAddress = (servic... |
const fs = require('fs');
const Web3 = require('web3');
const TestRPC = require("ethereumjs-testrpc");
const web3 = new Web3();
web3.setProvider(TestRPC.provider());
const CONTRACT_ABI_ARRAY = JSON.parse(fs.readFileSync("./build/PrimasToken.abi", {"encoding": "utf8", "flag": "r"} ));
const CONTRACT_BIN_CODE... |
const { pubsub } = require("./pubsub");
const { flatten, map, take, isArray, isEmpty } = require("lodash");
const { fork } = require("child_process");
const path = require("path");
const { findScammer } = require("./utils/utils");
const { addLog } = require("./utils");
const debugMode = typeof v8debug === "object" || ... |
var vm;
$(function() {
$('#search').change(function() {
$('#bookmarks').empty();
loadVue();
dumpBookmarks($('#search').val());
});
$( "#lmfw" ).on( "click", "i", function() {
if( $(this).attr('data-url')){
chrome.tabs.create({
url : $(this).attr('... |
//请求地址(列表)
var RequestListUrl = "/Backups/GetBackupsList";
//请求地址(单条记录)
var RequestUrl = "/Backups/GetBackups";
//请求地址(删除记录)
var RequestDelUrl = "/Backups/DelBackups";
//请求地址(下载)
var RequestDownLoadUrl = "/Backups/DownLoadBackups";
//请求地址(修改)
var RequestEditUrl = "Backups/EditBackups";
//请求控制器(添加)
var RequestAddUrl = ... |
#!/usr/bin/env node
// This is an example script that illustrates how some simple data can be imported
// into the Versioned CMS.
//
// Example usage:
//
// ACCOUNT_NAME="Awesome Company" EMAIL=<EMAIL> FROM_URL=https://my-api.example.com/v1 FROM_PASSWORD=<PASSWORD> PASSWORD=<PASSWORD> examples/import-data.js
const axi... |
const getJSON = async uri => {
const res = await fetch(uri);
if (res.ok) {
return res.json();
} else {
throw new Error(`Failed to fetch ${uri}`);
}
};
function format(text) {
return text
.split("\n")
.map(line => {
let p = "<p>";
if (line === "") {
return `<p class="empty... |
// This is the code that deals with TFS
const fs = require('fs');
const async = require('async');
const request = require('request');
const util = require('../app/utility');
function run(args, gen, done) {
'use strict';
var queueId = 0;
var teamProject;
var dockerEndpoint;
var dockerRegistryEndpoint;
... |
/**
* Access or create DOM nodes in style.
*
* Copyright (C) 2020 <NAME>
* https://opensource.org/licenses/MIT
*/
/**
* Build an Element or DocumentFragment from just about anything
* @param content
* @returns {Element|DocumentFragment|HTMLElement|DocumentFragment|DocumentFragment}
*/
const cast = content... |
/* eslint-disable no-console */
const { readFileSync, writeFile } = require('fs');
const { JWT } = require('google-auth-library');
const request = require('request');
const {
mattermostWebHookUrl, googleClientEmail, googleClientPrivateKey, dataDirectory, packageNameAndroid, iosAppId,
} = require('./config');
const... |
import React from 'react'
import styled from '@emotion/styled'
import GitHubMark from '../resources/githubmark.png'
import GitLabMark from '../resources/gitlabmark.svg'
import GitpodMark from '../resources/gitpod-mark.svg'
import { breakpoints, colors, radiuses, shadows } from '../utils/variables.js'
const Styled = st... |
var dataTypes = [
'undefined',
'object',
'boolean',
'number',
'string',
'symbol',
'function'
];
/**
* Assert that the passed value is of the expected class/type
* @param {string} name Name of the value, to be shown in the exception message
* @param {*} value T... |
var charictar, ground,
ctx = Canvas.getContext("2d"),
canvas = document.getElementById("Canvas"),
scrWidth = window.innerWidth,
scrHeight = window.innerHeight,
keyPress = [],
Score = 0,
Gravity = 1,
gameStart = false,
yBoundryActive = [],
clearScreen = true;
//charictar properties
charictar ... |
/*!
* Module dependencies.
*/
var express = require("express");
var i18n = require("i18n-2");
var mongoStore = require("connect-mongo")(express);
var helpers = require("view-helpers");
var pkg = require("../package");
var flash = require("connect-flash");
var env = process.env.NODE_ENV || "development";
var swig = ... |
/**
* @file build
* @author zhangwentao <<EMAIL>>
*/
/* eslint-disable fecs-min-vars-per-destructure */
const directive = require('./directive');
// const {getComputedModifier} = require('./module/computed');
const {modifyBind, transformExpression} = require('./module/helper');
const {judgeNodeType, NODE_TYPES} = ... |
import {
connectHits,
RefinementList,
connectSearchBox,
InstantSearch,
ClearRefinements,
connectPagination
} from 'react-instantsearch-dom';
import algoliaSearch from "algoliasearch";
import Link from "next/link";
import { useRouter } from 'next/router'
import { useEffect, useState } from "react";
import qs... |
import '@mux-elements/polyfills/window';
/**
* Custom Video Element
* The goal is to create an element that works just like the video element
* but can be extended/sub-classed, because native elements cannot be
* extended today across browsers.
*/
const template = document.createElement('template');
// Could you... |
import {
applySettings,
AUTO,
HUNDRED_PERCENT,
methodArray,
methodBoolean,
methodFunction,
PIXELS
} from 'type-enforcer-ui';
import Control from '../Control';
import controlTypes from '../controlTypes';
import VirtualList from '../layout/VirtualList';
import './GridColumnBlock.less';
import GridHeader from './Gr... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Button, Card, CardBody, Col, Container, Form, Input, InputGroup, InputGroupAddon, InputGroupText, Row, FormGroup, FormFeedback } from 'reactstrap';
import { Formik } from 'formik';
import * as Yup from 'yup';
// import '../../Fo... |
import api from '../../api/api'
import Vue from "vue";
import store from '../';
const state = () => ({
all: {}
})
const getMatchLeaderboardId = (match) => {
if (!store.state.constantes.all.leaderboards) return null;
if (match.leaderboard_id !== undefined) return match.leaderboard_id;
return store.sta... |
import { c as create_ssr_component, f as createEventDispatcher, e as escape, a as each, v as validate_component } from "../../../../../chunks/index-7ecd09be.js";
import { b as linksToTable, i as isForeignKey } from "../../../../../chunks/utils-7eafc5e0.js";
import Column from "./Column.svelte.js";
import "jsonata";
imp... |
// import Vue from "vue";
import { mount, createLocalVue } from "@vue/test-utils";
import GraphVector from "@/components/GraphVector.vue";
import Vuetify from "vuetify";
import Vue from "vue";
import Vuex from "vuex";
import vectorArtifactJson from "../../stubs/vectorArtifact.json";
import graphArtifactJson from "../..... |
import styles from './Header.less';
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { Link, withRouter } from 'react-router-dom';
import {
PageBlock,
Card,
Section,
Text,
TextField,
ScreenReaderOnly
} from 'seek-style-guid... |
import React, {
useMemo,
useCallback,
useState,
useEffect,
} from 'react';
import PropTypes from 'prop-types';
import {
FormattedMessage,
useIntl,
} from 'react-intl';
import { isEmpty } from 'lodash';
import {
Checkbox,
Icon,
MultiColumnList,
} from '@folio/stripes/components';
import { noValue } f... |
// ______ ____ ___
// __/ _ \/ __ \/ _ )
// _/ , _/ /_/ / _ /
// /_/|_|\____/____/
//
// -
// WordCloud 0.1 by Roberto [word, cloud, 3d]
// 2021 © Roberto @ciunart, Daniele @Fupete and the course DS-2021 at DESIGN.unirsm
// github.com/ds-2021-unirsm — github.com/fupete — github.com/RobertoAlesi
// Educationa... |
/*eslint no-multi-spaces: 0 comma-spacing: 0*/
/*eslint key-spacing: 0 */
'use strict';
var _ = require('lodash');
const
// enum
STICK = 0,
BIND_STICK = 1,
REPEL_STICK = 2,
ConstraintTypes = { STICK, BIND_STICK, REPEL_STICK },
// points
PEG = { id: 0 , xInit: 0 , yInit: 0 , friction: 0.8 },
... |
"use strict";
/**
* @module Intacct/SDK/Functions/AccountsPayable
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2020 Sage Intacct, 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... |
/*
Copyright 2017 <NAME>
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, merge, publish, distribute, sublicen... |
import Canvas from 'canvas';
import jsQR from "jsqr";
export class Devices{
//devices
async all(callback){
return await navigator.mediaDevices.enumerateDevices();
}
async allForEach(callback){
let devices = await this.all();
devices.forEach((device)=>{
callback(devi... |
/*
* Copyright 2017-2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "li... |
'use strict';
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj... |
"use strict";
const Base = require("./Base");
const User = require("./User");
/**
* Represents a message
* @extends {Base}
* @property {Array<Object>} attachments An array of attachments
* @property {User} author The author of the message
* @property {String} channelID The ID of the channel
* @property {TextCha... |
window.onscroll = function() {scrollFunction()};
window.onresize = function() {onResize()};
window.onload = function() {arrangeWIki()};
window.addEventListener('load', function() {scrollFunction()})
function scrollFunction() {
if (document.documentElement.clientWidth >= 1010) {
if (document.body.scrollTop ... |
/**
* @author <NAME> <<EMAIL>>
*/
/**
* @typedef {object} EntityParams~ButtonParams
* @property {EntityParams~Rect | EntityParams~Sprite | EntityParams~Image } background
* @property {EntityParams~Rect | EntityParams~Sprite | EntityParams~Image } [hover]
* @property {number} padding
* @property {number} x
* @pr... |
require('log-process-errors/build/register/ava')
const { normalize } = require('path')
const {
env: { PRINT },
} = require('process')
const {
meta: { file: testFile },
} = require('ava')
const { magentaBright } = require('chalk')
const cpy = require('cpy')
const execa = require('execa')
const { createRepoDir, re... |
const fs = require('fs')
const dataToSave = []
async function cleanCrawledData() {
const raffles = require('./data.json')
for (let i = 1; i < 61; i++) {
const current = {
number: i,
columns: [0, 0, 0, 0, 0, 0],
totalAppear: 0,
isTheMostFrequent: false,
... |
/**
* Created by zhouchaoyi on 2016/10/18.
*/
import React,{PropTypes} from 'react'
import {connect} from 'react-redux'
import {Link} from 'react-router'
import {bindActionCreators} from 'redux'
import {Form, Input, Button,Icon,Checkbox,Modal,Spin,Select,Radio} from 'antd';
import {addItem,queryItemById,updateItem,sh... |
/* eslint no-console: 0 */
import { scaleLinear, scaleLog } from 'd3-scale';
import createScatterplot from '../src';
import { saveAsPng } from './utils';
const canvas = document.querySelector('#canvas');
const canvasWrapper = document.querySelector('#canvas-wrapper');
const numPointsEl = document.querySelector('#num... |
/* eslint-disable linebreak-style */
// ======================================================================
// RPG Simulator 20XX
// Advent of Code 2015 Day 21 -- <NAME> -- https://adventofcode.com
//
// JavaScript implementation by Dr. <NAME>
// ====================================================================... |
import React, { Component, Fragment } from 'react'
import { connect } from 'react-redux'
import { withRouter, Link } from 'react-router-dom'
import { Translate } from 'react-localize-redux'
import { EXPLORER_URL } from '../../utils/wallet'
import IconArrowLeft from '../../images/IconArrowLeft'
import IconProblems from... |
const { Client, ButtonInteraction, MessageActionRow, MessageSelectMenu, MessageEmbed } = require("discord.js");
const db = require("quick.db");
module.exports = {
name: "invalid",
/**
*
* @param {Client} client
* @param {ButtonInteraction} interaction
*/
async execute (client, intera... |
var AJAX_SERVER = 'https://api.pycon.sk';
var AJAX_URL = AJAX_SERVER + '/talks/';
function get_event_uuid(slug) {
axios.get(AJAX_SERVER + '/events/' + slug).then(function (response) {
return response.data.uuid;
}).catch(function (error) {
speakerModal.openPopUp(error, 'Could not connect to server!');
c... |
"use strict";
const { Random } = require('./util');
class Chromosome {
constructor(n) {
this.len = n
this.genome = new Array(n);
this.fitness = Number.MAX_SAFE_INTEGER;
}
evaluate() {
let fit = 0;
// calc each gene in this chromosome
for (let g = 0; g < this... |
var _ = require('lodash');
var changelog = require('conventional-changelog');
var dgeni = require('dgeni');
var fs = require('fs');
var glob = require('glob').sync;
var gulp = require('gulp');
var karma = require('karma').server;
var pkg = require('./package.json');
var exec = require('child_process').exec;
var writeF... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _kendo = require('kendo');
var _kendo2 = _interopRequireDefault(_kendo);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _ControlCommon = require('../ControlCommon');
var _ReactCommon = require('... |
if (!process.addAsyncListener) require('../index.js');
var extend = require('util')._extend;
var test = require('tap').test;
var http = require('http');
// Convert semver string to number set
// TODO: This is *very* naive structure to check versions with,
// but it works well enough for now...
var nodeVersion = proce... |
/**
* 网络相关Api
*/
import { config } from "./config.js";
import { storage } from "./storage.js";
import { accessToken, IPHONE, Safari } from "./const.js";
import axios from "axios";
import notice from "./notice";
import router from "../router";
let baseUrl = config.baseUrl;
// 获取token;
let getAccessToken = () => {
... |
'use strict';
/* Sección de elementos que usamos en el HTML */
/* ----------------------------------------------------------------- */
const hamburgerMenu = document.querySelector('.js_header__menu');
const menuDropDown = document.querySelector('.js_menuDropDown');
const boardData = document... |
var http = require('request');
var cors = require('cors');
var uuid = require('uuid');
var url = require('url');
var _ = require('lodash');
var status = {
startup: new Date()
};
// This is the heart of your HipChat Connect add-on. For more information,
// take a look at https://developer.atlassian.com/hipchat/tutori... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/objectWithoutPropertiesLoose');
var _inheritsLoose = require('@babel/runtime/helpers/inheritsLoose');
var svgInjector = require('@tanem/svg-injector');
var PropTypes = requi... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Box from '@material-ui/core/Box';
import log from 'electron-log';
import FullscreenIcon from '@material-ui/icons/Fullscreen';
import IconButton from '@material-ui/core/IconButton';
import MicOff from '@material-ui/icons/MicOff';
imp... |
"use strict";
/**
* JBB - Javascript Binary Bundles - Binary Stream Class
* Copyright (C) 2015 <NAME> <<EMAIL>>
*
* 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.apac... |
console.clear();
var pym = require("./lib/pym");
var ANALYTICS = require("./lib/analytics");
require("./lib/webfonts");
var { isMobile } = require("./lib/breakpoints");
var aimag = require("./aimag_proc.geo.json");
var pop = require("./pop.geo.json");
var { COLORS, wrapText} = require("./lib/helpers");
var d3 = {
.... |
// this module manages all the events and provides accessibility to plugins
require('rootpath')()
const { DebugMode } = require('conf')
const ErrorHandler = require('src/errorhandler')
const { groupOperations } = require('utils/groups')
module.exports =
{
initEventHandler,
initPlayerConnect,
initPlayerDis... |
import React, {Component} from 'react'
import {connect} from 'react-redux'
import {
fetchCart,
changeQuantityInCart,
removeFromCart,
checkout,
addToCart
} from '../store/cart'
import {fetchOrder} from '../store/orders'
import {Card} from 'react-bootstrap'
import {Link} from 'react-router-dom'
import {stars} f... |
const querystring = require('querystring');
const axios = require('axios');
const CommunityCrawler = require('../CommunityCrawler');
const {
baseUrl,
getUrl,
sortUrls,
boardTypes,
ignoreRequests,
ignoreBoards,
boards,
commentsUrl,
search,
} = require('./constants');
class Ruliweb ... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
/* eslint-env node, mocha */
var assert = require('chai').assert
var occamsrazor = require('..')
var validator = require('occamsrazor-validator')
describe('adapter', function () {
var isInstrument, isGuitar, isElectricGuitar,
guitar, electricguitar,
folkGuitarPlayer, rockGuitarPlayer,
player
before(fu... |
import React from 'react';
let wrap = (shape, o, handlers) => {
if (!shape) return;
let objID = o.get('id');
let customProps = {
'data-bboxx': o.get('dataBboxX'), 'data-bboxy': o.get('dataBboxY'), 'data-bboxw': o.get('dataBboxW'),
'data-bboxh': o.get('dataBboxH'), 'data-cx': o.get('dataCX'), 'data-cy... |
import { Stomp } from '@stomp/stompjs'
import store from '../store'
import { http } from './http'
import { Loading, Notify } from 'quasar'
import { toDataValue } from './util'
const operationTopic = '/topic/operation.'
const resultTopic = '/topic/result.'
const alarmTopic = '/topic/alarm.'
class StompClient {
constr... |
const BackboneElement = require('./BackboneElement');
class MedicationStatementDosage extends BackboneElement {
constructor(opt) {
super(opt);
this.__resourceType = 'MedicationStatementDosage';
Object.assign(this, opt);
}
// This is a MedicationStatementDosage resource
static get __resourceType() {
return... |
// Copyright (c) IPython-Contrib Team.
// Distributed under the terms of the Modified BSD License.
// Hide or display solutions in a notebook
// december 30, 2015: update to notebook 4.1.x
// updated on december 22, 2015 to allow consecutive exercises
// exercise2: built by @jfbercher from an earlier work by @junasch... |
// This allows pm2 and chalk to work at the same time. Without it when using pm2 chalk does not do anything.
process.env.FORCE_COLOR = "true";
// Define modules
const fs = require('fs');
const path = require('path');
const Discord = require('discord.js');
const chalk = require('chalk');
const { promisify } = require('u... |
'use strict';
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/he... |
var express = require('express');
var router = express.Router();
var bodyParser = require('body-parser');
var BigNumber = require('bignumber.js');
var blockRouter = (app, blockDao, progressDao, checkpointDao, config) => {
router.use(bodyParser.urlencoded({ extended: true }));
// @deprecated
// router.get("/block... |
import { FullScreenQuad } from './FullScreenQuad.js';
import { Color, ShaderMaterial, MathUtils, WebGLRenderTarget, NearestFilter } from '//unpkg.com/three@0.116.1/build/three.module.js';
import { CopyShader } from '//unpkg.com/three@0.116.1/examples/jsm/shaders/CopyShader.js';
import { clone, MipGenerationShader } fr... |
// requestAnimationFrame polyfill by <NAME>. fixes from Paul Irish and <NAME>
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// MIT license
(function () {
var lastTime = 0;
var vendors = ['ms',... |
/*global alert: false, confirm: false, console: false, Debug: false, opera: false, prompt: false, WSH: false */
/*jslint regexp: true */
if (!String.prototype.supplant) { // credit to Crockford for this supplant function
String.prototype.supplant = function (o) {
return this.replace(
/\{([^{}]*)\}/g,
... |
import React from 'react';
import { Link, StaticQuery, graphql } from 'gatsby';
import Isotope from "isotope-layout/js/isotope";
import Moment from 'react-moment';
import 'moment-timezone';
import PropTypes from 'prop-types';
import Layout from '../components/Layout'
import port_1 from '../img/portfolio/1.jpg'
import ... |
// UI imports
import { makeStyles } from '@material-ui/core/styles';
// Global constant alpha hexes for rgba injection workaroud
const ALPHA_ONE = Math.round(0.3 * 255).toString(16);
const ALPHA_TWO = Math.round(0.2 * 255).toString(16);
const ALPHA_THREE = Math.round(0.1 * 255).toString(16);
// Styling for concert ca... |
/**
* Copyright (c) 2015, 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.
*/
import {
Gr... |
/*
* Copyright (c) 2018-2019 - <NAME> <<EMAIL>>
*
* This file is part of the Latte UI package.
*
* For the full copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
import { createElement, live } from "../util/dom.js";
import { on } from "../core/actio... |
/**
* Created by Santeri on 11.4.2016.
*/
var username = "";
var mangaList = [];
var sites = [];
var trimNames = false;
const MY_ANIME_LIST_USERNAME = "MyAnimeListUsername";
const MANGA_LIST = "mangaList";
const MANGA_TABLE = "mangaTable";
const MANGA_LIST_LINK = "MangaListLink";
... |
var express = require('express');
var router = express.Router();
var _ = require('underscore');
var Student = require('../models/student.js');
var Paid = require('../models/paid.js');
var Vip = require('../models/vip.js');
var Check = require('../models/check.js');
router.get('/', function(req, res, next) {
res.ren... |
import _ from 'lodash/fp'
import F from 'futil'
import { flatten, bubbleUp, Tree, encode, decode, isParent } from './util/tree'
import { validate } from './validation'
import { getAffectedNodes, reactors } from './reactors'
import actions from './actions'
import serialize from './serialize'
import traversals from './tr... |
// JSON Pointer implementation
// ===========================
// Modified from: <NAME> <<EMAIL>>
// see: http://tools.ietf.org/html/rfc6901
'use strict';
var _ = require('lodash'),
pointer = {};
module.exports = pointer;
// A list of special characters and their escape sequences.
// Special characters will be un... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
var name = require('path').basename(module.filename, '.js');
//dependencies
var cql = require('node-cassandra-cql');
var util = require('util');
// Cassandra cluster details
var hostArray = ["127.0.0.1:9042"];
var keyspace = "test";
// package will manage connection at exe no explicit open/close req'd
var client = ne... |
// ////////////////////////////////////////////////////////////////////////
// /// UTILITY FUNCTIONS //////////////////////////////////////////////////
// ////////////////////////////////////////////////////////////////////////
const vec = new THREE.Vector3();
const a = 0.009; // spiral param
// formula for a spherica... |
// Copyright 2019 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this fileAccessObject 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 ... |
// Copyright (c) 2021 Uber Technologies, 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 rights
// to use, copy, modify, merge... |
import _kmath from "kmath";
import _interactiveUtilJs from "./interactive-util.js";
import _underscore from "underscore";
import $ from "jquery";
var _module_ = {
exports: {}
};
var exports = _module_.exports;
/**
* Movable
*
* A Movable Something, that sends onMove events based on the
* mouse coordinate (gra... |
'use strict';
const path = require('path');
const vm = require('vm');
const Conditional = require('@digifi-los/comparison').Conditional;
const conditional = new Conditional({});
const compare = conditional.compare.bind(conditional);
const Promisie = require('promisie');
/**
* Sets state inside of a "_global"... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var more_1 = require("./more");
var CSG = require("./csg.js");
var Viewer = require("./viewer.js");
console.log(Viewer);
var box = {
outline: {
width: 81,
depth: 79,
height: 40
},
internal: {
width: ... |
var Promise = require('bluebird');
var request = Promise.promisify(require('request'));
var chalk = require('chalk');
var terminal = require('window-size');
var moment = require('moment');
var util = require('util');
var xxhash = require('xxhash');
var currentOffset = 0;
var lastBuffer;
// save the last response for ... |
const { gameState, Room, Player, Unit } = require("../memDb");
const utils = require("./socketUtils");
module.exports = io => {
io.on("connection", socket => {
console.log(
`A socket connection to npm server has been made: ${socket.id}`
);
// Create room given a roomName and add room creator as P1... |
//TIMER
//quando eu uso um setTimeout ou setInterval, ele nao leva em consideracao se estah pausado (parando de contar o tempo) ou nao, entao isso eh uma solucao para isso
class Timer {
constructor(funcao, tempo, ehInterval = false, apenasEmLevelAtual = true, mudaPers = false, infoMudarTempo)
//ehInterval: boolean, T... |
/*eslint-disable react/no-set-state */
import React, { Component } from 'react';
import d3 from 'd3';
import getSpeciesColorScale from '../lib/getSpeciesColorScale';
const BAND_SIZE = 14;
class ChordDiagram extends Component {
constructor(props) {
super(props);
this.state = {
DOMSize: null
};
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.