text stringlengths 3.22k 29.5k |
|---|
/*
+----------------------------------------------------------------------+
| BBT Visualization |
| --- H1 --- |
| Module File |
+--------... |
/* Conway's Game of Life
- A React-driven app that creates Conway's cellular automaton based on an initial state.
Uses vanilla Javascript to select elements, in order to increase performance.
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life. A FreeCodeCamp project.
RULES
-----
- Any live cel... |
$(document).ready(function(){
$('.work-flow_menu ul li').on("click", function(e) {
$('.work-flow_menu ul li.active').removeClass('active');
$(this).addClass("active");
if (!($(".work-flow_code").is(":visible"))) {
var $el = $(this).children();
$($el).toggleClass('open');
}
... |
/**
* Copyright (c) 2013, <NAME> (<EMAIL>)
* 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 ... |
/**
* @fileOverview Cartesian Axis
*/
import React, { Component, PropTypes } from 'react';
import pureRender from '../util/PureRender';
import { getStringSize } from '../util/DOMUtils';
import Layer from '../container/Layer';
import { isSsr, PRESENTATION_ATTRIBUTES,
getPresentationAttributes } from '../util/ReactUt... |
var backuped = false;
/*
* Saves assist
*/
function saveAssist () {
var sel = 'a' + slots.sel;
if (shortcutLoaded === false) {
return;
} else if (slots[sel].assistOn != true) {
slots[sel] = copyVar(defA);
} else {
slots[sel].assistOn = true;
slots[sel].assistVer = assistVer;
slots[sel].sh... |
// .vuepress/get_sidebar.js
const path = require('path');
const fs = require('fs');
const readline = require('readline');
module.exports = {
sidebar: function(lang) {
summaryfile_path=path.resolve(__dirname, '..',lang,'SUMMARY.md')
//console.log('DEBUG: summaryfile_path: ' + summaryfile_path);
... |
import React, { Component } from 'react';
import { Button, Row, Table, message } from 'antd';
import { connect } from 'dva';
import { history } from 'umi';
import { getAdviseCustomList } from '@services/advise';
import { getRequirementCustomList } from '@services/requirement';
import { getTaskCustomList } from '@servic... |
import {interpolateBlues as d3interpolateBlues} from 'd3-scale-chromatic';
import {scaleSequential as d3scaleSequential} from 'd3-scale';
import {min as d3min, max as d3max} from 'd3-array';
import {Observable, numFmt} from './utils';
import {geography_config} from './geography_providers/geography_sa';
const defaultCo... |
// function confirmDelete(nm,id,frm) {
// // var r = confirm("Press a button!");
// var html = '<div class="modal-dialog">'+
// '<div class="modal-content">'+
// '<div class="modal-header">'+
// '<h4 class="modal-title">Large Modal</h4>'+
// '<butt... |
const request = require('request');
var config = require('../config')
var chainsqlAPI= require("../util/chainsql-api")
class BCSupervisionAPI {
// 1000 敏感词检测
// /v1/reg/kw
static async wordDetection(txInfos) {
var request = require('request');
var options = {
'method': 'POS... |
function ValidateEmail_front(email) {
//var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
var expr = /^[a-z0-9]+((\.|_)[a-z0-9]+)*@([a-z0-9_][a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-... |
/*
Script for the stacked barchart datavisualisation for DGTL festival that accompagnies the doughnut
Based on the example of ricardo-marino (https://bl.ocks.org/ricardo-marino/ca2db3457f82dbb10a8753ecba8c0029)
Edited for this context by DGTL x AMS LL
*/
var dataFile = 'CO2-doughnut.csv';
// different csv document f... |
import { __extends } from "tslib";
import { Observable } from "../Misc/observable";
import { Vector3, Matrix } from "../Maths/math.vector";
import { Mesh } from "../Meshes/mesh";
import { BoxBuilder } from "../Meshes/Builders/boxBuilder";
import { CylinderBuilder } from "../Meshes/Builders/cylinderBuilder";
import { St... |
var ws = new WebSocket("ws://localhost:5634/ws")
var allUsers = []
var user = { id: 0, email: "", first_name: "", last_name: "" }
var currentConversation = { id: 0, name: "" }
const usersDiv = document.getElementById('search_users')
const searchUser = document.getElementById('s_group')
ws.onopen = function () {
co... |
var vntk = require('vntk');
var tokenizer = vntk.tokenizer;
console.log(tokenizer.tokenize('Giá khuyến mãi: 140.000đ / kg ==> giảm được 20%'))
// [ 'Giá', 'khuyến', 'mãi', ':', '140.000', 'đ', '/', 'kg', '==>', 'giảm', 'được', '20', '%' ]
console.log(tokenizer.stokenize('Giá khuyến mãi: 140.000đ / kg ==> giảm được ... |
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import sharedStyle from '../../../sharedStyle.css'
import { getOsHumanName, getVmIcon, isVmNameValid, isHostNameValid } from '_/components/utils'
import { enumMsg, withMsg } from '_/intl'
import { generateUnique, buildMe... |
// Add the impact of a meal
function addMealImpact() {
if (currentSwapedMeal !== '' && !lastestSwapIsSet) {
// Set latest swap
setLatestSwap(currentSwap, currentSwapedMeal);
lastestSwapIsSet = true;
}
// Update Foodprint detail
updateMeal();
// Update the global foodprint & foodprint index
get... |
import { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import { CopyToClipboard } from "react-copy-to-clipboard";
import { useSnackbar } from "react-simple-snackbar";
import ReactTooltip from "react-tooltip";
import axios from "axios";
import classnames from "classnames";
import KJUR fr... |
/**
* @Author: <NAME>
* @Date: 2017-06-04T10:48:10+02:00
* @Email: <EMAIL>
* @Project: Fragole - FrAmework for Gamified Online Learning Environments
* @Last modified by: <NAME>
* @Last modified time: 2018-05-19T11:09:28+02:00
* @License: MIT
* @Copyright: <NAME>
*/
/**
* normalize the target coordinates ... |
/**
@Js-name:logistics_domestic.js
@Zh-name:物流信息--国内配送
@Author:tyron
@Date:2015-08-05
*/
var params = jems.parsURL().params;
$(function () {
//console.log(msonionUrl+"sodrest/findSodById");
$.ajax({
type: "post",
data: params,
url: msonionUrl + "sodrest/findSodById/v2",
dataType: "json",
asyn: false... |
/*
artifact generator: C:\my\wizzi\stfnbssl\wizzi\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js
primary source IttfDocument: C:\my\wizzi\stfnbssl\wizzi\packages\wizzi-utils\.wizzi\ittf\lib\prettifiers\mTreeHtmlPrettifier.js.ittf
*/
'use strict';
var verify = require('wizzi-helpers').verify;
// prett... |
import React, { useState, useEffect, Fragment } from "react";
import { Row, Col, List, Button } from "antd";
import styled from "styled-components";
import {
EmailIcon,
EmailShareButton,
FacebookIcon,
FacebookShareButton,
TwitterIcon,
TwitterShareButton,
WhatsappIcon,
WhatsappShareButton
} from "react-s... |
jQuery(document).ready(function($){
"use strict";
/* jQuery MeanMenu */
$('#site-navigation nav').meanmenu({
meanMenuContainer: '#meanmenu',
meanScreenWidth: "991",
siteLogo: gymEdgeObj.siteLogo
});
/* Nav smooth scroll */
$('#site-navigation .menu, .widget_nav_menu .me... |
// utils
// var debug = require('debug').enable('*')
// var extend = require('extend')
// sys
// var createWindow = require('./sys/createWindow')
// var loadImage = require('./sys/loadImage')
// var Time = require('./sys/Time')
// var Platform = require('./sys/Platform')
// glu
// var Program = require('./glu/Program... |
/**
The address extractor is responsible for cloning documents where a valid address
data exists.
The hasValidAddress() function examines the address property which was populated
earier in the pipeline by the osm.tag.mapper stream and therefore MUST come after
that stream in the pipeline or it will fail to ... |
/*
--------------------------------------------------------------------
Puck.js BLE Interface library
Copyright 2016 <NAME> (<EMAIL>)
--------------------------------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy ... |
var True = true;
var False = false;
/*******************************************************************************
* Thunks.
*/
// Force a thunk (if it is a thunk) until WHNF.
function _(thunkish,nocache){
while (thunkish instanceof $) {
thunkish = thunkish.force(nocache);
}
return thunkish;
}
// Thunk o... |
import { decorator as middle } from 'middle.js'
let docElm = document.documentElement
export default class Drag {
constructor( item, config ) {
// this.mirror // mirror image
// this.originContElm // source container element
// this.originContainer // source Container object
// this.itemElm // item element... |
/**
*
* DirectoryPage
*
*/
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import Select from 'react-select';
import inje... |
function DualityAlgorithm(pointGroupOne, pointGroupTwo, goalPoint)
{
// Convert to dual represenation
dualGroupOne = pointGroupOne.map(function(obj){return obj.dual();});
dualGroupTwo = pointGroupTwo.map(function(obj){return obj.dual();});
// Find intersections of n-level
var findAllIntersections =... |
var pym = require('./lib/pym');
var ANALYTICS = require('./lib/analytics');
require('./lib/webfonts');
var { isMobile } = require('./lib/breakpoints');
var $ = require('./lib/qsa');
console.clear();
var {
getTimeStamp,
arrayToObject,
isPlural,
getData,
updateTime,
geoAlbersUsaPr,
} = require('./util');
v... |
'use strict';
var cli = require('cli');
var Promise = require('bluebird');
var fs = Promise.promisifyAll(require('fs'));
var glob = Promise.promisify(require('glob'));
var path = require('path');
var util = require('util');
var _ = require('lodash');
var argv = require('./argv');
var colors = require('cli-color-ke... |
jQuery(document).ready(function($){
$(document.body).removeClass('no-js').addClass('js');
initPolyfills();
// Utilities
initClassToggle();
initAnchorScroll();
initSubscribe__popup();
initSignup__popup();
initNav();
initAccordion();
initStickyHeader();
initTestimonia... |
'use strict';
const cookieSignature = require('cookie-signature')
const cookie = require('cookie')
const { v4: uuidv4 } = require('uuid')
const axios = require('axios');
// Step 1 - Authorize request, store the original request in a signed cookie, and login to the person/consent picker page instead.
// For the consent... |
/* eslint-disable no-useless-escape */
/* eslint-disable no-irregular-whitespace */
/* eslint-disable eqeqeq */
// const md5 = require('crypto-js/md5');
// 腾讯云&阿里云特殊域名和参数(transformQualityUrl方法用到)
const tencentDomainlist = [
'goclick.heywoodsminiprogram.com',
'yuetu.heywoodsminiprogram.com',
'ad.heywoodsminiprog... |
// Copyright (c) 2019 Uber Technologies, 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 ... |
var fs = require('fs-extra');
var argv = require('yargs').argv;
var gulp = require('gulp');
var less = require('gulp-less');
var gulpif = require('gulp-if');
var rename = require('gulp-rename');
var clean = require('gulp-rimraf');
var jshint = require('gulp-jshint');
var sequence = require('gulp-sequence');
var pathLen... |
import React from 'react';
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import Typography from '@material-ui/core/Typography';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faFileWord } from '@fortawesome/free-solid-svg-icons'
import { f... |
import { constant, identity, ifElse, javaScriptTypes, once, strictEquals, type } from './util';
import { join, valueOf } from './data_structure_util';
/**
* @signature
* @description d
* @private
* @param {function} reject - a
* @param {function} resolve - b
* @return {function} - c
*/
function safeFork(reject,... |
/**
* Copyright 2016 Google Inc. 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 applic... |
// We require the Hardhat Runtime Environment explicitly here. This is optional
// but useful for running the script in a standalone fashion through `node <script>`.
//
// When running the script with `hardhat run <script>` you'll find the Hardhat
// Runtime Environment's members available in the global scope.
const h... |
//Function to clone a object
function cloneObject(obj) {
return JSON.parse(JSON.stringify(obj));
}
class SmallAustraliMap {
constructor(selector, h, w) {
this.selector = selector;
this.h = h;
this.w = w;
}
init(problem) {
this.map = new AustraliaMapDiagram(this.selector, this.h, this.w);
t... |
'use strict';
var util = require('util');
var lodash = require('lodash');
var Query = require('./node/query');
var Column = require('./column');
var TableNode = require('./node/table');
var JoinNode = require('./node/join');
var LiteralNode = require('./node/literal');
var Joiner = require('./joiner');
var ForeignKey... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _Dropdown = _interopRequireDefault(require("./Dropdown"));
var _Info = _interopRequireDefault(require("./Info"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequire... |
// 如果没有通过拦截器配置域名的话,可以在这里写上完整的URL(加上域名部分)
// let hotSearchUrl = '/ebapi/store_api/hot_search';
// let indexUrl = '/ebapi/public_api/index';
// 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作,更多内容详见uView对拦截器的介绍部分:
// https://uviewui.com/js/http.html#%E4%BD%95%E8%B0%93%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%EF%BC%9F
// baseUrl: ... |
var width = 1000;
var height = 600;
var rocketx = width / 2;
var rockety = height - 50;
var counter = 0;
var populationCounter = 0;
var timeToLive = 400;
var target;
var oneCompleted = false;
var magnitude = 0.5;
var runtimeS = 0;
var runtimeMS = 0;
var rx = width / 4;
var ry = height / 2
var rw = 500;
var rh = 30;
var... |
/*jshint esversion: 6 */
const deviceSelector = document.getElementById('deviceSelector');
let localVideo = document.getElementById('local_video');
let remoteVideo = document.getElementById('remote_video');
let localStream = null;
let peerConnection = null;
let textForSendSdp = document.getElementById('text... |
// import './Form.css';
import Modal from './Modal.js'
import React from 'react';
class FormLogin extends React.Component {
constructor(props)
{
super(props);
this.state = {
visibility: true
};
this.state = {
show: false
}
this.showModal = this.showModal.bind(this);
this... |
const Path = require('path');
const Fs = require('fs');
const minimatch = require('minimatch');
/**
* @typedef {Object} GitAttributes.Rule
* @property {String|null} pattern
* @property {String} comment
* @property {Object<String, Boolean|String>|null} attrs
*/
/**
* @class
*/
class GitAttributes {
constru... |
//#region Dependências
import React, { useState, useEffect } from "react";
import axios from 'axios';
import { VscStarEmpty } from "react-icons/vsc";
import { Box, Divider, Grid, List, Card, ListItem,
ListItemIcon, Typography } from '@material-ui/core';
import pedidoRecebidoBlack from '../../../assets/img/Icons... |
// This file must be deleted in future
Com['UA'] = {
'hash' : {'ie':'MSIE','edge':'Edge','opera':'Opera','ff':'Firefox','firefox':'Firefox','webkit':'AppleWebKit','safari':'Safari','chrome':'Chrome','steam':'Steam'},
'fullname' : {'Edge':'Microsoft Edge','MSIE':'Microsoft Internet Explorer','Firefox':'Mozilla ... |
/* =====================================
INITIALIZE
====================================== */
window.onload = init;
function init() {
// set ship locations
model.generateShipLocations();
// register handlers
var fire = document.getElementById("fireButton");
fire.onclick = handleFireButton;
var guessInp... |
/*jshint laxbreak:true, eqnull:true */
var dateReg = /(\d{4})-(\d{2})-(\d{2})T/;
var util = {
/**
* Insert css text.
*
* @param {string} css css style text.
* @return {Element} style element.
*/
createStyle: function (css) {
var style = document.createElement('style');
... |
/*
An item (file) that will go into an EPUB
It has the following properties
type: XHTML or image
sourceUrl: where the html came from
id: the id value in the content.opf file
optional members:
nodes: list of nodes that make up the content (if it's XHTML content)
*/
"use strict";
cl... |
import moment from 'moment'
import { browserHistory } from 'react-router'
import { serverConfig } from '../../config/localConfig'
export function pushPath(path, query = false) {
if (query && browserHistory) {
browserHistory.push({ pathname: path, query: query })
} else {
if (browserHist... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var index = require('./routes/index');
var users = require('./routes/users');
var botgram = requir... |
/*
* Copyright (c) 2019 <NAME>, <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,
* modify, merge, p... |
// Check for a guild's HSTR readiness
const hstrTeams = require("../data/hstrTeams.json");
const MAX_HSTR_TEAMS_PER_EMBED = 28;
exports.run = async (client, message, args, level) => { // eslint-disable-line no-unused-vars
await message.react("🖐");
if (!args.length) {
await message.channel.send(`\`\`\`js\nErro... |
// 0x0700BE90 - 0x0700BEA8
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode,
gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometry... |
var fs = require('fs');
var Nightmare = require('nightmare');
var nightmare = Nightmare({
width: 1024,
height: 768,
switches: {
'ignore-certificate-errors': true
}
});
function debug(message) {
if (env["AQUATONE_DEBUG"]) {
console.log(message);
}
}
var USER_AGENTS = [
"Mozilla/5.0 (Window... |
import React, { useEffect, useState } from 'react';
// nodejs library that concatenates classes
import classNames from "classnames";
// @material-ui/core components
// @material-ui/icons
import { makeStyles } from "@material-ui/core/styles";
// core components
import Header from "components/Header/Header.js";
import G... |
const sql = require('sqlite')
const botsettings = include('config.json')
const utils = include('utils.js')
const bot = include('bot.js')
const venture = include('commands/adventure/venture.js')
const items = include('data/items.js')
const messages = include('data/messages.json')
const emotes = include('data/emojiCha... |
'use strict';
class Player {
constructor(screen){
this.frames = [new Rect(190, 165, 50, 60), new Rect(315, 165, 50, 60), new Rect(440, 165, 50, 60), new Rect(440, 165, 50, 60), new Rect(440, 165, 50, 60), new Rect(315, 165, 50, 60)];
this.frameIndex = 0;
this.isJumping = false;
this.width = this.x = scree... |
const partSet = new Set([
"nose",
"leftShoulder",
"rightShoulder",
"leftElbow",
"rightElbow",
"leftWrist",
"rightWrist",
"leftKnee",
"rightKnee",
"leftAnkle",
"rightAnkle",
]);
const starterPose = [
{ part: "nose", position: { x: 320, y: 42 } },
{ part: "leftShoulder", position: { x: 360, y: ... |
"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];
})... |
// major project
let cookies = 0; // balance of cookies
let cps = 0; // cookies per second
// highlighter colours
let unavailable = (50, 16, 1, 100);
let available = 255;
let hovering = (50, 16, 1, 50);
// individual cost, amount owned, and the colour of the background
// Baker 1
let baker1cost = 15;
let b... |
import { Coordinate, Util, DrawTool, LineString } from 'maptalks';
import InterprolationGeometry from '../InterpolationGeometry';
import * as Constants from '../Constants';
import {
Mid,
getThirdPoint,
MathDistance,
getBaseLength,
wholeDistance,
isClockWise,
getBezierPoints,
getAngleOfThreePoints
} fro... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... |
import React, { useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { SET_MEDIA_STREAM } from '../../actions/mediaActions';
import { SET_PUBLISH_VIDEO_TRACK, SET_PUBLISH_AUDIO_TRACK } from '../../actions/publishSettingsActions';
import ShareLink from '../shared/ShareLink'
... |
var config = global.config = require('./config'),
http = require('http'),
mysql = require('mysql'),
Promise = require('bluebird'),
url = require('url'),
fs = require('fs'),
path = require('path'),
mime = require('mime-types'),
hbs = require('handlebars'),
_ ... |
'use strict';
const BaseObject = require('./base-object'),
BaseArray = require('./base-array'),
Handler = require('./handler'),
Context = require('./context'),
{ assign } = Object,
{ parse,
stringify } = JSON;
/**
* Runs state handlers in the context of the request.
* @... |
'use strict';
const appConf = require("./configuration")
const electron = require('electron')
const shell = electron.shell;
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const Menu = electron.Menu;
const fs = require("fs")
const path = require("path")
const USER_HOME = process.env.HOME || ... |
'use strict';
var request = require('request');
function escapeHtml(text) {
return text
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>');
}
/* API check from current <-> legacy */
exports.getUser = function(req) {
if (req.session.passport.user._json && req.session.passport.user._... |
/* globals PIXI */
const EventEmitter = require('events');
const PencilCursor = require('../../static/fa/pencil-alt-solid.svg');
const RobotView = require('./robot-view');
const Array2D = require('./aux/array-2d');
class MazeView {
constructor(maze, config, textures = { }, interactive = false) {
this.displayObje... |
const _ = require("lodash");
const { getAWSSDK } = require("../lib/aws");
const Table = require("cli-table");
const humanize = require("humanize");
const { Command, flags } = require("@oclif/command");
const { checkVersion } = require("../lib/version-check");
const Lambda = require("../lib/lambda");
const Retry = requi... |
/*jshint browser:true */
'use strict';
export class Box {
constructor(x, y, w, h) {
this.x = x;
this.y = y;
this.w = w;
this.h = h;
}
inflate(paddingX, paddingY) {
return new Box(
this.x - paddingX / 2,
this.y - paddingY / 2,
this.w + paddingX,
this.h + paddingY);
}... |
import * as auth from 'solid-auth-client';
import data from "@solid/query-ldflex";
//import data from "@solid/query-ldflex/lib/exports/rdflib.js";
import { namedNode } from '@rdfjs/data-model';
/*
import { fetchDocument } from 'tripledoc';
import { foaf, rdfs, terms, solid } from 'rdf-namespaces';*/
class ShighlPod... |
/*
Sankore API
*/
function startEditing()
{
modeEdit();
}
function stopEditing()
{
modeView();
}
function initialize()
{
}
function checkResponse()
{
checkWord();
}
/*
/ END sankore api
*/
var sankoreLang = {
edit: "Edit",
view: "Display",
example: "this is\nan example\nsentence",
... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { duration, date } from './filters';
import { fetchActivities } from './actions';
import { diffDays } from './List';
import { propType as activityPropType } from './activity';
export function countActivitiesBy... |
export { default as Accessible } from './Accessible'
export { default as AccessibleForward } from './AccessibleForward'
export { default as AccountBank } from './AccountBank'
export { default as AccountBox } from './AccountBox'
export { default as AccountCircle } from './AccountCircle'
export { default as AccountWallet... |
/**
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
*/
'use strict';
import invariant from 'invariant';
function getEventClientTouchOffset (e) {
if (e.targetTouches.length === 1) {
return getEventClientOffset(e.targetTouches[0]);
... |
let sokuCharacters = [
{"name": 'reimu', "skillPrefix": "Ha", "skills": [236, 214, 421, 623]},
{"name": 'marisa', "skillPrefix": "Ma", "skills": [214, 623, 22, 236]},
{"name": 'sakuya', "skillPrefix": "Iz", "skills": [623, 214, 236, 22 ]},
{"name": 'alice', "skillPrefix": "Al", "skills": ... |
"use strict";
/**
* @module ApiLivechat
* Provides a client for making requests with Livechat Rocket.Chat's REST API
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array... |
import clone from 'lodash.clonedeep'
import * as ss from 'simple-statistics'
import Moment from 'moment'
import logger from '../winston/index.js'
import {quadraticFunding} from '../../discord/reputation/index.js'
import {makeCore} from '../data/index.js'
import {updateReputationRole} from '../../discord/reputation/repu... |
import React, { useEffect, useMemo, lazy, Component } from 'react';
import {CCardBody,CCardHeader} from '@coreui/react';
import {FontAwesomeIcon }from "@fortawesome/react-fontawesome";
import { API, graphqlOperation } from 'aws-amplify'; // Used for sending DynamoDB
import {listUsers} from '../graphql/queries'; // For ... |
import React, {Fragment, Component} from "react";
import {Form, Card, Input, Table, Divider, Modal,
Select, Row, Col, Button, Popconfirm, Icon, InputNumber,
Switch, message} from "antd";
import SearchForm from '@/components/SearchForm';
import Import from './Import';
import {connect} from "dva";
import Link from 'umi... |
/************************************************************
* Dependencies
***********************************************************/
var express = require('express'),
path = require('path'),
logger = require('morgan'),
cookieParser = require('cookie-parser'),
expressSession = require('express-se... |
// Easy3D_WebGL
// STL viewer web app doubling as electron app using version 4
// <NAME> 2017-2020
"use strict"
var gAccel = 0;
var timer = { delta : 0, start : Date.now() }; // dummy timer
var logElement = null;
function log(text, silent = true) {
let ts = Date.now() - timer.start;
if (!silent) {
i... |
/*
* Stream Blogs Loader
*
* Copyright (c) 2017 <NAME>
* licensed under MIT license.
*
* https://github.com/Donny-Hikari/stream-blog
*
* Version: 0.5.5
*/
function getFolder(fullpath) {
var i = fullpath.lastIndexOf('/');
if (i <= 0)
return "";
else
return fullpath.substring(0, i + 1);
}
function getFile... |
const { cpus, freemem, totalmem, loadavg } = require('os');
const { execSync } = require('child_process');
const { colors } = require('leeks.js');
const psList = require('ps-list');
const pkg = require('../package');
/**
* Function to emit an warning (mimck of `process.emitWarning`)
* @param {string} message The mes... |
"use strict";
var assert = require("assert");
var error = require("./../lib/error");
var core = require("./core");
function is__proto__Property(node) {
if ( core.is.isProperty(node) && node.kind !== 'get' && node.kind !== 'set' ) {
var nodeKey = node.key;
if ( nodeKey ) {
return nodeKey.name === '__proto__' ... |
/**
* This code heavily based on koa-66.
* https://github.com/menems/koa-66
* The MIT License (MIT)
* Copyright (c) 2015 blaz
*/
import appcdLogger from 'appcd-logger';
import { pathToRegexp } from 'path-to-regexp';
const { log } = appcdLogger('appcd:http:router');
const { highlight, note } = appcdLogger.styles... |
const SCREEN = { w: 720, h: 480 , r: window.innerWidth/window.innerHeight }
const banco_cores = {
place : [
["#eedccd", "#e6d4c5"],
["#078b0c", "#14a912"],
["#674839", "#be9b85"],
["#eec277", "#ffdfa4"],
["#a1a08c", "#b5b4a0"],
["#208f6e", "#41af71"],
["#6eb9e0", "#3e8ec1"],
["#dd4a5f", "#b3313b"],
[... |
/*****************************************************************************
Chunked, High-Volume File Uploader
Problem: Sending very large files over HTTP presents several challenges
(forgetting, for a moment, the fact that HTTP isn't designed for large
file transfers). HTTP is most typically a ser... |
'use strict';
const fs = require('fs');
const path = require('path');
const { shell } = require('electron');
const remapper = require('./utils/remapper');
const layouts = require('./libs/layouts');
const keycodes = require('./libs/keycodes');
const $ = require('./assets/jquery');
const layout = layouts[process.platf... |
import Taro, {useEffect, useState} from '@tarojs/taro'
import {View, ScrollView, Canvas} from '@tarojs/components'
import moment from 'moment'
import _ from 'lodash/lodash.min'
import Core from '@antv/f2/lib/core'
import Guide from '@antv/f2/lib/plugin/guide'
import '@antv/f2/lib/geom/line'; // 只加载折线图
import '@antv/f2/... |
/* eslint-env node */
"use strict";
const fs = require("graceful-fs");
const path = require("path");
const contentful = require("contentful");
const mkdirp = require("mkdirp");
const glob = require("glob");
const HttpsProxyAgent = require("https-proxy-agent");
/**
* setNextSyncToken
* @arg {String} destination - p... |
import Head from 'next/head'
import styles from '../styles/Home.module.css'
import { useState, useEffect } from 'react';
import Layout from '../components/layout'
import Table from '../components/Table';
import Autocomplete from '../components/autocomplete';
import { colors } from '../lib/colors';
const SERVER = proc... |
/*
*目前hotsiteside模块数据获取方式有三种:手动获取、读由二级页开发好并写入json的包含html和js的资源、只获取数据并前端拼装
*后续可能全部改为第二种方式,因此会有一些冗余代码需要清理。或者按照第二套方案重新设计。
*/
//requirement
var $ = require("common:widget/ui/jquery/jquery.js"),
cycletabs = require("common:widget/ui/cycletabs/cycletabs.js"),
UT = require("common:widget/ui/ut/ut.js"),
Helper ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.