text stringlengths 3.22k 29.5k |
|---|
function text_cleaner(messages,lables)
{
console.log("preliminary text classification")
var bayes = require('bayes')
var tempfilter = bayes()
for (m_ind in messages)
{
tempfilter.learn(messages[m_ind],lables[m_ind])
}
console.log(tempfilter.docCount)
console.log("total number of messages: " + tempfilter.total... |
import React from 'react';
import styled from 'styled-components';
import mapboxgl from 'mapbox-gl';
import bbox from '@turf/bbox';
import get from 'lodash.get';
import { PropTypes as T } from 'prop-types';
import { mapboxAccessToken, environment } from '../../config';
import { getUTCDateTime, startCoordinate } from '.... |
'use strict';
const
fs = require('fs'),
path = require('path'),
abFS = require('ab-fs'),
dartSass = require('sass'),
abWeb = require('../../.')
;
// const nodeSass = require('node-sass');
class abWeb_Sass extends abWeb.Ext
{
constructor(abWeb, extPath)
{ super(abWeb, extPath);
... |
var events = require('events');
var schedule = require('node-schedule'); // https://www.npmjs.com/package/node-schedule
var suncalc = require('suncalc'); // https://github.com/mourner/suncalc
var five = require("johnny-five"); // http://johnny-five.io/
const util = require('util');
const config = require('./config')... |
import React, { Component } from 'react';
import { StyleSheet,Modal,Dimensions, } from 'react-native';
import { Container,Text,View,Content,Button,Item,Icon,Input} from 'native-base';
import { Col, Row, Grid } from 'react-native-easy-grid';
import ItemCard from '../Components/ItemCard';
const { width } = Dimensions.g... |
const express = require('express');
const mongoose = require('mongoose');
const uuid = require('node-uuid');
const Q = require('q');
const _ = require("underscore");
const dbFunctions = require('./dbStore/dbFunctions');
var config = require('./config');
const compression = require('compression'); // G-ZIP compression
c... |
'use strict';
/**
* Module dependencies
*/
var angular = require('angular');
require('common/services/ios9-shim.js');
require('ng-cordova');
var core = require('ionic-service-core');
var push = require('ionic-service-push');
var analytics = require('../node_modules/ionic-service-analytics/ionic-analytics.js');
/**
... |
import React from 'react';
import axios from 'axios';
import {Link} from 'react-router-dom';
import {pagination, filters, siteName} from '../../mainroom.config';
import {Button, Col, Container, Dropdown, DropdownItem, DropdownMenu, DropdownToggle, Row, Spinner} from 'reactstrap';
import {shortenNumber} from '../utils/n... |
let camera, controls, scene, renderer;
let sunMaterial, planetMaterial, oceanMaterial, atmosphereMaterial, moonMaterial;
let startTime = new Date().getTime();
let runTime = 0;
let moonOrbit;
let planet, atmosphere, ocean, moon;
const RADIUS = 100;
const SEGMENTS = 128;
const RINGS = 128;
const MOONRADIUS = 20.0;
sc... |
import process from 'process';
import os from 'os';
import bodyParser from 'body-parser';
import bonjour from 'bonjour';
import express from 'express';
import moment from 'moment';
import clientRoute from './routes/client';
import lifx from './lifx';
import lightRoute from ... |
const blessed = require('blessed');
const memoize = require('lodash.memoize');
const nearestColor = require('./antsy-color');
let ansi256 = require('./ansi256.json');
const { Color } = require('./vscode');
const chunk = require('lodash.chunk');
const {
AttributeData,
} = require('../../widgets/terminal/util/cellda... |
import React, {Component} from 'react';
import { connect } from 'react-redux';
import Pagination from '../../shared/Pagination';
import { withScriptjs, withGoogleMap, GoogleMap, Marker } from 'google-map-react'
import GMap from './map/GMap';
class Location extends Component {
displayName = Location.name
const... |
// Wildfire and burn scar visualization in Sentinel-2 images V2.0.0
// Twitter: <NAME> (@pierre_markuse)
// https://pierre-markuse.net/2018/04/30/visualizing-wildfires-burn-scars-sentinel-hub-eo-browser/
// CC BY 4.0 International - https://creativecommons.org/licenses/by/4.0/
function a(a, b) {return a + b};
function ... |
import { render } from './iris/js/lib/preact.js';
import { Router, route } from './iris/js/lib/preact-router.es.js';
import { createHashHistory } from './iris/js/lib/history.production.min.js';
import { Component } from './iris/js/lib/preact.js';
import Helpers from './iris/js/Helpers.js';
import { html } from './iris... |
/*
* Connect middleware that uses wwwhisper service to authorize visitors.
* Copyright (C) 2013, 2014 <NAME> <<EMAIL>>
*
* This program is freely distributable under the terms of the
* Simplified BSD License. See COPYING.
*
* The middleware is based on wwwhisper Rack middleware:
* https://github.com/wrr/rack-ww... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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.configurable = true; if ("va... |
// création d'un objet
document.write("<h2>Création d'un objet </h2>");
function affMaitre(){
document.write("Ce maitre s'appelle ", this.nom, ", c'est un ", this.metier, " venant de ", this.pays, ".<br>");
}
function Maitre(txtNom, txtPays, txtMetier){
this.nom=txtNom;
this.pays=txtPays;
this.metier... |
function msgProcess(titulo){
Ext.MessageBox.show({
title: titulo,
msg: 'Procesando, por favor espere...',
progress:true,
progressText: 'Procesando...',
width:300,
wait:true,
waitConfig: {interval:200}
});
}
function createHallazgoAuditorias(a,b,id_auditori... |
/*
ISAK PHYSICS LAB APP JAVASCRIPT
Last Updated: 08/23/2019
Recent Author: <NAME>
Disclaimer:
Code is largely based on open source code provided in w3schools.com. Author complies willingly
to copyright law and guarantees that this software will only be used for personal non-commercial
use by... |
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (t... |
/*Dashboard Init*/
"use strict";
/*****Ready function start*****/
$(document).ready(function(){
$('#statement').DataTable({
"bFilter": false,
"bLengthChange": false,
"bPaginate": false,
"bInfo": false,
});
});
/*****Ready function end*****/
/*****Load function start*****/
$(window).load(function(){
window... |
const dateFns = require("date-fns");
const schedule = require("node-schedule");
const VillageModel = require("../../database/models/Village");
const getVillageResources = require("../../rules/calculations/getVillageResources");
const Buildings = require("../../rules/constants/buildings");
module.exports = class Const... |
const html = `
<section class="inke-navbar-1">
<div class="header_wrapper" style="width: 1300px">
<img id="inke-logo" class="logo" src="https://img.ikstatic.cn/MTU5MDExOTQzNDY0OCMgODcjcG5n.png" />
<ul class="nav">
<li><a href="/">首页</a></li>
<li class="nav-li">
<a href="./news/index.html">公司新闻</a>
... |
// encoder/decoder: http://meyerweb.com/eric/tools/dencoder/
function checkLogin(user) {
if(user.username == "jacobBaird" && user.password == "<PASSWORD>"){
return { status: true , value: {name: "jacobBaird", id: "<PASSWORD>"}};
}
if(user.username == "jacobMelosi" && user.password == "<PASSWORD>"){
... |
export { tester };
import * as Base64ToUint8Array from "../Base64ToUint8Array.js";
import * as Random from "../Random.js";
import * as ScriptLoader from "../ScriptLoader.js";
import * as ValueMax from "../ValueMax.js";
// This string will not fit to ASCII when base64 decoded. So can not be used to test.
//const base... |
import deepExtend from 'deep-extend';
import z from '../util/zdom';
import BasePlugin from './base-plugin';
import fitCurve from './freeform/fitcurve';
import validate from '../config-validator';
import freeformSvg from './freeform/freeform-icon.svg';
export const VERSION = '0.1';
export const GRADEABLE_VERSION = '0.1... |
/*
Copyright (c) 2016 <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaime... |
"use strict"
/**
* @file Defines helper functions for use in other files
*/
/**
* @namespace helpers
*/
/* eslint-disable no-redeclare, no-unused-vars */ // Defined in this file, used in other files
/**
* See {@link https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/Port|MDN Docu... |
/* Epilogue UI elements */
$epilogueScreen = $('#epilogue-screen');
$epiloguePrevButton = $('#epilogue-prev-button');
$epilogueNextButton = $('#epilogue-next-button');
$epilogueResetButton = $('#epilogue-restart-button');
/* Epilogue selection modal elements */
$epilogueSelectionModal = $('#epilogue-modal'); //the mo... |
'use strict';
const { spawn } = require('child_process');
const EventEmitter = require('events');
const fs = require('fs');
const path = require('path');
const WebSocket = require('ws');
require('./polyfill.js');
const MachinaModels = require('./models/_MachinaModels.js');
// Public class
co... |
const fs = require("fs-extra");
const path = require("path");
const usersLib = require("../services/users/lib");
const userAppsLib = require("../services/user-apps/lib");
const gitoliteUtils = require("./gitolite-utils");
const exec = require("child-process-promise").exec;
const Queue = require("promise-queue");
class... |
const { MessageEmbed } = require("discord.js");
const { prefix } = require("../config.json");
const Discord = require("discord.js");
timeoutTime = 30000; // Update every half minute
let emoji = ["1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣", "7️⃣", "8️⃣", "9️⃣"];
// polls will be organized by question as their n
const pol... |
function return_fisher_exact() {
var input_a = document.getElementById('fisher_a').value;
var a = parseInt(parseFloat(input_a) + 0.5);
var input_b = document.getElementById('fisher_b').value;
var b = parseInt(parseFloat(input_b) + 0.5);
var input_c = document.getElementById('fisher_c').value;
va... |
import { state, images } from '../sketch.js'
import { BasePage, Result } from './index.js'
import { createChunkedArray } from '../utils.js'
import {
GAME_MODE_ARCADE,
GAME_MODE_TIMETRIAL,
GAME_MODE_SURVIVAL,
YELLOW,
BLUE,
MAGENTA,
ONE_MINUTE,
} from '../constants.js'
const TILE_SIZE = 16
co... |
"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];
})... |
///////////////////////////////////////////////////////////////////////////////////
// The MIT License (MIT)
//
// Copyright (c) 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 Softw... |
function dateSplitter(date) {
var dateArray = date.split("-");
return dateArray[1] + "/" + dateArray[2] + "/" + dateArray[0];
}
function emptyDivs() {
$("#events").empty();
$("#songs").empty();
$("#movies").empty();
$(".facebook").empty();
$(".twitter").empty();
$("#conceptionRange").empty();
$("#abo... |
import styles from './codeoptions.module.scss';
import React, { Component, PropTypes } from 'react';
import { findDOMNode } from 'react-dom';
import HighlightLines from './highlightLines';
import { FormControl, Checkbox } from 'react-bootstrap';
// Available Code Mirror languages in our component
export const CodeMi... |
import './App.css';
import React from 'react'
import logo from './ooo-logo-175.png';
import Avatar from 'react-avatar';
var dateformat = require("dateformat");
class Ticket extends React.Component {
constructor(props) {
super(props);
this.state = {
state: "",
tickets: [],
... |
"use strict";
require("babel-polyfill");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.spreadsheet = exports["default"] = void 0;
var _element = require("./component/element");
var _data_proxy = _interopRequireDefault(require("./core/data_proxy"));
var _sheet = _interopRequireDefault(req... |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/**
* Created by Anoxic on 9/21/2017.
*/
import Immutable from "immutable";
import Algorithm from "../util/Algorithm";
import Rotation from "../enum/Rotation";
import GridSize from "../enum/GridSize";
import BlockType from "../enum/BlockType";
import ActionType from "../enum/ActionType";
import Detromino from "../s... |
var express = require('express');
var router = express.Router();
var url = require('url');
var voorbeelden = require('../data/voorbeelden');
var config = require('../config.js');
var Article = require('../models/Article');
router.use(function (req, res, next) {
var u = url.format({
... |
// Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
'use strict';
var Url = require("url");
const crypto = require('crypto');
var restClient = function(spec) {
var version = 'v1';
var that = {},
restservice = spec.service,
restkey = spec.key,
resturl = (spec.url.endsW... |
/**
* Plain HTTP client to be used when creating RQLite specific API HTTP clients
* @module http-request
*/
import rp from 'request-promise'
import r from 'request'
import {
HTTP_METHOD_GET,
HTTP_METHOD_POST,
} from './http-methods'
import {
CONTENT_TYPE_APPLICATION_JSON,
// CONTENT_TYPE_APPLICATION_OCTET_ST... |
var AWS = require('aws-sdk');
var util = require('util');
var uuid = require('node-uuid'); // For unique queue name
var express = require('express'); // For static files
var favicon = require('serve-favicon');
var morgan = require('morgan');
var sns;
var sqs;
var io;
var queues;
var sqsWaitTimeSeconds;
var exiting;
... |
"use strict"
//--------------------------------------------------------------------
// AUTHENTICATION SYSTEM IMPLEMENTATION
// r.server must be opuntia-mongo.Server
// r._database must be set
const cookie = require('cookie');
const crypto = require('crypto');
const counters = require("./counters.js");
const opu... |
const {replace} = require('./editDistance/editDistance')
const {
convertStringToWordObject,
convertWordObjectToString
} = require('./editDistance/convert')
function correctErrors(simplifiedArray) {
//Characters that need to be checked regardless of google vision confidence level
const troubleChars = [')', '>',... |
const util = require('util');
const DocsParser = require('../docsparser');
const xregexp = require('xregexp');
module.exports = class JsParser extends DocsParser {
setupSettings () {
const identifier = '[a-zA-Z_$][a-zA-Z_$0-9]*';
this.settings = {
commentType: 'block',
// curly brackets around th... |
$('#single-match-tbl > tbody > tr > td input, #single-match-tbl > tbody > tr > td button').hide();
$('#edit-match-id').on('click', function(){
$('#single-match-tbl > tbody > tr > td').each(function() {
$('#single-match-tbl > tbody > tr > td span').hide();
$('#single-match-tbl > tbody > tr > td input, #sin... |
import { Vector3 } from '../math/Vector3.js';
import { Logger } from '../core/Logger.js';
import { SteeringBehavior } from './SteeringBehavior';
import { AlignmentBehavior } from './behaviors/AlignmentBehavior';
import { ArriveBehavior } from './behaviors/ArriveBehavior';
import { CohesionBehavior } from './behaviors/C... |
var currentTimeout;
var remainingTasks = [];
let ellapsedTime = 0;
let estimatedTotalTime = 0;
const exportUrlElement = document.getElementById('export-url');
const progressLineElement = document.getElementById('progress-line');
const forkSyscalls = new Set(['clone', 'fork', 'vfork']);
const ioSyscalls = new Set(['re... |
process.env.DRSS = true
const Discord = require('discord.js')
const listeners = require('../util/listeners.js')
const initialize = require('../util/initialization.js')
const config = require('../config.js')
const ScheduleManager = require('./ScheduleManager.js')
const storage = require('../util/storage.js')
const log =... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
import trim from '../../utils/string-trim';
import * as Browser from './browser';
import NativeMethods from '../sandboxes/native-methods';
import Const from '../../const';
import UrlUtil from '../utils/url';
var scrollbarSize = null;
export function getActiveElement (currentDocument) {
var doc = current... |
if (jQuery) {
console.log('jQuery');
}
// variable declation
let allCities = [];
let removeBtn = $('#removeBtn');
let submitBtn = $('#submitBtn');
let searchList = $('#searchList');
let searchBar = $('#searchBar');
let newDate = new Date();
// let dd = newDate.getDate();
// let mm = newDate.getMonth() + 1;
// let y... |
/*!
* node-progress
* Copyright(c) 2011 <NAME> <<EMAIL>>
* MIT Licensed
*/
/**
* Expose `ProgressBar`.
*/
exports = module.exports = ProgressBar;
/**
* Bars currently loaded.
* @type {Array}
*/
var bars = [];
/**
* Cache of bar instance renders.
* @type {Array}
*/
var barLines = [];
/**
* Number of bars... |
var GetValue = require('../utils/object/GetValue');
var GetEaseFunction = require('./GetEaseFunction');
var CloneObject = require('../utils/object/Clone');
var MergeRight = require('../utils/object/MergeRight');
// var RESERVED = [ 'targets', 'ease', 'duration', 'yoyo', 'repeat', 'loop', 'paused', 'useFrames', 'offset... |
// @flow
import React, { useEffect, useRef, useState } from 'react';
import PropTypes from 'prop-types';
import { Button, Image, Input, Icon, Popup, Dropdown, Label } from 'semantic-ui-react';
import { truncate, truncatePath, frameCountToTimeCode, formatBytes, sanitizeString } from '../utils/utils';
import styles from ... |
var browser = null;
var renderer = null;
var map = null;
var geodata = null;
var lineGeometry = null;
var demoTexture = null;
var hovering = false;
var usedMouseCoords = [0,0];
var lineSegment = 0;
var distanceDiv = null;
(function startDemo() {
// create map in the html div with id 'map-div'
// parameter 'map... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
var SourceMap = require('source-map');
var rSourceMap = /(?:\/\/\#\s*sourceMappingURL[^\r\n]*|\/\*\#\s*sourceMappingURL[^\r\n]*\*\/)(?:\r?\n|$)/ig;
var path = require('path');
var _ = fis.util;
module.exports = function(ret, pack, settings, opt) {
needSortByPackOrder = true;
// 是否添加调试信息
var useTrack = true;
va... |
import React from 'react';
import logo from './logo.svg';
import './App.css';
/* App Bar */
import { makeStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import Button from '@... |
import axios from 'axios'
import moment from 'moment'
import { LayerTypes } from './map'
import jsonp from 'jsonp'
import olHas from 'ol/has'
import EsriJSON from 'ol/format/esrijson'
import GeoJSON from 'ol/format/geojson'
import WFS from 'ol/format/wfs'
import filter from 'ol/format/filter'
import objectSearch from '... |
import { ShopSelectionType } from './ShopSelectionCache';
import { getSelectionProp, getPrice, getType, getTileName } from './ShopSelectionCache';
import { updateCashRates } from './CashState';
// Map is a 2D array of objects containing up to two properties
// "tile": name of the tile in this location
// "building":... |
var _regeneratorRuntime = require("@babel/runtime/regenerator");
var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
var _defineProperty = require("@babel/runtime/helpers/defineProperty");
var _asyncIterator = require("@babel/runtime/helpers/asyncIterator");
var _require = require('../impls/... |
"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... |
'use strict';
var React = require('react'),
Vibrant = require('node-vibrant'),
SwatchList = require('./swatchList'),
tinycolor = require('tinycolor2');
var ImageListItem = React.createClass({
getInitialState: function() {
return {swatches: [], hexIndex: 0};
},
onImageLoad: function(e) {
var im... |
import React, { Component } from "react";
import uuid from "uuid/v4";
import { getRandomInt } from "./helpers/math";
import { prompt } from "./helpers/string";
import PlayerStats from "./PlayerStats";
import GameStats from "./GameStats";
import Map from "./Map";
import Dialog from "./Dialog";
import HexUtils from "rea... |
const debug = require('debug')('datachannel')
const io = require('socket.io-client')
const getBrowserRtc = require('get-browser-rtc')
const { poll, getStringByteLength, emitAsync } = require('./util')
const noop = () => {}
const MAX_MESSAGE_SIZE = 64 * 1024
const HIGH_WATERMARK = 1024 * 1024
module.exports = function... |
import React, { useState, useCallback, useEffect } from 'react'
import {
Spin, Card, Layout, Row, Col, Form, Input, Radio, Select, Button, Message, DatePicker,
Tag, Tabs, Tooltip, DataGrid, Dialog, Modal, Popover
} from 'edf-component'
import { Divider } from 'antd';
import { useData, useActions, useCommit } from '... |
// running `npx buidler test` automatically makes use of buidler-waffle plugin
// => only dependency we need is "chai"
const { expect, assert } = require("chai");
const { run, ethers } = require("@nomiclabs/buidler");
//
const GELATO_GAS_PRICE = ethers.utils.parseUnits("8", "gwei");
const EXPIRY_DATE = 0;
const SUBMISS... |
// Flore game logic
// The cells matrix contains, for each cell
// * NO_CELL when there's no hole in which to plant flowers
// * NO_PLAYER when the hole is empty (it's thus possible to play here)
// * >=0 (0 or 1) when there's a flower owned by player 0 or 1
// * DEATH_START to DEATH_END when there's a flower corp... |
'use strict';
/**
* Dataset Generator Mixin
*
*/
var _ = require('lodash'),
assert = require('assert'),
util = require('util'),
Promise = require('bluebird');
var ProjModel = require('../project/proj_model'),
DSModel = require("../datasys/datasys_model"),
AlchemyAPI = require('../services/Alche... |
var fs = require('fs');
var stationMeta = require('./data/stationTable.json');
var muralBikes = require('./data/muralBikes.json');
var stats = {
id: '2679',
trips: 0,
stations: {},
longestDistance: 0,
longestDistanceMeta: {},
longestDuration: 0,
longestDurationMeta: {},
totalDistance: 0,
totalDuratio... |
import React, {useState,useEffect} from 'react'
import { DataGrid } from '@material-ui/data-grid';
import {Button, TextField} from '@material-ui/core'
import * as Yup from 'yup';
import { useFormik, Form, FormikProvider, Formik } from 'formik';
import FormControl from '@material-ui/core/FormControl';
import Select from... |
const Log = require("logger");
const fetch = require("node-fetch");
const fs = require("fs");
const PSTrophiesFetcher = function (config, path) {
const minTimer = 5 * 60 * 1000;
const profiles = [];
let reloadTimer = null;
let reloadInterval = minTimer;
let friendsReady = function () { };
let profileReady = func... |
import config from '../common/config'
import * as R from 'ramda'
import * as Rx from 'rxjs'
import {MAX_ROW_CELLS_COUNT} from '../../constants/toolsTable'
import {impacts} from '../common/helperFunctions'
export const pickData = R.map(
R.compose(
R.evolve(
{
// function: R.compose(R.prop('operation... |
import Vuex from 'vuex';
import Vue from 'vue';
const fs = require('fs');
const moment = require('moment');
const Write = require('../write.js');
const write = new Write({
configName: 'config'
});
Vue.use(Vuex);
export const store = new Vuex.Store({
state: {
config: {
user: '',... |
var counter = 0;
var subtotal = 0;
var errores = 0;
var Manodeobra=0;
var Manoobrapintura=0;
var Manoobrarefacciones=0;
var eliminaritem="";
$(document).ready(function() {
console.log("ondocready ajax-os-");
Mo();
CalcTotal();
});
function CalcTotal() {
//console.log("ctotal");
var Subtotal =... |
Component({
options: {
addGlobalClass: true
},
properties: {
isOpenAmount: {
type: Boolean,
value: false
},
price: {
type: String,
value: ""
},
amount: {
type: String,
value: ""
},
timeMapData: {
type: Object,
value: null
},
c... |
// Native Javascript for Bootstrap 3 | Carousel
// by dnp_theme
// CAROUSEL DEFINITION
// ===================
var Carousel = function( element, options ) {
options = options || {};
this.carousel = (typeof element === 'object') ? element : document.querySelector( element );
this.options = {}; //replace extend
... |
const express = require("express");
const fs = require("fs");
const bodyParser = require("body-parser");
const { response, query } = require("express");
const { json } = require("body-parser");
const mysql = require("mysql2")
const DBconnect = require("./database/localdb.json");
co... |
// load all media in a array and do a function (act) with weight as parameter for each
// ex : [{src:"images/tileset.png", type:"image", weight:42}, "images/tileset2.png", {src:"images/j_e6a6aca6.png", weight:15, name:"tileset3"}]
// return an object composed of the loaded elements
// in: array<Object> || array<String... |
var floatTexts = [];
function FloatText(x, y, text){
this.x = x;
this.y = y;
this.text = text;
this.alpha = 1;
return this;
}
function addFloatText(x, y, text){
floatTexts.push(new FloatText(x, y, text));
}
function drawFloatTexts(){
ctx.textAlign = 'left';
ctx.font = '14pt Calibri';
fo... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactNative = require("react-native");
var _data = require("../utils/data");
var _styles = _interopRequireWildcard(require("../styles"));
var _Mandat... |
'use strict';
//Dependenceis
const express = require('express');
const cors = require('cors');
const superagent = require('superagent');
const pg = require('pg');
require('dotenv').config();
// Server listening port
const PORT = process.env.PORT || 8080;
// Start express
const app = express();
const client = new p... |
var jsonprovices;
function ajaxreturngamenets() {
$('.loading').css('display', 'block');
$.ajax({
type: 'get',
url: '/get/index/gamenets',
data: {
provinceId: localStorage.getItem('provinceId'),
cityId: localStorage.getItem('cityId')
},
success: f... |
import React, {useState, useEffect} from 'react'; // eslint-disable-line no-unused-vars
import {MapProvider} from '../src/map-context' // eslint-disable-line no-unused-vars
import {CollectionProvider} from '../src/collection-context' // eslint-disable-line no-unused-vars
import Style from 'ol/style/Style'
import {Reg... |
import {
observable,
comparer
} from '../mobx'
import {
type,
enumerableKeys,
extend,
proxy,
isEmptyObject,
processUndefined,
defineGetterSetter,
setByPath,
findItem,
asyncLock,
diffAndCloneA,
preprocessRenderData,
filterProperties
} from '../helper/utils'
import queueWatcher from './que... |
const { ipcMain, dialog } = require("electron");
const db = require("./db");
const mainWindow = require("./mainWindow");
const converter = require("json-2-csv");
const fs = require("fs");
//utils
const { getCurrentDateTime } = require("./utils/methods");
const methode = Entreprise.prototype;
function Entreprise() {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var PropTypes = tslib_1.__importStar(require("prop-types"));
var ArrowChevronDown_1 = tslib_1.__importDefault(require("@skbkontur/react-icons/ArrowChevronDown"... |
//a.k.a Rock Paper Scissors
const { Channel, CommandInteraction, Message, MessageActionRow, MessageButton, GuildMember, User } = require("discord.js");
const { v4 } = require("uuid");
const { timestamp: Timestamp } = require("discord.js-util");
const { BaseCustomId } = require("../../utils/constants");
const GameError... |
pop.extend = function (el, opt) {
for (var name in opt)
el[name] = opt[name];
return el;
}
pop.responsive = function (options) {
defaults = { 'selector': '#responsive-trigger' };
options = $.extend(defaults, options);
if ($(options.selector).is(':visible')) {
return true;
}
r... |
import popupHTML from './templates/popup.html';
import itemHTML from './templates/list-item.html';
let Settings = {};
const HOUR_IN_MILISECONDS = 60 * 60 * 1000;
const GETFIVES_CREATE_LINK = 'https://invoices.getfives.co/items/create';
/**
* @param {string} endpoint
* @param {{}} settings
* @return {Promise<object... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.render = exports.renderNode = void 0;
var _RawParser = _interopRequireDefault(require("./RawParser"));
var _warn = _interopRequireDefault(require("./helpers/warn"));
var _checkCleanup = _interopRequireDefault(require("./helpers/c... |
const Utils = require('../utils');
const fse = require('fs-extra');
const {Storage} = require('@google-cloud/storage');
// Rough auto mapping for common band names until GEE lists them.
// Optimized for Copernicus S2 data
const commonNames = {
coastal: [0.40, 0.45],
blue: [0.45, 0.50],
yellow: [0.58, 0.62],
green:... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import styles from './style.css'
import isEmpty from 'lodash/isEmpty'
import numeral from 'numeral'
import {
Modal,
ModalHeader,
ModalBody,
ModalFooter,
ListGroup,
ListGroupItem,
FormText
}
from 'reactstrap'
import {
ListS... |
// Magic Django Solution for CSRF Token Validation
var csrftoken = Cookies.get('csrftoken');
function csrfSafeMethod(method) {
// these HTTP methods do not require CSRF protection
return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
}
$.ajaxSetup({
beforeSend: function(xhr, settings) {
if (!csrfSafeM... |
/* eslint-disable no-underscore-dangle */
/**
*
*
* The data is downloaded via the W3C API. Be patient: if the group is large, at some point it sends out a large number of
* HTTP requests to get the data of all people...
*
* Note that the code includes, in comments, alternatives to cases when _all_, ie, including... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.