text stringlengths 3.22k 29.5k |
|---|
var crema = require('crema'),
tree = require('./tree'),
sift = require('sift'),
_ = require('underscore');
var routeTypes = {
'*': 'extend',
'+': 'extend',
'**': 'greedy'
}
var collection = module.exports = function() {
var _rootTree = tree(),
self = {},
_id = 0;
var _addRoute = self.add... |
"use strict";
const mongoose = require('mongoose');
const config = require('../config');
const errorHandler = require('../error');
const UserModel = require('../models/user');
const HomeworkModel = require('../models/homework');
const SubmissionModel = require('../models/submission');
const ClassModel = require('../mo... |
"use strict";
/* eslint-disable no-magic-numbers, prefer-template */
const assert = require("assert");
const Fastify = require("fastify");
const _ = require("lodash");
const Chalk = require("chalk");
const Path = require("path");
const checkNodeEnv = require("./check-node-env");
const logger = require("./logger.js");... |
/**
Provides view transitions for `Y.App`.
@submodule app-transitions
@since 3.5.0
**/
var Lang = Y.Lang,
YObject = Y.Object;
/**
Provides view transitions for `Y.App`.
When this module is used, it will automatically mix itself on to `Y.App` adding
transitions to `activeView` changes.
@class App.Transitions... |
/// <reference lib="es2020" />
// @ts-check
import { MATBIN } from '../MATBIN.js'
let matbin = new MATBIN();
const fileBaseNameForm = /** @type {HTMLInputElement} */(document.getElementById('fileBaseNameForm'));
const dropFrame = /** @type {HTMLDivElement} */(document.getElementById('DropFrame'));
const exp... |
function FileAPI (c, t, d, f, bin, binURL, client) {
var fileCount = c,
fileList = t,
dropZone = d,
fileField = f,
counter_queue = 0,
counter_uploading = 0,
counter_completed = 0,
counter_failed = 0,
concurrency = 4,
fileQueue = new Array(),
... |
// Copyright & License details are available under JXCORE_LICENSE file
/*
* Test to verify we are using Typed Arrays
* (http://www.khronos.org/registry/typedarray/specs/latest/) correctly Test to
* verify Buffer can used in Typed Arrays
*/
// SpiderMonkey, V8 3.28+ implementation has native TypedArray support
i... |
const intersection = require('./intersection');
const { ignore, track, interesting } = require('./track');
const a = [
'writingcommunity',
'writerslift',
'writerslife',
'amwriting',
'literature',
'poems',
'essay',
'write',
'writing',
'fiction',
'horror',
'fantasy',
... |
import { spawn } from 'node:child_process'
import { Buffer } from 'node:buffer'
import fs from 'node:fs'
import http from 'node:http'
import config from './config.js'
/** @typedef {function(Request, http.ServerResponse): void} RequestHandler */
/**
* Declare our "logFirst" type (which is a function)
*
* @callback ... |
import * as ethutil from './ethutil'
import { createRainbow } from 'rainbow-color'
import { rgbaString } from 'color-map'
import { loadTranslations } from './translations'
const constants = require(`../constants`)
let language = localStorage.getItem('lang')
let strings = loadTranslations(language)
export function getE... |
/* eslint-disable prefer-template */
/* eslint-disable no-restricted-globals */
import React, { useState } from "react";
import { useRouter } from "next/router";
// import Image from 'next/image';
import parse from 'html-react-parser';
import styles from "./index.module.css";
// 页面 - 页数栏内容
function PageNumRow({ data ... |
var $ = require('jquery');
$.expr[':'].textEquals = $.expr.createPseudo(function(arg) {
return function(elem) {
return elem.textContent === arg;
};
});
var MapViewer = function(app, container) {
var self = this;
this.maxCellSize = 15;
this.minCellSize = 8;
this.cellSize = 0;
this.cols = 0;
this.... |
"use strict";
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl... |
var assert = require('chai').assert;
var moment = require('moment');
var helperFunctions = require('../../src/utils/helpers');
var testDateFormat = 'MM-DD-YYYY';
describe('Helper functions used to do boring things such as parsing values, slicing dicing strings etc.', function () {
it('testCastToParamValue(date) -... |
const DuelPhase = {
WAIT : 0,
DRAW : 1,
EFFECT : 2,
ACTION : 3,
BATTLE : 4,
DAMAGE : 5,
END : 6
};
exports.DuelPhase = DuelPhase;
const ChannelType = {
NON : 0,
SRS : 1,
GMG : 2,
MDA : 3,
MTR : 4,
MEM : 5
};
exports.ChannelType = ChannelType;
//Bad "enum", because J... |
var map;
var layer_ = [];
//1FqGIwoYhlY7rLHE8-Nu4fRwQF6gslPKsl8C_6sh-
var tableId = ['<KEY>', '<KEY>', '<KEY>', '<KEY>'];
// <KEY> (2010),'1MYUia1wz4XNWpDQCtXv578RFD2_lstUSP4rGsnTp (2014)
// tableId0 = 六都2010各里圖層(ALL); tableId1 = 六都2010各里圖層(filter); tabeleId2 = 六都鄉鎮區圖層 ; tableId3 = 六都縣市圖層
var i... |
import React from 'react';
import './stylesheets/css/style.css';
import { useState, useEffect} from 'react';
import { isMobile } from 'react-device-detect';
import {setupGrid, paintBoard} from './artist';
/**
* Checks if the position at row r and column c is vacant.
* @param {Number} r - A row of the grid.
* @para... |
import Initial_Thumb from '../images/thumbs/news.png'
import Header_Thumb from '../images/thumbs/runway.png'
import * as Runway from './imgs/runway'
import * as UL from './imgs/ul'
import * as Archetype from './imgs/archetype'
import * as Composite from './imgs/composite'
import * as Pong from './imgs/pong'
import * as... |
/**
利用Bootstrap的进度条叠加效果,实现三个进度条叠在一起比赛前进的效果,nice!
GitHub: AdlerED
需要先插入HTML如下:
<div class="progress">
<div id="bar1" class="progress-bar progress-bar-success" style="width: 0%">
</div>
<div id="bar2" class="progress-bar progress-bar-warning" style="width: 0%">
</div>
<div id="bar3" class="progre... |
"use strict";
const Promise = require("bluebird");
const crypto = require("crypto");
const path = require("path");
const cloneRegexp = require("clone-regexp");
const del = require("del");
const expect = require("code").expect;
const glob2fp = require("glob2fp");
const gutil = require("gulp-util");
const is = require... |
/* Global variables */
var frontBuffer = document.getElementById('snake');
var frontCtx = frontBuffer.getContext('2d');
var backBuffer = document.createElement('canvas');
backBuffer.width = frontBuffer.width;
backBuffer.height = frontBuffer.height;
var backCtx = backBuffer.getContext('2d');
var oldTime = perform... |
import React, { useEffect, useState } from 'react'
import {
formatDateStr,
handleRespError,
makeChannelName,
formatDollars,
makeTicketCounts,
orderTypeNamesMap,
} from '@open-tender/js'
import { addAlert } from '@open-tender/redux'
import {
Page,
Section,
SectionHeader,
Row,
RowHeader,
RowTable,... |
import React from 'react';
import ReactDOM from 'react-dom';
import {
BrowserRouter,
Route,
Switch,
Link,
Redirect,
useRouteMatch,
useParams,
useLocation
} from 'react-router-dom';
import { connect, Provider } from 'react-redux';
import throttle from 'lodash.throttle';
import { ToastCont... |
import React, { Fragment } from 'react';
import { Link, withRouter } from 'react-router-dom';
import { InputNumber, Select, Row, Col, Form, Icon, Input, Button, Alert, AutoComplete, Spin, Layout as AntLayout, notification } from 'antd';
import { Mutation, Query } from 'react-apollo';
import { v4 as uuidV4 } from 'uuid'... |
var d = require("../Dicts.js");
var u = require("../UtilityFunctions.js");
const ipc = require('electron').ipcRenderer;
var Dict = d.Dict;
var Config = d.Config;
var shopBtnStatus = [];
function onLoad(){
let e = d.Config.enums;
u.ID("selectMenuForShopping").addEventListener("change", RefreshLists);
u.ID("pr... |
/*
* Node Pact Publisher
* https://github.com/alexcu-/node-pact-publisher
*
* Copyright (c) 2015 <NAME>.
* Licensed under the MIT license.
*/
var request = require('request');
var fs = require('fs');
var path = require('path');
var log = require('color-log');
var Q = require('q');
var _ = ... |
import React, { Component } from 'react'
import {
Row,
Col,
Tag,
Icon,
Form,
Modal,
Input,
Button,
Select,
Switch,
} from 'antd'
import * as mobx from 'mobx'
import debounce from 'lodash.debounce'
import { CodeEditor } from '~/components/'
import styles from './index.module.css'
import uniqby from '... |
const serverPort = process.env.PORT || 8081
// Required to know webpack port so that in dev we can build correct URLs
const clientPort = process.env.CLIENT_PORT || 8080
const API_PREFIX = '/api'
let domain
// If we build a specific staging instance
if (process.env.NODE_APP_INSTANCE === 'dev') {
domain = 'https... |
import React from "react";
import {Button, Tooltip} from 'antd';
import Ux from 'ux';
import U from 'underscore';
import Value from '../Ux.Value';
import Ai from '../ai/AI';
const _rtSubmit = (reference = {}, callback = {}) => {
const {form} = reference.props;
Ux.E.fxTerminal(!form, 10020, form);
Ux.E.fxTe... |
/* eslint no-unused-vars: ["error", { "argsIgnorePattern": "^_" }] */
import './assets/css/style.css';
import './assets/css/sidebar.css';
import { projectFactory } from './factories';
import dom from './domManipulation';
import storage from './activeStorage';
import layouts from './layouts';
import pubsub from './pubs... |
// (c) viewzavr project. MIT license.
// purpose: object and XML mutual conversion
export function setup(vz, m) {
vz.register_feature_set({
xml_lang, create_from_xml, obj_xml
})
}
export function xml_lang(env) {
if (env == env.vz)
create_from_xml( env );
else
obj_xml( env );
}
export function create_from_x... |
/* global new_block, $, document, WebSocket, escapeHtml, ws:true, start_up:true, known_companies:true, autoCloseNoticePanel:true */
/* global show_start_up_step, build_notification, build_user_panels, build_company_panel, populate_users_marbles, show_tx_step*/
/* global getRandomInt, block_ui_delay:true, build_a_tx, au... |
import _typeof from "@babel/runtime/helpers/typeof";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/... |
import { Range } from "./range";
import * as p from "../../core/properties";
import { NumberArray } from "../../core/types";
import { every, sum } from "../../core/util/array";
import { isArray, isNumber, isString } from "../../core/util/types";
import { unreachable } from "../../core/util/assert";
export function map_... |
const Discord = require('discord.js');
const client = new Discord.Client();
const fs = require('fs');
const func = require('./functions');
const parser = require('discord-command-parser');
const chalk = require('chalk');
class Commands {
constructor(botconfig) {
this.botconfig = botconfig;
this.getc... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import GatsbyLink from 'gatsby-link';
import { FacebookShareButton, GooglePlusShareButton, TwitterShareButton, RedditShareButton } from 'react-share';
import Img from 'gatsby-image';
import Gitalk from 'gitalk';
import ArticleSchema from '../... |
import * as WebBrowser from 'expo-web-browser';
import moment from "moment";
import React from 'react';
import {
Platform,
ScrollView,
StyleSheet,
View,
ListView,
RefreshControl,
Component,
TouchableOpacity,
Alert,
AsyncStorage,
FlatList, Modal
} from 'react-native';
import { Container, Footer, I... |
'use strict';
const _ = require('lodash');
const { AbstractQuery } = require('../abstract/query');
const parserStore = require('../parserStore')('ibmi');
const sequelizeErrors = require('../../errors');
const { logger } = require('../../utils/logger');
const debug = logger.debugContext('sql:ibmi');
export class IBMi... |
import _ from 'lodash';
import React, { Component } from 'react';
import './ImageRenderer.css';
import ControlBar from './control-bar/ControlBar';
import { updateGuiDisplay, updateRenderType } from '../controller/Controller';
import { manipulateImageData } from '../../core/image-manipulator';
import { renderSvgStri... |
var express = require('express');
var app = express();
const mysql = require('mysql');
var bodyParser = require('body-parser')
var sanitizer = require('sanitize')();
const path = require('path');
const fs = require('fs');
var compression = require('compression')
var https = require('https');
const { check, validationRe... |
'use strict'
var MODULE_NAME_PATTERN = /(^|\/)format-message$/
exports = module.exports = {
setBabelContext: function (path, state) {
this.context = {
type: 'babel',
path: path,
state: state
}
},
setESLintContext: function (context) {
this.context = {
type: 'eslint',
c... |
// the constant contains the order of precedence.
// the higher the value, higher the precedence.
module.exports = grammar({
name: 'trafficscript',
// inline: $ => [
// $._string_content,
// //$.member_expression,
// //$._call_signature,
// //$.statement,
// $._expressions,
// $.semi_colon,... |
import React, { useContext, useEffect, useRef, useState } from 'react';
import AuthContext from '../../context/Authentication';
import { SnackbarMessageContext } from '../../context/Snackbar';
import { InlineButton, InlineLinkButton } from '../Forms/Button';
import * as s from './style.module.less';
import { CTAButton,... |
//+---------------------------------------------------------------------------------------------------------------------------------+
// /
// Copyright (c) 2012 Yahoo! Inc. All rights reserve... |
'use strict';
const AWS = require('aws-sdk');
const get = require('lodash.get');
const fs = require('fs-extra');
const path = require('path');
const utils = require('./utils');
/**
* Copy, zip and upload lambda functions to S3
*
* @param {Object} config the configuration object
* @param {String} kesFolder the pat... |
import React, { useEffect, useState } from 'react';
// import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import { toJS } from 'mobx';
import { useStores } from '../../stores/connect';
import styled from 'styled-components';
import _ from 'underscore';
import Button from '../Buttons/Button';
im... |
import { config } from "../../config.js";
let idcalculadora = 0;
const template = /*html*/ `
<div @keyup="onkey" :tabindex="id" class="calc yolo">
<x-bar-menu color="w3-blue-grey" titulo="Calculadora" icono="calculator"></x-bar-menu>
<div class="w3-row w3-margin">
<div class="w3-col s12">
... |
function ImageGallery(el) {
var slide = $(el).find("div.slide");
var img = $(el).find("#crop img");
var navLeft = $(el).find("#nav-left");
var navRight = $(el).find("#nav-right");
var images = [1, 2, 3, 4, 5];
var moveLeft = function () {
var update = [];
for (var i = 1; i < ... |
import React, { Component } from 'react';
import Bleep from '../common/Pagination';
import styled from 'styled-components';
import bg from '../../img/createprofilebg.jpg';
import propTypes from 'prop-types';
import { connect } from 'react-redux';
import { createProfile } from '../../redux/actions/profileActions';
impor... |
import React, { useState, useMemo, useEffect } from "react";
import { useRouter } from "next/router";
import { useQuery } from "@apollo/react-hooks";
import gql from "graphql-tag";
import Layout from "../../../components/layout";
import { withApollo } from "../../../lib/apollo";
import Modal from "react-modal";
import ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const file_saver_1 = require("file-saver");
const React = require("react");
const react_1 = require("react");
const reactstrap_1 = require("reactstrap");
const Range_1 = require("../../../share/util/Range");
const utils_1 = require("../../../s... |
//? |-----------------------------------------------------------------------------------------------|
//? | /app.js |
//? | |
//? | Copyrig... |
/* global THREE */
import {vec2,vec3} from 'gl-matrix'
import Config from './config'
const AMOUNT = 20000
const RANDOM_COLOR = 300
class FaceColor {
constructor() {
this.colors = require('./data/particle_sprite_colors.json')
this.renderBuffer = new Uint8Array(1024 * 1024 * 4)
}
findNearestColor(inC... |
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOw... |
/* jshint esversion: 6 */
import PropTypes from 'prop-types';
import classnames from 'classnames';
import ResponsiveControl from '../common/responsive.js';
import Icons from '../common/icons.js';
import RowComponent from './row-component';
const { __ } = wp.i18n;
const { ButtonGroup, Dashicon, Tooltip, Button } = wp... |
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySy... |
'use strict';var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(funct... |
const FALSY_VALUES = ['false', 'no', '0', 'null', 'undefined']
const convert = {
'json': v => JSON.parse(v),
'string': v => v || "",
'number': v => v || "",
'bool': v => v && !FALSY_VALUES.includes(v.toLowerCase().trim()) || false
}
const isString = value => Object.prototype.toString.call(value) === '[object St... |
Vue.component('vue-grid', {
template: '#tpl-' + app.tableId,
replace: true,
props: {
title: String,
data: Array,
columns: Array,
actions: Array,
simple: Boolean,
current_page: String,
per_page: String,
filterKey: String
},
data: function () {
var sortOrders = {}
this.co... |
import _ from 'lodash';
import bigInt from 'big-integer';
import prompt from 'prompt';
import { performance } from 'perf_hooks';
const AORPHEAT_CONSTANT = 19800000;
const PRECISION_FACTOR = 10;
const HOUR_IN_SECONDS = 60 * 60;
const DAY_IN_SECONDS = HOUR_IN_SECONDS * 24;
const WEEK_IN_SECONDS = DAY_IN_SECONDS... |
import { useLocation } from '@reach/router'
import Chip from 'components/Chip'
import { Facebook, LinkedIn, Mail, Twitter } from 'components/Icons/Icons'
import Link from 'components/Link'
import { useBreakpoint } from 'gatsby-plugin-breakpoints'
import { GatsbyImage, getImage } from 'gatsby-plugin-image'
import React,... |
/// <reference types="@types/jasmine" />
const { AceBase } = require("..");
const { createTempDB } = require("./tempdb");
describe('BETA - Transaction logging', () => {
/** @type {AceBase} */
let db, removeDB;
beforeAll(async () => {
({ db, removeDB } = await createTempDB({ transactionLogging: tru... |
var chart1;
var chart2;
var chart3;
var chart4;
var options1;
var options2;
var options3;
var gaugeOptions;
/**
* In order to synchronize tooltips and crosshairs, override the
* built-in events with handlers defined on the parent element.
*/
$('#container_sync').bind('mousemove touchmove touchstart', function (e) {... |
// Copyright (c) 2011, <NAME>, <NAME>
var Vector = require('./vector');
var Matrix = require('./matrix');
var Plane = require('./plane');
var Sylvester = require('./sylvester');
// Line class - depends on Vector, and some methods require Matrix and Plane.
function Line() {}
Line.prototype = {
// Returns true if th... |
// created by jdegen on 06/16/2014
var nTargets = shuffle([9,10])[0];
var fonttype = shuffle(["italicized","basic"])[0];
//console.log(nTargets);
var speakers = shuffle(["Ben", "Dan", "Ted","Calvin","Max", "Ann", "Liz", "Diane","Amy", "Marie", "Jane"]);
var zero = shuffle(["none","zero"])[0];
var baselow = ["one","tw... |
/* eslint-disable promise/always-return */
import appcdLogger from 'appcd-logger';
import DetectEngine from 'appcd-detect';
import gawk from 'gawk';
import version from './version';
import * as androidlib from 'androidlib';
import { arrayify, debounce, get, mergeDeep } from 'appcd-util';
import { cmd, exe } from 'ap... |
/** @babel */
import EventEmitter from 'events';
import {MessageHandler,Messenger} from 'hjs-message/lib/handler';
import {MessageQueue} from 'hjs-message/lib/queue';
let simulationTimestep = 1000 / 60,
frameDelta = 0,
lastFrameTimeMs = 0,
fps = 60,
lastFpsUpdate = 0,
framesThisSecond = 0,
numU... |
import React, { useEffect, useState, useRef } from "react";
import { useDispatch, useSelector } from "react-redux";
import { connect } from "./redux/blockchain/blockchainActions";
import { fetchData } from "./redux/data/dataActions";
import * as s from "./styles/globalStyles";
import styled from "styled-components";
im... |
/*
Copyright 2020-2021. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Un... |
import Create from "components/Bots/SpreadTrade/Create";
import State from "components/Bots/SpreadTrade/State";
import {ChainStore} from "bitsharesjs";
import Apis from "lib/bots/apis";
import Assets from "lib/bots/assets";
import BigNumber from "bignumber.js";
import Account from "lib/bots/account";
import SettingsAct... |
/*/////////////////////////////////////////////////////////////////////////////
/// @summary Implements the loading of data compiler processes, IPC
/// communications, and building of content.
/// @author <NAME> (<EMAIL>)
///////////////////////////////////////////////////////////////////////////80*/
var Monitor = req... |
/** FUNCIONALIDADES PARA LOS SUBFORMULARIOS VEHICULOS DE LAS FACTURAS **/
function subFormVehiculos(id_input, id_aceptar, id_divSubform) {
collection = $('div.Vehiculos_min');
collection.data('index1', collection.find(':input').length);
addForm1(id_input, id_aceptar);
$('div.Vehiculos_min label').empt... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { FormattedMessage,
FormattedDate,
FormattedTime,
injectIntl } from 'react-intl'
import _map from 'lodash/map'
import _get from 'lodash/get'
import _kebabCase from 'lodash/ke... |
import React from "react";
import styled from "styled-components";
import { connect } from "react-redux";
import Link from "next/link";
import YouTube from "react-youtube";
import RelatedProjects from "./RelatedProjects";
import { getRandomInt, shuffle, youtubeGetID } from "../../../utils/functions";
import {
faVi... |
/* global fixture, test */
import { Selector } from 'testcafe'
import { asSupplier } from './roles'
import { supplierDashboardPage, onboardingDashboardPage, standardsComplianceDashboardPage } from './pages'
/**
* Expected statuses are predefined in the seed data used in testing.
* There should be at least one of e... |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
import React, { useState, useLayoutEffect, useRef, useCallback } from "react";
import styled from "styled-components";
import throttle from "lodash/throttle";
import PT from "prop-types";
import { CONTACT_STATUS, KE... |
function dump_expr(Expr)
{
if(!Expr)
return "FAIL: nil";
var a = print_infix(Expr);
var string = "";
for(i = 0; i < a.length; i++)
string += a[i].value;
return string;
}
function isOp(Val)
{
if(Val == 0)
return true;
return operators.indexOf(Val) != -1;
}
function QPop()
{
if(Q.length == 0)... |
export {MyListCsv as default};
let MyListCsv = {
name:'my-list-csv',
template:`<div class="list-header">
<div class="list-csv-line">
<p v-if="action === 'export'">{{ capApp.message.csvExport }}</p>
<p v-if="action === 'import'">{{ capApp.message.csvImport.replace('{COUNT}',this.columns.length) }}</p>
</d... |
/**
* @file
* Defines the Core.logging.Logger class.
*
* @author <NAME> <<EMAIL>>
* @version 1.0
* @copyright 2019 C2C Schools, LLC
* @license MIT
*/
// Load dependencies using the Core Framework
const { _, MOMENT } = Core.deps( "_", "moment" );
/**
* A class that facilitates log output.
*
* @memberOf Co... |
import Axis from './graph.axis.js';
/**
* Generic constructor of a y axis
* @augments Axis
*/
class AxisX extends Axis {
constructor(graph, topbottom, options = {}) {
super(graph, topbottom, options);
this.top = topbottom == 'top';
}
/**
* @private
* Returns the position of the axis, used by ... |
"use strict"
// npm modules
const request = require('request-promise');
const prompt = require('prompt');
const os = require('os');
const fs = require('fs');
const path = require('path');
const child_process = require('child_process');
const colors = require('colors');
// ask for business data, return an object
const... |
import $ from 'jquery'
import { TweenLite, Back, Elastic, Bounce } from 'gsap'
class Subscribe {
constructor () {
this.initDom()
var self = this
// Throttlers
self.ctaThrottle = false
self.subscribeThrottle = false
$(document).ready(function () {
self.subscribeCta.on('click', function... |
const axios = require('axios');
const log = require('log').get('dingtalk-provider');
const {
makeGroupEntry,
makePersonEntry,
makeOrganizationUnitEntry,
addMemberToGroup,
} = require('../utilities/ldap');
const {
saveCacheToFile,
loadCacheFromFile,
} = require('../utilities/cache');
let appKey = '';
let a... |
const MeCab = new require('mecab-async');
const _request = require("request");
const request = require('cached-request')(_request);
const cheerio = require('cheerio');
const moji = require('moji');
const glob = require('glob')
const path = require('path');
request.setCacheDirectory(path.resolve(__dirname, './temp/'));... |
/*Matrizes
//Exemplo simples de matriz
var matriz1 = [1,2,3,4,5];
//console.log(matriz1);
console.log(matriz1[2]);
//Matriz com diferentes tipos de dados
var matriz2 = [1, "Melissa", true];
//console.log(matriz2);
console.log(matriz2[1]);
//Matriz de matrizes
var matriz3 = [[1,2,3,4,5], [3,4,5,6,7], [5,6,... |
/**
The MIT License (MIT)
Copyright (c) 2014 UserApps.de
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, m... |
console.log("loading manifestation.js",uploadUuid);
var objLI = { "" : "" },
robjLI = { "" : "" },
letterType,rletterType,
manifest_editor; // use a global for the submit and return data rendering in the examples
repoLoad( uploadUuid, uploadUuid );
// DOM Ready ==================================================... |
import React, { Component, PropTypes } from 'react';
import { createStyleSheet } from 'jss-theme-reactor';
import { Menu, MenuItem } from '../Menu';
import ClearFix from '../internal/ClearFix';
//import PopoverAnimationVertical from '../Popover/PopoverAnimationVertical';
const anchorOrigin = {
vertical: 'top',
hori... |
function initHeader(){
var darkTheme = $('body').hasClass('dark');
if(!darkTheme){
$('.header').load('../templates/_light-header.html');
$('.footer').load('../templates/_light-footer.html');
$('.landing .header').load('../templates/_lite-header-light.html');
//$('.landing .footer').load('../template... |
/**
* @file
* Defines the Core.error.Manager class.
*
* @author <NAME> <<EMAIL>>
* @version 1.0
* @copyright 2019 C2C Schools, LLC
* @license MIT
*/
"use strict";
/* eslint no-useless-call: "off" */
// Load dependencies using the Core Framework
const { _, VERROR } = Core.deps( "_", "verror" );
/**
* Facili... |
import React, { useContext, useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import TimerContext from '../../context/timers/timerContext';
import AmrapSet from './minor_timer_comp/AmrapSet';
import AmrapTimes from './minor_timer_comp/AmrapTimes';
//TODO: fix bug on sets when timer is paused... |
const express = require('express');
const authRequired = require('../middleware/authRequired');
const BPModel = require('./businessProfileModel');
const router = express.Router();
/**
* @swagger
* components:
* parameters:
* groomerId:
* name: id
* in: path
* description: id of ... |
$('body').on('click', '.pagination a', function (e) {
e.preventDefault();
$('#load a').css('color', '#dfecf6');
$('#load').append('<img style="position: absolute; left: 0; top: 0; articles/listingz-index: 100000;" src="/images/loading.gif" />');
var url = $(this).attr('href');
var page_number = get_... |
Element.prototype.remove = function() {
this.parentElement.removeChild(this);
}
NodeList.prototype.remove = HTMLCollection.prototype.remove = function() {
for(var i = this.length - 1; i >= 0; i--) {
if(this[i] && this[i].parentElement) {
this[i].parentElement.removeChild(this[i]);
}... |
/**
* 直播交互页
*
* @flow
*/
'use strict';
import React, {PropTypes,Component} from 'react';
import {
Text,
View,
Modal,
Easing,
Platform,
Animated,
ListView,
ScrollView,
Dimensions,
PanResponder,
TouchableOpacity,
DeviceEventEmitter,
} from 'react-native';
import Video ... |
'use strict';
let fishdict = {
old: {
"Wailmer": [40, 1],
"Tentacool": [-20, 19],
"Tympole": [10, 49],
"Poliwag": [20, 68],
"Dratini": [50, 69],
"Bruxish": [30, 85],
"Milotic": [40, 99],
"<NAME>": [80, 100]
},
good: {
"Wailord": [50, 1],
"Carvanha": [-35, 19],
"Floatzel": [35, 49],
"Milotic"... |
/*
Copyright 2011 <NAME> (<EMAIL>, www.lazarsoft.info)
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... |
// common methods for all primitives that
// need to be passed to some classes that already inherit from other classes
import {MathUtils, Matrix4, Vector3, Euler, Quaternion} from 'three';
import {LngLat, Mercator} from '../coordMath.js'
import AnimationOptions from '../ui/AnimationOptions.js';
import state from '../c... |
let { build, publish } = require('gulp-dotnet-cli');
let gulp = require('gulp');
let fs = require('fs');
let exec = require('child_process').exec;
var _msbuild = require('msbuild');
let flatmap = require('gulp-flatmap');
let rimraf = require('rimraf');
let path = require("path");
let mkdirp = require('mkdirp');... |
import React from "react";
import styled from "styled-components";
import Iframe from "./components/iframe";
import basicImg from "./image/level_up_image.png";
import divider from "./image/divider.png";
import user_info from "./variables/user_info";
import ExitButton from "./components/ExitButton";
import nextButton f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.