text stringlengths 3.22k 29.5k |
|---|
/**
* Created by michal.baranowski on 04.12.2016.
*/
var mockConfig = {
a: 5,
b: 4.5,
h: 1.5,
ro1: 20,
ro2: 9999999
};
var chartCount = 0;
var App = function (config) {
this.config = config || mockConfig;
//Initialize properties
this.a = this.config.a; //promień kuli
this.b = this.config.b; //... |
import React, { Component } from "react";
import { Row, Col, Skeleton, Button, Icon, Affix, Tooltip } from "antd";
import styled from "styled-components";
import { connect } from "react-redux";
import moment from "moment";
import AddToCalendar from "react-add-to-calendar";
import { fetchEventInitiated } from "ACTION/ev... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TripleCheckBroker = exports.createNewBroker = void 0;
const calculateDbKey_1 = require("../frameworks/calculateDbKey");
const messages_1 = require("../frameworks/messages");
const createNewBroker = (repository) => {
return new Trip... |
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnP... |
/**
* Parse the received budget data to construct an array of daily budgets
*
* @param budget
* @returns {[]}
*/
const parseBudget = (budget) => {
let rawBudget = budget.replace(/[^0-9.,:;()]+/g, '').split(';');
const dailyBudget = [];
if (rawBudget[0][0] === ':') {
rawBudget[0] = rawBudget[0].substring... |
import { FlatButton } from 'material-ui';
import React, { PropTypes } from 'react';
import { fontColors, tintColor } from '../constants/styles';
import moment from '../utils/moment';
import { trimNewLinesAndWhitespace } from '../utils/string';
import t from '../utils/gettext';
import Card from './Card';
import Charac... |
/**
*
*/
var validatorItemTable;
var validatorsTable;
//var tableNames = [];
var optionOfTables="";
$(document).ready(function() {
$.ajaxSetup({
header: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
validatorItemTable = $('#showlist').DataTable({
"paging... |
'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]; } } }... |
import React from "react";
import SEO from "../components/seo";
import { Link } from "gatsby";
import { motion } from "framer-motion";
import Img from "gatsby-image";
import Scroll from "../components/locomotiveScroll";
const fade = {
initial: { opacity: 0 },
enter: {
opacity: 1,
transition: { duration: 0.... |
let accountId = '';
let optionSelect = '';
let firstName = '';
let lastName = '';
let title = '';
let emailAddress = '';
let signatureLocation = '';
/*
API: createSFFileFromFilePath
The createSFFileFromFilePath method allows creation of Salesforce Files directly from valid, accessible, device file paths. The in... |
const fs = require('fs');
const outdent = require('outdent');
const Achievement = require('../helper/Achievement.js');
const Check = require('../helper/Check.js');
const Member = require('../helper/Member.js');
const Messenger = require('../helper/Messenger.js');
const { clash, prefix } = require('../config/config.js')... |
import React, { useState, useEffect } from 'react';
import { useHistory } from 'react-router-dom';
import denormalize from '@weareredlight/denormalize_json_api';
import Radio from '../../elements/Radio';
import Input from '../../elements/Input';
import Select from '../../elements/Select';
import Textarea from '../../el... |
const { app, BrowserWindow, shell, Menu, protocol, webFrame } = require('electron');
// const autoUpdater = require('electron-updater').autoUpdater;
const { Console } = require('console');
const is = require('electron-util');
const toExecutableName = require('to-executable-name');
const url = require('url');
const path... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _asyncToGenerator3 = _interopRequireDefau... |
$(function () {
//$('.pilotlogopicker').selectpicker();
pilotclasstable = $('#TablePilotClass').DataTable({
columns: [
{
data: "PilotClass",
"fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
$(nTd).html("<a hr... |
/**
* =====================================
* =
* THIS MODEL (UI) FOR THE UI OF =
* THE PAGE =
* =
* =====================================
*/
const UI = (function() {
const capitalizeFirstLetter = string =>... |
import * as Caml_array from "../../../../../../../../node_modules/bs-platform/lib/es6/caml_array.js";
import * as Caml_int32 from "../../../../../../../../node_modules/bs-platform/lib/es6/caml_int32.js";
import * as OptionService$Wonderjs from "../../../../atom/OptionService.js";
import * as TypeArrayService$Wonderjs... |
import React, { useState } from "react";
import { useRouter } from 'next/router';
import { useFormik } from 'formik';
import * as Yup from 'yup';
import { useMutation, gql } from '@apollo/client';
import DateFnsUtils from "@date-io/date-fns";
import {
MuiPickersUtilsProvider,
KeyboardDatePicker,
DatePicker,
Tim... |
'use strict';
var http = require('http');
var util = require('util');
var events = require('events');
var url = require('url');
var zlib = require('zlib');
var ProxyServer = function (portNum, options) {
events.EventEmitter.call(this);
var self = this;
global.base.users = {}; // global sockets pool
self.users ... |
/* eslint-disable no-console */
/* eslint-disable global-require */
/* eslint-disable import/no-dynamic-require */
/* eslint-disable no-void */
/* eslint-disable no-underscore-dangle */
const { join } = require('path');
const { green, grey } = require('chalk');
const requireFromApp = require('../helpers/require-from-ap... |
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var script = {
name: "LoadingWrapper",
props: {
loading: Boolean,
pulse: Boolean,
text: {
type: String,
default: "Loading"
},
tag: {
type: String,
default: "div"
},
baseClass: {
type: String,
default: "loadi... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import columnSelector from '../../../../../state/selectors/visualization/columns-selector';
import CopyToClipboard from '../../../../../helpers/copy-to-clipboard';
import FindClosest from '../../../../.... |
function anadirProductos(formulario){
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
alert("Producto añadido con éxito");
cargarCarrito();
}};
var params = "cod="+formulario.elements['cod'].value+"&unidades="+formu... |
// 위도,경도를 이용하여 거리를 구하는 함수
function getDistanceFromLatLonInKm(lat1,lng1,lat2,lng2) {
lat1 = parseFloat(lat1);
lng1 = parseFloat(lng1);
lat2 = parseFloat(lat2);
lng2 = parseFloat(lng2);
function deg2rad(deg) {
return deg * (Math.PI/180)
}
var R = 6371; // Radius of the ear... |
import { T as TimepickerMixin } from './TimepickerMixin-885a12ae.js';
import { s as script$5, a as script$6 } from './DropdownItem-2d055f53.js';
import { s as script$1 } from './Input-82ba71aa.js';
import { s as script$2 } from './Field-bdc7266c.js';
import { s as script$3 } from './Select-2621b3e3.js';
import { s as s... |
/**
* Copyright 2017 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the 'License'); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
import React from "react";
import SplitterLayout from "react-splitter-layout";
import CodeEditor from "@lilonga/code-editor";
import { ReflexContainer, ReflexSplitter, ReflexElement } from "react-reflex";
import "react-reflex/styles.css";
class ResizeAceHack {
constructor(editor) {
setTimeout(_ => window.dispat... |
import View from '@girder/core/views/View';
import router from '@girder/core/router';
import Accordion from 'accordion';
import { cancelRestRequests, restRequest, getApiRoot } from '@girder/core/rest';
import MenuBarView from '../../views/menuBar.js';
import HomeTemplate from './home.pug';
import IndexEntryViewTemplat... |
'use strict'
const _ = require('lodash')
const moment = require('moment')
const { Command } = require('discord-akairo')
module.exports = class CheckCommand extends Command {
constructor() {
super('check', {
aliases: ['check', 'c'],
description: {
content: ''
},
args: [{
id... |
var gl;
const {mat2, mat3, mat4, vec2, vec3, vec4} = glMatrix; // Now we can use function without glMatrix.~~~
function testGLError(functionLastCalled) {
/* gl.getError returns the last error that occurred using WebGL for debugging */
var lastError = gl.getError();
if (lastError != gl.NO_ERROR) {
alert(functio... |
/*
Run PoS test against penn treebank
JSON file took from nlp_compromise (thanks a bunch!).
It's good to note that some of the Penn Treebank dataset sentences are not perfectly tagged, so measure
of deviation from Penn Treebank is quite subjective, as Compendium may be good where Penn is wrong
(in a VERY LITTLE prop... |
/**
* @Params type: {String} iconName - A helper method to create symbols similar to icon using css. As of now 2 icons are created.
* More icons to be added.
* @return type { Node } arrowNode - Returns the left and right pointer long arrow icon[created with css].
*/
function createIcon(iconName) {
if(iconName == ... |
/**
* Created by baldur on 12/9/15.
* renamed and ported to ES6 8/8/2017
*/
/**
* @classdesc
* This provides a central point to access the loaded Plot Data
* including per-point meta-data (i.e. data other than the x-y coords)
* that is associated with each plot
*
* One of the main functions of the class is to... |
/* REQUIRED DEPENDENCIES */
var reload = require('require-reload')(require);
var fs = require('fs');
/* REQUIRED FILES */
var utils = reload('./utils.js');
var Command = reload('./Command.js');
var _Logger = reload('./Logger.js');
/**
* @class
* @classdesc Handles a directory of .js files formatted as {@link ... |
//variables
const Selectyear = document.querySelector("#year")
const formAsli = document.querySelector("#request-quote")
const modelCar = document.querySelector("#make")
console.log(formAsli);
// Eventlisteners
Eventlisteners()
function Eventlisteners() {
// aval migim aghti load shod in kar anjam bede va tar... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Hanging;
(function (Hanging) {
Hanging[Hanging["None"] = 0] = "None";
Hanging[Hanging["Partial"] = 1] = "Partial";
Hanging[Hanging["Full"] = 2] = "Full";
})(Hanging = exports.Hanging || (exports.Hanging = {}));
function indenta... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////
////// Maps layer for JuveCyL
////// version 1.0
/... |
//---------------------------------+
// CARPE S l i d e r 1.5.1 |
// 2008 - 07 - 09 |
// By <NAME> |
// Copyright CARPE Design |
// http://carpe.ambiprospect.com/ |
//---------------------------------+
// Global vars. You don't need to make changes here to change your sliders.
/... |
/**
* Module for building 3D serial charts.
*/
import { __extends } from "tslib";
/**
* ============================================================================
* Imports
* ============================================================================
* @hidden
*/
import { XYChart, XYChartDataItem } from "../.... |
$.extend($.expr[':'], {
isEmpty: function (e) {
return e.value === '';
}
});
var getAbsoluteUrl = (function () {
var a;
return function (url) {
if (!a) a = document.createElement('a');
a.href = url;
return a.href;
};
})();
window.onWorkSuccess = function () {
};
... |
// MIT License
// Copyright (c) 2016-2017 <NAME>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi... |
//var Stream=require("./Stream.js");
var System=core.System;
var Stream= System.IO.Stream
var FileStream;
var fs= require("fs");
var Path= require("path");
FileStream=module.exports=function(/* string */file, /* FileMode */fileMode, /* FileAccess */ fileAccess){
Stream.call(this);
if(arguments.length<3... |
import React, { Component } from 'react'
import styled from 'styled-components'
import VeracityIcon from './VeracityIcon'
import { parseTime } from './utils'
const VERACITY_COLORS = {
'true': '#0060FF',
'untrue': '#EB1D2B',
'misleading': '#FFBA00',
'unverifiable': '#9DBAEB'
}
class StatementsPanel extends Co... |
// Send
function send_message(text, times=1, mention_num=false, selfdestruct=false){
if(Array.isArray(text)){
for(mes=0;mes < text.length; mes++){send_message(text[mes], times);}
return;
}
var input = get_input();
for (counter = 0; counter < times; counter++){setTimeout(function(){
input.innerH... |
// Tool that runs the fraud model to detect fraudulent accounts and mark them as such.
// - Scans all Active participants
// - Check account against whitelist and if match, set growth_participant.whitelisted to true
// - Run fraud model if positive, update growth_participant.status to 'Banned' and store reason in gr... |
'use strict';
const fs = require('fs');
const config = require('config');
const uuid = require('uuid');
const os = require('os');
const child_process = require('child_process');
const http = require('http');
const https = require('https');
const WebSocketServer = require('ws').Server;
const maxmind = require('maxmind... |
/*
oclif command to burn a specific quantity of Avalanche native tokens.
Burning tokens is exactly the same as sending tokens without change. The only
difference is that the output indicates the difference.
e.g. If you have 100 tokens and want to burn 10, you use the 100 token UTXO
as input, and set the out... |
#!/usr/bin/env node
const request = require( 'request' );
const vm = require( 'vm' );
const _ = require( 'lodash' );
const path = require( 'path' );
const fs = require( 'fs' );
const areaCodes = {
CA: [
'204',
'236',
'249',
'250',
'289',
'306',
'343',
'365',
'387',
'403',
'416',
'418',
'431'... |
// Copyright 2013 SAP AG.
//
// 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... |
'use strict';
var ref = require('ref');
var StructType = require('ref-struct');
var ffi = require('ffi');
module.exports = function (vips) {
// inherit from GObject fields
var LayoutOperation = Object.assign(Object.assign({}, vips.LayoutObject), {
// opaque
});
var StructOperation = StructType(LayoutOpera... |
/* Copyright (C) 2018 <NAME>. See the file LICENSE for copying permission. */
/*
This module interfaces with STMicroelectronics LIS3MDL.
For development a X-Nucleo-IKS01A01 was used, connected to an STM32-Nucleo Board.
Connection:
*/
/** Addresses of the control registers */
var C = {
I2C_ADDRESS: 0x1E,
WHO_AM... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
window.moment = require('moment');
/**
*... |
// 引入openlayers的库
import 'ol/ol.css'
import { Map, View, Feature } from 'ol'
import * as layer from 'ol/layer.js'
import * as source from 'ol/source.js'
import * as geom from 'ol/geom.js'
import * as style from 'ol/style.js'
import Overlay from 'ol/Overlay.js'
import TileLayer from 'ol/layer/Tile'
import { defaults as ... |
let moment = require('moment')
let DB = require('./core/db.js')
let g_service = DB.getService()
let g_msg = require(`${__managerpath}/message/message.js`)
function Crm() {}
Crm.insertUser = async function(name, enable = true) {
await g_service.crm_users.findOne({
attributes:['name', 'enable'],
where: { name:nam... |
import { readFileSync, readdirSync } from "fs";
import { API } from "3commas-typescript";
import JSON5 from "json5";
import { fetchAltRank, fetchBubbles, fetchGalaxyScore } from "./lib.js";
import { getKey } from "lunarcrushed";
import { validateConfig } from "./validator.js";
const files = readdirSync("./");
if (!(fil... |
import Icon from "@chakra-ui/icon";
import { Image } from "@chakra-ui/image";
import {
Box,
Center,
Divider,
Grid,
Heading,
HStack,
Stack,
Text,
Wrap,
WrapItem,
} from "@chakra-ui/layout";
import React, { useState, useEffect } from "react";
import { ChevronRightIcon } from "@chakra-ui/icons";
import... |
import React from 'react'
import { Card } from 'semantic-ui-react'
import { Radio } from 'semantic-ui-react'
import { Button, Modal } from 'semantic-ui-react'
import { Form } from 'semantic-ui-react'
import { Image } from 'semantic-ui-react'
import { Table } from 'semantic-ui-react'
import { Icon } from 'semantic-ui-r... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequir... |
/*
* lib/dragnet-impl.js: common functions for internal dragnet components
*/
var mod_assertplus = require('assert-plus');
var mod_jsprim = require('jsprim');
var mod_krill = require('krill');
var mod_path = require('path');
var mod_skinner = require('skinner');
var mod_stream = require('stream');
var VError = requi... |
import React, { useState, useEffect, useRef } from 'react';
import { Card, Row, Col, Spinner, Image } from 'react-bootstrap';
import { useDispatch, useSelector } from 'react-redux';
import getFormattedFeedbacks from '../utils/getFormattedFeedbacks';
import isCollaborator from '../utils/isCollaborator';
import Message ... |
const fs = require('fs');
const beautify = require('js-beautify').js;
const { uppercase } = require('../utils');
module.exports = ({ originalSchema, schema, destination, logging, }) => {
const fakeObject = require('./fakeObject');
const randomPropertyChange = require('./randomPropertyChange');
const name = sche... |
import './slicedToArray-4e274c67.js';
import './unsupportedIterableToArray-137e449b.js';
import React, { useRef, useCallback } from 'react';
import './_commonjsHelpers-97e6d7b1.js';
import { P as PropTypes } from './index-097535f1.js';
import './defineProperty-a0480c32.js';
import './toConsumableArray-127424c2.js';
imp... |
// Copyright 2019 Workiva 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 agreed to in wri... |
import React, { useEffect } from "react";
import MaterialTable, { MTableEditField, MTableEditRow } from 'material-table';
import Constantes from '../../constantes/Sistema';
import { useStateValue } from "../../sesion/store";
import { consumerFirebase } from '../../server';
import { openMensajePantalla } from '../../ses... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var layouts_1 = require("./layouts");
var i0 = require("@angular/core");
var i1 = require("@angular/material/button");
var i2 = require("@angular/flex-layout/flex");
var i3 = require("@angular/common");
v... |
import React, { useEffect, useRef, useState } from 'react';
import TextInput from "../../common/textInput";
import TextArea from "../../common/textArea";
import _ from 'lodash';
import { httpRequest } from '../../../helpers/httpRequest'
import { connect } from 'react-redux';
import { useLocation } from 'react-router-d... |
#!/usr/bin/env node
// cli_import: include the npm cli documentation into the main docs
//
// This script will:
// 1. Read the `releases.json` file to understand which versions of the
// CLI should be updated. The `releases.json` should contain an array
// of versions, each with the following information:
//
//... |
#!/usr/bin/env node
'use strict';
const Path = require('path');
const FS = require('fs');
const Program = require('commander');
const Chalk = require('chalk');
const Mkdirp = require('mkdirp');
const Utils = require('../lib/utils');
const PropertiesLoader = require('../node_modules/bearcatjs/lib/resource/properties... |
import {ext, parse, resolveModuleId, nodejsIds} from './id-utils';
import {markPromise, isMarkedPromise, serialResults} from './promise-utils';
const commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg;
const cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g;
//Could match something like ')//comme... |
import React from 'react'
import { withTranslation } from 'react-i18next'
import PropTypes from 'prop-types'
import { Prompt } from 'react-router-dom'
import {
Box,
Section,
Form,
FormField,
Header,
Heading,
Footer,
Button,
TextInput,
NumberInput,
Select,
Columns,
DateTime,
Anchor,
Paragra... |
/*
* These data types contain functionality to serialize complex data over JSON.
*/
// var dk = require('../../boot/boot');
import format from "./dk-format";
import Class from "../../lifecycle/coldboot/dk-class";
import {dkconsole} from "../../lifecycle/dkboot/dk-console";
const _datatypes = {};
function _regist... |
function makeid(length) {
var result = '';
var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var charactersLength = characters.length;
for ( var i = 0; i < length; i++ ) {
if (i == 0) {
result += characters.charAt(Math.floor(Math.random() * (charactersL... |
var searchBtn = $("#searchBtn");
var savedLocations = []; // array for the searches user makes
// pull from localStorage
// $("#prevSearches").val(JSON.parse(localStorage.getItem("history"))); // local storage not retrieving
//current day and time
$(document).ready(function () {
$("#currentDate").append("<h2>" +... |
import React, { useEffect, useState } from 'react';
import { Keyboard, Text, TextInput, TouchableOpacity, View } from 'react-native';
import CheckBox from '@react-native-community/checkbox';
import DateTimePicker from '@react-native-community/datetimepicker';
import { FontAwesomeIcon } from '@fortawesome/react-native-f... |
var indexRoutes = require('../routes/index.js');
var fs = require('fs');
function Site(options){
for(var key in options){
this[key] = options[key];
}
this.routes = [];
this.templates = {};
this.viewTemplate = {};
this.viewVars = {};
this.cssPath = "stylesheets/";
this.jsPath = "javascripts/";
this.imgPath ... |
import { observable, computed, toJS, autorun } from 'mobx';
import EventEmitter from 'events';
import mqttWorker from './mqttWorker';
import websocketWorker from './websocketWorker';
import mqttMessage from './mqttMessage';
import { PROTOCAL_REQUEST, PROTOCAL_RESPONSE } from '../datacenter/protocol';
import { SER... |
/*------------------------------------------------------------------
[ Calender Trigger Js]
Project : Fickle Responsive Admin Template
Version : 1.0
Author : AimMateTeam
URL : http://aimmate.com
Support : <EMAIL>
Primary use : Calender Page
-------------------------------------... |
const { ZoomSDK_LANGUAGE_ID, ZoomSDKError, ZNCustomizedLanguageType, ZoomAPPLocale, ZoomSDKVideoRenderMode, SDKRawDataMemoryMode
, ZoomSDKVideoCaptureMethod, ZoomSDKRenderPostProcessing } = require('./settings.js');
const ZOOMAUTHMOD = require('./zoom_auth.js');
const ZOOMMEETINGMOD = require('./zoom_meeting.js');
co... |
$el = $("#bookings-wizzard")
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $el.data('token')
}
});
var data = {
date: null,
time_from:null,
time_to:null
};
var bookables = {};
$el.steps({
headerTag: "h6",
bodyTag: "fieldset",
transitionEffect: "fade",
titleTemplate: '<span class="number">#index#</span> #title#... |
/**
* Google Maps API Example Usage: https://developers.google.com/maps/documentation/javascript/examples/distance-matrix
*/
/**
* Config
*/
DEFAULT_DESTINATIONS = [
['Zürich HB', 'Zürich HB'],
['ETH', 'ETH Zürich Hauptgebäude'],
['Uni', 'Universität Irchel, Zürich'],
];
DEFAULT_TRAVEL_MODE = 'WALKI... |
function getMonzo() {
return {
// general
name: "<NAME>",
provider: "monzo",
// auth
authType: "oauth2",
accessToken: null,
accessExpires: -1,
// variables below used while auth is being negotiated
clientId: null,
clientSecret: null,
state: null,
redirectUri: null,... |
import React, { useState, useEffect } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/styles';
import { Link as RouterLink} from 'react-router-dom';
import clsx from 'clsx';
import ExpansionPanel from '@material-ui/co... |
/**
* Tweetsie - Twitter plugin built with JS! 'cause I mean why the hello not?!
* @version v0.4.0
* @author <NAME> <<EMAIL>>
* @license MIT
*/
"use strict";
var _createClass = (function () { function defineProperties(target, props) { for (var key in props) { var prop = props[key]; prop.configurable = true; if (p... |
import React from "react";
import Link from "gatsby-link";
import { Player } from "video-react";
import Slider from "../../../node_modules/rc-slider/lib/Slider";
import "../../../node_modules/rc-slider/assets/index.css";
import VideoBg from "../VideoBg";
import * as Scroll from "react-scroll";
const ScrollLink = Scrol... |
const Promise = require('bluebird')
const path = require('path')
const fs = Promise.promisifyAll(require('fs'))
const child = Promise.promisifyAll(require('child_process'))
const request = require('superagent')
const { log } = console
// core function
// 1. if string, run it with child.spawn
// 2. if sync function, i... |
/**
* Created by Ramos on 01/06/2015.
*/
var table = $('#cliente_foto');
/* Table tools samples: https://www.datatables.net/release-datatables/extras/TableTools/ */
/* Set tabletools buttons and button container */
$.extend(true, $.fn.DataTable.TableTools.classes, {
"container": "btn-group tabletools-dropdown... |
import { combineReducers } from 'redux'
import { batch } from 'react-redux'
import util from './util.js'
import { info, log, warn, error, inProgress, inProgressIncrement } from './status'
import { setActors as setControllerActors } from './controller'
import { setEnvironment, setDefaultEnvironment } from './environment... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import moment from 'moment';
import {
Form, Button, Card, Divider, Steps, Col , Select, Input, InputNumber,
} from 'antd';
import DescriptionList from '../../components/DescriptionList';
import Pa... |
const path = require('path');
const gulp = require('gulp');
const sourcemaps = require('gulp-sourcemaps');
const map = require('map-stream');
const args = require('yargs').argv;
const chmod = require('gulp-chmod');
const ts = require('gulp-typescript');
const gif = require('gulp-if');
const fs = require('fs');
const p... |
#!/usr/bin/env node
// # æternity CLI `contract` file
//
// This script initialize all `contract` function
/*
* ISC License (ISC)
* Copyright (c) 2018 aeternity developers
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that t... |
import React from 'react'
import Select from 'react-select'
import { connect } from 'react-redux'
import { browserHistory } from 'react-router'
import { postInterests, increaseProgress } from '../../actions/surveyAction.js'
import FormBox from './ui/formbox'
import { interestOptions } from './options/interestOptions'
i... |
////////////////////////////////////////////////////////////////////////////////////////
// DEBUG: For Developers only, Also to activate all other variables you must activate easy debug mode first to true OR 1.
const EASY_DEBUG_MODE = true; //To active built-in Debug mode for testing in iMacros Add-on and support Fire... |
$(function(){
QUnit.test('Empty builder + destroy', function(assert) {
$('#container1').queryBuilder({ filters: basic_filters });
assert.ok($.isEmptyObject($('#container1').queryBuilder('getRules')), 'Should return empty object');
$('#container1').queryBuilder('destroy');
assert.ok(!$('#containe... |
// Node Modules
import React, { useState, useEffect, Fragment } from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router-dom';
import { makeStyles, Box, TextField, CircularProgress, IconButton, Button } from '@material-ui/core';
import { Search as SearchIcon, Clear as ClearIcon } from ... |
import React, { Component } from "react";
import { Link } from "react-router-dom";
import PropTypes from "prop-types";
import { translate } from "react-i18next";
import moment from "moment";
import styled from "styled-components";
import ConfirmDeleteModal from "../modals/ConfirmDeleteModal";
import GetMedia from "../... |
var _ = require('lodash');
var debug = require('debug')('monoxide');
var debugAggregate = require('debug')('monoxide:aggregate');
var debugDetail = require('debug')('monoxide:detail');
var eventer = require('@momsfriendlydevco/eventer');
var fspath = require('path');
var glob = require('globby');
/**
* Collection inst... |
import * as d3 from 'd3';
import { parseSvg } from "d3-interpolate/src/transform/parse";
import $ from 'jquery';
var treeData;
var checkData;
// Set the dimensions and margins of the diagram
var margin = { top: 90, right: 90, bottom: 90, left: 90 },
width = 960 - margin.left - margin.right,
height = 1000 - margin.... |
/*
Copyright (c) 2010 Human Engines Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and... |
require('./jquery.dragster.js');
require('jquery');
var setApps = require('./app_manager.js');
var setUsers = require('./user_manager');
var Foundation = require('../../../static/js/libs/foundation.min.js');
var moment = require('../../../static/js/libs/moment.js');
var Fabmo = require('../../../static/js/libs/fabmo.js... |
var __makeTemplateObject =
(this && this.__makeTemplateObject) ||
function(cooked, raw) {
if (Object.defineProperty) {
Object.defineProperty(cooked, 'raw', {value: raw})
} else {
cooked.raw = raw
}
return cooked
}
import React, {useRef, useContext, useImperativeHandle} from 'react'
imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.