text stringlengths 3.22k 29.5k |
|---|
import React, { Component } from 'react'
import MetronomeContracts from 'metronome-contracts'
import detectProvider from 'web3-detect-provider'
import { connect } from 'react-redux'
import BigNumber from 'bignumber.js'
import PropTypes from 'prop-types'
import debounce from 'lodash.debounce'
import pRetry from 'p-retry... |
module.exports = language
var tokenizer = require('./tokenizer')
function language(lookups) {
return function(selector) {
return parse(selector, remap(lookups))
}
}
function remap(opts) {
for(var key in opts) if(opt_okay(opts, key)) {
opts[key] = Function(
'return function(node, attr) { return ... |
'use strict';
// ============================================================================
// Add-On System
// ============================================================================
import Module from 'utilities/module';
import { SERVER } from 'utilities/constants';
import { createElement } from 'utilities/d... |
import React, { useEffect, useState, useRef } from 'react';
import PropTypes from 'prop-types';
import styled, { withTheme } from 'styled-components';
import { useDispatch, useSelector } from 'react-redux';
import * as R from 'ramda';
import { DragDropContext, Droppable } from 'react-beautiful-dnd';
import Column from... |
// Copyright 2017-2021, University of Colorado Boulder
/**
* Bounds2 tests
*
* @author <NAME> (PhET Interactive Simulations)
* @author <NAME> (PhET Interactive Simulations)
*/
import Matrix3 from './Matrix3.js';
import Vector2 from './Vector2.js';
QUnit.module( 'Matrix3' );
function approximateEquals( assert, ... |
//------------------------------------------------------------------------------
//
// Eschersketch - A drawing program for exploring symmetrical designs
//
//
// Copyright (c) 2017 <NAME> (http://anselmlevskaya.com)
// Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
// license.
//
//-------... |
var App = angular.module("adminApp", [
'ngRoute',
'ui.router',
'oc.lazyLoad',
'datatables',
'datatables.scroller',
'datatables.buttons',
'ngTextTruncate',
'ngFileUpload',
'ngDialog',
'ngImgCrop',
'ngSanitize',
'ngToast',
'datatables.bootstrap',
'datatables.colvis'... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, PanResponder } from 'react-native';
/**
* 手势响应
*/
class Touchable extends Component {
static propTypes = {
// 样式
style: PropTypes.oneOfType([PropTypes.number, PropTypes.object, PropTypes.array]),
// 子组件
chil... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const request = require("request");
const requestPromise = require("request-promise");
const arrayLen24 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
const remove = (str, remove) => {
if (typeof str === 'strin... |
// Fisher–Yates shuffle
Array.prototype.shuffle = function() {
var input = this;
for (var i = input.length - 1; i >= 0; i--) {
var randomIndex = Math.floor(Math.random() * (i + 1));
var itemAtIndex = input[randomIndex];
input[randomIndex] = input[i];
input[i] = itemAtIndex;
}
return input;
}
function dest... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { findDOMNode } from 'react-dom';
import cx from 'classnames';
import ScrollView from 'ming-ui/components/ScrollView';
import SessionItem from '../../components/SessionItem';
import * as ajax from '../../utils/ajax';
import * as act... |
/**************************************************************************************
htmlDatePicker v0.1
Copyright (c) 2005, <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:
... |
import React, { Component } from 'react';
import BtnCar208 from '../components/BtnCar208';
import BtnCar301 from '../components/BtnCar301';
import Menu from '../components/Menu';
import Leyendas from '../components/Leyendas';
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';
class Car208... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.RadioComponent = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; des... |
"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];
})... |
import React, { Fragment, useMemo, useRef, useState, useCallback } from 'react';
import { withTheme, withDimensions, LegacyContainer, SvgWrapper, ResponsiveWrapper, getRelativeCursor } from '@nivo/core';
import { scaleLinear } from 'd3-scale';
import { Delaunay } from 'd3-delaunay';
import compose from 'recompose/compo... |
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// These variables are set by setupSysAppsCommon(). See comments on the function
// for more details.
var internal;
var v8tools;
var unique_id = 0;
fun... |
'use strict';
// Test is based on the following editor draft:
// https://w3c.github.io/webrtc-pc/archives/20170605/webrtc.html
// Helper function for testing RTCRtpParameters dictionary fields
// This file depends on dictionary-helper.js which should
// be loaded from the main HTML file.
// An offer/answer exchange... |
/*
* Copyright (c) 2014 <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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
// Based on: https://github.com/ondras/fastiles/blob/master/ts/scene.ts (v2.1.0)
import * as shaders from "./shaders";
import { Glyphs } from "./glyphs";
import { Layer } from "./layer";
import * as Color from "./color";
export const VERTICES_PER_TILE = 6;
export class NotSupportedError extends Error {
constructor(... |
// ==UserScript==
// @name Solarize Everything
// @namespace https://github.com/georgewatson/solarize-everything
// @version 0.3.4
// @description Makes everything Solarized
// @author <NAME>
// @match *://*/*
// @grant none
// @updateURL https://raw.githubusercontent.com/georgew... |
'use strict';
// --------------------------------------
// DEV - BUILD
// --------------------------------------
const webpack = require('webpack');
const autoprefixer = require('autoprefixer');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const FixStyleOnlyEntriesPlugin = require("webpack-fix-style... |
import React from 'react';
import { css } from '@emotion/core';
import styled from '@emotion/styled';
import { theme } from '../../styles/theme';
import profilePic from '../../images/Florin_profil.jpg';
const { colors, fonts } = theme;
const Section =styled.section`
width: 100vw;
padding: 0 5rem;
display:... |
import React from 'react';
import Link from 'gatsby-link';
import { Collapse, Navbar, NavbarToggler, NavbarBrand, Nav, NavItem, NavLink } from 'reactstrap';
import { HashLink as AnchorLink } from 'react-router-hash-link';
import filcanLogo from '../images/logo.gif';
class Header extends React.Component {
constructo... |
// CustomJS: Tap callback for the state map
//
// Provided arguments:
// args={ 'event':ev,
// 'mpoly':mpoly,
// 'ext_datafiles': ext_datafiles,
// 'source_map': source_map,
// 'p_map':p_map,
// ),
// Interprete and respond
var ind = mpoly.data_source.selected.indice... |
const Tonyu=require("../runtime/TonyuRuntime");
const JSGenerator=require("./JSGenerator");
const Semantics=require("./Semantics");
//const ttb=require("./");
const FS=require("../lib/FS");
const R=require("../lib/R");
const A=require("../lib/assert");
//,DU,
//const CPR=require("./compiledProject");
const S=require(".... |
var Promise = require("bluebird");
var spawn = require("child_process").spawn;
var assert = require("assert");
var argv = require("optimist").argv;
var ARGS = [].concat(
process.execArgv,
__filename,
process.argv.slice(2)
);
function sanitizeCpCount(input) {
return Math.min(Math.max(1, (+input | 0)), 16... |
/**
* Copyright 2016 The AMP HTML Authors. 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 require... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
var _inheritsLoose2 = _interopRequireDefault(requ... |
// I stopped at trying to render segments of each process
// get process start,
// get process size
// loop over it's segments
// divide the render of the process into segments
// use the same apprach for the allocate function
// file:///Users/admin/Downloads/MemoryAllocationProjectDescription2021%20(1).pdf
const mem... |
var Animation = require('./Animation/Animation.js')
var Circle = require('./Canvas/Shape/Circle.js')
var extend = require('./extend.js')
var Layer = require('./Canvas/Layer.js')
var Stage = require('./Canvas/Stage.js')
var Juggler = (function () {
var abc = "abcdefghijklmnopqrstuvwxyz"
var nums = {}
for (... |
import crypto from 'crypto';
import spawn from 'cross-spawn';
import log from 'electron-log';
import fs from 'fs';
import path from 'path';
import macaddress from 'macaddress';
import EventEmitter from 'events';
import childProcess from 'child_process';
import xmlhttprequest from 'xmlhttprequest';
import isRunning from... |
class AssessmentAddController{
constructor($stateParams, $state, API,$scope,$http, $compile, DTOptionsBuilder, DTColumnBuilder) {
'ngInject'
this.$state = $state
this.$scope = $scope
this.formSubmitted = false
this.alerts = []
this.API = API
let Topics = API.... |
import $ from 'jquery';
import i18n from '@cdo/locale';
import React from 'react';
import ReactDOM from 'react-dom';
import SchoolInfoInputs from '@cdo/apps/templates/SchoolInfoInputs';
import getScriptData from '@cdo/apps/util/getScriptData';
import firehoseClient from '@cdo/apps/lib/util/firehose';
import experiments... |
var audioContext = null;
var midiAccess;
var midiDevice;
var bpm = 128; //default beats per minute setting
var tempo; //tempo in 24ppq
var lookahead = 25.0; // How frequently to call scheduling function (ms)
var scheduleAheadTime = 0.1; // How far ahead to schedule audio (sec)
var nextClockTime = 0.0; // when the next ... |
import List from "src/dataTypes/lists/List";
import Table from "src/dataTypes/lists/Table";
import Point from "src/dataTypes/geometry/Point";
import NumberList from "src/dataTypes/numeric/NumberList";
import Polygon from "src/dataTypes/geometry/Polygon";
import Rectangle from "src/dataTypes/geometry/Rectangle";
import ... |
'use strict';
const {
isArray,
isObject,
matchPattern
} = require('min-dash');
const sax = require('sax');
const Stack = require('tiny-stack');
/**
* Recursively find children in tree that match pattern.
*
* @param {Object} parent
* @param {Function} pattern
*
* @returns {Array|null}
*/
function findCh... |
/**
* @fileOverview Low-level JSGI adapter implementation.
*/
var {Headers, getMimeParameter} = require('ringo/utils/http');
var {Stream} = require('io');
var {Binary} = require('binary');
var system = require('system');
var strings = require('ringo/utils/strings');
var {WriteListener, AsyncListener} = javax.servlet... |
"use strict";
/**
* This class contains several methods and parameters used to create
* and send a request to a Windward RESTful engine service, and
* receive and process the response. The RESTful engine service
* supports asynchronous requests. This will be initiated
* automatically if a report output file is n... |
/*
jQuery Markdown editor
derived from https://github.com/digitalnature/MarkdownEditor
and https://github.com/jamiebicknell/Markdown-Helper
*/
function csrfSafeMethod(method) {
// these HTTP methods do not require CSRF protection
return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
}
$.ajaxSetup({
befor... |
const {createCanvas, loadImage, registerFont} = require('canvas');
const fs = require('fs');
const Path = require('path');
const lanugageJSON = {
brobnar: {
en: 'Brobnar',
zhhant: '蠻族',
zhhans: '蛮族',
pt: 'Brobnar',
fr: 'Brobnar',
es: 'Brobnar',
de: 'Brobnar',
... |
let dataOrderList = [];
dataOrderList[0] = {
title: "London",
subtitle: "180-182 Regent Street, London, W1B 5BT",
text: "Lorem ipsum dolor sit amet, consectetur adipiscing esi elit. Vivamus at arcu sem. Vestibulum ornare eleifendit massa, nec tempor odio. Fusce posuere nunc iaculis ligula... |
const express = require('express');
const { firebaseAuthMiddleware } = require('../middleware/firebaseAuth');
const router = express.Router();
const User = require('../db/models/users');
const Post = require('../db/models/post');
const Comment = require('../db/models/comments');
const SubThread = require('../db/models... |
/* ***************************
* **** GLOBAL VARIABLES ****
* ***************************/
//funcion anonima autoejecutable inicial para captar los POSTS
//APIs recogidos con funcion creada en base a PROMESAS
(() => {
fetch("https://jsonplaceholder.typicode.com/posts?_limit=20")
.then((res) => {
//el fe... |
/*
* @Descripttion:
* @Author: tianxiangbing
* @Date: 2019-04-01 10:42:29
* @LastEditTime : 2020-01-13 19:07:08
* @github: https://github.com/tianxiangbing
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Formatter from './formatter';
// const { Input, InterInput, Letter... |
/* eslint no-use-before-define: 0 */
/* eslint no-param-reassign: 0 */
/* eslint prefer-destructuring: 0 */
// TODO
// meta - see, links
const EXCLUDE_TAGS = ['entry'];
const VENDOR_TAG_RX = /^x-/;
const STABILITY_TAGS = ['experimental', 'stable', 'locked'];
const STABILITY = 'stability';
let currentMetaDoc;
const... |
import dagre from 'dagre';
import debug from 'debug';
import { fromJS, Map as makeMap, Set as ImmSet } from 'immutable';
import { EDGE_ID_SEPARATOR } from '../constants/naming';
import { buildTopologyCacheId, updateNodeDegrees } from '../utils/topology-utils';
const log = debug('scope:nodes-layout');
const topologyC... |
import Taro, { Component } from '@tarojs/taro'
import { View, Image, Button, Canvas, Block } from '@tarojs/components'
import { cloudCallFunction } from 'utils/fetch'
import PageWrapper from 'components/page-wrapper'
import { base64src, onDownloadFile, getImg, saveImageToPhotosAlbum } from 'utils/image-utils'
import {... |
function Order(name, pizza, topping, crust, boxes, delivery) {
this.customerName = name;
this.selectedPizza = pizza;
this.selectedTopping = topping;
this.selectedCrust = crust;
this.numberOfBoxes = boxes;
this.deliveryOption = delivery;
}
function Address(city, estate, mobileNumber){
this.cityName = city... |
/**
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you 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 appl... |
import ToolPen from './tools/tool-pen.js'
import ToolEraser from './tools/tool-eraser.js'
import ToolLine from './tools/tool-line.js'
import ToolRect from './tools/tool-rect.js'
// import { drawingCanvas } from './main.js'
import { dist } from './helper.js'
export var tools = {
"tool-type-pen": new ToolPen(),
... |
/**
* @reference https://github.com/myDevicesIoT/cayenne-docs/blob/master/docs/LORA.md
* @reference http://openmobilealliance.org/wp/OMNA/LwM2M/LwM2MRegistry.html#extlabel
*
* Adapted for lora-app-server from https://gist.github.com/iPAS/e24970a91463a4a8177f9806d1ef14b8
*
* Type IPSO LPP He... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// <uiJsSnippet>
// Select DOM elements to work with
const authenticatedNav = document.getElementById('authenticated-nav');
const accountNav = document.getElementById('account-nav');
const mainContainer = document.getElementById('main-container... |
/**
* Pads a string with prefixed zeros until the requested string length is achieved.
* @param {number} digits [description]
* @return {String|string} [description]
*/
String.prototype.pad = function(digits){
var x = this;
while (x.length < digits){
x = '0'+x;
}
return x;
};
var profilerRecords = []... |
import React, { useState } from 'react'
import classNames from 'classnames'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import {
faCheckCircle,
faTimesCircle,
faInfoCircle
} from '@fortawesome/free-solid-svg-icons'
import Datetime from './Datetime'
import HelpIcon from './HelpIcon'
const cap... |
"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;
... |
import React from 'react';
import PropTypes from 'prop-types';
import {
FlatList, View, Text, InteractionManager
} from 'react-native';
import { connect } from 'react-redux';
import { SafeAreaView } from 'react-navigation';
import moment from 'moment';
import styles from './styles';
import Message from '../../contain... |
import React from 'react';
import splitStyle from './../utils/splitStyle';
import {StyleSheet, TouchableWithoutFeedback, Animated, Image} from 'react-native';
/**
仿 html button
<Button
title="按钮" // string | ReactComponent, 也可以不指定, 因为 style 可以设置背景图, 可完全让背景图充当 Button
textProps={props} // 若 tit... |
/**************************************************************************
* (C) Copyright ModusBox Inc. 2019 - All rights reserved. *
* *
* This file is made available under the terms of the license agreement *
* specified in... |
import * as wasm from "closest-pair";
import { memory } from "closest-pair/closest_pair_bg";
let canvas = document.getElementById("canvas"),
ctx = canvas.getContext("2d"),
round = [],
WIDTH,
HEIGHT,
RADIUS,
initRoundPopulation = 5000;
let divideAndConquer = false;
WIDTH = document.documentElement.clientWid... |
"use strict";
/*!
* @author electricessence / https://github.com/electricessence/
* Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md
*/
Object.defineProperty(exports, "__esModule", { value: true });
var Utility_1 = require("../Text/Utility");
var InvalidOperationException_1 = r... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
"use strict";
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete ... |
var Map = function(state, width, height, tileSet) {
this.state = state;
this.width = width;
this.height = height;
this.tileSet = tileSet;
this.tiles = [];
for (var col_index = 0; col_index < this.width; col_index++) {
var row = [];
for (var row_index = 0; row_index < this.height; row_index++) {
... |
"use strict";
/**
* Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Representation = exports.RepresentationRegistry = exports.EmptyRepresentationProvider = exp... |
var WOLF_AMOUNT = 1;
var WOLF_SIZE;
var WOLF_SPEED = 75;
var WOLF_STATE_ATTACKING = 1;
var WOLF_STATE_HUNTING = 2;
var WOLF_STATE_RETREAT = 3;
var WOLF_EATING_TIME = 3000;
var KILL_DISTANCE;
var WOLF_SPAWN_DISTANCE;
var WOLF_SPAWN_TIME = 3;
var WOLF_WIMP_COOLDOWN_RESET = 2;
var WOLF_STRESS_MIN = 0;
var WOLF_STRESS_... |
const ipc = require('electron').ipcRenderer
const shell = require('electron').shell
const path = require('path')
const url = require('url')
const Store = require('electron-store');
const store = new Store();
layui.use(['element', 'form'], function() {
var $ = layui.jquery,
form = layui.form,
elemen... |
import React, { useState, useEffect } from 'react';
import OAuth from 'oauth-1.0a';
import {
initializeBlock, useBase, useRecordById, useLoadable, useWatchable, useGlobalConfig,
Box, Text, Button, Link, Input, Icon
} from '@airtable/blocks/ui';
import {cursor, globalConfig } from '@airtable/blocks';
import { etsy... |
let blockedSongList = document.getElementById("blocked-songs");
var currentlyPlaying = null;
const SPACE = " "
var updateN = 0,
blockedSongs = [],
updateTime = 0;
function getCurrentlyPlaying() {
return new Promise((res, rej) => {
fetch(generateURL("/api/get_current"))
.then(response => res... |
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
var stats_canvas = document.getElementById("stats_canvas");
var stats_ctx = stats_canvas.getContext("2d");
var NONCONFORM = 1.00;
var BIAS = 0.33;
var TILE_SIZE = 30;
var PEEP_SIZE = 30;
var GRID_SIZE = 20;
var DIAGONAL_SQUARED = (TILE... |
import vertexShaderSource from './webgl/vertexShader.glsl'
class WebGL2 {
constructor() {
this.isSupported = false
this.vertexShader = null
if (typeof window !== 'undefined') {
this.canvas = document.createElement('canvas')
this.context = this.canvas.getContext('webgl2')
const gl = t... |
'use strict';
var request = require('request');
var turf = require('turf');
var fs = require('fs');
var path = require('path');
var apiKeys = require('./api-keys');
var parseString = require('xml2js').parseString;
var findRep = function(req, res) {
// Verify the submitted content.
if (!req.body.address || !req.bo... |
/*
* node-android-automate v1.0.0
* https://github.com/pete-rai/node-android-automate
*
* Copyright 2021 <NAME>
* Released under the MIT license
* https://github.com/pete-rai/node-android-automate/blob/main/LICENSE
*
* Released with the karmaware tag
* https://pete-rai.github.io/karmaware
*
* Website : http... |
const R = require('ramda')
const {
metadata,
schemaTypes,
rootType,
extractType,
projectionTypes,
processFieldModifiers,
findElement,
getFields,
extractName,
extractValue,
fieldPattern,
clone,
foldObject,
set,
modifierSelector,
firstUpperCase,
mapIndexed,
valueForKey,
key,
camelT... |
const {
ErrNotFound,
ErrNotAuthorized,
ErrPasswordIncorrect,
} = require('../../errors');
const Users = require('../../services/users');
const migrationHelpers = require('../../services/migration/helpers');
const {
CHANGE_USERNAME,
SET_USERNAME,
SET_USER_USERNAME_STATUS,
SET_USER_BAN_STATUS,
SET_USER_AL... |
// Libraries
import { GatsbyImage } from "gatsby-plugin-image"
import React, { useState } from "react"
import Select from "react-select"
import styled from "styled-components"
// Components
import ButtonLink from "../../components/ButtonLink"
import Link from "../../components/Link"
// Data
import cexSupport from "..... |
import { GeoJSON, Marker} from 'leaflet'
import { withLeaflet, Path } from 'react-leaflet';
import {assembleGeojson} from "./utils";
import Supercluster from "supercluster";
import update from "immutability-helper";
// TODO: Maybe make a separate style file?
require('react-leaflet-markercluster/dist/styles.min.css');
... |
/**
* Module dependencies.
*/
var express = require('express'),
routes = require('./routes'),
user = require('./routes/user'),
login = require('./routes/login'),
http = require('http'),
path = require('path'),
fs = require('fs');
NaturalLanguageUnderstandingV1 = require('watson-developer-cloud/n... |
import isEqual from 'lodash/isEqual';
import mapValues from 'lodash/mapValues';
import Cache, {resolve, resolveAttribute} from "@/graph/Cache";
import GraphNode from "@/graph/GraphNode";
import Filter from "@/graph/Filter";
import TypeDictionary from "@/graph/TypeDictionary";
import {BLANK_NODE_URI} from "@/components... |
/*
* 生成 map 文件 以文件名 '-' 后的字符串作为 hash 值记录
* options.path : map 文件夹路径
* options.rotate : 保留 map 文件数
*/
const fs = require('fs');
const path = require('path');
var joinPath = require('path.join');
const fsExtra = require('fs-extra');
const rd = require('rd');
const config = require('../common.conf.js');
function Has... |
/**
* This module adds DigiTrust ID support to the User ID module
* The {@link module:modules/userId} module is required
* If the full DigiTrust Id library is included the standard functions
* will be invoked to obtain the user's DigiTrust Id.
* When the full library is not included this will fall back to the
* D... |
'use strict';
import 'metal-soy-bundle';
import {ComponentRegistry} from 'metal-component';
import {isFunction, isObject, isString, object} from 'metal';
import {validators, Config} from 'metal-state';
import IncrementalDomRenderer, {HTML2IncDom} from 'metal-incremental-dom';
import SoyAop from './SoyAop';
// The inj... |
// Copyright 2018 <NAME>
// Copyright 2005 Google Inc.
// All Rights Reserved
//
// Original author: <NAME> <<EMAIL>>
//
// An XML parse and a minimal DOM implementation that just supports
// the subset of the W3C DOM that is used in the XSLT implementation.
import he from "he"
import {
domSetAttribute,
domApp... |
'use strict';
// ============================================================================
// Menu Module
// ============================================================================
import Module from 'utilities/module';
import {createElement} from 'utilities/dom';
import {Color} from 'utilities/color';
impor... |
// @module shortjsdoc @class JsDocMaker
var JsDocMaker = require('./class');
var _ = require('underscore');
var PluginContainer = require('./plugin');
//POST PROCESSING
// @property {PluginContainer} beforeTypeBindingPlugins these plugins accept an object like
// {node:parsed:jsdocmaker:self} and perform some mod... |
/* Copyright 2017 Infor
*
* 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... |
var fs = require('fs')
var test = require('tape')
var spawn = require('child_process').spawn
var exec = require('child_process').exec
var crypto = require('crypto')
var net = require('net')
var mkdirp = require('mkdirp')
var join = require('path').join
var ma = require('multiserver-address')
// travis currently does n... |
'use strict'
const debug = require('debug')
const log = debug('ipfs:http-gateway')
log.error = debug('ipfs:http-gateway:error')
const fileType = require('file-type')
const mime = require('mime-types')
const { PassThrough } = require('readable-stream')
const Boom = require('boom')
const Ammo = require('@hapi/ammo') //... |
const { createOptionProcessor } = require('./base/optionProcessorHelper');
// This option processor is used both by the command line parser (to translate cmd line options
// into an options object) and by the API functions (to verify options)
let optionProcessor = createOptionProcessor();
// General options
// FIXME:... |
/*!
* @Author: cloudyan
* @Created at: 2020-02-15 20:07:13
* 功能说明:
*/
import config from '@/config/index'
import env from '@/config/env'
import { allPages, tabPages } from './pages'
import urlMap from './urlMap'
import { urlfix, stringify, deepCopy, isFastClick } from './index'
const channelConfig = {
spm: conf... |
var $cbxNamaDesa, cbxNamaDesa;
var $cbxNamaKab, cbxNamaKab;
var $cbxTahunGiling;
var txtBiaya = $("#biaya");
var oldValue;
var flag_edit = false;
function hapusData(id_biaya){
if(confirm("Anda yakin akan menghapus data ini?")){
$.ajax({
url: js_base_url + "Admin_tma/hapusDataById",
type: "POST",
... |
/**
* @name WhoReacted
* @authorId 289112759948410881
* @invite z6Yx9A8VDR
* @website https://github.com/jaimeadf/BetterDiscordPlugins/tree/main/WhoReacted
* @source https://github.com/jaimeadf/BetterDiscordPlugins/blob/main/WhoReacted/WhoReacted.plugin.js
* @updateUrl https://raw.githubusercontent.com/jaimeadf/B... |
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import tt from 'counterpart';
import { displaySuccess, displayError } from 'utils/toastMessages';
import Button from 'components/golos-ui/Button';
import Icon from 'components/golos-ui/Icon';
impor... |
#!/usr/bin/env node
const Lgtv = require('lgtv2');
const pkg = require('../package.json');
const _ = require('lodash');
const logging = require('./logging.js');
const wol = require('wol');
const mqttHelpers = require('./mqtt-helpers.js');
let mqttConnected;
let tvConnected;
let lastError;
let foregroundApp = null;
c... |
/*
@Author: <NAME>
@Purpose: Generate HTML code, an outline for AmazingAudioPlayer, based on how track data is outlined on Days4God
*/
// Go back on stackoverflow to see how to use MAP - array function
var createButton = document.getElementById('buttonCreate'),
clearButton = document.getElementById('clearInput'),
... |
/**
* Created by blood on 2017/7/17.
*/
import Vue from 'vue'
let util = {}
/*
* @brief 设置本地语言
* @param lang 语言,like : zh-CN, en-US ...
*/
util.setLocalLanguage = (lang) => {
// Auto set language
if (lang !== '') {
Vue.config.lang = lang
window.localStorage.setItem('language', lang)
return true
... |
function setCookie(strCookieName, strCookieValue) {
var myDate = new Date();
myDate.setMonth(myDate.getMonth() + 12);
document.cookie = strCookieName + "=" + strCookieValue + ";expires=" + myDate;
}
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name ... |
var path = require("path");
var fs = require("fs-extra");
var watch = require("glob-watcher");
var io = require("@vimlet/io");
var vCompress = require("@vimlet/compress");
var glob = require("glob");
var cwd = process.cwd();
var versionsFolder = "mb_versions";
// @function run (public) [Copy files from a folder to a... |
'use strict'
const dagre = require('dagre')
const quantum = require('quantum-core')
const dom = require('quantum-dom')
const path = require('path')
const stylesheetAsset = dom.asset({
url: '/quantum-diagram.css',
filename: path.join(__dirname, '../assets/quantum-diagram.css'),
shared: true
})
const fontCharWid... |
'use strict';
var path = require('path');
var fs = require('fs');
var file = require('..');
var _ = require('lodash');
var helpers = require('./helpers/helpers');
var defLogger = require('../lib/logger');
var Tempdir = require('temporary/lib/dir');
var tmpdir = new Tempdir();
exports['Env()'] = {
'set... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.