text stringlengths 3.22k 29.5k |
|---|
const Messages = require('discord-messages')
const settingsSchema = require('../../database/models/settingsSchema')
module.exports = {
name: 'ddono',
aliases: ['d', 'dono'],
usage: 'd <@USER | USER_ID> <Subtract | Add> <Amount>',
description: "Adds donation to the user's profile.",
cooldown: 3,
... |
// Initialize Cloud Firestore through Firebase
var db = firebase.firestore();
var storage = firebase.storage();
var idLiga;
(function user() {
firebase.auth().onAuthStateChanged(function (user) {
if (user) {
idUser = user.uid;
db.collection("admin").where("userID", "==", user.uid).... |
/**
The game of emoji concept.
The Great Order Of Moor-Neighborhood Items:
โโโโโโโโโโโโโ
โ โ
โ โ
โ โโโโโ โ
โ โ701โ โ
โ โ682โ โ
โ โ543โ โ
โ โโโโโ โ
โ โ
โ โ
โโโโโโโโโโโโโ
In other words:
[top, right-top, ri... |
'use strict';
const _ = require('lodash');
const dgram = require('dgram');
var Prando = require('prando');
const mutil = require('../mock/mockutils.js');
const randomSeed = 0x9557d6dc;
function idealPacket(rng, randbytes, seq) {
let countBuf = mutil.IShortToStreamable([seq]);
let bufList = [];
bufList.pu... |
$(document).ready(function() {
$().ready(function() {
if (medicine_record.length < 1) {
add_default_medicine();
} else {
for (var i = 0; i < medicine_record.length; i++) {
var medicine = {
medicine_name: medicine_record[i].medicine_name,
medicine_record_id: medicin... |
import React, { Component, PropTypes } from 'react'
import ReactDOM from 'react-dom'
import { connect } from 'react-redux'
import { Link, browserHistory } from 'react-router'
import { createModel, loadModelsByUsername } from '../actions/model'
import { bindAll } from 'lodash/util'
import { isNull } from 'lodash/lang'
i... |
// ---------------------------------------------------
// strings
// ---------------------------------------------------
var _strings = function () {}
function ValueError (message) {
var err = new Error(message)
err.name = 'ValueError'
return err
}
// https://github.com/davidchambers/string-format
// create ::... |
import React, { PropTypes, Component } from "react";
import fetch from 'isomorphic-fetch';
import callApi from 'CLIENT_UTIL/apiCaller';
import { MinIOUploader } from 'CLIENT_UTIL/minioHelper';
import { formatBytes } from 'CLIENT_UTIL/fileUtils';
import {
FormGroup,
FormControl,
ControlLabel,
InputGroup,
Butto... |
'use strict';
const Fabric = require('@fabric/core');
const App = require('../types/app');
const RPG = require('../types/rpg');
const Authority = require('./authority');
const Canvas = require('./canvas');
const Identity = require('../types/identity');
const Swarm = require('../types/swarm');
/**
* Primary Applica... |
var wdjs = require('webdriverio'),
u = require('lodash'),
sync = require('synchronize'),
debug = require('./debug'),
commands = require('./commands'),
index = -1,
p = "Aborting:";
/**
* @typedef {Array} InstanceSyncDefinition
* @prop {*} 0 - the instance to use instead of the default webdriverio instance. If y... |
/*
* This module has been partially adapted from a third-party source
* SOURCE: https://github.com/eris-ltd/hello-eris/blob/master/js/libs/hello-chain.js
*/
var fs = require('fs');
var Async = require('async');
var logger = require(__libs+'/eris/eris-logger');
var eris = require(__libs+'/eris/eris-wrapper');
var c... |
"use strict";
const _ = require("lodash");
const annotation_folder = __dirname + "/annotations/";
const annotation_file = annotation_folder + "captions_train2014.json";
const image_folder = __dirname + "/train2014/";
const fs = require("fs");
const tf = require("@tensorflow/tfjs-node");
const { Tokenizer } = requ... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next'
import { Form, Tooltip, InputNumber, Avatar, Button, Divider } from 'antd';
import NfDataGrid from './../NfDataGrid';
import 'ag-grid/dist/styles/ag-grid.css';
import 'ag-grid/dist/styles/ag-theme-bal... |
'use strict';
// author: <EMAIL>
String.prototype.replaceAll = function(search, replacement) {
var target = this;
return target.split(search).join(replacement);
};
var _m = {
scope : 'data',
stack : [],
nibble : function(s) {
var result = '';
for(var i = 0; i < s.length; i++) {
var ch = s.charAt(i);... |
'use strict'
/*
* Created with @iobroker/create-adapter v1.9.0
*/
// The adapter-core module gives you access to the core ioBroker functions
// you need to create an adapter
const utils = require('@iobroker/adapter-core')
// Time Modules
const cron = require('node-cron') // Cron Schedulervar
class Timecounter extend... |
import React from "react";
import PropTypes from "prop-types";
import { FormattedMessage } from "react-intl";
import Button from "@material-ui/core/Button";
import MoreIcon from "@material-ui/icons/MoreVert";
import RotateIcon from "@material-ui/icons/Sync";
import FlipIcon from "@material-ui/icons/Flip";
import WidthI... |
// VARIABLES
var rut = document.getElementById('rut');
var nombres = document.getElementById('name');
var ape_Paterno = document.getElementById('apePaterno');
var ape_Materno = document.getElementById('apeMaterno');
var email = document.getElementById('email');
var telefono = document.getElementById('telefono');
var p... |
// @ts-nocheck
import { readFile, writeFile } from "fs/promises";
import {
AppError,
eventStart,
eventStop,
isNil,
newEventFromEvent,
processDirectoryRecursive,
} from "@compas/stdlib";
import * as recast from "recast";
import { PARALLEL_COUNT } from "../constants.js";
/**
* Convert `queries.entitySelect... |
"use strict";
var getRequest = require("./get_request"),
polyline = require("@mapbox/polyline"),
d3 = require("d3");
var Directions = L.Class.extend({
includes: [L.Mixin.Events],
options: {
available_providers: ["mapbox", "google", "openrouteservice"],
enabled_providers: [],
u... |
"use strict";
/**
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Open Software license
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
*/
var __importStar = (this && this.__importStar) || function (mod) {
... |
//
// reference: https://code.google.com/archive/p/puz/wikis/FileFormat.wiki
// === ENCODE ===
function numToBytes(len, val) {
val = val || 0;
var result = new Uint8Array(len);
for (var i = len - 1; i >= 0; i -= 1) {
result[i] = val % 256;
val = Math.floor(val / 256);
}
return result;
}
function st... |
const {FormulaHelpers, Address} = require('../formulas/helpers');
const FormulaParser = require('../index');
const {DepParser} = require('../grammar/dependency/hooks');
const XlsxPopulate = require('xlsx-populate');
const MAX_ROW = 1048576, MAX_COLUMN = 16384;
let t = Date.now();
let parser, depParser, wb, rt, sheetNa... |
"use strict"
///////////////////////////////////////////
/* Functions for the editSched.html page */
///////////////////////////////////////////
function initEditSchedCal() {
initCal({
height: "75%",
initialView: 'dayGridMonth',
dayMaxEventRows: true,
moreLinkClick: "popover",
... |
const should = require('should');
const {
checkUnit,
convertUnit,
normalizeUnitsWhenPossible,
convertToCQLDateUnit,
compareUnits,
getProductOfUnits,
getQuotientOfUnits
} = require('../../src/util/units');
describe('checkUnit', () => {
it('should validate proper simple units', () => {
checkUnit('m')... |
var object_x = 0;
var object_y = 0;
function wait_(milliseconds, foo, arg0, argx, argy, argdir){
setTimeout(function () {
foo(arg0, argx, argy, argdir); // will be executed after the specified time
}, milliseconds);
}
function move(img, original_x, original_y, dir){ // this function redraws the c object every f... |
/* global twemoji, alert, MouseEvent, game */
const iDevise = navigator.platform.match(/^iP/);
const feedback = document.getElementById('feedback');
class Game {
constructor(cols, rows, number_of_bombs, set, numbers) {
this.number_of_cells = 250; // cols * rows;
this.map = document.getElementById('map');
... |
import JsBeautify from 'js-beautify';
import get from 'lodash/get';
import {
inputComponents, selectComponents, formFormProps, tableColumnProps,
} from '@/components/formGenerator/components';
function getStyle() {
return `
<style scoped lang="scss">
</style>`;
}
function getFormSchemaFromData(properties, formUiS... |
/*
- Is it the same teacher?
- Warn if it is not the same course name
- Grade activity > 0
- Moving to a course that doesn't have a section.
- Moving from a course that has more than one section
- Same subaccount/term -- helpers.mapTermToInteger()
*/
const _ = require('underscore');
const fs = ... |
const fs = require("fs");
const path = require("path");
const os = require("os");
const { ipcRenderer } = require("electron");
var selected_labels = {};
var table = document.getElementById("atRiskSeqs");
var pipeline_mod_1_output = null;
// pipeline output after running module 1
ipcRenderer.on('NEW', function(event, ... |
/*
* App Reducer
*
* The reducer takes care of our data. Using actions, we can change our
* application state.
* To add a new action, add it to the switch statement in the reducer function
*
* Example:
* case YOUR_ACTION_CONSTANT:
* return state.set('yourStateVariable', true);
*/
import { fromJS } from 'im... |
var express = require('express');
var router = express.Router();
var jwt = require('jsonwebtoken');
var jwtkey = require('./jwtkey');
//var deasync = require('deasync');
var config = require('config');
// Token Verification method that add jwt and token to destination object
function verifyToken(pubKey, jwtDest, tok... |
'use strict';
// //////////////////////////////////
// DOM ๅฏน่ฑก (Jquery)
// //////////////////////////////////
const statusLab = $('#gameStatus'); // ็ถๆๆ็คบ - label
const resultText = $('#result'); // ็ปๆ - label
const bonusCoinLab = $('#bonus_coin'); // ๅฅ้็ - label
const pourCoinLab = $('#pour_coin'); // ไธๆณจ้้ข - label
con... |
import PartView from './PartView.js';
const linkIcon = `
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z... |
///
/// utility functions for formatting output to the screen
///
/// Console offers several pieces of functionality:
/// debug / info / warn messages:
/// Outputs to the screen, optionally with colors (when pretty == true)
/// 'legacy' functions: Console.stdout.write & Console.stderr.write
/// Make porting... |
'use strict'
//!=================hw3-1===============is work
const user = {
name: 'Mango',
age: 20,
hobby: 'html',
premium: true,
};
user.mood = 'happy';
user.hobby = 'skydiving';
user.premium = false;
const kays = Object.entries(user);
console.log(kays);
//!=================hw3-2========... |
/** Heatmap Visualization. */
// TODO refactor this to avoid loading on startup. See issue #985 .
loadScript('https://d3js.org/d3.v4.min.js')
loadStyle('https://fontlibrary.org/face/dejavu-sans-mono')
/**
* A d3.js heatmap visualization.
*/
class Heatmap extends Visualization {
static inputType = 'Standard.Table... |
"use strict";
var createBlob = require('./blob.js');
var errors = require('./errors');
var utils = require("../utils");
var hasUpload;
// http://updates.html5rocks.com/2012/06/How-to-convert-ArrayBuffer-to-and-from-String
var ArrayBufferToUtf8 = function (arrayBuffer) {
var result = "";
var i = 0;
var c = 0;
... |
"use strickt";
var objIPCRenderer = require('electron').ipcRenderer;
function fnGetRandomID() {
let min = 0x11111111;
let max = 0xFFFFFFFF;
return Math.floor(Math.random() * (max - min)) + min;
}
function TDocumentBody() {
var aChildren = [];
var objElement = document.body;
var sID = objRandom.getRandomI... |
/* eslint-disable jsx-a11y/anchor-is-valid */
import { Transition } from '@headlessui/react';
import { useState } from 'react';
import { Link } from 'react-router-dom';
import { useDispatch } from 'react-redux';
import Login from '../components/loginButton';
import Logo from '../images/logo.png';
import { logoutUser } ... |
const rtc = {
// ็จๆฅๆพ็ฝฎๆฌๅฐๅฎขๆท็ซฏใ
client: null,
// ็จๆฅๆพ็ฝฎๆฌๅฐ้ณ่ง้ข้ข่ฝจ้ๅฏน่ฑกใ
localAudioTrack: null,
localVideoTrack: null,
};
var curruser = GetQueryString('username');
var videoChannel = GetQueryString('globalVariable');
// var videoChanneled = Cookies.get('videoChanneled');
const options = {
// ๆฟๆขๆไฝ ่ชๅทฑ้กน็ฎ็ App ... |
/*!
* Command line interface tools for Back2Front
* ๅบไบGulp็ๆๅปบๆต็จ
*/
'use strict';
var path = require('path');
var fs = require('fs');
var pump = require('pump');
var gulp = require('gulp');
var gulpFilter = require('gulp-filter');
var gulpMD5 = require('./lib/gulp-md5-export');
var gulpLEC = require('gulp-line-endi... |
import { useState, useEffect } from 'react'
import Meta from '../components/meta'
import Header from '../components/header'
import Controls, { Control } from '../components/controls'
import StateGraphic from '../components/states-graphic'
import Stat from '../components/stat'
import TopStates from '../components/top-st... |
/// <reference path="../../../../../node_modules/@types/leaflet/index.d.ts" />
var layer;
function init() {
var defaultConfig = { //Much of this should move into a settings area eventually.
PathColorPriority: [ //Pulled from the 100% NMG guide, arbitrary?
"#ffff00",
"#01fc01",
... |
// Serviceworkers file. This code gets installed in users browsers and runs code before the request is made.
const staticCacheName = 'static-1.4';
const expectedCaches = [
staticCacheName
];
self.addEventListener('install', event => {
self.skipWaiting();
if (/iPhone|CriOS|iPad/i.test(navigator.user... |
//import {random} from './random.js';
// Otherwise, when you view the same L-System with the same parameters,
// using Math.random(), it'll change each time.
//
// Code from https://stackoverflow.com/questions/521295/
const random = (function() {
function xmur3(str) {
for(var i = 0, h = 1779033703 ^ str.length... |
import React from "react"
import { Link } from "gatsby"
import SEO from "../components/utilities/seo"
import { ButtonGroup, Button,Select,MenuItem, InputLabel,RootRef} from "@material-ui/core"
import { Main, Section } from "../components/templates/generic/common"
import ShoppingCartIcon from "@material-ui/icons/Shoppin... |
var world = document.querySelector("#world");
var map = [
[0, 0, 0, 0, 0],
[0, 1, 2, 1, 0],
[0, 1, 0, 1, 0],
[0, 1, 1, 1, 0],
[0, 1, 1, 1, 0],
[0, 1, 0, 1, 0],
[0, 1, 1, 1, 0],
[0, 1, 1, 1, 0],
[0, 2, 0, 1, 0],
[0, 1, 1, 2, 0],
[0, 0, 0, 0, 0]
];
function drawWorld(worldArr) {
var string = "";
... |
/*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 ... |
const fs = require('fs')
const path = require('path')
const slugify = require('slugify')
const debugEnable = require('debug')
const debug = require('debug')('botium-crawler-crawler-run')
const { Capabilities, BotDriver } = require('botium-core')
const { askUserFeedbackOnConsole } = require('../util')
const Crawler = re... |
const DEFAULT_ENCODING = 'UTF8';
const DEFAULT_PAGE_TIMEOUT = 5000;
const MAX_RESOURCES_CACHE = 50;
const MAX_RESOURCE_AGE = 1000 * 60 * 60 * 24; // 24 hours
const MODIFIED_ROUND_TIME = 1000 * 60 * 5; // 5 minutes
const EXPIRY_TIME = 1000 * 60 * 5; // 5 minutes
const SUCCESSFUL_RESPONSE_CODES = [ 200 ]; // 200 OK
var ... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { createItinerary } from "../actions/cmsActions";
import { fetchCities } from "../actions/citiesActions";
import { Link } from "react-router-dom";
import Header from "../components/layout/Header"... |
/* eslint-env jquery, browser */
window.$constants = window.$constants || {};
const you = {};
you.avatar = 'assets/defaultyou.png';
you.name = window.$constants.user_name;
const recipient = {};
recipient.avatar = 'assets/defaultother.jpeg';
const Participant = {
you: 'you',
other: 'other'
};
let actionHandler =... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-8f9a8751.js');
var createComponent = require('reakit-system/createComponent');
var createHook = require('reakit-system/createHook');
require('reakit-utils/shallowEqual');
... |
import "@babel/polyfill";
import dotenv from "dotenv";
import "isomorphic-fetch";
import createShopifyAuth, { verifyRequest } from "@shopify/koa-shopify-auth";
import graphQLProxy, { ApiVersion } from "@shopify/koa-shopify-graphql-proxy";
import { receiveWebhook } from "@shopify/koa-shopify-webhooks";
import Koa from "... |
const Code = require('@hapi/code')
const Execa = require('execa')
const Fs = require('fs').promises
const Lab = require('@hapi/lab')
const Path = require('path')
const Pkg = require('../package.json')
const { expect } = Code
// eslint-disable-next-line no-multi-assign
const { suite, test } = exports.lab = Lab.script()... |
/**
=========================================================
* Soft UI Dashboard React - v3.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard-react
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
Coded by www.creative-tim... |
let sel;
let bgCol;
let februaryEveryYear = [];
let januaryEveryYear = [];
let marchEveryYear = [];
let aprilEveryYear = [];
let may = [];
let june = [];
let july = [];
let august = [];
let september = [];
let october = [];
let november = [];
let december = [];
let selectedYear = [
10,
NaN,
9.636363636363637,
... |
import messageTemplate from './messages.json'
import * as types from './types'
// This module implements the packages
// http://wiki.secondlife.com/wiki/Message
// messagesByName[Messagename]
const messagesByName = {}
// inside the frequency-objects the message will be stored with their number
const messagesByFreque... |
"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];
})... |
//Define all app settings:
const APP_KEY = '<KEY>';
const APP_SECRET = '<KEY>';
const BASE_URL = 'https://baas.kinvey.com';
const APP_DATA = '/appdata';
const APP_USER = '/user';
const DB = '/posts';
const AUTH_HEADERS = { 'Authorization': 'Basic ' + btoa(APP_KEY + ":" + APP_SECRET) };
//DOM Elements:
let request = ... |
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
Object.defineProperty(expor... |
const Controller = artifacts.require('./controller/Controller.sol');
const TokenCappedCrowdsale = artifacts.require('./mocks/MockTokenCappedCrowdsale.sol');
const Token = artifacts.require('./token/Token.sol');
const MultisigWallet = artifacts.require('./multisig/solidity/MultiSigWalletWithDailyLimit.sol');
const DataC... |
// Connect socket. This version seems to adapt to new ports specified in `app.js``
let socket = io();
let audio = [];
async function init() {
/*
Parse URL parameters.
Prolific ID: PROLIFIC_PID
Study ID: STUDY_ID
Session ID: SESSION_ID
*/
const myQueryString = window.location.search;
const ... |
var templates = [
"root/externallib/text!root/plugins/report/report.html",
"root/externallib/text!root/plugins/report/eleves_row.html"
];
define(templates,function (reportTpl, elevesRowTpl) {
var plugin = {
settings: {
name: "report",
type: "course",
menuURL: "#r... |
class Uploader {
constructor(options) {
if (typeof options === 'undefined') {
throw new TypeError('Uploader required `options`.');
} else if (typeof options.target === 'undefined') {
throw new TypeError('Uploader required `target` option.');
}
this.options = Object.assign({}, Uploader.DEF... |
let canvas = document.getElementById('animatedLogo'),
ctx = canvas.getContext('2d'),
electricTemplate1 = new Line([
new Point(143, 325, 0, 0),
new Point(112, 213),
new Point(246, 213),
new Point(215, 325, 0, 0)
]),
electricTemplate2 = new Line([
new Point(160, 270, 0, 0),
... |
import React, {Component} from 'react';
import {actions} from 'mirrorx';
// ๅฏผๅ
ฅ็ปไปถ็ฑป
import {FormControl, Tree, Icon, Loading} from 'tinper-bee';
import Header from 'components/Header';
import TreeTable from '../TreeTable';
// ๅฏผๅ
ฅๅทฅๅ
ท็ฑป
import {deepClone, handleChild} from 'utils';
// ๅฏผๅ
ฅๆ ทๅผ
import './index.less';
// ๅฎไน็ปไปถ็ฑป... |
var fs = require('fs'),
path = require('path'),
escapeRegExp = require('./util/escape-regexp'),
inJavaScript = require('./util/in-javascript'),
breakUpCommand = require('./util/break-up-command'),
escapeShell = require('./util/escape-shell'),
firstWord = require('./util/first-word'),
extract... |
import React from 'react';
import XLSX from 'xlsx';
import styles from '../../styles/SpreadsheetParser.scss';
import PropTypes from 'prop-types';
const sheetURL = 'https://docs.google.com/spreadsheets/d/1P5X-OLOoDvq3Mb03-Qr7ub-gOqYPaLtsefv_c8bDjno/edit?usp=sharing';
export class SpreadsheetParser extends React.Compone... |
'use strict';
var myApp = angular.module('githubRecruiter');
myApp.factory('resultsSharedService', ['$rootScope', function ($rootScope) {
var sharedService = {};
sharedService.results = [];
sharedService.prepForBroadcast = function (results) {
this.results = results;
this.broadcastItem()... |
'use strict';
/**
* Synchronization module for Items.
* @module sync/item
*/
var conf = require("../conf"),
item = require("../item"),
asana = require("../asana"),
github = require("../github"),
cache = require("../cache"),
opsModule = require("./ops"),
_ = require("lodash"),
P = require("bluebird"),... |
import React, { useState, useEffect, useRef, useCallback } from 'react'
import intl from 'react-intl-universal';
import { sources, downloadImage, capitalizeFirstLetter, getRndInteger } from '../utils' // ไปๅฐ่ฃ
็ๅทฅๅ
ทๅบไธญๅฏผๅ
ฅไธไบๅทฅๅ
ทๅฝๆฐ
import './Container.styl'
let imgUrl, cachedImages = {} // ๅฎไน็ๆ็ๅพ็ๅฐๅไธ็ผๅญ็Imageๅฏน่ฑก
const Container =... |
// Find our matrix in all available framebuffers
'use strict'
let rotation = 0
const fsp = require('fs-promise')
const glob = require('glob-promise')
const path = require('path')
const Stream = require('streamjs')
const rotateMatrix = require('rotate-matrix')
// the framebuffer's name file
const namefile = framebuff... |
const settings = {
table: {
rowLookAhead: 10,
imageLookAhead: 2,
},
maxLevels: 20
};
function createElem(parentEl, type, className) {
var el = document.createElement(type);
el.className = className;
parentEl.appendChild(el);
return el;
}
function createTable(parentEl, className) {
var table = ... |
import React, { useEffect} from 'react';
import $ from 'jquery';
function Modals(){
useEffect(() => {
const projectArray = {
portfolio1: {
name: "Intuitive Banana",
description: "Intuitive Banana is a multifunctional web-based music application, which allows you to search... |
const p360 = require("../nodep360/p360");
const getPdfsInFolder = require("../getPdfsInFolder/getPdfsInFolder");
const pdfReader = require("../pdfReader/pdfReader");
const fs = require('fs');
const findDocumentData = require("./findVisDocumentData");
const getBase64 = require("../getBase64/getBase64");
const getElevmap... |
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also availa... |
var neckMatrix = [];
var fullChordMap = {};
var majorScales = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#'];
var minorScales = ['Am', 'A#m', 'Bm', 'Cm', 'C#m', 'Dm', 'D#m', 'Em', 'Fm', 'F#m', 'Gm', 'G#m'];
function chordNeckStart() {
formMatrix();
//major:
addChordIntoChordMap("A", [{x:... |
import { $injector } from '../../../../../../injection';
import { OverlayStyle } from '../../OverlayStyle';
import { MeasurementOverlayTypes } from './MeasurementOverlay';
import { getPartitionDelta } from '../../olGeometryUtils';
import Overlay from 'ol/Overlay';
import { LineString, Polygon } from 'ol/geom';
import M... |
import { css } from "@emotion/react/macro";
const variables = css`
html[data-theme="appleMusic"] {
--systemPrimary: rgba(0, 0, 0, 0.88);
--systemPrimarySize: 12px;
--systemAccentBG: #d60017;
--systemSecondary: rgba(0, 0, 0, 0.56);
--systemSecondarySize: 12px;
--grid-column-gap: 20px;
-... |
function buildWanted (groups, sr) {
var config = sr.config
, wanted
, result = {}
, isPP2002 = (config.patentPolicy === "pp2002")
, isWGNote = (config.longStatus === "Working Group Note")
, isIGNote = (config.longStatus === "Interest Group Note")
, isAmended = config.amended;
... |
var Batch = require('batch')
, debug = require('debug')('segmentio:integrations:mixpanel')
, extend = require('extend')
, Integration = require('segmentio-integration')
, is = require('is')
, objCase = require('obj-case')
, ms = require('ms')
, request = require... |
/*
* ๆจกๅ๏ผVBๅ
ๆข
*
*/
import {ListView, List, SearchBar, Flex, Icon, Tag, Modal, WingBlank, WhiteSpace} from 'antd-mobile';
import React, {Component} from "react";
import {Link} from "react-router";
import PropTypes from 'prop-types';
import {connect} from "react-redux";
import {storage} from "../../utils/tools"
import ... |
/* jshint maxparams: 7, -W003, -W030, -W110, -W101 */
/* global R, chai, describe, it, mocha, document, window */
'use strict';
var expect = chai.expect,
F = {};
// could not try out jscheck here, need a proper cdn
// https://raw.githubusercontent.com/douglascrockford/JSCheck/master/jscheck.js
function start ()... |
import React from "react"
import { Helmet } from "react-helmet"
import { Link } from "gatsby"
import Layout from "../components/layout"
import Header from "../components/header"
import MainLayOut from "../components/main-layout"
import PageTransition from 'gatsby-plugin-page-transitions'
import TransitionLink from 'gat... |
/* Load infrastructure */
let vista = require('ewd-vista');
/* Set-up module.export.handlers structure */
module.exports = {};
module.exports.handlers = {};
/* Sets up Symbol Table management
* Called when module is loaded by QEWD */
module.exports.init = function() {
vista.init.call(this);
};
// Pre han... |
state = {
loggedIn: false,
wallet: null,
jwk: null
};
var lastTxId;
//modal stuff:
// Get the modal
var modal = document.getElementById("myModal");
// Get the button that opens the modal
var btn = document.getElementById("loginBtn");
// Get the <span> element that closes the modal
var span = document.getEleme... |
'use latest';
// Dependencies
const express = require('express');
const Webtask = require('webtask-tools');
const bodyParser = require('body-parser');
const Bluebird = require('bluebird');
const Request = Bluebird.promisifyAll(require('request'));
const proxyaddr = require('proxy-addr');
// Constants
cons... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var d3 = require("d3");
var QUnit = require("qunit");
var cola = require("../index");
var n7e23 = {
"nodes": [
{ "name": "0", "width": 50, "height": 50 },
{ "name": "1", "width": 50, "height": 50 },
{ "name": "2", "... |
import axios from 'axios'
import Logo from "./logo.png"
import Swal from 'sweetalert2'
import ReactDOM from 'react-dom'
import io from 'socket.io-client'
import SearchTask from './SearchTask'
import TabledTasks from './TabledTasks'
import React, { Component } from 'react'
import withReactContent from 'sweetalert2-react... |
var Container = require('./Container'),
ProjectionTransform2d = require('../c2d/ProjectionTransform2d'),
Geometry2d = require('../c2d/Geometry2d'),
ComputedGeometry2d = require('../c2d/ComputedGeometry2d'),
ComputedTransform2d = require('../c2d/ComputedTransform2d'),
utils = require('../utils'),
... |
/*
Copyright 2021 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... |
function handleChange(){
var opcije = document.getElementById("urediPo");
var izbrano = opcije.options[opcije.selectedIndex].value;
if(izbrano == "Abecedi")urediPoAbecedi();
else if(izbrano == "Zvezdicah")urediPoZvezdicah();
else if(izbrano == "Oceni")urediPoOceni();
}
function urediPoZvezdicah(){... |
// Types of bookings
var BookingType = {
NONE: 0,
ALL: 1,
AM: 2,
PM: 3
};
var Property = {
COTTAGE: 0,
BARN: 1
};
// Get last day of the month
function daysInMonth(month, year) {
// Add one to month to get next month, then set day to 0 (the day before the 1st)
return new Date(year, mo... |
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
const chalk = require('chalk');
const createDOMPurify = require('dompurify');
const { JSDOM } = require('jsdom');
const rimraf = require('rimraf');
const replaceEntities = require('./misc/util').replaceEntitiesInI18... |
var async = require('async'),
fs = require('fs'),
aws = require('./aws'),
dcQ = require('./api'),
vmo = require('./vimeo'),
jw = require('./jwplatform'),
enums = require('./constants'),
emoji = require('node-emoji'),
config = require('./config'),
... |
/* globals INCLUDE_RESOURCES_PATH */
import { app, Notification } from 'electron'
const { exec } = require('child_process')
const { ipcMain } = require('electron')
const path = require('path')
const fs = require('fs');
const DATAFILE_PATH = path.resolve(__dirname) + '/datafile'
let Datastore = require('nedb')
let db = ... |
import {
all,
call,
put,
select,
take,
takeEvery,
takeLatest,
takeLeading,
} from 'redux-saga/effects';
import QB from 'quickblox-react-native-sdk';
import {
dialogCreateFail,
dialogCreateSuccess,
dialogEditFail,
dialogEditSuccess,
dialogGet,
dialogGetFail,
dialogGetSuccess,
dialogsJoin... |
/**
* Parser for LOB-S-PR-LW-BOX and LOB-S-PR-LW-PIPE
*
* Copyright (c) by Lobaro GmbH 2020 - https://www.lobaro.com
* For Licence and further information see https://github.com/lobaro/lobaro-parsers
*
* This is a JavaScript parser to be used for the Lobaro LoRaWAN Water Level Sensor
* (aka Pressure Probe, aka P... |
/*
GENERAL
*/
// GENERAL
const errorHandling = error => console.log(error);
const hexToRGB = hex => {
hex = hex[0] == "#" ? hex.substring(1) : hex;
return ({r:parseInt(hex[0]+hex[1], 16), g:parseInt(hex[2]+hex[3], 16), b:parseInt(hex[4]+hex[5], 16)});
}
// from: https://stackoverflow.com/a/3943023/11488921
const ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.