text stringlengths 3.22k 29.5k |
|---|
var fs = require('fs'),
fiveColorMap = require('five-color-map'),
turf = require('@turf/turf'),
polylabel = require('@mapbox/polylabel');
// Load the state names, FIPS codes, and USPS abbreviations and make a mapping
// from FIPS codes (found in Census data) to USPS abbreviations (used in our output).
var ... |
import MouseDragDropTracker from '../../shared/scripts/MouseDragDropTracker';
// constructor: WindowMovement
function WindowMovement(windowManager) {
this.windowManager = windowManager;
this.engine = new MouseDragDropTracker();
this.resizeZoneSize = 16;
}
WindowMovement.prototype.onTitlebarGrab =... |
import React, { Component } from 'react';
import * as d3 from 'd3';
import ReactFauxDOM from 'react-faux-dom';
import {scaleRadial} from '../../lib/draw_radial.js'
import styles from './styles.scss';
import index from '../../index.css';
import gs from '../../config/_variables.scss'; // gs (=global style)
class Patt... |
/*
* ImageCrawler
*
* https://github.com/jaylinski/imagecrawler
*
* Last update: 15.12.2012
*/
$(document).ready(function() {
disableInput("#showcontent");
disableInput("#stop");
initEventObjects();
});
function initEventObjects() {
$("#form_settings").submit(function(event) {
event.preventDefault();
... |
import React, { Fragment, Component } from "react";
import styled from "react-emotion";
import { Page } from "../components/styles";
import Layout from "../components/layout";
import { titleCase } from "change-case";
const Button = styled("button")`
text-decoration: none;
color: #b99bd8;
background-color: transp... |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Rankcard = exports.leaderboard = exports.fetch = exports.removeXP = exports.addXP = void 0;
const db = require("quick.db");
const discord_js_1 = require("discord.js");
const canvas = require("canvas-constructor");
/**
* Adds experienc... |
const targetToListeners = new WeakMap();
//this thing returns immutable listeners
export function getEventListeners(target, type, phase) {
const allListeners = targetToListeners.get(target);
if (!allListeners)
return [];
if (!type && !phase)
return allListeners.slice();
if (!allListeners[type])
ret... |
'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];
},
});
}
: fu... |
import * as d3 from "d3";
import React, { useEffect, useState, useRef } from 'react';
import VerticalScale from './VerticalScale.js';
import MainChart from './MainChart.js';
import HorizontalScale from './HorizontalScale.js';
import Corner from './Corner.js';
import './index.css';
function getDayDifference(date1, da... |
/* eslint-disable */
import React, { useEffect, useMemo, useState } from 'react'
import styled from '@emotion/styled'
import {
BarChart,
Bar,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
ResponsiveContainer,
} from 'recharts'
import PageLoading from '@/components/PageLoading'
import EmptyMessage from '@/compone... |
const cron = require('node-cron');
const nodemailer = require('nodemailer');
const swig = require('swig');
const vendortemplate = swig.compileFile(__dirname + '/../mails/vendor.swig');
const remindertemplate = swig.compileFile(__dirname + '/../mails/reminder.swig');
const htmlToText = require('html-to-text');
const win... |
"use strict";
/** Leaflet map object */
let map = undefined;
/** current latlng that was clicked on map */
let currentLocation = undefined;
/**
* Geocoding service, which is used for getting address of the location, is
* initialized to this variable
*/
var geocodeService = undefined;
/** How many decimals are di... |
/**
* Staff - 岗位分配员工
* @date: 2018-6-19
* @author: WH <<EMAIL>>
* @version: 0.0.1
* @copyright Copyright (c) 2018, Hand
*/
import React, { Component, Fragment } from 'react';
import { connect } from 'dva';
import { Col, Icon, Row, Spin } from 'hzero-ui';
import { Bind } from 'lodash-decorators';
import { isUndef... |
/*
Welcome to the settings page! This page gives the user access to their user account settings as well as a FAQ/Help page.
This page is the only that do not use any database operations. Instead, all that's needed is to make sure that the
current user's data is fetched from memory to move along to other pages. Addition... |
import React, { useEffect, useState } from 'react'
import photo1 from 'src/assets/images/Software-development.jpg'
import photo2 from 'src/assets/images/logopasexamen.png'
import 'src/views/Consulter_formation/formationInfos.css'
import { Accordion, Modal, Button, Nav, ButtonToolbar } from 'react-bootstrap'
import { Li... |
/// <reference path="../../typings/ue.d.ts">/>
// ; typing info for auto-completion in Visual Studio Code
"use strict"
const INDEX_NONE = -1;
const ROUTINE_INDEXER_SIZE = 4;
const ROUTINE_COUNTER_SIZE = 4;
const ROUTINE_FLAG_SIZE = 16;
const ROUTINE_TIMER_SIZE = 4;
const ROUTINE_INT_SIZE = 4;
const ROUTINE_FLOAT_SIZ... |
$(document).ready(function(){
$('.tablacumulado').DataTable({
"language": {
"url": "js/Spanish.json"
},
"lengthMenu": [ 5,10, 25, 50, 75, 100 ],
"footerCallback": function ( row, data, start, end, display ) {
var api = this.api(), data;
// converting to interger to find total
... |
const parser = require('./parser');
const { escape } = require('./utils');
/**
* Parses input value to JS data type or structure, if it is possible.
* If you wrap the string in extra quotation marks, the value will not be parsed, and additional
* quotation marks will be deleted.
* @param {*} value - it's a string ... |
goo.V.attachToGlobal();
V.describe('The entities in the scene hold a rigidBody component which updates their transform.');
var gooRunner = V.initGoo();
var world = gooRunner.world;
var physicsSystem = new PhysicsSystem();
world.setSystem(physicsSystem);
world.setSystem(new ColliderSystem());
gooRunner.setRend... |
// Face1
ellipse(212, 206, 283, 318);// Face
ellipse(150, 150, 50, 63);// Left eye
ellipse(250, 150, 50, 63);// Right eye
ellipse(212, 250, 190, 33);// Mouth
// Face1.2
noStroke();
background(100, 0, 194); // RGB
fill(255, 255, 0);
ellipse(212, 206, 283, 318);// Face
fill(0, 0, 0);
ellipse(150, 150, 50, 63);// Left ey... |
import * as actionTypes from './types';
const INITIAL_STATE = {
jobs: {},
users: {},
user: null,
organization: null,
organizationUsers: [],
stageLoading: false,
translatableArticle: null,
originalTranslatableArticle: null,
originalArticle: null,
originalViewedArticle: null,
... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* <NAME>
* University of Massachusetts --Lowell
* COMP.4610-201 HW7 Fall 2020
* Filename: https://jstar-c.github.io/GUI_I/HW7/res/script.js
* Email: <EMAIL>
* Copyright (c) 2020 by <NAME>. All rights reserved. May be freely... |
const fs = require('fs')
const pb = require('protocol-buffers')
const appRoot = require('app-root-path')
const { values, random, isEqual, isString, isFinite } = require('lodash')
const multiaddr = require('multiaddr')
const PeerInfo = require('peer-info')
const peerId = require('peer-id')
const colors = require(... |
'use strict';
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
; (function ($, win) {
/**
* 应用管理
*/
var AppManage = function () {
this.url = "add_package_info.html";
this.dialogId = "dialogApp";
this.appTable = "bcp_re_processpackage";
this.appReportTable = "view_app_report_form_count";
this.init();
};
AppManage.prototype = {
init: function () {
this.init... |
'use strict';
var chai = require( 'chai' );
var getScene = require( 'tests/mockup/scene' );
var getBoxScene = require( 'tests/mockup/box' );
var Channel = require( 'osgAnimation/channel' );
var Animation = require( 'osgAnimation/animation' );
var UpdateMatrixTransform = require( 'osgAnimation/UpdateMatrixTransform' )... |
const fs = require('fs');
const VALID_COVERAGE = 85;
const ERR_COVERAGE = 75;
module.exports = class Parser {
constructor(config, logger) {
this.config = config;
this.logger = logger;
}
sortByProperty(property, order) {
return function(a, b) {
var val = 1;
var sortStatus = 0;
if (o... |
const { Structures, escapeMarkdown, splitMessage, resolveString } = require('discord.js');
const { oneLine } = require('common-tags');
const Command = require('../commands/base');
const FriendlyError = require('../errors/friendly');
const CommandFormatError = require('../errors/command-format');
module.exports = Struc... |
require('dotenv').config()
// Importing/ requiring the variables
const express = require('express')
const path = require('path');
const port = process.env.PORT || 3000;
const fs = require('fs')
const mysql = require('mysql');
const ejs = require('ejs');
const passport = require('passport');
var userProfile;
require... |
import { Group, Signal } from "phaser";
import MatchItem from "./MatchItem";
import TextPopup from "./TextPopup";
class MatchGrid extends Group{
constructor(game, x, y, width, height, rows, cols) {
super(game);
this.itemsGroup = this.game.add.group(this);
this.itemsGroup.inputEnableChildren = true;
this.posit... |
/************** Outsourcing CVDF *****************/
/**
* This code does fully work.
* The code does work when the final decrypted value (i.e. y = x^{2^t})is more than N.
* I tried using mod N on the final value but it didn't work.
* The code, however, works if the final decrypted value (i.e. y = x^{2^t}) comes o... |
import React, { useState, useEffect } from "react";
import {
View,
Text,
FlatList,
TextInput,
ActivityIndicator,
ScrollView,
Pressable,
} from "react-native";
import Issue from "../Issue";
import { connect } from "react-redux";
import {
getIssues,
getMoreIssues,
getFilteredIssues,
getUserIssuesSta... |
import AbstractMessage from './message.js';
import RollIconsModification from './roll-icons.js';
import { ModuleOptions, ModuleSettings } from './settings.js';
import { arrayEquals } from './utils.js';
const TEMPLATES = {
CHAT_MESSAGE: 'modules/bugvolution8/templates/chat_message.hbs'
};
export default class InChara... |
import React, { useState, useEffect } from "react";
import { Text, View, StyleSheet, Dimensions, TouchableOpacity, TouchableWithoutFeedback, ImageBackground, Platform, Animated, ScrollView} from "react-native";
import { Audio } from 'expo-av';
// import Speaker from '../../../../assets/images/Speaker.svg'
import swiper... |
import React from 'react';
import './addEvaluation.css';
import { Button } from '@material-ui/core';
import Grid from '@material-ui/core/Grid';
import CardActionArea from '@material-ui/core/CardActionArea';
import CardMedia from '@material-ui/core/CardMedia';
import Card from '@material-ui/core/Card';
import Containe... |
/*---------------------------------------------------------------------------------------------
* BrightScript 2D API Emulator (https://github.com/lvcabral/brs-emu)
*
* Copyright (c) 2019 <NAME>. All Rights Reserved.
*
* Licensed under the MIT License. See LICENSE in the repository root for license information.... |
//消息回复
var wechat_wechatReply = function () {
var tableId = "tableId";
var oTable = null;
//初始化加载表格数据的表头定义
var initTableHeaderInfo = function(){
var aoColumns = [
{ "sTitle": "id", "sWidth" : "1%", "mData": "id"},
/*{ "sTitle": "用户名","sWidth" : "1%", "mData": "username"},*/
{ "sTitle... |
function deleteScreen(node) {
$(node).fadeOut(600, function() {
node.remove();
$(".web-bg").css("overflow", "auto");
});
}
function player(data) {
if(document.getElementById("coverScreen") === null) {
var coverScreen = document.createElement("div");
coverScreen.set... |
const { get, max, startCase, isEmpty } = require('lodash')
const { ExcludedKeys } = require('zerotheft-node-utils/contracts/paths')
const { theftAmountAbbr } = require('./helper')
/**
* Prepares a json with theft amounts and votes to generate bell curve
*/
const proposalVoteTotalsSummaryMulti = (voteTotals, cleanThe... |
'use strict';
export default angular.module('myApp.viewCreateMeal', ['ui.router', 'ngAnimate', 'ezfb', 'ngAutocomplete'])
.controller('ViewCreateMealCtrl', ['$scope', '$http', '$uibModal', '$state', 'ENV', 'ezfb', '$auth', '$rootScope', 'userServicesFactory', function($scope, $http, $uibModal, $state, ENV, ezfb, $aut... |
//*****************************************************************
//Inyección de eventos en el HTML
//*****************************************************************
$(function () { //para la creación de los controles
//agrega los eventos las capas necesarias
$("#enviar").click(function () {
addOrU... |
// Copyright 2016 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
import Minigame from 'features/minigames/minigame.js';
import MinigameDriver from 'features/minigames/minigame_driver.js';
import { ScopedCallb... |
'use strict'
const _ = require('lodash')
const defaultSecureConnectionProtocols = ['ftps', 'sftp', 'https', 'ldaps']
const portNumbers = require('port-numbers')
const Joi = require('joi')
const schemas = require('./schema.js')
//
// Start Stack Overlow Extract
// Stackoverflow link: https://stackoverflow.com/questions/... |
// Bind ajax for editing descriptions
function bindEditDescriptionAjax() {
var editDescriptionModal = $("#manage-module-description-modal");
var editDescriptionModalBody = editDescriptionModal.find(".modal-body");
var editDescriptionModalSubmitBtn = editDescriptionModal.find("[data-action='submit']");
$(".descr... |
/**
* Notes: MEET测试模块控制器
* Date: 2021-12-28 19:20:00
*/
const BaseController = require('../base_controller.js');
const MeetService = require('../../service/meet_service.js');
const AdminMeetService = require('../../service/admin/admin_meet_service.js');
const config = require('../../../config/config.js');
const A... |
var path = require('path')
var debug = require('debug')('app:' + path.basename(__filename).replace('.js', ''))
var request = require('request')
var async = require('async')
var op = require('object-path')
var md = require('marked')
var random = require('randomstring')
var crypto = require('cr... |
const express = require("express");
const router = express.Router();
const mongoose = require("mongoose");
const User = require("../models/userModels");
const passport = require("passport");
const Loan = require("../models/loanModels");
const nodemailer = require("nodemailer");
var Finance = require("financejs");
var ... |
const lifeApp = {};
const $body = $("body");
const $wrapper = $(".wrapper");
const $homeButton = $(".home");
const $sleepButton = $(".sleep");
const $runButton = $(".run");
const $goalsButton = $(".goals");
const $cubingButton = $(".cubing");
const $addSleep = $(".addSleep");
const $bedTime = $("#bedTime");
const $wak... |
/* Copyright (c) 2005 Izenda, Inc.
____________________________________________________________________
| |
| Izenda .NET Component Library |
| |
| ... |
import { connectRouter, routerMiddleware } from 'connected-react-router';
import { combineReducers, createStore, compose, applyMiddleware } from 'redux';
import createSagaMiddleware from 'redux-saga';
import * as sagaEffects from 'redux-saga/effects'
import invariant from 'invariant';
import { NAMESPACE_SEP } from './m... |
const fs = require("fs");
const Arweave = require("arweave");
const kweb = require("@_koi/sdk/web");
const ktools = new kweb.Web();
const kohaku = require("@_koi/kohaku");
const axios = require("axios");
const crypto = require("crypto");
const sharp = require('sharp');
const extractFrames = require('ffmpeg-extract-fram... |
var MenuItemTypes = alchemy.getClassGroup('menu_item'),
default_menus = {};
/**
* The Menu Model class
*
* @constructor
* @extends {Alchemy.Model}
*
* @author <NAME> <<EMAIL>>
* @since 0.0.1
* @version 0.3.0
*
* @type {Object} options
*/
var Menu = Function.inherits('A... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AssociationListValue = void 0;
const Monitor_1 = require("../../state/Monitor");
const Record_1 = require("../Record");
const AssocaitionValue_1 = require("./AssocaitionValue");
const util_1 = require("./util");
class AssociationListVa... |
/*
* Copyright 2016 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 law o... |
import React, { Component } from 'react';
import firebase from 'firebase';
import firebaseui from 'firebaseui';
import ReactGA from 'react-ga';
import logo from './logo.svg';
import styles from './App.css';
import { config } from './Config.js';
import { msToISOString } from './Common';
import Stopwatch from './Stopwat... |
/**
Optimization for mat4.multiply. Doesn't show any difference to speak of in node.js / Chrome,
but Firefox shows an approx 10% improvement:
current mat4.multiply x 3,956,052 ops/sec ±0.45% (64 runs sampled)
optimized mat4.multiply x 4,379,678 ops/sec ±0.71% (62 runs sampled)
**/
require("gl-matrix");... |
$(function () {
// Default property
let kategori = $("#pro-kategori option:selected").val();
let startDate = null;
let endDate = null;
// Ketika kategori dirubah, ambil selected value nya
$("#pro-kategori").on("change", function () {
kategori = $("#pro-kategori option:selected").val();
... |
// The code here is based on the Observable implementation.
// {@see https://observablehq.com/@d3/zoomable-sunburst}
import * as d3 from "d3";
import {getBase} from "../filter/selectedParametersMode";
/**
* @param {!Node} root
* @param {!HTMLElement} container
* @param {function} selectRangeFunction
* @param {fun... |
$(document).ready(function() {
Carga();
});
//FUNCION PARA CARGAR LA TABLA Y ACTIVAR DATATABLES
function Carga(){
var tablaDatos = $("#tbodyconsultor");
var route = $("#posicion").val() + "/consultores";
$.ajax({
url: (route),
type: 'GET',
dataType: 'json',
})
.always(f... |
// this is just brute force experiment
// do not use it
// there are better ways to skin a cat
const http = require('http');
const { StringDecoder } = require('string_decoder');
const decoder = new StringDecoder('ascii');
const jwt = require('jsonwebtoken');
const fs = require('fs');
const crypto = require('crypto');
... |
//accordion
$(document).ready(function () {
"use strict";
$('#accordion').find('.content').hide();
$('#accordion').find('.active').hide();
// Accordion
$('#accordion').find('.accordion-header').click(function () {
var next = $(this).next();
next.slideToggle('fast');
$('.conte... |
const mealURL = "http://localhost:3000/api/meals"
const ingredientURL = "http://localhost:3000/api/ingredients"
let ingredients
let ingredientFormId = 0
let dayOffset = 0
document.addEventListener('DOMContentLoaded', () => {
makeWeek()
fetchMeals()
fetchIngredients()
})
document.addEventListener('click',... |
import React from 'react';
import {Text, StyleSheet, View, Image, TouchableOpacity} from 'react-native';
import {Button, Input, withTheme} from 'react-native-elements';
import DatePicker from 'react-native-datepicker'
import Autocomplete from 'react-native-autocomplete-input';
import {inject, observer} from 'mobx-react... |
import React from 'react';
import { render } from '@testing-library/react';
import DoubleMultiSelectFilter from '../DoubleMultiSelectFilter';
export const DOUBLE_MULTI_SELECT_FILTER_OPTIONS = {
firstSelect: {
apiField: 'first',
label: 'First Filter',
name: 'first',
creatable: true,
... |
import React from 'react';
import ReactTooltip from 'react-tooltip';
import Gallery from 'react-photo-gallery';
import LazyLoad from 'react-lazyload';
var Scroll = require('react-scroll');
var Link = Scroll.Link;
var Element = Scroll.Element;
var Events = Scroll.Events;
var scroll = Scroll.animateScroll;
var scroll... |
//var url_header = "https://j-feigner.github.io/Tooney-Lunes/sound_files/piano";
var url_header = "sound_files/piano"
window.onload = main;
function main() {
var canvas = document.getElementById("pianoCanvas");
resizeCanvas();
var piano_width = canvas.width;
var piano_height = canvas.height;
var... |
module.exports = {
calculatePositions : calculatePositions,
prepareForUpdate : prepareForUpdate
}
function prepareForUpdate(defs, ths, tags) {
// combine sets
let vertices = [];
ths.forEach(th => {
th.cx = th.x+150;
th.con = [];
th.blocks.forEach(bl => {
th.con =... |
function buildGitHubBox(bugData, templateText) {
// Delete old one
const old = document.querySelector(".mantismigrate-fixed");
if (old) {
old.outerHTML = ``;
}
const box = {
onCreateIssue: (title, body, withMilestone) => {},
// getOpenedURL: () => "",
onFinishIssue: ... |
import alt from 'alt';
import game from 'natives';
const width = 0.025;
const height = 0.004;
const border = 0.001;
let isActive = true;
let isActiveNickname = true;
let isActiveNickId = true;
let resolution;
let iconCount = 0;
let iconsWidth = 0.0;
let widthText = 0.05;
let scale = 0.35;
let familiarList = {};
a... |
/**
* settings.js
* https://angularfirebase.com/lessons/desktop-apps-with-electron-and-angular/
*/
let config = require('./config.js');
var database = require('./db.js');
var helpers = require('./helpers');
module.exports = new function() {
var tableColumnsData = null;
this.init = function() {
this.set... |
/**
* Copyright 2016 The AMP HTML Authors.
*
* 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 o... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const base_1 = require("./base");
const graphql_1 = require("graphql");
const vscode_languageserver_1 = require("vscode-languageserver");
const source_1 = require("../utilities/source");
const format_1 = require("../format");
const fileSet_1 =... |
/**
* The Node Utility.
*
* @module aui-node
* @submodule aui-node-html5-print
*/
var CONFIG = A.config,
DOC = CONFIG.doc,
WIN = CONFIG.win,
UA = A.UA,
IE = UA.ie,
isShivDisabled = function() {
return WIN.AUI_HTML5_IE === false;
};
if (!IE || IE >= 9 || isShivDisabled()) {
re... |
/*
* 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 n... |
import React, {PureComponent} from 'react';
import {RNCamera} from 'react-native-camera';
import PropTypes from 'prop-types';
import {PixelRatio, Platform, StyleSheet, Vibration, View} from 'react-native';
import QRScannerView from './QRScannerView'
const pixelRatio = PixelRatio.get()
export default class QRScanner... |
import * as zrUtil from 'zrender/src/core/util';
import * as numberUtil from '../../util/number';
import * as helper from './helper';
var each = zrUtil.each;
var asc = numberUtil.asc;
/**
* Operate single axis.
* One axis can only operated by one axis operator.
* Different dataZoomModels may be defined to operate ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = 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; descriptor.... |
/*! BSON: handle frontend json data like mongodb
* author by hans.wu <EMAIL>
* version 0.1 2018-09-09
*/
/*
* @class BSON
* @param bson: Array|JSON, bson data default []
* @param key: String, bson key item default '_id'
* @param customKey: Boolean, default false, if false, key item will auto increase 1 and ca... |
// Copyright (c) 2017-2018 <NAME> Software Co., Ltd.
import { RecyclePool } from '../memop';
import enums from '../enums';
import { Vec2, Vec4, Mat3, Mat4, Color, Vec3 } from '../../core/value-types';
import ProgramLib from './program-lib';
import View from './view';
import gfx from '../gfx';
let _m4_tmp = new Mat4(... |
import React from 'react';
import App, { Container } from 'next/app';
import Head from 'next/head';
import { MuiThemeProvider, createMuiTheme, withStyles } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import getPageContext from '../components/PageContext';
import Navigator f... |
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom';
import { createNewStudent, getDropDown, getStudentTable } from '../../../../actions';
import moment from 'moment';
import Dropdown from 'react-dropdown'
import 'react-dropdown/style.c... |
// You can also require other files to run in this process
require('./renderer.js')
var $ = require('jQuery')
var convert = require('convert-units')
feather.replace()
// Length calculator
var inpImperial = $('#inpImperial'),
selImperial = $('#selImperial'),
inpMetric = $('#inpMetric'),
selMetric = $('#sel... |
/*
* -= RestNio =-
* Made by 7kasper
* Licensed under MIT
* -= RestNio =-
*/
'use strict';
// Imports
require('../routes/Route');
const uuid = require('uuid/v4');
const ProxyHelper = require('./ProxyHelper');
/**
* Typedef imports
* @typedef {import("../routes/Route").RouteFunc} RouteFunc
*/
/**
* @typ... |
import React, { useEffect, useState } from 'react';
import { Card, Icon, Grid } from 'semantic-ui-react';
import ReactDOM from 'react-dom';
import { useSubstrate } from './substrate-lib';
import { TxButton } from './substrate-lib/components';
import utils from './substrate-lib/utils';
function Main (currentAccount) {
... |
/*
* Created on Tue Nov 10 2020
*
* The MIT License (MIT)
* Copyright (c) 2020 <NAME>, <NAME> (German Research Center for Artificial Intelligence, DFKI).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to dea... |
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
/** @jsx jsx */
import React, { useEffect, useRef, useState } from 'react'; // eslint-disable-line no-unused-vars
import { FaChevronLeft, FaChevronRight } from 'react-icons/fa';
import { jsx } from 'theme-ui';
import parseEditorJsData from '@utils/par... |
import {
UserIcon,
CogIcon,
DocumentAddIcon,
LogoutIcon,
PencilAltIcon,
} from '@heroicons/react/outline'
export const menu = [
{
id: 1,
icon: <DocumentAddIcon className="h-5 w-5" />,
href: "/v2/pro-builder",
label: "Resume Builder",
},
{
id: 2,
... |
$(function() {
$('#side-menu').metisMenu();
});
//Loads the correct sidebar on window load,
//collapses the sidebar on window resize.
// Sets the min-height of #page-wrapper to window size
$(function() {
$(window).bind("load resize", function() {
topOffset = 50;
width = (this.window.innerWidt... |
const mongoose = require('mongoose');
const marked = require('marked');
const he = require('he');
const hljs = require('highlight.js');
const Purchase = require('./Purchase');
const generateSlug = require('../utils/slugify');
const { Schema } = mongoose;
function markdownToHtml(content) {
const renderer = new mar... |
const bcrypt = require('bcrypt')
const jwt = require('jsonwebtoken')
const moment = require('moment');
const {
error,
success
} = require('../helpers/response')
const {
mCheckEmail,
mRegister,
mDetail,
mSendMail,
mUpdateUser
} = require('../models/users')
const fs = require('fs')
module.exports = {
cReg... |
"use strict";
const NORMAL_CLASS = "is-primary"; // CSS class for normal inputs.
const WARNING_CLASS = "is-danger"; // CSS class for input warnings.
const MIN_WIDTH = 3;
const MIN_HEIGHT = 3;
const MAX_WIDTH = 8;
const MAX_HEIGHT = 16;
const DEFAULT_WIDTH = 6;
const DEFAULT_HEIGHT = 10;
const DEFAULT_PATH = "0";
con... |
import React, {Component, useState} from 'react';
import {
Container,
Header,
Left,
Body,
Right,
Button,
Icon,
Title,
Text,
} from 'native-base';
import {
ImageBackground,
ScrollView,
Image,
StatusBar,
StyleSheet,
View,
FlatList,
TextInput,
Alert,
InteractionManager,
} from 'react-... |
/**
* author: <NAME> (<EMAIL>)
* Ghent University - imec - IDLab
*/
const N3 = require('n3');
const YAML = require('yamljs');
const namespaces = require('prefix-ns').asMap();
let rdfaVocs = require('./rdfa-context.json')['@context'];
const Q = require('q');
const {DataFactory} = N3;
const {namedNode} = DataFactory;... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.KuiContextMenu = undefined;
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)... |
'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]; } } }... |
const {spawn} = require('child_process');
const path=require('path');
const passport = require('passport');
// prepara um schedule p/ ser salvo
function toSave(params) {
if(!params) params={};
const db=params.db;
let doc=params.doc;
var th=this;
const docNative=doc || th.docNative;
var sched... |
/* LICENSE
_This file is Copyright 2018 by the Image Processing and Analysis Group (BioImage Suite Team). Dept. of Radiology & Biomedical Imaging, Yale School of Medicine._
BioImage Suite Web is licensed under the Apache License, Version 2.0 (the "License");
- you may not use this soft... |
/**
* This is the Scan audit module. It gets details on the scans that ran.
*/
/**
* Dependencies
*/
const ase = require('./providers/ase');
const logger = require('../config/logger');
const config = require('../config/config');
const async = require('async');
var xml2js = require('xml2js');
var parser = new xm... |
var express = require('express')
, path = require('path')
, bitcoinapi = require('bitcoin-node-api')
, favicon = require('static-favicon')
, logger = require('morgan')
, cookieParser = require('cookie-parser')
, bodyParser = require('body-parser')
, settings = require('./lib/settings')
, routes = requir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.