text stringlengths 3.22k 29.5k |
|---|
'use strict';
// eslint-disable-next-line no-unused-vars
const request = require('request');
// eslint-disable-next-line no-unused-vars
const cheerio = require('cheerio');
// eslint-disable-next-line no-unused-vars
const colors = require('colors');
/**
* TEXT COLORS
*
* black
* red
* green
* yellow
* blue
* m... |
{//创建表格
$($('body')[0]).html('<div id="my2048"><div id="myhead"><div id="headtop"><span id="title2048">2048</span><div id="headScore"><div id="nowScore">0</div><div id="bestScore">0</div></div></div><div id="gameIntro"><span id="describe">Play 2048 Game Online</br>Join the numbers and get to the 2048 tile!</span><div... |
import { task, src, dest, series, watch } from 'gulp';
import babelify from 'babelify';
import log from "fancy-log";
import colors from "colors";
import syncReq from "sync-request";
import extensionOptions from "./src/config/_/extension";
const $ = require('gulp-load-plugins')();
const styleGuideManifest = JSON.pars... |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2009 <NAME>
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/... |
const Engine = require('npc-engine');
const nodePersist = require('node-persist');
const Bottleneck = require('bottleneck');
const defaultsDeep = require('lodash.defaultsdeep');
const path = require('path');
class NodePersist extends Engine {
#engine;
#limiter;
#directory;
#ready;
#defaultOpts = {
directory: `.... |
#!/usr/bin/env node
// NOTE: The official inquirer documentation is really good. To know more about the different question types,
// please refer to https://www.npmjs.com/package/inquirer#prompt-types
const program = require('commander')
const inquirer = require('inquirer')
const clipboardy = require('clipboardy')
co... |
import {
$, tween, isTouch, $doc, $body, wndW,
} from './_utility';
/*------------------------------------------------------------------
Init Navbar Side
-------------------------------------------------------------------*/
function initNavbarSide() {
const self = this;
const $overlay = $('<div class="... |
/* global $ */
import './style.css';
import {
createDefaultProject,
newProjectButton,
createProject,
wrapProject,
} from './module/projectModule.js';
import { Todo, createCards } from './module/todoModule.js';
import { validFormat, uxManager } from './module/uxmanager.js';
const addToSelect = (project) => {... |
function processSiteMetadataElement(){
var sites_text = $('#id_available_sites').val();
var sites_json = $.parseJSON(sites_text);
var original_site_code = $('#id_site_code_filetype').val();
var site_form_elements = ['#id_site_code_filetype', '#id_site_name_filetype',
'#id_elevation_m_filetype', ... |
/*********************************************
**********************************************
** Copyright. **
** YUKI.N(Yuki Nagato) Typing Engine **
** Coded by "Nagisa." **
** http://www008.upp.so-net.ne.jp/nagisa/ **
** https://130cmwolf.github.io/ ... |
import test from 'tape-catch';
import destination from '@turf/destination';
import {toLowPrecision} from '../utils/test-utils';
import {config, equals} from 'math.gl';
import {
lngLatToWorld,
worldToLngLat,
getMeterZoom,
getDistanceScales,
addMetersToLngLat,
getUncenteredViewMatrix,
getViewMatrix,
get... |
class HashEntry {
constructor(key, data) {
this.key = key;
//data to be stored
this.value = data;
//reference to new entry
this.next = null;
}
}
let threshold = 0.6;
class HashTable {
constructor() {
//Size of the Hashtables
this.slots = 10;
//Current entries in the table
//Used while resizing th... |
//some of this was psuedocoded in class on 11/08/2019 when Shelby went over this stuff at the end of the day.
require("dotenv").config();
var keys = require("./keys.js");
// var inquirer = require("inquirer");
var moment = require("moment");
var axios = require("axios");
var Spotify = require("node-spotify-api");
var ... |
/**
* Server Handler: HtmlBox Commands
*/
'use strict';
const Path = require('path');
const Text = Tools('text');
const check = Tools('check');
const SubMenu = Tools('submenu');
const Template = Tools('html-template');
const cmdsTemplate = new Template(Path.resolve(__dirname, 'template-cmds.html'));
const cmdTempl... |
function change(){
$('#h_inclusion_real').val($('#h_inclusions').html());
}
function delete_data(id){
$(document).ready(function(e) {
var loc = config.base_url+'/welcome/delete_data/'+id
if(confirm("Delete this Hotel Record form database ?")){
jQuery.ajax({
type: "POST",
url: loc,
cache: false,
... |
import ComplexNumber from '../complex-number/ComplexNumber';
const CLOSE_TO_ZERO_THRESHOLD = 1e-10;
/**
* Discrete Fourier Transform (DFT): time to frequencies.
*
* Time complexity: O(N^2)
*
* @param {number[]} inputAmplitudes - Input signal amplitudes over time (complex
* numbers with real parts on... |
/*
Table sorting script by <NAME>, check it out at http://www.joostdevalk.nl/code/sortable-table/.
Based on a script from http://www.kryogenix.org/code/browser/sorttable/.
Distributed under the MIT license: http://www.kryogenix.org/code/browser/licence.html .
Copyright (c) 1997-2007 <NAME>, <NAME>.
Permission is her... |
import React, { Component } from 'react';
import { routerRedux } from 'dva/router';
import Add from '../../components/Video/addVideoInfo';
import Update from '../../components/Video/updateVideoInfo';
import InfoList from '../../components/Video/VideoInfoList';
import { Table, Card, Button, Modal, message, Divider, Icon... |
import React, { Component } from "react";
import { Image, TouchableOpacity, View, StyleSheet, ScrollView, TouchableHighlight, StatusBar, Text } from "react-native";
import { Icon, Button } from "native-base";
import Modal from "react-native-modal";
import StarRating from '../Details/StarRating';
import { Mutation } fro... |
const {CompositeDisposable, TextEditor, Point, Emitter} = require("atom")
const Path = require("path")
const Git = require("./git")
const fs = require("fs-plus")
const {repositoryHasFilePath, setGrammarForEditor, hasCommitMessage} = require("./utils")
const settings = require("./settings")
const DiffEditor = require("... |
'use strict';
/*
* Filename: f:\Diogo\github.com\thMonitor\example\bl_resolve\src\util.js
* Path: f:\Diogo\github.com\thMonitor\example\bl_resolve
* Created Date: Monday, October 22nd 2018, 10:34:05 am
* Author: Diogo
*
* Copyright (c) 2018 taiheiot.com
*/
// id : 11
// 扩展 Date
Date.now = Date.now || functio... |
/*
*
* <NAME> & <NAME>
* Circus Project
* Software Engineering
* Andrews University
* 12/12/2018
*
* showshower.js
*
*/
//Initialize primary firbase consts
const auth = firebase.auth();
const db = firebase.database();
//Links to fields and buttons in html files
const displayShows = document.getElementById... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Package = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor... |
let storage = [];
const relevantTopics = [
{
id: 1,
name: "Engenharia Social",
content: "Consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam. Nemo enim ipsa... |
/*-----------------------------------------------------------
* 2c - Cross Platform 3D Application Framework
*-----------------------------------------------------------
* Copyright © 2011 - 2011 France Telecom
* This software is distributed under the Apache 2.0 license.
* http://www.apache.org/licenses/LICENSE-2.... |
'use strict';
/**
* Module dependencies.
*/
var path = require('path'),
util = require('util'),
elasticsearch = require('elasticsearch'),
_ = require('underscore'),
errorHandler = require(path.resolve('./modules/wam/server/controllers/errors.server.controller')),
common = require('./common'),
config = req... |
import React from 'react'
import PropTypes from 'prop-types'
import ImageGallery from 'react-image-gallery'
import cologne1 from '../images/cologne/cologne_2.jpg'
import cologne2 from '../images/cologne/cologne_1.jpg'
import cologne3 from '../images/cologne/cologne_3.jpg'
import portrait1 from '../images/portrait/port... |
"use strict";
const plumber = require("gulp-plumber");
const through = require("through2");
const chalk = require("chalk");
const newer = require("gulp-newer");
const babel = require("gulp-babel");
const camelCase = require("lodash/camelCase");
const fancyLog = require("fancy-log");
const filter = require("gulp-filter... |
#! /usr/bin/env node
'use strict';
process.env.VIPS_WARNING = 0;
var fs = require('fs');
var promise = require('promise');
var request = require('request');
var sharp = require('sharp');
function hash(str) {
var hash = 0, i, chr, len;
for (i = 0, len = str.length; i < len; i++) {
chr = str.charCodeAt(i);
... |
function initializeAddForumTopicForm(sParentId, sFormIndex, sLanguage)
{
if (typeof sLanguage == 'undefined') sLanguage = '';
$('#addForumTopicBodyCode_'+sParentId+'_'+sFormIndex).summernote({ height: 200, minHeight: null, maxHeight: null, focus: true, styleWithSpan: false });
$('#addForumTopicImageUpl... |
var cache = false;
var store = require('/modules/store.js');
var engine = caramel.engine('handlebars', (function () {
return {
partials: function (Handlebars) {
var theme = caramel.theme();
var partials = function (file) {
(function register(prefix, file) {
... |
// Ssl
import {
COL_INIT, COL_VERTEX_INIT, COL_VERTEX, COL_TRI_INIT, COL_TRI, COL_TRI_STOP, COL_END,
SURFACE_DEFAULT
} from "../../../include/surface_terrains"
// 0x07028274 - 0x070282F8
export const ssl_seg7_collision_07028274 = [
COL_INIT(),
COL_VERTEX_INIT(0x8),
COL_VERTEX(-87, 3, 147),
COL... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = expectTransformer;
var _consts = require('../utils/consts');
var _imports = require('../utils/imports');
var _recastHelpers = require('../utils/recast-helpers');
var _logger = require('../utils/logger');
var _logger... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _path = _interopRequireDefault(require("path"));
var _SingleEntryPlugin = _interopRequireDefault(require("webpack/lib/SingleEntryPlugin"));
var _minimatch = _interopRequireDefault(require("minimatch"));
... |
var items=[
"Nothing",
"Stick",
"Iron Thorn",
"Silver Spike",
"Gold Fang",
"Cacnea Spike",
"Corsola Twig",
"Gravelerock",
"Geo Pebble",
"Mobile Scarf",
"Heal Ribbon",
"Twist Band",
"Scope Lens",
"Patsy Band",
"No-Stick Cap",
"Pierce Band",
"Joy Ribbon",
"X-Ray Specs",
"Persim Band",
"Power Band",
"Pecha Scarf",
"Insomn... |
////////////////////////////////////////////////////////////////////////////////
// Robot hand exercise: add a second grabber and have it respond
////////////////////////////////////////////////////////////////////////////////
/*global THREE, Coordinates, $, document, window, dat*/
var camera, scene, renderer;
var cam... |
'use strict';
///////////////////////////// Favorite list /////////////////////////
const FavoriteList = function(favMovies) {
this.favMovies = favMovies;
};
// eslint-disable-next-line no-unused-vars
const favList = new FavoriteList([]);
FavoriteList.prototype.addToFavList = function(title, year, category, post... |
import { cleanupOutData } from '../lib/svgo/tools'
import { transform2js, transformsMultiply, matrixToTransform } from './_transforms'
const name = 'convertTransform'
const type = 'perItem'
const active = true
const description = 'collapses multiple transformations and optimizes it'
const params = {
convertToSho... |
// ------------------------------------------------------
// File: return_from_portal.js
// JavaScript responsible for processing the return from
// GovPay payment page.
// Queries CRM for the payment reference and calls a
// CRM action to check if the payment was successful
// Modified by <NAME>
// -----------------... |
import React, { useState,useRef } from "react";
import EditableTable from '../../dist';
import { Button, Checkbox, Input, Tooltip, Form, Row,Col,InputNumber,DatePicker } from 'antd';
import styles from './index.css';
import moment from 'moment';
import { SearchOutlined } from '@ant-design/icons';
import _ from "lodash"... |
import config from "../../config";
import styles from "./Geolocation.module.css";
import React from "react";
import settings from "../../settings";
/*
* Geolocation Logic
* The geolocation module works in two stages:
* 1. Gets the user's geodata
* 2. Using the API, get the city and country from geodata
*... |
import React from 'react'
const Dashboard = React.lazy(() => import('./views/dashboard/Dashboard'))
const Colors = React.lazy(() => import('./views/theme/colors/Colors'))
const Typography = React.lazy(() => import('./views/theme/typography/Typography'))
// Base
const Accordion = React.lazy(() => import('./views/base/... |
/*
* Copyright The OpenTelemetry 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
import Color from "../";
beforeAll(() => {
Color.suppressWarnings = true;
});
function expectRGBA(src, space, r = 0, g = 0, b = 0, a = 1) {
const col = new Color(src);
expect(col.space).toBe(space);
if (space)
expect(col.rgba).toStrictEqual([r, g, b, a]);
else
expect(col.rgba).toStrictEqual([0, 0, 0, 0]);
... |
//dragging functions for interactive map
var dragStart = 0;
var dragEnd = 0;
var isDragging = false;
var basePageURL = '';
var requestContinueAllowed = false;
var countsAsLeave = true;
/**
* Binds the calendar nav
* For using the calendar
*/
function bind_calendar_nav() {
//set the entitlement year
var th... |
import {
BinaryOperatorNode,
EmptyNode,
IdentifierNode,
LiteralNode,
ParenthesizedNode,
Token,
} from "./types.js";
class Input {
constructor(text) {
this.text = text;
this.pos = 0;
}
getChar() {
return this.text[this.pos++];
}
ungetChar(/* unused */ c) {
this.pos--;
}
peek... |
/**
*
* Ugc
*
*/
import React, { memo, useState, useRef, useEffect } from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import { compose } from ... |
const Monster = require('../models/Monster');
const Story = require('../models/Story');
const UserStory = require('../models/UserStory');
const UserDiploma = require('../models/UserDiploma');
const Steps = require('../models/Step');
const Lesson = require('../models/Lesson');
const genFunc = require('./gen_functions');... |
import "./CSS/style.css";
import "./CSS/normalize.css";
import * as THREE from "three";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
const scene = new THREE.Scene();
// Sizes
const sizes = {
width: innerWidth,
height: innerHeight,
};
const target = new THREE.Vector2();
const mouse ... |
//sources
// https://eloquentjavascript.net/code/chapter/17_canvas.js
// https://developer.mozilla.org/en-US/docs/Web/API/Element/mousemove_event
//Initialize GLOBAL variables to create a canvas
let canvasDiv;
let canvas;
let ctx;
let WIDTH = 500;
let HEIGHT= 500;
//Container array for mobs or enemies
let mobs = [];
... |
/* =====================================================
_hidden.js
======================================================== */
//(function($){ // jQuery no conflict
//'use strict';
/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
Section
- - - - - - - - - - - - - - - - - - - - - - - - - - - - */
//c... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Famous Industries Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
var Farticulo;
var A;
var facturas;
function mostrar(btn)
{
Farticulo=btn.parentNode.parentNode;//Guardamos la fila seleccionada "<tr>"
$("#cant").val("");
$("#precio").val(Tarti.row(Farticulo).data()[2]);//Escribimos el valor por defecto
}
$('#Add').on('shown.bs.modal', function (e) {
$("#cant").selec... |
// Functions used by more than one element.
import { errorMessage } from 'elements-sk/errorMessage';
import { jsonOrThrow } from 'common-sk/modules/jsonOrThrow';
// Updated from
// https://github.com/luci/luci-py/blob/master/appengine/swarming/ui2/modules/alias.js#L33
const DEVICE_ALIASES = {
ELE: 'P30',
'TECNO-KB... |
const throttle = require('lodash.throttle');
const stream = require('stream');
const flatten = require('./flatten');
const invokeCompile = require('./invokeCompile');
const logUpdate = require('log-update');
const stripAnsi = require('./stripAnsiExceptStyle');
const isFunction = require('./isFunction');
const arrayToFl... |
/*
* Copyright 2018 DoubleDutch, 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 or agre... |
/*linegraph.js
<NAME> 10880682
makeLinegraph:
- Prepare linegraph
*/
function makeLinegraph(size) {
//Prepare Linegraph
var svg = d3.select("div.linegraph")
.append("svg")
.attr("width", size.width + size.margin.left + size.margin.right)
.attr("height", size.height + size.margin.top + size.m... |
class WT_G3x5_TSCDatabaseStatus extends WT_G3x5_TSCPageElement {
/**
* @param {String} homePageGroup
* @param {String} homePageName
* @param {WT_NavigraphNetworkAPI} navigraphNetworkAPI
*/
constructor(homePageGroup, homePageName, navigraphNetworkAPI) {
super(homePageGroup, homePageNa... |
web = app.CreateWebView(1,1);
web.LoadUrl("https://www.google.com");
app.EnableBackKey(false);
res = Sav = sa = false;
Com = com = 'req get https://www.google.com\nreg pat res (href|src)=".+?" gmi\n%%pat%% = %%pat%%.join("\\n\\n")\nrep pat (href|src)=|" \nalert(%%pat%%)\n//tcp connect www.google.com\n//tcp send GET$/... |
'use strict';
var events = require('events')
var fs = require('fs')
var path = require('path')
var logger = require('./logger')
var Server = require('./server')
var Entities = require('./entities')
var Database = require('./database')
var Addons = require('./addons')
var Api = require('./api')
var History = require(... |
/* Copyright (c) Trainline Limited, 2016-2017. All rights reserved. See LICENSE.txt in the project root for license information. */
'use strict';
var AWS = require('aws-sdk'),
S3 = new AWS.S3(),
STS = new AWS.STS(),
async = require('async'),
process = require('pr... |
/**
* Created by madki on 06/08/18.
*/
export const STAGE_SIZE = 800;
// assuming the boxes to be square
export const BOX_1_SIZE = 600;
export const BOX_2_SIZE = 400;
export const BOX_3_SIZE = 200;
export const OPTIONS = {
backgroundColor: 0x5bb23c,
};
export const LINE_STYLE = {
lineWidth: 2,
color: 0x4eff0e... |
/**
* Copyright (c) 2019 <NAME>
* https://github.com/NadavTasher/WebAppBase/
**/
/* API */
function api(endpoint = null, api = null, action = null, parameters = null, callback = null, form = body()) {
fetch(endpoint, {
method: "post",
body: body(api, action, parameters, form)
}).then(respon... |
const http = require("http")
const fs = require("fs")
const readline = require('readline');
const path = require("path")
module.exports = class{
/**
*
* @param {Number} port
*/
#logs;
#port;
#started;
#functions;
#http_error;
#access_count;
#max_minute_req... |
import Phaser from 'phaser';
import logoImg from './assets/logo.png';
import backgroundImg from './assets/desert-background.png';
import groundSandBrokenImg from './assets/ground_sand_broken.png';
import groundSandBrokenWall from './assets/ground_sand_broken_wall.png'
import playerSpriteSheet from './assets/characterSh... |
import Logdown from 'logdown';
import API from '@/services/api';
import Product from '@/models/product.model';
import ProductSchema from '@/scheme/product.schema';
import { deepCopy } from '@/util';
import Analytics from '@/services/analytics';
const logger = new Logdown('app.items-store');
const schema = ProductSchem... |
/**
oauth2Fetch({
oauth2: {
forceAuthorization: true|false
endpoints: {
authorization: '...',
token: '...',
profile: '...' //?
},
client: {
id: '..',
secret: '..'
},
tokens: {
authorization: '...',
access: {
value: '...',
expires: 3600, //naar datum vertalen
type: 'Bearer',... |
import React, { Component } from 'react';
import {Card,CardHeader,CardBody,Form,FormGroup,Col,Label,Input,FormText,CardFooter,Button} from 'reactstrap';
import axios from 'axios';
import SuccessAlert from '../Question/successAlert';
import ErrorAlert from '../Question/ErrorAlert';
import ReactNotification from 'react-n... |
/**
* TODO: REFACTOR IN PROGRESS. ::: Refactor is currently about 70% done. We now have AjaxForms and AjaxReloadPartial classes as well as Vue JS components - This file will be NO MORE before launch, please don't add to it.
*/
import Jump from 'jump.js';
import { easeInOutQuad } from '../../utilities/easing';
impor... |
import { getUid } from 'ol/util.js';
import Tile from 'ol/Tile.js';
import EventType from 'ol/events/EventType.js';
import { VOID } from 'ol/functions.js';
import TileState from 'ol/TileState.js';
import { createCanvasContext2D } from 'ol/dom.js';
import { listen, unlistenByKey } from 'ol/events.js';
import { containsE... |
const fs = require("fs");
const net = require("net");
const path = require("path");
const glob = require("glob");
const Datastore = require("nedb");
const { v4: uuidv4 } = require("uuid");
const { slice } = require("stream-slice");
const { spawn } = require("child_process");
const child = require("duplex-child-process"... |
$action = $('#action');
$sectionBody = $('.section-body');
let selectionList = [];
let newSelectionList = [];
let changePosition = false;
let numberTestimonies;
let counter;
let order;
let testiID;
function chooseID() {
let listID = [];
let ID = $('tbody').children().length;
$('[id]').each(function() {
... |
// <NAME>
//
// Adapted from Renderman Shadding Language implementation from
// Texturing and Modeling: A Procedural Approach 3rd ed. book.
//
const TABSIZE = 256
const TABMASK = TABSIZE - 1
const permutation = [
225, 155, 210, 108, 175, 199, 221, 144,
203, 116, 70, 213, 69, 158, 33, 252,
5, 82, 173... |
/**
* Copyright 2020 The Merlin 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 applicable law or a... |
import DividerControl from '../EditorToolbar/controls/DividerControl';
import UndoControl from '../EditorToolbar/controls/UndoControl';
import RedoControl from '../EditorToolbar/controls/RedoControl';
import BoldControl from '../EditorToolbar/controls/BoldControl';
import ItalicControl from '../EditorToolbar/controls/I... |
import React from 'react';
import {shallow} from 'enzyme';
import {expect} from 'chai'
import ElementList from '../../../src/js/components/common/ElementList'
describe('(Component) ElementList', () => {
it('renders when data is fetching', () => {
const props = {data: {isFetching: true}}
c... |
/*jslint browser: true*/
/*jshint strict:false*/
/*global $, jQuery, alert, tinysort*/
"use strict";
var currentChar;
var currentCharInit;
function initTextCheck() {
var num = $.trim($("#num-init").val());
var name = $.trim($("#name-init").val());
return num.length > 0 && name.length > 0;
}
function addToList() ... |
const app = require("express")();
const http = require("http").Server(app, {
pingInterval: process.env.PING_INTERVAL || 5000,
pingTimeout: process.env.PING_TIMEOUT || 15000
});
const io = require("socket.io")(http);
const port = process.env.PORT || 80;
/* Enabling CORS */
app.use(function(req, res, next) {
res.h... |
var maxField = 15;
var addButton = $('.add_cliente');
var wrapper = $('.tabla_autores');
$(addButton).click(function (e) {
var x = $("#cantidadAutoresReales").val();
var count = parseInt(x) + parseInt(1);
// console.log(count);
e.preventDefault();
var especialidad = $('[name="especialidad_au... |
/* -------------------- Check Browser --------------------- */
function browser() {
function i(e) {
return e in document.documentElement.style
}
var e = !!window.opera && !!window.opera.version, t = i("MozBoxSizing"), n = Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0... |
import '../App.css';
import {Table, Container, Row, Button, ButtonGroup, Form, Col, Jumbotron } from 'react-bootstrap';
import React, { Component, useState } from 'react';
import { BrowserRouter as Router, Switch, Route, Link} from 'react-router-dom';
class Tracks extends Component {
state = {
getTracks... |
import React, { useState, useEffect } from "react";
import styled from "styled-components";
import { useSelector, useDispatch } from "react-redux";
import { setRestaurants } from "../slices/restaurantsSlice";
import { setItems, setCompany, setTotal } from "../slices/confirmationSlice";
import {
setCart,
updateCart,... |
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
FlatList,
Alert,
} from 'react-native';
import Button from 'react-native-button';
import Hr from 'react-native-hr';
import { AdMobRewarded } from 'react-native-admob';
import InAppBilling from 'react-native-billing';
import Spinner from '... |
import { Map as ImmutableMap, Set as ImmutableSet } from 'immutable'
import { createType, rawValue } from './lowlevel/common'
import initFactory from './lowlevel/initFactory'
import { hash } from './crypto'
/**
* Calculates the hash for a tree with a single key.
*
* @param {Bits256} key
* @param {Uint8Array} node... |
var oTable;
var Spyder = {
Action: '',
BaseAPIUrl: 'api/v1/',
Url: {
current: '/purchaseorders/new',
item_details: '/purchaseorders/itemdetails',
vat_list: '/purchaseorders/vatlist',
uploadfiles: '/journalentries/uploadfiles'
},
local: {
key: '',
uri: ... |
/**
* auto create grid component
* author binwang.local date 2017-08-21
*/
import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import * as Antd from 'antd';
import moment from 'moment';
import _ from 'lodash';
import {Map} from 'immutable';
import DynamicQueryForm from '@/com... |
/* Scrape English and Scottish football leagues kick-off times and goal times
from uk.soccerway.com for a predefined list of matches provided in a CSV file
Copyright (C) 2017 - 2018 <NAME>
Made available under the MIT Licence: https://opensource.org/licenses/MIT
This is a much more complex task, and ... |
/**
* 提供常用的一些工具方法
* @description 暂时提供:防抖、节流、格式化时间戳、二维数组去重、判断类型集合等
* @Author lss
* @Date 2021-3-8
*/
let _debounceTimeout = null;
let _throttleRunning = false
/**
* 防抖(多次触发事件后,事件处理函数只执行一次,并且是在触发操作结束时执行)
* @param {Function} 执行函数
* @param {Number} delay 延时ms
*/
export const debounce = (fn, delay = 500) => {... |
import React, {Component} from 'react';
import CSSModules from 'react-css-modules';
import InlineSVG from 'svg-inline-react';
import {SortableContainer, SortableElement, SortableHandle, arrayMove} from 'react-sortable-hoc';
import ContainerComponent from 'components/elements/ContainerComponent/ContainerComponent';
imp... |
"use strict";
require('./data.js').install();
require('./utils.js').installGlobals();
var assert = require('assert');
var connect = require('connect');
var cookie = require('cookie');
var cookieParser = require('cookie-parser');
var express = require('express');
var expressSession = require('express-session');
var fs... |
// <NAME>, 2019
function plot() {
var message, messageJSON, xmlhttp, response_message;
var img = document.getElementById("Graph");
var p;
var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname;
newurl += "?y1=" + encodeURIComponent(document.getElementById("y1... |
const question = document.querySelector('#question');
const choices = Array.from(document.querySelectorAll('.choice-text'));
const progressText = document.querySelector('#progressText');
const scoreText = document.querySelector('#score');
const progressBarFull = document.querySelector('#progressBarFull');
let currentQ... |
// Dokuwiki table editing plugin
// Author: <NAME> <bohumir|zamecnik|org>
// Last modified: 22.11.2008
// License: GNU GPL 2
// Website: http://zamecnik.org/projekty/dokuwiki_tableedit
//
// Purpose:
// The goal of this plugin is to simplify handling Dokuwiki table columns.
// It's not easy to move some columns around,... |
import React, { Component } from 'react'
import { inject, observer } from 'mobx-react'
import { intl, Intl } from './Intl.js'
import { formatDate } from '../util/util.js'
import EditIcon from './icons/Edit.js'
import XIcon from './icons/X.js'
import CheckIcon from './icons/Check.js'
import TrashIcon from './icons/Tr... |
'use strict';
import _ from 'lodash';
import Sequelize from 'sequelize';
import * as rxjs from 'rxjs';
import {
sequelize,
safeMirrorDbHandler,
sanitizeSqliteFtsQuery,
} from '../../database';
import { Label, Issuance, Staging, Organization } from '../../models';
import { UnitMirror } from './units.model.mirror'... |
const { test } = require('@kmamal/testing')
const N = require('../../../domains/number')
const D = require('./from-line').defineFor(N)
const floatEqual = (t, actual, expected, tollerance = 1e-5) => t.ok(
expected - tollerance <= actual && actual <= expected + tollerance,
{ actual, expected },
)
test("geometry.sdf.l... |
import React, { useEffect, useState } from 'react';
import {
generateMnemonicAndSeed,
hasLockedMnemonicAndSeed,
loadMnemonicAndSeed,
mnemonicToSeed,
storeMnemonicAndSeed,
} from '../utils/wallet-seed';
import {
getAccountFromSeed,
DERIVATION_PATH,
} from '../utils/walletProvider/localStorage.js';
import {... |
'use strict';
// Each test is an array of [endpoint, midpoint, endpoint] and tests
// whether the endpoints interpolate to the same visual state as the midpoint
const transformTests = {
translate: [
['translateX(0px)', 'translateX(25px)', 'translateX(50px)'],
['translateY(0px)', 'translateY(25px)', 'translat... |
import { pipe } from "lodash/fp"
import chalk from "chalk"
import { forEach, forEachSeries } from "p-iteration"
import { printGraphQLError, queryOnce } from "gatsby-source-shopify/lib"
import { createClient } from "./create-client"
import { queryAll } from "./lib"
import {
ArticleNode,
BlogNode,
CollectionNode,
... |
require('core-js/fn/object');
const { isEmpty, isFunction, isRegExp, isString, isArray } = require('toxic-predicate-functions');
const fse = require('fs-extra');
const path = require('path');
function dedupe(arr) {
return Array.from(new Set(arr));
}
class ToxicWebpackManifestPlugin {
constructor(options = {}) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.