text
stringlengths
3.07k
16k
/** * @ngdoc module * @name material.components.dialog */ angular.module('material.components.dialog', [ 'material.animations', 'material.services.compiler', 'material.services.aria' ]) .directive('materialDialog', [ '$$rAF', MaterialDialogDirective ]) .factory('$materialDialog', [ '$timeout'...
class Search { // init object constructor() { this.body = document.querySelector('body') this.openButton = document.querySelector('.search-trigger') this.closeButton = document.querySelector('.search-overlay__close') this.searchOverlay = document.querySelector('.search-overlay') this....
import "./style.css"; import * as THREE from "three"; import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js"; import * as dat from "dat.gui"; //loading const textureLOader = new THREE.TextureLoader(); const normalTexture = textureLOader.load("/textures/NormalMap.png"); // Debug const gui = new ...
'use strict'; const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const chalk = require('chalk'); const path = require...
import "./index.less"; import options from '@/consts/options'; import { isPostPage } from '@consts/tools'; import { throttle, getClientRect } from '@utils/tools'; function buildToolbar() { $('body').append(`<div class="esa-toolbar"> <div class="bars"><i class="fa fa-ellipsis-h"></i></div> <span cla...
var util = require("./util.js"); var maximage = require("../userscript.user.js"); var process_strings = function(internal) { /*for (var string in strings) { if (!("en" in strings[string])) { strings[string]["en"] = string; } }*/ var settings_meta = internal.settings_meta; var settings = internal.settings; ...
const BaseLayoutComponent = require('./base-layout-component.js'); const Container = require('./container.js'); const Text = require('./text.js'); const StackVertical = require('./stack-vertical.js'); const StackHorizontal = require('./stack-horizontal.js'); const { Alignment } = require('./enums'); const { Offset } = ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _asyncTo...
import '../../fn/modules/stream.wait.js'; import Stream from '../../fn/modules/stream.js'; import Event from './event.js'; import features from './features.js'; const assign = Object.assign; const rspaces = /\s+/; function prefixType(type) { return features.events[type] || type ; } // Handle event types // DOM ...
import React, { useState, useContext, useCallback } from 'react'; import CssBaseline from '@material-ui/core/CssBaseline'; import useMediaQuery from '@material-ui/core/useMediaQuery'; import { ThemeProvider, createMuiTheme } from '@material-ui/core/styles'; import EmptyIcon from '@material-ui/icons/Block'; import { Sna...
const _ = require('lodash') const moment = require('moment') const { getExtent, getGeomType, getHasZ, isTable } = require('./utils') const { computeFieldObject, createFieldAliases, createStatFields } = require('./field') const { normalizeSpatialReference, computeExtent } = require('./geometry') const { createClassBreak...
import {constantRoutes, endRoutes} from '@/router' import Layout from '@/components/common/Home.vue' import {getUserMenu} from '@/api/router' // import { getUserMenu } from '@/api/index' import {deepClone} from '@/utils/util' /** * Use meta.role to determine if the current user has permission * @param roles * @para...
import React, { useState, useEffect } from "react"; import { axiosWithAuth } from "./axiosWithAuth"; import { useDispatch } from 'react-redux'; import { connect } from 'react-redux'; import AddForm from './AddForm'; const defaultProfile = { firstname: "", lastname: "", username: "", primaryemail: "", ...
"use strict"; var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); var _assign = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/assign")); var _construct2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/construct")); var _definePropert...
import React, { useContext, useRef, useEffect, useState } from 'react'; import { MDXProvider } from '@mdx-js/react'; import global from 'global'; import { resetComponents, Story as PureStory, StorySkeleton } from '@storybook/components'; import { toId, storyNameFromExport } from '@storybook/csf'; import { addons } from...
module.exports = Builder; var async = require('async'); var child_process = require('child_process'); var fs = require('fs'); var path = require('path'); var https = require('https'); var http = require('http'); var os = require('os'); var OpalCompiler = require('./opal-compiler.js'); var log = require('bestikk-log');...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Fragment } from 'react'; import { Butto...
const express = require('express'); const expressWs = require('express-ws'); const { Observable } = require('./rxjs'); const { IntervalManager } = require('./interval-manager'); const { SessionManager } = require('./session-manager'); const { PollManager } = require('./poll-manager'); const { SocketMonitor } = requir...
import { Link } from "gatsby" import PropTypes from "prop-types" import React from "react" import "./header.css" import "./header-dt.css" import "./header-mob.css" //import console = require("console"); const pageData = [ { link: "", title: "Home" }, { link: "classes/", title: "Yoga Classes", more: [ ...
import {SPECS} from 'battlecode'; import {CommonSource} from './common.js'; import {find_path} from './astar.js'; const unit_ring = [[0, -1], [0, 1], [-1, 0], [1, 0], [-1, -1], [-1, 1], [1, -1], [1, 1]]; const unit_ring_length = 8; export class ProphetSource extends CommonSource { constructor() { super(); t...
import { findExtension } from '../../tournamentEngine/governors/queryGovernor/extensionQueries'; import { modifyEntryProfile } from '../governors/entryGovernor/modifyEntryProfile'; import { getEntryProfile } from './getEntryProfile'; import { findStructure } from './findStructure'; import { ROUND_TARGET, TALLY } from ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.ElementGroup = 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; descr...
/*eslint-env mocha*/ 'use strict'; process.env.NODE_ENV = 'nsmockup'; var fs = require('fs'), nscabinet = require('../.'), should = require('should'), vinyl = require('vinyl-fs'), del = require('del'); function randContent() { return 'content' + Math.ceil(Math.random() * 10000); } describe('ns...
import OSS from 'ali-oss' import { request } from '@/plugins/axios.js' import config from '@/config/index.js' const rule = { accept: '', // 也可以是数据, 如 ['jpg', 'png', 'jpeg], 不需要加点 size: { width: 0, height: 0, scale: 1 }, // 图片尺寸,scale 代表比例范围 limit: { min: 0, max: 2, unit: 'MB' } // 文件大小 } const option = { numbe...
// ===== Scroll to Top ==== $(window).scroll(function() { if ($(this).scrollTop() >= 50) { // If page is scrolled more than 50px $('#return-to-top').fadeIn(200); // Fade in the arrow } else { $('#return-to-top').fadeOut(200); // Else fade out the arrow } }); $('#return-to-top')....
$(document).ready(function(){ // $('#test').click(function(){ // var popup_title = 'test'; // var popup_loading_details = 'test'; // loading_popup(popup_title, popup_loading_details); // }); get_message(); show_delete_dialog(); show_reply_form(); send_reply_email(); }) function show_delete_dialog() { ...
var sidebarLeft; var statusBar; var sidebarRight; var sbr = function(){ var css = document.createElement('style'); css.innerHTML += 'h1 { margin: 0; min-width: 200px; }' + '#sbl { background-color: #eee; outline: 1px solid; left: 30px; margin: 10px; opacity: 0.8; padding: 10px; position: absolute; ' +...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { isEmpty } from 'lodash'; import moment from 'moment'; moment.locale('nl'); import { fetchContacts, clearContacts, setCheckedContactAll } from '../../../actions/contact/ContactsActions'...
const SIZE = 9; const DIGITS = [1, 2, 3, 4, 5, 6, 7, 8, 9] function testMatrixCell(matrix, row=0, col=0, num = 0) { { // console.log("tester",col,row, num) //duplicate in row //console.log(row,col,num) for (let i = 0; i < SIZE; i++){ //console.log(matrix[row][i]) if ((i != col) && (matrix[r...
// Phantombuster configuration { "phantombuster command: nodejs" "phantombuster package: 4" "phantombuster dependencies: lib-StoreUtilities.js, lib-LinkedIn.js" const Buster = require("phantombuster") const buster = new Buster() const Nick = require("nickjs") const nick = new Nick({ loadImages: true, userAgent: "Mo...
import ProfileSidebar from "components/sidebar/profile-sidebar"; import {Col, Form, Row} from "react-bootstrap"; import React, {useContext, useEffect, useState} from "react"; import {formatRemainingCharacters, toastAwait, toastError, toastSuccess, toastWarning} from "components/util/utils"; import AppContext from "cont...
import uuidv4 from 'uuid/v4'; import { ChannelPrototype } from './common'; class SWChannel extends ChannelPrototype { constructor (options) { super(options); // init clients this._clients = {}; // create sw id this._sw_id = uuidv4(); // bind message event to self global.addEventListener...
'use strict'; const mongoose = web.require('mongoose'); const Schema = mongoose.Schema, ObjectId = Schema.ObjectId; module.exports = { schema: { msg: {type: String, required: true, trim: true}, user: {type: ObjectId, ref: 'User', required: true}, topic: {type: ObjectId, ref: 'ForumsTopic',...
/** * * Header * */ import { AppBar, Box, Button, Container, Divider, IconButton, List, ListItem, ListItemIcon, ListItemText, makeStyles, SwipeableDrawer, Toolbar, Typography, } from '@material-ui/core'; import LogoSGFT from 'images/main-logo.png'; import Banner from 'images/banner-01.j...
const utils = require("./../utils"); const Placeholder = require('./../Placeholder'); const hbsUtils = require("./../hbsUtils"); const logger = utils.createLogger({sourceFilePath: __filename}); function PlaceholderFactory({runtime,composer}){ /** * @type {ProtostarRuntime} */ this.runtime = runtime; ...
// @ts-check function defineProperties(target, descriptions) { /* eslint-disable-next-line guard-for-in */ for (const property in descriptions) { Object.defineProperty(target, property, { configurable: true, value: descriptions[property], }); } } const privates = new WeakMap(); export const...
// Script for updating the exemplary body of POST-request to /experiments // Also exports that data in the formats required for usage with the GUI of // fmpy and Dymola 'use strict' // Load modules const _ = require('lodash') const { URL } = require('url') const fs = require('fs-extra') const request = require('reque...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.ssrEntries = void 0; var _webpack = require("next/dist/compiled/webpack/webpack"); var _utils = require("../../../shared/lib/router/utils"); var _constants = require("../../../shared/lib/constants"); var _constant...
require('./common.js'); const fs = require('fs'); const async = require('async'); const csv = require('csv-parser'); const colors = ['#F7464A', '#46BFBD', '#FDB45C', '#AF8FE8', '#FF59B6', '#949FB1']; process.on('message', function(req) { var resObj = new Object(); // result resObj.wideect resObj.wide = new Obje...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { reduxForm } from 'redux-form'; import * as actions from '../../actions/reservationsActions'; import Alert from '../UI/alerts'; import moment from "moment"; import Loader from './../UI/loader'; import TextInput from './../UI/forms/...
const { NetworkType, TransferTransaction } = require('@dhealth/sdk'); const dhealth_utils = require('./lib/cjs/index'); const SimpleWallet = dhealth_utils.SimpleWallet; run(); runHD(); async function run() { /** * create account */ const acc = dhealth_utils.AccountUtil.generateAccount(152); cons...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function promisify(vol, fn, getResult) { if (getResult === void 0) { getResult = function (input) { return input; }; } return function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args...
//codigo para controlPanel //-------zoom var zoomOut = document.getElementById('zoomOut'); var zoomIn = document.getElementById('zoomIn'); var zoom = document.getElementById('zoom'); zoom.addEventListener("change", zoomzoom); var valorZoomMap = map.getZoom();//obtiene el valor del zoom al ini...
export {default as MX001} from './cd_template_MX001.png'; export {default as MX002} from './cd_template_MX002.png'; export {default as MX003} from './cd_template_MX003.png'; export {default as MX004} from './cd_template_MX004.png'; export {default as MX005} from './cd_template_MX005.png'; export {default as MX006} from...
const fs = require('fs'); const md5 = require('md5'); //include custom matchers const styleMatchers = require('jest-style-matchers'); expect.extend(styleMatchers); const htmlPath = __dirname + '/index.html'; const html = fs.readFileSync(htmlPath, 'utf-8'); //load the HTML file once const jsPath = __dirname + '/js/ind...
"use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.MappingFieldRenderer = exports.MappingField = exports.Store = void 0; var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var factory_1 = require("../factory"); var WithStore_1 = require(".....
import {_vue as Vue} from './index'; import {debounce, errMsg, isFunction, isString, isUndef, isValidChildren} from '@form-create/utils'; import VNode from '../factory/vNode'; import VData, {vdataField} from '../factory/vData'; const $de = debounce((fn) => fn(), 1); export default class Render { constructor(hand...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import { Col, Row } from 'react-bootstrap'; import { connect } from 'react-redux'; import { reset, formValueSelector, SubmissionError }...
$(document).ready(function() { google.charts.load("current", {"packages": ["corechart"]}); $("#buttonAdd").click(function() { textUrl = $("#url"); if (textUrl.val().length == 0) return; buttonAdd = $("#buttonAdd"); buttonBrowse = $("#buttonBrowse"); loading = $...
// // ---Retro Button--- // var buttons = document.querySelectorAll('.btn'); for(var i = 0; i < buttons.length; i++) { // Click buttons[i].addEventListener('mousedown', function() { this.classList.add('btn-active'); }); buttons[i].addEventListener('mouseup', function() { this.classList.remove('btn-acti...
var canvas = document.getElementById('the-canvas'); var ctx = canvas.getContext('2d'); ctx.strokeStyle = 'red'; ctx.lineWidth = 2; //ctx.strokeRect(0,20,20,20); var newX, newY, finalResult; var snake = function snake() { var body; return { init: function (d, x, y) { body = []; ...
import React from 'react'; import { connect } from 'dva'; import { Link, browserHistory } from 'dva/router'; import { Table, Row, Col, Form, Input, Select, Button, Switch, Modal, Popconfirm, message } from 'antd'; import { formatMobile } from '../../components/commons/Commons'; import LesseeDetail from '../../component...
import React from "react"; class UpdateFiles extends React.Component { constructor(props){ super(props) this.vao_token = this.props.vao_token this.state = { loading: true }; this.layers = [] } render(){ if (this.state.loading) { return( ...
/** * Utility for obtaining pixel offsets for images and text * These are loaded either 'on-demand' (via the load function), or * by a lazy load since image rendering on the separate canvas is a bit slow * TODO: Chunk the lazy load operation, or use webworkers */ var _ = require('underscore'); var registered = ...
import React, { Component } from 'react'; import { connect } from 'react-redux' import { Typography } from '@material-ui/core'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Box from '@material-ui/core/Box'; import Dialog from '@material-ui/core/Dialog'; im...
//This is a very old script, so it's not done very conveniently here. //Perhaps this script will be updated print("//help"); print("[Server IAT] Loading..."); print("By @Ni6H7"); var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get(); function chatHook(text) { if (text == "//info") { print(...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React from 'react'; import { i18n } from '@kbn/i18n'; import { getNa...
const startButton = document.getElementById('start-btn') const nextButton = document.getElementById('next-btn') const questionContainerElement = document.getElementById('question-container') const stop=document.getElementById('stop'); const questionElement = document.getElementById('question') const answerButtonsElemen...
import React from 'react'; import { string, func, shape, oneOf, node, bool, number } from 'prop-types'; import { Editor, EditorState } from 'draft-js'; import EditorUtilities from './EditorUtilities'; import { sizeTypes, inputToTagsSize, statusTypes, dataHooks, } from './constants'; import ErrorIndicator from ...
import React, { useEffect, useState } from 'react' import { Button, FormGroup, Input, Row, Col, Modal, Form, } from "reactstrap"; import { useForm } from "react-hook-form"; import { useDispatch, useSelector } from "react-redux"; import { resetSendMail } from "../../redux/actions/Common"; import { sendmail...
/* eslint-disable react-hooks/exhaustive-deps */ import React, {useState, useEffect, useRef} from 'react'; import {Button, Header, Icon, Modal, Form as AForm} from 'semantic-ui-react'; import DatePicker from 'react-datepicker'; import 'react-datepicker/dist/react-datepicker.css'; import {strEqual, successToast, error...
letsPlay = () => { $("#intro-text").fadeOut(2e3), $(".hidePlayerOne").fadeIn(2e3); }; let player1 = "", player2 = ""; function hideThem(e, r, o, t) { "" == e ? $("#" + r).toggleClass("shake") : ($("." + o).hide(), $("." + t).fadeIn(2e3)); } $(document).on("click", ".nextPlayerTwo", () => { (player1 = $("#player...
import PropTypes from 'prop-types'; export const DOMNodePropType = (props, propName, componentName) => { if (props[propName] instanceof HTMLElement) { return null; } else { return new Error( `Invalid prop '${propName}' supplied to '${componentName}'. Value is not DOM element.`, ); } }; export ...
function keyValue(args, getter, setter){ var attrs = {}, keys, key = args[0], value = args[1]; if(typeof key === 'object'){ attrs = key; }else if(args.length === 1){ return this[0] ? getter(this[0]) : null; }else{ attrs[key] = value; }; ...
import { useRouter } from "next/dist/client/router"; import React, { useEffect, useState } from "react"; import { createUseStyles } from "react-jss"; import { counterTrade, createTrade, getTradeDetails } from "../../services/trades"; import { getUserInfo } from "../../services/users"; import AuthenticationStore from "....
try{FOIMachine = FOIMachine;}catch(err){FOIMachine = {};} FOIMachine.events = FOIMachine.events !== undefined ? FOIMachine.events : _.extend({}, Backbone.Events); FOIMachine.templates = FOIMachine.templates !== undefined ? FOIMachine.templates : {}; FOIMachine.templates.governmentSummaryTemplate = '\ <div class="item...
import React from 'react'; import QRCode from 'qrcode.react'; import PropTypes from 'prop-types'; function Donation({ globalInfo }) { const bitcoinURI = `bitcoin:${globalInfo.donation.bitcoin}?message=Donation`; return ( <div className="donation"> <h2 className="header"> Please donate to help me ...
const { StateMachine, State, Action, StateAction } = require('./state-machine'); const { ONECOINACTIONS, getNumberOfCombinations, BOOKCOMBINATIONS, } = require('./defaults.js'); const MIN_TRADE = { 'ETH-USD' : .01, 'LTC-USD' : .1 } class ExchangeWorld...
import React, { Component } from "react"; import { SugarComponent, BackButton, ExternalLink, EthereumWrapper, EtherscanTxLink, EtherscanAddressLink, truncateStr, WithPendingTransaction, uploadStringToIpfs, uploadFileToIpfs, ipfsCat, ipfsURL, NewPostInput, isValidEthAddress, ZERO_ADDRESS } ...
autowatch = 1; outlets = 2; var { m4x } = require('m4x'); var mg; var outputmatrix; var m4; var width; var height; var pointcount = 1500; var pointindex = 0; var lissajous_points = []; var freqX = 13; var freqY = 11; var phi = 97; var mod_freqX = 0; var mod_freqY = 0; var mod_freq2X = 11; var mod_freq2Y = 17; var mo...
var Handlebars = require('handlebars'); var libpath = require('path'); var Swag = require('swag'); var escape = Handlebars.Utils.escapeExpression; Swag.registerHelpers(Handlebars); // -- Helpers ------------------------------------------------------------------ Handlebars.registerHelper('getFlashObj',function get...
var Request = require('request'); var Async = require('async'); var Url = require('url'); var string = require('string'); var _ = require('underscore'); _.str = require('underscore.string'); var debug = false; var ResponseHandler = function(meta) { // TODO this.meta = meta; this.handle = function(error, response...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
import React, {Component, Fragment} from 'react' // import PNG5 from 'png5' import PNG5 from '../../dist/index' import P5 from '../../wrappers/P5Wrapper' import flowSketch from './flowSketch' class White extends Component { constructor(props) { super(props) this.state = { noi...
/* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ // Tests AddonManager.strictCompatibility and it's related preference, // extensions.strictCompatibility, and the strictCompatibility option in // install.rdf // Always compatible var addon1 = { id...
const url = require('url'); const querystring = require('querystring'); const Anesidora = require('anesidora'); const Fuse = require('fuse.js'); const settings = require('../../settings'); function getPandoraMetadata(id, title, serviceType) { return `<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp=...
import React from 'react'; import { connect } from 'react-redux'; import {Button , Table,Cascader,Form,Input,Popconfirm,Modal ,Checkbox } from 'antd'; import tableUtil from '../../../../util/tableUtil'; const FormItem = Form.Item; const EditableContext = React.createContext(); const EditableRow = ({ form, index, .....
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
'use strict' const v1 = { js_native_api_symbols: [ 'napi_adjust_external_memory', 'napi_call_function', 'napi_close_escapable_handle_scope', 'napi_close_handle_scope', 'napi_coerce_to_bool', 'napi_coerce_to_number', 'napi_coerce_to_object', 'napi_coer...
import React from "react"; import { WafoForm, WafoFormInput, WafoFormMultiSelect, WafoFormAutocomplete, WafoFormTextArea } from "forms"; const TestForm = () => { const [initialValues, setInitialValues] = React.useState({ eluno: "", elanidado: "Y el anidado", maximoanidados: "ojala" // auto:...
import { alignment } from './utils.js' const re = { delimiter: /(\{.+\})/g, newline: /\\N/g, bold: { start: { from: /\\b1/g, to: '<b>' }, end: { from: /\\b0/g, to: '</b>' } }, italic: { start: { from: /\\i1/g, to: '<i>' }, end: { from: /\\...
/** * Created by <NAME> on 11/18/2017. */ import Product from '../models/product.model'; import mongoose from 'mongoose'; import axios from 'axios'; import config from '../../config/config' const walmartApiEndpoint=config.walmartSearchAPI.apiEndPoint; const walmartApiKey=config.walmartSearchAPI.apiKey; /** * Quer...
/** Group Represents a group used to organize contacts within Telerivet. Fields: - id (string, max 34 characters) * ID of the group * Read-only - name * Name of the group * Updatable via API - dynamic (bool) * W...
jq(function() { var patientTable; jq('#patient-age').formatter({ 'pattern': '{{999}}', 'persistent': true }); tbl = $("#patient-table").DataTable({ responsive: true, 'columnDefs': [{ "orderable": false, "targets": [2,5,6,7] }, { ...
/** * Module to prepare minimized and compressed version of page dependence files * @author <NAME> <<EMAIL>> */ //'use strict'; var program = require('commander'), cheerio = require('cheerio'), wrench = require('wrench'), uglify = require('uglify-js'), path = require('path'), cleanCss = new (require...
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Lesson_Cards.css'; import Link from '../../../../Link'; import axios from 'axios'; //import helper import { ENGTOWN_API} from '../../../../../helper/constant/Site'; import Au...
/** * Gulp Packages */ // General var gulp = require('gulp'); var fs = require('fs'); var del = require('del'); var lazypipe = require('lazypipe'); var plumber = require('gulp-plumber'); var flatten = require('gulp-flatten'); var tap = require('gulp-tap'); var rename = require('gulp-rename'); var header = require('g...
/** * @file src/components/logger/index.ts * @copyright 2018-present HireFast Inc. All rights reserved. */ import * as os from 'os' import * as Sentry from '@sentry/node' import chalk from 'chalk' import createDebug from 'debug' import { createLogger, format, transports } from 'winston' import * as Config from '....
// Name uniforms here, appear as fields in uniforms object from initUniforms() const myUniforms = [ "resolution", "time", "mouse", "tex", ]; // Store variables here, used in setting uniforms below const vars = {time: 0, dt: 0, mouse: {x: 0, y: 0}}; // Sets uniforms at start of program function setupUniforms(gl,...
/* * Copyright 2018 LinkedIn Corp. * * 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 ag...
import React from "react"; import "echarts-gl"; import ReactEcharts from "echarts-for-react"; import { buildEmphasisString, buildTooltipDom, getPointSizeFromMu, decideColors, mapIndices, pushAnchors2D, findClosestAnchorPoint, } from "../utils"; import { toolbox, legend, dataZoom2D } from "./CommonEchartOp...
import React from 'react'; import PropTypes from 'prop-types'; import { bemClass } from '../../../helpers/bem'; import Link from '../../../Link'; import CheckBox from '../../../Form/CheckBox'; import ChevronRightIcon from '../../../Icons/ChevronRight'; import MoreIcon from '../../../Icons/More'; import DropdownItemEd...
/** * Created by Xingheng on 1/31/17. */ import { _, console_with_prefix } from './utils'; // eslint-disable-line camelcase import { attemptParseBuffer, attemptParseText } from './parsers'; var logger = console_with_prefix('capture'); var HTTP_PROTOCOL = (('http:' === (document && document.location.protocol)) ? 'h...
import React, { useEffect, useState } from 'react'; import { useForm } from 'react-hook-form'; import {connect } from 'react-redux' import { fetchClasses } from '../state/appActions' import styled from 'styled-components'; // name, instructor_name, type, intensity,location, date, max_size, duration, signedUp // Style...
var xlsReader = require('xlsx'); var csv = require('fast-csv'); var restify = require('restify'); var _ = require('underscore'); var S = require('string'); var sw = require('./searchWord'); var pages; var tags; var map; var filtro; var pageList = getPageList(); function getPageList(){ pages = {}; path = "produtos m...
'use strict' // **** Dependencies **** // Keep some stuff secret in here require('dotenv').config(); // Is it plugged in? const express = require('express'); const app = express(); // Fly away and bring things back const superagent = require('superagent'); //Database Stuff const pg = require('pg'); const client = ...
const express = require('express'); const http = require('http'); const bodyParser = require('body-parser'); const path = require('path'); const config = require('./config/config.json'); const log = require('console-log-level')({ level: config.server.logLevel }) const SpotifyWebApi = require('spotify-web-api-node'); ...
// var obj = document.getElementsByClassName("infinite-list-viewport")[0].getElementsByClassName("infinite-list-item infinite-list-item-transition"); // var topOfList = document.getElementsByClassName("_2wP_Y"); // topOfList.scrollTop = 50; // old = $("div.drawer-body").scrollTop() // $("div.drawer-body").scrollT...
/* eslint-disable no-undef */ /* eslint-disable no-unused-vars */ 'use strict'; function getRandomNum() { return Math.floor(Math.random() * BusMall.allObject.length); } let leftImg = document.getElementById('leftImg'); let centerImg = document.getElementById('centerImg'); let rightImg = document.getElementById('r...
/* Copyright (c) 2019 Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ import * as React from 'react'; import Popover from '@miksu/react-tiny-popover'; import { useValueDebounce, PropTypes, Error, Editor } from '../index'...