text
stringlengths
3.22k
29.5k
/** * @fileoverview A rule to suggest using of const declaration for variables that are never reassigned after declared. * @author <NAME> */ "use strict"; //------------------------------------------------------------------------------ // Requirements //-------------------------------------------------------------...
/** * (c) Copyright Reserved EVRYTHNG Limited 2018. * All rights reserved. Use of this material is subject to license. */ const evrythng = require('evrythng'); const evrythngSwagger = require('evrythng-swagger'); const jsonSchemaParser = require('json-schema-ref-parser'); const indent = require('../functions/indent...
'use strict'; // @TODO: What should we use for internal util functions? // Maybe we should use agenda:util:processJobs which would move agenda:* to agenda:agenda;* const debug = require('debug')('agenda:internal:processJobs'); const createJob = require('./create-job'); /** * Process methods for jobs * @param ...
'use strict'; import { pagination, api, aggregate } from './util'; import wikiPage from './page'; import QueryChain from './chain'; /** * @namespace * @constant * @property {string} apiUrl - URL of Wikipedia API * @property {string} headers - Headers to pass through to the API request * @property {string} origin...
import React, { Component } from "react" import { InstantSearch, SearchBox, Stats, RefinementList, InfiniteHits, Toggle, } from "react-instantsearch/dom" import { navigate as reachNavigate } from "@reach/router" import { colors } from "../utils/presets" import { Link } from "gatsby" import DownloadArrow fro...
import {useEffect, useState, useRef} from 'react'; import {handleError} from 'helpers/api'; import {Button} from 'components/ui/Button'; import Tooltip from '@mui/material/Tooltip'; import {useHistory} from 'react-router-dom'; import BaseContainer from "components/ui/BaseContainer"; import {useParams} from 'react-route...
import {Renderer, ENV, Figure2D, Mesh2D} from '@mesh.js/core'; import {Timeline} from 'sprite-animator'; import {mat2d} from 'gl-matrix'; import {requestAnimationFrame, cancelAnimationFrame} from '../utils/animation-frame'; import Group from './group'; import ownerDocument from '../document'; import {deleteTexture} fro...
mapboxgl.accessToken = '<KEY>'; let map = new mapboxgl.Map({ container: 'map', // container id // stylesheet location https://stackoverflow.com/questions/35248310/add-some-basic-markers-to-a-map-in-mapbox-via-mapbox-gl-js, 30.12.2019 13:30 // https://github.com/mapbox/mapbox-gl-styles style: 'mapb...
// Copyright 2011 <NAME>, University of San Francisco. All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of...
var subtitle1 = [ {"start": 0.5, "end" :1.0, "text" :"DISEGNI: REBECCA BURGESS - sottotitoli: G.GATTO"}, {"start": 1.5, "end" :4.0, "text" :"Il linguaggio può confondermi"}, {"start": 4.5, "end" :8.0, "text" :"ho bisogno di più tempo per seguire le conversazioni"}, {"start": 8.5, "end" :11.0, "text" :"anche se parlo be...
const path = require('path') const uuidv4 = require('uuid/v4') const moment = require('moment-timezone') const models = require('../models') const { logger } = require('../logging') const fs = require('fs') const renderEmail = require('./renderEmail') const getEmailNotifications = require('./fetchNotificationMetadata'...
const BOOTSTRAP_SCSS_PATH = "bootstrap/scss/"; const THEMEBUILDER_LESS_PATH = "devextreme-themebuilder/data/less/"; const SWATCH_SELECTOR_PREFIX = ".dx-swatch-"; const createModifyVars = modifyVars => { let result = ""; for(let key in modifyVars) { if(modifyVars.hasOwnProperty(key)) { resu...
#!/usr/bin/env node /* eslint-env node */ require('v8-compile-cache') const fs = require('fs-extra') const path = require('path') async function main() { const paths = require('@carv/bundle/lib/package-paths') const manifest = require('@carv/bundle/lib/package-manifest') const use = require('@carv/bundle/lib/p...
var audio, canvas, context, audioctx, analyser, oscillator, freqArr, barHeight, source, colorSelect, canvasC, contextC, grd1, grd2; var windowWidth, windowHeight, topDiv, vol, myTime; var bigBars = 0; var colorStyle = 0; var pastIndex = 900; var WIDTH = 1024; var HEIGHT = 350; var INTERVAL = 128;//256; var SAMPLES = 20...
'use strict'; var csproj2ts = require('csproj2ts'); var path = require('path'); var utils = require('./utils'); var es6_promise_1 = require('es6-promise'); var _ = require('lodash'); var templateProcessor = null; function resolveVSOptionsAsync(applyTo, taskOptions, targetOptions, theTemplateProcessor) { templatePro...
'use strict'; var merge = require('lodash/merge'); var reduce = require('lodash/reduce'); var isFunction = require('lodash/isFunction'); var isPlainObject = require('lodash/isPlainObject'); var isUndefined = require('lodash/isUndefined'); var React = require('react'); var update = require('react/lib/update'); module...
const urlStandard = 'https://www.wordreference.com'; const urlSource = 'https://www.wordreference.com/enpt/'; const urlContextReverso = 'https://context.reverso.net/traducao/ingles-portugues/'; let countSuccessfulWords = 0; const getWordsInput = async() => { const text = await document.getElementById('word...
const { ipcRenderer } = require('electron'); let busy = false; ipcRenderer.on('refresh-reply', (event, arg) => { document.getElementById('busy-div').style.display = 'none'; busy = false; if (typeof arg === 'string') { showError(arg); } else { showApplications(); } }); ipcRenderer...
import * as Gbi from "../../../../../include/gbi" import { snow_09000800} from "../../../../../textures/snow" const sl_seg7_lights_07005520 = Gbi.gdSPDefLights1( 0x7f, 0x7f, 0x7f, 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 ) const sl_seg7_vertex_07005538 = [ { pos: [ 768, 1352, -5375 ], flag: 0, tc: [ 0, 990 ],...
import React from 'react' import PropTypes from 'prop-types' import MaskedInput from 'react-text-mask' import classnames from 'classnames' import ErrorMessage from '../ErrorMessage/ErrorMessage' import SelectOption from '../../elements/SelectOption/SelectOption' import TimePicker from '../TimePicker/TimePicker' import...
const {Point, CompositeDisposable} = require('atom') const fs = require('fs-plus') const fuzzaldrin = require('fuzzaldrin') const fuzzaldrinPlus = require('fuzzaldrin-plus') const path = require('path') const SelectListView = require('atom-select-list') const {repositoryForPath} = require('./helpers') const getIconSer...
import i18n from "@dhis2/d2-i18n"; import {Period} from "@iapps/period-utilities"; import {cloneDeep, filter, get as _get, head, isEmpty, set as _set, some,} from "lodash"; import {atom, atomFamily, selector, selectorFamily} from "recoil"; import { getColSpanDataGroups, getColSpanWithOrgUnit, getNameCellWid...
/************** +通用方法集合 **************/ //字符串转JSON function strToJson(str) { //return $.parseJSON(str); var json = eval('(' + str + ')'); return json; } //此方法为分页方法 //pagingDiv:分页DIV, method:分页所对应的加载数据的方法, count:总数据量, pageSize:每页大小, pageIndex:当前页码 function Paging(pagingDiv, method, count, pageSize, pageIn...
function findR(part, height, arcLength) { let { raise } = part.shorthand() let iter = 0 let a = 0.5 let diff = (a * height) / (1 - Math.cos(a / 2)) - arcLength do { if (diff < 0) { a = a * (0.995 + diff / 1000) } else { a = a * (1.002 + diff / 1000) } diff = (a * height) / (1 - M...
"use strict"; const h = require("../helper/helper").default const config = require("config"); const Observer = require("asset/observer"); const keyStore = require("crypto/keyStore"); const chelper = require("crypto/helper"); const Bluebird = require("bluebird"); var loaded = false, changed = false, isLoaded = {}; is...
/** * Imports */ import React from 'react';import PropTypes from 'prop-types'; import connectToStores from 'fluxible-addons-react/connectToStores'; import {FormattedMessage} from 'react-intl'; import {Link} from 'react-router'; // Flux import CollectionDetailsStore from '../../../../stores/Collections/CollectionDeta...
/* * * ActionNew * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { actions as formActions } from 'react-redux-form/immutable'; import { Map, List, fromJS } from 'immutable'; import { getConnectionUpdatesFromFor...
"use strict"; var _createClass = function () { function i(e, t) { for (var n = 0; n < t.length; n++) { var i = t[n]; i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i) } } return function (e, ...
"use strict"; require("core-js/modules/es.array.slice.js"); require("core-js/modules/es.symbol.js"); require("core-js/modules/es.symbol.description.js"); require("core-js/modules/es.symbol.iterator.js"); require("core-js/modules/es.array.from.js"); Object.defineProperty(exports, "__esModule", { value: true }); ...
/** * CSS Constants */ export var ROOT = 'e-schedule'; export var RTL = 'e-rtl'; export var DEVICE_CLASS = 'e-device'; export var ICON = 'e-icons'; export var ENABLE_CLASS = 'e-enable'; export var DISABLE_CLASS = 'e-disable'; export var TABLE_CONTAINER_CLASS = 'e-table-container'; export var SCHEDULE_TABLE_CLASS = 'e...
/** @jsx jsx */ import { css, jsx, keyframes } from "@emotion/core"; import { useState, useEffect, useCallback } from "react"; import { bindActionCreators } from "redux"; import { connect } from "react-redux"; import { PropTypes } from "prop-types"; import { resetState as _resetStateTasks } from "../../../state/tasks"...
const cds = require('../../../cds') // requesting logger without module on purpose! const LOG = cds.log() const { uri: { UriResource: { ResourceKind: { BOUND_ACTION, BOUND_FUNCTION, ACTION_IMPORT, FUNCTION_IMPORT } } } } = require('./okra/odata-server') const { findCsnTargetFor } = require('../../.....
import mongoose from 'mongoose'; import async from 'async'; import DirectThreatsVersion from '../models/directThreats.js'; import add_objects from '../models/additionalModels.js'; import { logger } from '../../server/log'; function postDirectThreats(req, res) { var direct_threats_version = req.body; direct_th...
const require3 = require('require3'); const trimHtml = require3('@zhennann/trim-html'); const markdown = require3('@zhennann/markdown'); const markdonw_it_block = require3('@zhennann/markdown-it-block'); module.exports = app => { class Comment extends app.Service { async list({ key, options, user }) { cons...
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import ReactDOM from 'rea...
// TODO: barycentric code shouldn't be here, but where? // TODO: SphereCast? import { Vec2 } from '../math/Vec2.js'; import { Vec3 } from '../math/Vec3.js'; import { Mat4 } from '../math/Mat4.js'; const tempVec2a = new Vec2(); const tempVec2b = new Vec2(); const tempVec2c = new Vec2(); const tempVec3a = new Vec3(); ...
const dialog = require("electron").remote.dialog const fs = require('fs'); const { v4: uuidv4 } = require('uuid'); const paths = require('./../scripts/paths.js') const preview = require('../scripts/preview.js'); const sidebar = require('../scripts/sidebar.js') sidebar.create('projects') const btnNewModel = document.g...
import React from 'react'; import { View, TouchableOpacity, StyleSheet, Platform } from 'react-native'; import AutogrowInput from 'react-native-autogrow-input'; import Icon from 'react-native-vector-icons/MaterialIcons'; import ImageResizer from 'react-native-image-resizer'; import ImgToBase64 from 'react-native-im...
const pix_len = 10; const char_len = 8 * pix_len; let x_pos = 0; let y_pos = 0; const start_char = 'A'.charCodeAt(0); const end_char = 'Z'.charCodeAt(0); let now_char = start_char; let run_draw = 1; function setup() { createCanvas(400, 400); new_page(220); } function draw() { if (! run_draw) return; const a_c...
'use strict' /** * @private * @enum {string} */ const STATE = { CONNECTING: 'connecting', CONNECTED: 'connected', AUTHENTICATED: 'authenticated', DISCONNECTING: 'disconnecting', DISCONNECTED: 'disconnected', } Object.freeze(STATE) /** * @private * @enum {string} */ const EVENT = { STATE_...
#!/usr/bin/env node let ciJobNumber = require('ci-job-number') let chalk = require('chalk') if (ciJobNumber() !== 1) { process.stdout.write( chalk.yellow('Size Limits run only on first CI job, to save CI resources')) process.stdout.write('\n') process.exit(0) } let cosmiconfig = require('cosmiconfig') let ...
const Rx = require('rxjs'); const { endsWith, has, get, includes, isEqual, omit, omitBy} = require('lodash'); const { EXPORT_CSV, EXPORT_IMAGE, INSERT, TOGGLE_CONNECTION, WIDGET_SELECTED, EDITOR_SETTING_CHANGE, onEditorChange, updateWidgetLayer, clearWidgets, loadDependencies, toggleDependencySelector, DEPENDENCY_S...
const chalk = require('chalk'); const semver = require('semver'); const BaseGenerator = require('generator-jhipster/generators/generator-base'); const jhipsterConstants = require('generator-jhipster/generators/generator-constants'); const fs = require('fs'); const glob = require('glob'); const genUtils = require('../u...
// Adapted from: https://github.com/hakatashi/general-category import * as Encoding from "./Encoding.js"; import packedUnicode from "./Unicode.9.0.0.js"; function decodeVByteToIntegerArray(buffer) { const ret = []; let carried = 0; let register = 0; for (let i = 0; i < buffer.length; ++i) { cons...
import Vue from 'vue' import { find, pick, assign, isEqual, isUndefined, zip, camelCase, kebabCase } from 'lodash' import cloneElement from 'clone-element' import { prefixify } from '../../mixins/prefix' import { isInsideTransformedContainer, getStableBoundingClientRect, appendTemporaryStyle, ch...
import angular from 'angular' import '../style/app.css' /** * The digits of precision we want to display to the user * NOTE: in the current implementation, we put no precision restrictions on the numbers * subitted by the user - only on the calculated result. */ const PRECISION = 4 /** * Operator string value...
/** * The OrderTimer keeps track of how much time has been spent on the current order. * When too much time has been spent, it produces a popup message to ask the user if they need more time. * If they don't respond soon enough, then it kicks them back to the main screen. * If they click 'yes' that they do more ti...
// Frequency Counter Pattern // Create a function that accepts two arrays of numbers and checks // Whether or not the second array contains each element // in the first array squared. Return true or false. // For example, [1,2,3] and [1,4,9] // would return true, but [1,2,3] and [1,4,10] would return false ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.getIdb = getIdb; exports.createDatabase = createDatabase; exports.writeMessage = writeMessage; exports.getAllMessages = getAllMessages; exports.g...
const yt = require("ytdl-core"); const fs = require("fs"); const ytKey = Magic.config.YOUTUBEKEY; class MusicManager { constructor(guild) { this.guild = guild; this.id = guild.id; Mage.managers[guild.id] = this; this.reset(); } // TODO: Routine destroying of managers? Depends on memory reset() { thi...
//初始加载数据 function search(){ $("#checkAllBox").attr("checked", false); DMGold.ajax({"formId":"form","serialize":true,"url":"/Manage_Api/saveordersist","success":pageTagCallBack}); } function pageTagCallBack(data){ //清空表格数据 $("#grid").empty(); //填充数据 $('#temp').tmpl({list:data.pageResult.list,columnSta...
const movieQuotes = [ "\"Frankly, my dear, I don't give a damn.\" Gone with the Wind", "\"I'm gonna make him an offer he can't refuse.\" The Godfather", "\"You don't understand! I coulda had class. I coulda been a contender. I could've been somebody, instead of a bum, which is what I am.\" On the Waterfront", ...
/* * Copyright 2012 <NAME>. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
const expect = require('chai').expect; const fetch = require('node-fetch'); const path = require('path'); const fs = require('fs'); const port = 29001; function url(path) { path = path.substring(0, 1) == '/' ? path.substring(1) : path; return `http://localhost:${port}/bp/${path}`; } describe('bp', () => { ...
///////////////////////////////////////////////////////////////////// // Copyright (c) Autodesk, Inc. All rights reserved // Written by Forge Partner Development // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that...
'use strict'; import React, {Component} from 'react'; import { Dimensions, TouchableOpacity, InteractionManager, View, Text, StyleSheet, Animated, Modal, PixelRatio, ScrollView, ViewPropTypes } from 'react-native'; import PropTypes from 'prop-types'; const kDefaultItemHeigh...
var vscode = require('vscode'); var fs = require('mz/fs'); var fsExtra = require('fs-extra'); var path = require('path'); var lockPath = path.join(__dirname, '../firstload.lock'); /** * @type {(info: string) => string} */ const localize = require('./i18n'); /** * @type {'unknown' | 'win10' | 'macos'} */ const os ...
import GameState from './gameState.js'; import EndScreenState from './endScreenState.js'; import TextLabel from '../guiElements/textLabel.js'; import Panel from '../guiElements/panel.js'; import GraphicGUIElement from '../guiElements/graphicGuiElement.js'; import Collider from '../colliders/collider.js'; import Vec2 fr...
/** * @file * Example 014: Remote signer, cc, envelope has an order form * @author DocuSign */ const fs = require("fs-extra"); const docusign = require("docusign-esign"); /** * This function does the work of creating the envelope * @param {object} args object */ const createEnvelopeWithPayment = async (args) =...
const path = require('path') const _ = require('underscore-plus') const {CompositeDisposable, Emitter} = require('atom') const fs = require('fs-plus') const PathWatcher = require('pathwatcher') const File = require('./file') const {repoForPath} = require('./helpers') const realpathCache = {} module.exports = class Dir...
class BRInput { constructor(name, component) { this.name = name this.component = component this._currentFocus = -1 this._setBehavior() } _setBehavior() { this._setPasswordViewBehavior() this._setAutocompleteBehavior() } _setPasswordViewBehavior() { for (const inputPassword of this...
import React, { useEffect, useState } from "react"; import { Icon } from "@iconify/react"; import User_Image from "../assets/images/user.jpg"; import Song_Image01 from "../assets/images/carousel_Image_02.jpg"; import Song_Image03 from "../assets/images/carousel_Image_03.jpg"; import PlayButton from "../assets/svg/PlayB...
$.getJSON('/dev/api/customer', function(data){ data = $.map(data, function(partner) { return {id: partner.id, text: partner.name }; }); $(".customer").select2({ minimumInputLength: 1, multiple: false, width: 294, data: data }); }); $('.custome...
"use strict"; //a simple node server const http = require('http'); const url = require('url'); const fs = require('fs'); const vm = require('vm'); const mime_1 = require('./mime'); var NodeServer; (function (NodeServer) { class HttpService { constructor(port) { this.port = 48524; thi...
var map = null; var boxpolys = null; var directions = null; var routeBoxer = null; var distance = null; // km var service = null; var gmarkers = []; var boxes = null; var infowindow = new google.maps.InfoWindow(); // check for Geolocation support if (navigator.geolocation) { console.log("Geolocation is supported!");...
/** * Copyright reelyActive 2019 * We believe in an open Internet of Things */ // Constants const SORT_BY_OPTIONS = [ '\u21e1 transmitterId', '\u21e3 transmitterId' ]; const SIGNATURE_SEPARATOR = '/'; const DIRACT_PACKET_SIGNATURE = 'ff830501'; // TODO: rename to PROXIMITY const DIRACT_DIGEST_SIGNATURE = '...
/* * Copyright 2012 <NAME>. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
export const bigChain = `table bigChain "bigChain pairwise alignment" ( string chrom; "Reference sequence chromosome or scaffold" uint chromStart; "Start position in chromosome" uint chromEnd; "End position in chromosome" string name; "Name or ID of item, ideally both human read...
'use strict'; chrome.runtime.onInstalled.addListener(details => { console.log('previousVersion', details.previousVersion); }); function showOptionsPage() { chrome.runtime.openOptionsPage(); } //chrome.browserAction.setBadgeText({text: '\'Allo'}); //chrome.browserAction.onClicked.addListener(showOptionsPage); //...
import padStart from 'lodash/padStart'; import Swal from 'sweetalert2'; import i18n from 'i18next'; import randomColor from './random-color'; const path = window.require('path'); const fs = window.require('fs-extra'); const open = window.require('open'); const electron = window.require('electron'); // eslint-disable-...
import child_process from "child_process"; import path, { dirname } from "path"; import { fileURLToPath } from "url"; import ps from "ps-node"; import watch from "node-watch"; import fs from "fs"; import { kill as killPortProcess } from "cross-port-killer"; import chokidar from "chokidar"; import Loader from "../../lib...
'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 ("va...
'use strict'; //VARIABLES--------------------------------------------------------------------------------------- //filter const input = document.querySelector('.js_input'); const searchBtn = document.querySelector('.js_search_btn'); //favorites const favoritesResults = document.querySelector('.js_results_favorites'); ...
/** * @file Manages the root configuration settings for webpack. * @see {@link https://webpack.js.org/} For further information. */ const path = require('path'); const childProcess = require('child_process'); const webpack = require('webpack'); const merge = require('webpack-merge'); const TerserPlugin = require('t...
/*! * Razor * Copyright(c) 2012 <NAME> <<EMAIL>> * MIT Licensed */ /** * Module dependencies. */ var Rules = require( './rules' ), HtmlString = require( './htmlstring' ), Html = require( './html' ), Utils = require( './utils' ); var Parser = function( str, options ) { this.options = options = options || {...
'use strict' const API = require('../../../api') const async = require('async') const helper = require('../../lib/agent_helper') const tap = require('tap') const url = require('url') const START_PORT = 10000 const MIDDLE_PORT = 10001 const END_PORT = 10002 const ACCOUNT_ID = '1337' const APP_ID = '7331' const EXPECTE...
'user strict'; /** * @author <NAME> - <<EMAIL>> */ // const assertRevert = require('../helpers/assertRevert'); const assertGasEstimate = require('./helpers/assertGasEstimate'); const TokenProxy = artifacts.require('mock/TokenProxyMock.sol'); const TokenDelegate = artifacts.require('mock/TokenDelegateMock.sol'); con...
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; import EditConnectedAccount from './EditConnectedAccount'; import { groupBy } from 'lodash'; import { capitalize } from '../lib/utils'; import InputField from './InputField'; import ...
let $dragging = function() { var data = null; var type = null; return { getData: function () { return data; }, getType: function () { return type; }, setData: function (newData) { data = newData; return data; },...
var expect = require('chai').expect var types = require('../types') var validate = require('../') var validatorFor = validate.validatorFor var suite = require('./suite') var testType = suite.testType var describeWithDatabase = suite.describeWithDatabase var dates = [ '1999-01-08', '1999-Jan-08', '08-Jan-1999', 'J...
import React from 'react' import { RichText } from 'prismic-reactjs' import { useState } from 'react' import { StarIcon } from '@heroicons/react/solid' import { RadioGroup } from '@headlessui/react' //test of overriding html (serializer) import htmlSerializer from './../../tools/htmlSerializer' const product = { n...
import moment from "moment"; import * as countryAssistant from "./country-assistant"; import {sanitizeExtraSpaces, sanitizeNewLines} from "eh_helpers/dataSanitizers"; const graphAssistant = require("./graph-assistant"); const crawler = require('crawler-request'); const hash = require('object-hash'); const findParseUR...
// Save Test Status regarding the commercial or Medicare var error_status = 0; function saveCnTests() { error_status = 0; prac_code_err = 0; ins_check_err = 0; $('.tests_tab_row').each(function(id,elem){ var prac_cpt_cl_val = $(elem).find('.prac_cpt_cl').val(); if($.trim(prac_cpt_cl_val) == ""){ top.fAlert...
/* * Thickbox 2.1 - Animated slideshow gallery. * By <NAME> (http://www.codylindley.com) * Copyright (c) 2006 <NAME> * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php * Thickbox is built on top of the very light weight jQuery library. */ //on page load call TB_init $(docum...
/*Code of Minmax here*/ var board = [ [0, 0, 0], [0, 0, 0], [0, 0, 0], ]; var HUMAN = -1; var COMP = +1; /* Function to heuristic evaluation of state. */ function evalute(state) { var score = 0; if (gameOver(state, COMP)) { score = +1; } else if (gameOver(state, HUMAN)) { score = -1; } else { score = ...
window.onload = init; function init() { // THREERoot is a simple THREE.js wrapper with a renderer, scene and camera // it handles an RAF loop and resizing var root = new THREERoot({ createCameraControls: true, antialias: (window.devicePixelRatio === 1), fov: 60, }); root.renderer.setClearColor(0x...
/* eslint-disable no-unused-vars */ import { Button, Card, Heading1, Heading3 } from "@emjpm/ui"; import { SquaredCross } from "@styled-icons/entypo/SquaredCross"; import { FieldArray, FormikProvider } from "formik"; import React from "react"; import { Box, Flex } from "rebass"; import yup from "../../../lib/validatio...
import React, { Component } from "react"; import { GlobalStyles } from "../css/global"; import axios from "axios"; import MobileNavbar from "../components/mobileNav/MobileNavbar"; import PageSidebar from "../components/pageSidebar/PageSidebar"; import MusicGroup from "../components/music/Music"; import MainPanel from "...
/* * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
import * as dddif from './lib/diff.js'; function html2text(html) { html = html.toString(); html = html.replace(/<style([\s\S]*?)<\/style>/gi, ''); html = html.replace(/<script([\s\S]*?)<\/script>/gi, ''); html = html.replace(/<\/div>/ig, '\n'); html = html.replace(/<\/li>/ig, '\n'); html = html.replace(/<l...
// ======================== // User Auth Routing // ======================== // Packages const express = require('express'); const passport = require('passport'); const passwordHash = require('password-hash'); const fun = require('../functions'); const mid = require('../middleware'); // Models const User = require('....
import React, { useState } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { useDispatch, useSelector } from 'react-redux'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import Grid fro...
var express = require("express"); var moment = require("moment"); var http = require('http'); var request = require('request'); var fs = require('fs'); var Q = require('q'); var cors = require('cors'); var app = express(); var port = process.env.PORT || 7000; var baseDir ='http://nomads.ncep.noaa.gov/cgi-bin/filter_gf...
/* * grunt-electron-app-builder * https://github.com/vtherli/grunt-electron-app-builder * * Copyright (c) 2015 <NAME> * * Licensed under the Apache 2.0 license. */ var path = require('path'); var fs = require('fs'); var request = require('request'); var async = require('async'); var wrench = require('wrench'); ...
'use strict'; const _ = require('lodash'); const { set } = require('lodash/fp'); const { generateTimestampCode, stringIncludes } = require('strapi-utils'); const { SUPER_ADMIN_CODE } = require('./constants'); const { createPermission } = require('../domain/permission'); const ACTIONS = { publish: 'plugins::content-...
var stage, w, h, loader, pipe1height, pipe2height, pipe3height, startX, startY, wiggleDelta, topFill, background, bird, ground, pipe, bottomPipe, pipes, rotationDelta, counter, counterOutline, highScore, highScoreOutline, started = !1, startJump = !1, jumpAmount = 120, jumpTime = 266, dead = !1, KEY...
import { locate } from 'locate-character'; const keywords = /\b(case|default|delete|do|else|in|instanceof|new|return|throw|typeof|void)\s*$/; const punctuators = /(^|\{|\(|\[\.|;|,|<|>|<=|>=|==|!=|===|!==|\+|-|\*\%|<<|>>|>>>|&|\||\^|!|~|&&|\|\||\?|:|=|\+=|-=|\*=|%=|<<=|>>=|>>>=|&=|\|=|\^=|\/=|\/)\s*$/; const ambiguous...
$(window).on ("load", function () { if ($(window).width() <= 980) { $(".here").addClass("col-12"); $(".here").removeClass("col-6"); } if ($(window).width() <= 500) { if($("#lbefni").hasClass("ccheck") == false) { $("#lbefni").addClass("ccheck"); $(".flokkar").html("<span clas...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
// Copyright 2020 The Google Research 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...