text stringlengths 5.97k 41.2k |
|---|
import { types, getEnv, getSnapshot, flow } from "mobx-state-tree";
import { observable, toJS } from "mobx";
import produce, { setAutoFreeze } from "immer";
setAutoFreeze(false);
import { ContextUserReader } from "./user";
import { asContext, mixinModel, optionalModel, IndexType, incrementLetterId } from "./model-util... |
// https://observablehq.com/@jimpick/deals-trips-provider-quest@1251
import define1 from "./5cf93b57a7444002@222.js";
import define2 from "./c4e4a355c53d2a1a@111.js";
import define3 from "./2cbde4d083878213@508.js";
import define4 from "./450051d7f1174df8@254.js";
function _1(md){return(
md`# Deals: Trips [Provider.Qu... |
const test = require('tape')
const krayon = require('../')
test('@krayon', (t) => {
t.test('should be able to parse comments', (t) => {
t.plan(2)
t.equal(krayon(`// hello world`), '<span class="comment" style=color:#6a737d>// hello world</span>')
t.equal(krayon(`// hello world`, { output: 'ascii' }), '\... |
import React, { useEffect, useState, useCallback, useMemo, Fragment } from 'react';
import SaveChart from './component/saveChart'
import { Topology, registerNode } from '@topology/core';
import {
flowData,
flowDataAnchors,
flowDataIconRect,
flowDataTextRect,
flowSubprocess,
flowSubprocessIconRect,
flowSub... |
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Almond
//
// Copyright 2016-2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Licen... |
/*
* iRealRenderer
*
* Render any iReal Pro song into a n HTML conteiner element.
*/
class iRealRenderer {
constructor() {
this.transposeFlat = [
"C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B",
"C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B"
];
this.transposeSharp = ... |
'use strict';
const Fs = require('fire-fs');
const Path = require('path');
const Electron = require('electron');
const App = Electron.remote.app;
const Async = require('async');
const Globby = require('globby');
const MacIconPath = 'frameworks/runtime-src/proj.ios_mac/mac/Icon.icns';
const WindowsIconPath = 'framewor... |
var raycaster;
var mouse = new THREE.Vector2(-1, -1), INTERSECTED; //initialised vector2 with -1, -1 because the set values would have been 0, 0 which meant the first sphere would've been intersected even if the mouse would be at a different position
var intersected = false, obj;
var min, max, increment;
var lines ... |
var gCanvas;
var gCanvasSub;
var g2d;
var gSub2d;
var width = 854;
var height = 480;
var gameState = 0;
var gameTitle = "Adrienne's Worlds";
var gameMainMenu = "1. Play Again";
var gamePlayOption = "2. Choose A Game";
var gameExitOption = "3. Exit Completely";
var gameEndMessage = "Thanks for playing!!!";
var gameDev... |
const chai = require('chai')
const http = require('http')
const https = require('https')
const path = require('path')
const fs = require('fs')
const send = require('send')
const auth = require('basic-auth')
const ChildProcess = require('child_process')
const { closeWindow } = require('./window-helpers')
const { emitted... |
// Name: omeka-classic-api-client
// Input: query[Object] and sort[String]
// Author(s): <NAME>
// Description: Fetches data from Omeka, parses it, and then sorts it according
// to a query and a sort parameter.
// Version: 4.0
////////////////////////////////////////////////////////////////////////////////
... |
import pjson from '~/package.json';
import yaml from 'js-yaml';
export const SET_ANSWERS = 'SET_ANSWERS';
export const ALICE_REQUEST = 'ALICE_REQUEST';
export const SET_USER_ID = 'SET_USER_ID';
export const SET_SESSION_ID = 'SET_SESSION_ID';
export const SET_SESSION_NEW = 'SET_SESSION_NEW';
export const SET_MESSAGE_ID... |
class digitalClock {
constructor() {
this.currdate = new Date();
document.getElementById("time").innerHTML = "Current date: <br>Current Time: ";
this.iterate();
this.millatary_time = false;
}
formatDate() {
this.currdate = new Date();
// Gets local date
... |
/**
*
* TravellerDetails
*
*/
import React, { useState, useEffect } from 'react';
import MetaTags from "react-meta-tags";
import { connect } from 'react-redux';
import { useHistory, Link } from 'react-router-dom';
import { createStructuredSelector } from 'reselect';
import { compose, bindActionCreators } from 'redu... |
const TileType = require('./tile_type');
const ObjectType = require('./object_type');
const Player = require('./player');
const Bird = require('./bird');
const WorldChunk = require('./world_chunk');
const TilesEffect = require('./effects/tiles_effect');
const ObjectsEffect = require('./effects/objects_effect');
const W... |
/////////////////////////////////////////////////////////////////////////////////////////////////////
// TENHOU.NET (C)C-EGG http://tenhou.net/
/////////////////////////////////////////////////////////////////////////////////////////////////////
// REFERENCE
/////////////////////////////////////////////////////////////... |
/**
* dwgl.js - a very lightweight webgl wrapper.
*
* Copyright 2018 by <NAME> (https://www.thomasdiewald.com)
*
* MIT License: https://opensource.org/licenses/MIT
* ource: https://github.com/diwi/p5.EasyCam (will be moved)
*
* versions: webgl1, webgl2
*
*/
/**
* Note:
* This is just... |
import React from 'react'
import Page from 'components/Page';
import {Alert, ButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem, Row, Col, Button, Modal, ModalHeader, ModalBody, ModalFooter, Table, Form, FormGroup, Label, Input} from 'reactstrap';
// import SupplierModal from './Supplier';
import SearchOutletPL... |
//
var cMajorIonian = [0, 2, 4, 5, 7, 9, 11]; // 0
var cHarmonicMinorIonian = [0, 2, 4, 5, 8, 9, 11]; // 1
var cHarmonicMajorIonian = [0, 2, 4, 5, 7, 8, 11]; // 2
// set in methods
var scale = []; // set in methods
var guitarSpans = []; // set in methods
var tuning = [4, 11, 7, 2, 9, 4]; // standard tuning
var min... |
/*global resize_graphs */
/**
* @author <NAME> / https://github.com/alexscaliante
* @author <NAME> / https://github.com/kjuen
*/
/*global Spring, JXG */
Spring.Graphs = {
graphBoardsArray : [],
needUpdate : false
};
//* Time domain graphs
Spring.Graphs.timeDomainGraphBoard =
JXG.JSXGraph.initBoard('... |
const imageLoader = new ImageLoader();
const iTitle = new IntroTitle();
const timeStart = new Date();
let status = document.createElement('p');
let timeDisplay = document.createElement('p');
imageLoader.loadImage('./src/images/gotchiMap.png');
//intro
let title = 'Gotchi';
iTitle.createGameTitle(title.toUpperCase(), f... |
import React, {
useMemo,
useState,
useEffect,
useLayoutEffect,
} from 'react';
import PropTypes from 'prop-types';
import queryString from 'query-string';
import {
FormattedMessage,
injectIntl,
} from 'react-intl';
import { connect } from 'react-redux';
import {
Field,
change,
} from 'redux-form';
impor... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// please implement these methods //
/////////////////////////////////////////////////////////////////////////////////... |
// Make some practice objects
//add a property
//camera.lens = "Venua Laowa Dreamer Mag2";
//delete a property
//delete camera.imageMode;
//Various Dice rolls TODO make a diceroller.js file
function attackRoll (attackMod){
return rollD20() + attackMod;
}
function damageRoll(dice... |
//*******************************************************************************
//
// Copyright 2018 Microsoft
//
// 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
//... |
/**
* Created by phanmduong on 9/1/17.
*/
import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as studentActions from '../studentActions';
import Loading from '../../../components/common/Loading';
import Attendances from './Attendances';
import _ from 'lod... |
/* jshint browserify: true, devel: true */
"use strict";
var $ = require('jQuery');
var Konva = require('konva');
var x2js = new X2JS();
var mapScaleFactor, roomSize, showLabels, squareLayer, lineLayer, labelLayer, roomsGroup, connectors, xmin, xmax, ymin, ymax;
mapScaleFactor = 0.5;
roomSize = 8 * mapScaleFactor;
s... |
const TWEET = require('./tweet.js');
const NEAR = require('./near.js');
$(document).ready(() => {
const tweetInputDialog = $('#tweet-input-dialog');
const tweetDiv = $('.twitr-feed-tweet');
const tweetArea = $('#tweet-dialog-textarea');
const tweetSubmit = $('#confirm-tweet');
const tweetAddPic = $('#tweet-... |
"use strict";
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
async = require('async'),
_ = require('lodash');
var Dict = INCLUDE('dict');
var round = MODULE('utils').round;
/**
* Bank Schema
*/
var bankSchema = new Schema({
ref: {type: Stri... |
/**
* EveBasicPerObjectData
* @parameter perObjectVSData - Vertex shader data
* @parameter perObjectPSData - Pixel shader data
* @parameter perObjectFFEData - Fixed Function Emulation data
* @constructor
*/
function EveBasicPerObjectData()
{}
/**
* SetPerObjectDataToDevice
* @param constantBufferHandles
* @co... |
import React, { useState, useEffect } from 'react';
import clsx from 'clsx';
import './App.css';
import AppBar from '@material-ui/core/AppBar';
import Button from '@material-ui/core/Button';
import CssBaseline from '@material-ui/core/CssBaseline';
import Drawer from '@material-ui/core/Drawer';
import MenuItem from '@ma... |
////******Experiments with classes *////////Tic-tacto game///////
////******Built by <NAME>, desember 2021 *////////
////******Dinished 12.12.2021 */
let rectUpLeftXY = [10, 205, 400]; //array of coordinates of Left Right corner of Buttons (din't use yet)
let rectCentertY = [10, 205, 400]; //array of coordinates of Cen... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});
exports['default'] = void 0;
var _react = _interopRequireWildcard(require('react'));
var _propTypes = _interopRequireDefault(require('prop-types'));
var _sectionIterator = _interopRequireDefault(require('section-iterator'));
var _react... |
import Utils from "~/scripts/utils";
import { gbsData } from "~/lib/foe-data/gbs";
import gbProcess from "~/scripts/foe-gb-investment";
import gbListSelect from "~/components/gb-list-select/GbListSelect";
import graphCanvas from "~/components/graph-canvas/GraphCanvas";
import Vue from "vue";
import * as moment from "m... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ts = require("typescript");
const logger_1 = require("./logger");
const PropTree_1 = require("./PropTree");
const rgxObjectTokenize = /(<|>|,|\(|\)|\||\{|\}|:)/;
const rgxCommaAll = /,/g;
const rgxParensAll = /\(|\)/g;
const anyTypeNode ... |
import React from 'react'
import {connect} from 'react-redux'
import PropTypes from 'prop-types'
import {
selectPublication,
unselectPublication,
} from '../actions/managePublication'
import {
setGraphZoomAndOffset,
storeGraphNodes,
lockGraphNode,
} from '../actions/manageGraph'
import {
PUBLICA... |
'use strict'
module.exports = fromMarkdown
// These three are compiled away in the `dist/`
var codes = require('micromark/dist/character/codes')
var constants = require('micromark/dist/constant/constants')
var types = require('micromark/dist/constant/types')
var toString = require('mdast-util-to-string')
var assign ... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
/* global describe, it, xit, expect, require, beforeEach, afterEach */
// Big thanks to V8 folks for test ideas.
// v8/test/mjsunit/harmony/collections.js
var Assertion = expect().constructor;
Assertion.addMethod('theSameSet', function (otherArray) {
var array = this._obj;
expect(Array.isArray(array)).to.equal(t... |
/*globals module, require, console*/
/**
* @author https://github.com/lattmann
*/
/**
* Initializes a new dictionary.
* @public
*
* TODO: be able to pass a list of words
*
* @param {string} name 'hu-HU/type1' or 'hu-HU', if type is not defined 'default' is loaded.
* @param {Boolean} [useAgent] if true it uses... |
import {
Dataframe,
IdentityInt32Index,
dataframeMemo,
} from "../util/dataframe";
import {
_getColumnDimensionNames,
_getColumnSchema,
_schemaColumns,
_getWritableColumns,
_normalizeCategoricalSchema
} from "./schema";
import { indexEntireSchema } from "../util/stateManager/schemaHelpers";
import { _wh... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeEmpty = exports.dateToString = exports.uniqueID = exports.excelPaycycleHelper = exports.formatErrors = exports.formUrlEncoded = exports.getPayComponent = exports.getAccessToken = exports.getEmployeeNames = exports.getEmployeeData... |
import { ShaderChunk } from './ShaderChunk';
function FxgenShader() {
this.enables = {};
this.enable = function(key, value) {
this.enables[key] = value === undefined ? 1 : value;
}
this.clear = function() {
this.enables = {};
}
this.checkKey = function(key) {
for (var i in this.enables... |
import React, { Component, PropTypes } from 'react';
import Dimensions from 'Dimensions';
import {
StyleSheet,
TouchableOpacity,
Text,
Image,
View,
Platform,
StatusBar,
PanResponder,
Animated,
} from 'react-native';
import { KeyboardAwareScrollView } from 'react-native-keyboard-awar... |
import isEnabled from '../../features';
import { DEBUG } from '@glimmer/env';
import Relationships from '../relationships/state/create';
import { assign } from '@ember/polyfills';
import { isEqual } from '@ember/utils';
import { assert, warn, inspect } from '@ember/debug';
import coerceId from '../coerce-id';
import { ... |
/* eslint-disable no-multi-spaces */
import { Float80 } from 'float80';
import FileBuffer from './file_buffer';
import { floatToExtended } from './utilties';
import { statAsync } from './fs';
class Aiff {
constructor(filePath) {
this.fileBuffer = new FileBuffer(filePath);
this.filePath = filePath;
this.... |
//NorthAmerica, SouthAmerica, Whole.
var event_handler = function choose_map(continent){
var PromiseWrapper = (xhr, d) => new Promise(resolve => xhr(d, (p) => resolve(p)));
Promise
.all([
PromiseWrapper(d3.json, `./resources/${continent}.geojson`),
PromiseWrapper(d3.csv, `./resources/${con... |
import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import {
TableHead as MuiTableHead,
TableBody as MuiTableBody,
TableRow as MuiTableRow,
TableCell as MuiTableCell,
Tooltip, Zoom
} from '@material-ui/core';
import { withStyles } from '@material-ui/core/style... |
/****************************************************************************
* Copyright 2021 EPAM Systems
*
* 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... |
export { AcademicCap as AcademicCapIcon } from "./AcademicCap/index.js";
export { Adjustments as AdjustmentsIcon } from "./Adjustments/index.js";
export { Annotation as AnnotationIcon } from "./Annotation/index.js";
export { Archive as ArchiveIcon } from "./Archive/index.js";
export { ArrowCircleDown as ArrowCircleDown... |
function createSquareSelectionFromGroup(createdGroup) {
createdGroup.isSelection = true;
createdGroup.applySquaredSelectionStyle = function () {
createdGroup.lockScalingX = true;
createdGroup.lockScalingY = true;
createdGroup.lockRotation = true;
createdGroup.hasControls = fals... |
import React, { cloneElement } from 'react';
import PropTypes from 'prop-types';
import WixComponent from '../BaseComponents/WixComponent';
import ReactDOM from 'react-dom';
import TooltipContent from './TooltipContent';
import position from './TooltipPosition';
import styles from './TooltipContent.scss';
import { Tool... |
/**
* Plugin based on discussion from the following Chart.js issues:
* @see https://github.com/chartjs/Chart.js/issues/2380#issuecomment-279961569
* @see https://github.com/chartjs/Chart.js/issues/2440#issuecomment-256461897
*/
import LineElement from '../elements/element.line';
import {_boundSegment, _boundSegmen... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
var binary = require('bodec');
// This code is slightly modified from chrisdickson/inflate min.js
// The original code is under the MIT license copyright <NAME>
module.exports = inflate;
var MAXBITS = 15
, MAXLCODES = 286
, MAXDCODES = 30
, MAXCODES = (MAXLCODES+MAXDCODES)
, FIXLCODES = 288
var... |
const editor = init_editor()
const func_line_offset = 3
const code_analysis_url = "http://localhost:8000/api/code/analysis/"
const ERROR_CODES = {
10: "Uh-oh...Looks like your code threw a run-time error!",
11: "Uh-oh...Looks like there's a syntax error in your code!",
12: "Sorry, your code violates one of... |
/* eslint-disable max-nested-callbacks */
/* eslint-disable max-params */
'use strict';
const _ = require('lodash');
const assert = require('assert');
const errors = require('../../src/common/errors');
const wallet = require('./wallet');
const requests = require('../fixtures/requests');
const RippleAPI = require('rippl... |
import { callIfFunc, camelToSnakeCase, snakeToCamelCase, toUpperCamelCase, pluralToSingle, titleCase } from './utils';
const IS_LOADING = 'IS_LOADING';
const ERROR = 'ERROR';
const CLEAR_ERROR = 'CLEAR_ERROR';
const GET = 'GET';
const GET_IS_LOADING = 'GET_IS_LOADING';
const GET_ERROR = 'GET_ERROR';
const LIST = 'LIS... |
'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; descriptor.configurable = true; if ('v... |
///////////////////////////////////////////////////////////////////////
//
// CSE 5542 AU 2019 LAB 3
// <NAME> (clark.2816)
// Assigned: October 3, 2019
// Due: October 17, 2019 11:59 PM
// Lab overview: Create a 3D multi-component object
// with at least three levels of hierar... |
function getNanospeedText(){
s = getNanofieldSpeedText()
if (!shiftDown) s = ghostified || nanospeed != 1 ? "Your Nanofield speed is currently " + (nanospeed == 1 ? "" : shorten(tmp.ns) + " * " + shorten(nanospeed) + " = ") + shorten(getNanofieldFinalSpeed()) + "x (hold shift for details)" : ""
return s
}
function ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');
var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2);
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _in... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty... |
let canvas = document.getElementById("paper");
let ctx = canvas.getContext("2d");
ctx.imageSmoothingEnabled = false;
ctx.mozImageSmoothingEnabled = false;
let STICK_HEIGHT = 24;
let JUMP_STRENGTH = 7;
let OBSTACLES_PER_CHUNK = 5;
let RENDER_DIST = 2;
AABB = function(obs1, obs2) {
let x_overlap = obs1.x < obs2.x ... |
import { Inertia } from '@inertiajs/inertia'
import { usePage } from '@inertiajs/inertia-react'
import React, { useState, useEffect, useRef } from "react";
import { Formik, Form, useField, FieldArray } from 'formik';
import * as Yup from 'yup';
import axios from "axios";
import Constants from "../../helpers/samples";
i... |
var GUIData = (function() { // GUI Data Closure
this.escape_crit_list = {
"|z|^2>M^2": 0,
"|Re(z)|>M": 1,
"Re(z)>M": 2,
"|Im(z)|>M": 3,
"Im(z)>M": 4,
"max{|Re(z)|,|Im(z)|}>M": 5,
"|Re(z)|+|Im(z)|>M": 6
};
this.... |
"use strict";
/**
* @license
* Copyright 2018 Google LLC. 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... |
function initiate(){
$('.box-event').click(function(){
$('.box-event').removeClass('clicked');
$(this).addClass('clicked');
})
$("#mobile").css('height', (screen.height)+'px')
$('.iconesearch').click(function(){
var request = $('#pesquisar-site').val().replace(/ /g, '-').replace(/\... |
let _ = require("underscore");
let d3 = require("d3");
let moment = require('moment');
class Visualization {
/**
* @class
* @abstract
* @description Abstract view class that extends all available views in the lib, with methods that must be adapted for other views
* @constructor
* @param {s... |
import RayInput from '../ray-input'
const DEFAULT_COLOR = new THREE.Color(0x00FF00);
const HIGHLIGHT_COLOR = new THREE.Color(0x1E90FF);
const ACTIVE_COLOR = new THREE.Color(0xFF3333);
export default class DemoRenderer {
constructor() {
let world;
const dt = 1 / 60;
let constraintDown = false;
let j... |
import HlsJs from 'hls.js/lib/hls';
import Metadata from './Metadata';
import packageJson from '../../package.json';
import parseId3Tag from './services/parserId3Tag';
import isAdItem from './services/isAdItem';
class Hls extends Meister.MediaPlugin {
constructor(config, meister, next) {
super(config, meis... |
"use strict";
var meta = module.parent.require('./meta'),
user = module.parent.require('./user'),
SocketPlugins = require.main.require('./src/socket.io/plugins');
var _ = module.parent.require('underscore'),
winston = module.parent.require('winston'),
async = module.parent.require('async'),
db = module.parent.re... |
// Copyright 2018 Hewlett Packard Enterprise Development LP
//
// 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,... |
import React, {PureComponent} from 'react';
import {findDOMNode} from 'react-dom';
import moment from 'moment';
import T from './../../utils/T';
import {formatMessage, FormattedMessage} from 'umi-plugin-react/locale';
import {connect} from 'dva';
import {EnumDataSyncPageInfo, EnumPluginListPageInfo} from './../... |
// wppa-spheric.js
//
// contains wppa functions for simple zoomable photos
//
var wppaJsSphericVersion = '8.0.00.017';
// The main proccedure
function wppaDoSphericPan(mocc, xdata) {
var $ = jQuery;
if ( xdata ) wppaSphericData[mocc] = xdata;
var data = update(mocc, data);
// Been here before with same parms... |
import * as React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Button } from '@material-ui/core/Button/index.js';
import { withTheme } from '@material-ui/core/styles/index.js';
import * as actionCreators from '../../actions/index.js';
import TextController fr... |
const fs = require("fs");
const dotenv = require("dotenv");
const onesky = require("@brainly/onesky-utils");
dotenv.config();
function returnItem(code) {
for (let j = 0; j < languageList.length; j++) {
if (languageList[j].code === code) return languageList[j].id;
}
}
let languageList = [
{ id: 1, code: "en"... |
"use strict";
/*
* Copyright (C) 2017 TypeFox and others.
*
* 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
*/
var __decorate = (this && this.__dec... |
this.EXPORTED_SYMBOLS = [
"delayedSuggestBaidu", "Frequent", "getPref", "Homepage",
"nxdomainMitigation", "Session", "SignatureVerifier"
];
const {classes: Cc, interfaces: Ci, results: Cr, utils: Cu} = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "AddonMa... |
var hexy = require("./hexy.js")
var buf = Buffer.from("0123456789abcdefghijklmnopqrstuvwxzy")
var str = "0123456789abcdefghijklmnopqrstuvwxzy"
var nums = [ 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 97, 98, 99, 100,
101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
115, 116, 117, 118, 119, 120, 1... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __assign = (this && this.__assign) || Object.assign || fun... |
function form_init() {
form_datepicker();
form_button();
form_date();
form_date_copy_link();
/*
$('.fileinput-button').each(function () {
var input = $(this).find('input:file').detach();
$(this)
.button({icons: {primary: 'ui-icon-circle-arrow-n'}})
.append(input);
});
$('#progressbar').progr... |
var request = require("request");
var inherits = require('util').inherits;
var Accessory, Service, Characteristic, UUIDGen;
var wait_timeout = 1000
module.exports = function(homebridge) {
Accessory = homebridge.platformAccessory;
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Charac... |
/* global __dirname */
/**
*
* ioBroker Discover Adapter
*
* Copyright (c) 2017-2019 bluefox <<EMAIL>>
*
* MIT License
*
*/
/* jshint -W097 */
/* jshint strict:false */
/* jslint node: true */
'use strict';
const utils = require('@iobroker/adapter-core'); // Get common adapter utils
const tools ... |
var db;
var $url = "";
var oTable;
var addBtnPressed = false;
var editBtnPressed = false;
var callingAET = '';
$(document).ready(function() {
$('button').button();
loadTable();
$.get("do/IOviyamContext", function(data){
$('#ioviyamCxt').val(data.trim());
},'text');
$("#addBtn").click(func... |
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
r... |
import React from 'react';
import { connect } from 'react-redux'
import StudentHead from '../components/student-head'
import {
onEndCourse, onRoomMoreInfo,
onNewStream, onStreamLeave,
onHandsupSwitch, onNewGift,
onHandsupRank, onUserMuted, onMuteAllSwitch, onSilentSwitch,
onDancing,
onBeginCourse,
onPauseCourse... |
import "./chunk-Z6JJROFJ.js";
import "./chunk-XBU2MKQD.js";
import "./chunk-D5AQMEDF.js";
import {
fieldButton
} from "./chunk-HDZUK7DT.js";
import "./chunk-MRY7CVKJ.js";
import "./chunk-EGRHWZRV.js";
import "./chunk-X5RCOUJL.js";
import "./chunk-6AVOQNQ4.js";
import "./chunk-W5WIT4JA.js";
import "./chunk-VBV2WJY4.js... |
// -------------------------------------- IMPORTS
const Slimbot = require('slimbot')
const fs = require('fs')
const logger = require('log-to-file')
// -------------------------------------- CONFIG
let bot_config = JSON.parse(fs.readFileSync('bot_config.json','utf-8'))
let bot_token = bot_config.token
const bot = new... |
import {Helpers, ROTATE, Vector} from "./helpers.js";
import {getChunkAddr} from "./chunk.js";
import {ServerClient} from "./server_client.js";
import {PickAt} from "./pickat.js";
import {Instrument_Hand} from "./instrument/hand.js";
import {BLOCK} from "./blocks.js";
import {PrismarinePlayerControl, PHYSICS_TIME... |
import moment from "moment";
import hash from "object-hash";
import { ASSOCIATION_MODES, POLYGON_CLIP_PATH } from "./constants";
let { DATE_FMT, TIME_FMT } = process.env;
if (!DATE_FMT) DATE_FMT = "MM/DD/YYYY";
if (!TIME_FMT) TIME_FMT = "HH:mm";
export const language = process.env.store.app.language || "en-US";
exp... |
var malwareDomains = null;
var extensionsDisabled = [];
$(function() {
localizePage();
//Shows the instructions for how to enable all extensions according to the browser of the user
if (SAFARI) {
$(".chrome_only").hide();
} else {
$(".safari_only").hide();
var messageElement = $... |
/*
* Copyright <NAME> 2012-2013.
*/
'use strict';
var glUtils = {
createTexture: null,
getShader: null,
initGl: null,
supportsTextureUnits: null,
updateClip: null,
glSupported: true, // these values will be updated later
availableExtensions: [],
floatFboSupported: true,
maxVaryin... |
import { colors2Object, numberFormat } from '@gooddata/numberjs';
import invariant from 'invariant';
import { range, get, without, escape, unescape } from 'lodash';
import { parseValue, getAttributeElementIdFromAttributeElementUri } from '../utils/common';
import { getMeasureUriOrIdentifier, isDrillable } from '../uti... |
const logger = require('../utils/logger');
const config = require('../config/config.js');
const tmi = require('tmi.js');
const request = require('request');
const Command = require('../models/command');
const Notice = require('../models/notice');
const User = require('../models/user');
const Alert = require('../models/... |
/**
* cvss2.js
*
* Implements all functions to calculate the score and vector of Common
* Vulnerabilities Scoring System version 2. It also implements routines
* to manage the interface with the user and provide all functionalities.
*
* Author: <NAME>. <http://jilo.cc>
*
* This program is free software: you c... |
//main functions
var helper = require('./lib/shared');
var Wall = require('./lib/wall');
var settings = require('./settings.json');
//libs
var ioc = require('socket.io-client');
var socket = ioc.connect(`http://${settings.SOCKET_IP}:${settings.SOCKET_PORT}`);
//animations
var ScrollText = require('./animations/scroll... |
var each = require('component-each')
var debug = require('debug')('transitive:network')
var Emitter = require('component-emitter')
var Route = require('./route')
var RoutePattern = require('./pattern')
var Journey = require('./journey')
var Stop = require('../point/stop')
var Place = require('../point/place')
var Poi... |
var myName = localStorage.getItem("Name");
var fullName = localStorage.getItem("Full Name");
var password = localStorage.getItem("Password");
var profileInfo = {
username: null,
fullName: null,
initial:null,
followerCount: null,
followingCount:null,
}
// var myName = prompt("Enter Your Name");
... |
/**
* TrueTypeFont.ts class for EJ2-PDF
*/
import { ByteArray } from './../../graphics/images/index';
import { TtfReader } from './ttf-reader';
import { PdfDictionary, SaveDescendantFontEventHandler, SaveFontDictionaryEventHandler } from './../../primitives/pdf-dictionary';
import { SaveFontProgramEventHandler, SaveC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.