text
stringlengths
3.22k
29.5k
/** * * Copyright 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to use, * copy, modify, merge, publish, ...
const canvas = document.getElementById("canvas"); const docElement = document.documentElement; const renderingPopupBg = document.getElementById("renderingPopupBg"); const settingsPopup = document.getElementById("settingsPopup"); const reInputField = document.getElementById("reInput"); const imInputField = document.ge...
import React, { useState, useContext, useEffect, useRef } from 'react' import { Dimensions, StyleSheet, View, Text } from 'react-native' import Svg, { Circle, Ellipse, G, Text as SvgText, TSpan, TextPath, Path, Polygon, Polyline, Line, Rect, Use, Image, Symbol, Defs, LinearGradient, RadialGradient, Stop, ClipPath, Patt...
var asc = function (a,b) { return a - b; }; var api = module.exports = { sigFigs: function (n, sig) { var mult = Math.pow(10, sig - Math.floor(Math.log(n) / Math.LN10) - 1); return Math.round(n * mult) / mult; }, // Returns sum of data set sumOfData: function (data) { return data.re...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _isNan = require('babel-runtime/core-js/number/is-nan'); var _isNan2 = _interopRequireDefault(_isNan); var _stringify = require('babel-runtime/core-js/json/stringify'); var _stringify2 = _interopRequireDefault(_stringify); var _g...
import Page from './page'; import utl from '../../utilities/common-utilities' const path = require('path'); class AddProduct extends Page { /* * define elements */ get adminBarLink() { return $('//a[@class="administration"]'); } get catalogMenu() { return $('//span[contains(t...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.FieldId = void 0; var _extends2 = _in...
// Expects FOAM to already be loaded globally, and MongoDB's Node module to be installed. var mongo = require('mongodb'); global.MongoDAO = FOAM({ model_: 'Model', extendsModel: 'AbstractDAO', name: 'MongoDAO', label: 'MongoDB DAO', properties: [ { name: 'model', label: 'Model', type...
"use strict";var exports=module.exports={}; Object.defineProperty(exports, "__esModule", { value: true }); var _assign = require('../../npm/babel-runtime/core-js/object/assign.js'); var _assign2 = _interopRequireDefault(_assign); var _classCallCheck2 = require('../../npm/babel-runtime/helpers/classCallCheck.js')...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var _extends = _interopDefault(require('@babel/runtime/helpers/esm/extends')); var _objectWithoutPropertiesLoose = _interopDe...
var canvas; var ctx; var mrP; var mrG; var mrE; var mrPr; var mrD; var MAX = 196;//196 var FPS = 60; var cellSize = 35; var score = 0; var moving = false; const wall = new Image(); const packman = new Image(); const ghost = new Image(); const point = new Image(); const menu = new Image(); menu.src = "menu.png"; wa...
// [ ] Faça um programa que SOME 2 números const number1 = 37 const number2 = 5 const sumTwoNumbers = number1 + number2 console.log(`O resultado do 1° exercicio é => ${sumTwoNumbers}`) console.log('========================================================') // [ ] Faça um programa que multiplique 2 números e...
/* eslint-disable prettier/prettier */ const findUp = require("find-up"); const fs = require("fs"); const homedir = require("homedir"); const truncate = require("cli-truncate"); const wrap = require("wrap-ansi"); const pad = require("pad"); const path = require("path"); const Fuse = require("fuse.js"); const util = req...
/** * Created by Alex on 11-Oct-14. */ var selectedMode = 'presets'; var presets = ['candles','disco']; var candleColor = 0; var selectedPreset = 0; var presetChanger = 0; var RED = C6; var GREEN = C7; var BLUE = C8; var color = {r:255,g:255,b:255}; var clicked = false; var clickCount = 0; var clickStart = 0; var...
#!/usr/bin/env node var fs = require("fs"), _ = require("underscore"), beautify = require("js-beautify").js_beautify, program = require("commander"), mkdirp = require("mkdirp"), readline = require('readline'), path = require("path") var config = require("../config/config.js"), pkg = requi...
var hasValueChanged = false; function setChangeStatus(status) { hasValueChanged = status; } function addFields() { if (checkData()) { var counter = $(".mult-condition").children().length; var operators = ["==", "!=", ">", ">=", "<", "<=", "Match"] var fieldInput = $("<input>") ...
var swfu; window.onload = function () { var parent_id = jQuery.getQueryString({id:"id"}); var parent_type = jQuery.getQueryString({id:"type"}); var session_id = jQuery.getQueryString({id:"sessionid"}); var session_key = jQuery.getQueryString({id:"sessionkey"}); var settings = { flash_url : '/swf/swfupload...
'use strict'; //NOTES FOR RANDOM CALC FUNCTION: //The maximum is inclusive and the minimum is inclusive. used from: //https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random var locationArr = []; function Location(max,min,avg,hours,name,elementId){ this.max = max; this.min...
const API = require('./database.js').default; export function rate_card(text, options, bot) { let name; let stats; try { name = text.split(/\s\d.*/g)[0].trim(); stats = text.match(/\d+/g).map(Number); if (!stats || stats.length != 5) throw ""; } catch (err) { return "!rate <Creature> <Courage> ...
/** * Copyright (c) Microsoft. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
var fs = require('fs'); var puts = require('sys').puts; var os = require('os'); var bakExtension = ".bak.workmode"; var eol = 'win32' == os.platform() ? '\r\n' : '\n'; var createIfNeeded = function(file){ if (!fs.existsSync(file)){ try{ puts("Creating `" + file + "`."); fs.writeFileSync(file,""); ...
import game from "../game.js"; import Lib from "../lib.js"; import BgMusic from "../components/bg-music.js"; import MusicFragment from "./music-fragment.js"; const MIN_VOL_THRESHOLD = 0.005; const MIN_VOL_ENABLE = 0.05; export default class Sound { static get soundsVol() { /// #if EDITOR if(game.__EDITOR_mode) ...
#!/usr/bin/env node /* eslint-disable no-console */ // eslint-disable-next-line import/no-unresolved const program = require('commander'); // eslint-disable-next-line import/no-unresolved const config = require('config'); // eslint-disable-next-line import/no-unresolved const moment = require('moment') // Modules //...
/** * @ignore ===================================================================================== * @fileoverview 手势密码的设定与验证 * @author xujin * @version 1.0.0 * @ignore created in 2017-03-28 * @ignore ===================================================================================== */ /** * 坐标类 * *...
var loadedscripts = {}; //fill helper for multi deminsional arrays. fills it with val. function fill(mat, val) { for (var i = 0; i < mat.length; i++) { mat[i] = mat[i].fill(val) } return mat; } var contains = function(needle) { // Per spec, the way to identify NaN is that it is not equal to i...
//@ts-check const { Collection } = require("../../../../classes/collection"); const entities = require("../entities"); class Flags extends Collection { /** * Create a new collection. * @param {string} name The name of the collection. */ constructor(name) { super(name); this._flags = new Map(); ...
import React from 'react'; import moment from 'moment'; import Debug from 'debug'; import sortBy from 'lodash/sortBy'; import uniq from 'lodash/uniq'; import Gab from '../../common/gab'; import Table from '../../common/components/table'; import FontIcon from 'material-ui/FontIcon'; import IconButton from 'material-ui/I...
/* eslint no-console: ["error", { allow: ["log"] }] */ import ActionType from "./ActionType.js"; import GameState from "./GameState.js"; const Reducer = {}; const assoc = (propertyName, propertyValue, object) => Immutable(R.assoc(propertyName, Immutable(propertyValue), object)); const assocPath = (propertyPath, pr...
var versionCode = "1.3"; var WIDTH = 500; var HEIGHT = 500; var gameRunning = false; var SCORE = 0; var HIGHSCORE = 0; var pipes = []; var clouds = []; var pipesX = []; var canvas = document.getElementById("myCanvas"); var ctx = canvas.getContext("2d"); var frameCount = 0; var gameSpeed = 3; var spawnRate = 150; va...
import React, {Component} from 'react' import PropTypes from 'prop-types' import {connect} from 'react-redux' import * as R from 'ramda' import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table' import {T} from '../../../../components/I18n' import {i18nRegister} from '...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /* eslint-disable @azure/azure-sdk/ts-no-namespaces */ /* eslint-disable no-inner-declarations */ import { logger, logErrorStackTrace } from "./log"; import { getRuntimeInfo } from "./util/runtimeInfo"; import { packageJsonInfo } from "./util/co...
import React, { useState, useGlobal, useEffect } from 'reactn'; import ImageUpload from '../components/ImageUpload'; import ErrorSwap from '../utils/ErrorSwap'; import AtharesLoader from '../components/AtharesLoader'; import swal from 'sweetalert'; import { Scrollbars } from 'react-custom-scrollbars'; import { Chevron...
// imports var fs = require('fs') const shell = require('shelljs') const chalk = require('chalk') const _ = require('underscore') // log start of script console.log(chalk.black.bgYellow(`Starting to generate icons.`)) // fail hard shell.config.fatal = true // input settings const iconSizes = [ '16x16', '20x20', ...
/** * This file provides application wide strings. */ export const ERR_ALL_FIELDS_REQUIRED = "All fields are required."; export const ERR_PASSWORDS_DONT_MATCH = "Passwords do not match."; export const SIGNUP_SUCCESS = "Sign up successful. Please sign in."; export const ERR_COURSE_TITLE_REQUIRED = "A title is require...
"use strict"; /* * eslint-plugin-sonarjs * Copyright (C) 2018 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * versio...
import MediaChromeRange from './media-chrome-range.js'; import { defineCustomElement } from './utils/defineCustomElement.js'; import { Window as window, Document as document, } from './utils/server-safe-globals.js'; import { MediaUIEvents, MediaUIAttributes } from './constants.js'; import { nouns } from './labels/l...
import React, { useEffect, useContext, useState } from 'react'; import { useHistory } from 'react-router-dom'; import { toast } from 'react-toastify'; import { useForm, Controller } from 'react-hook-form'; import useAxios from 'axios-hooks'; import { useIntl, FormattedMessage } from 'react-intl'; import messages from '...
const path = require('path') const fs = require('fs') const rimraf = require('rimraf') const { logData, get } = require('@keg-hub/jsutils') const { validateApp, ensureDirSync, isDirectory, checkTapKegPath, } = require('../helpers') const tapConstants = require('./tapConstants') const { configKeys } = tapConstan...
"use strict"; /** * todo: chart height as option * */ var $ = require("jquery"), utils = require("./utils.js"), yUtils = require("yasgui-utils"); var root = module.exports = function(yasr) { var options = $.extend(true, {}, root.defaults); var id = yasr.container.closest("[id]").attr("id"); var chartWrapper ...
function input2pt(input) { var levels = [], stack = []; function push(fragment) { // normalize text if (fragment.type == 'text' && stack.length && stack[stack.length - 1].type == 'text') { var prepend = stack.pop(); fragment = { type: 'text', start: prepend.start, end: fragment.end, ...
import { graphql } from 'gatsby'; import React from 'react'; import { css } from 'css-literal-loader/styled'; import LinkedHeading from '../../components/LinkedHeading'; import ARIA from '../../components/AriaAbbr'; import ComponentApi from '../../components/ComponentApi'; import ReactPlayground from '../../components...
// LOCALSTORAGE this.storeInputs = function(){ var inputs = document.getElementsByTagName('input'); console.log(localStorage); Array.prototype.forEach.call(inputs, function(item){ item.addEventListener('keyup', function(event){ let inputName = event.target.name; let inputValue = event.target.value; ...
/** * Get users who are related to another user on GitHub. * * TODO: Add a multiplier field to Node types for contributors (commit count) * and colleagues (inverse of people in the organization) * TODO: Figure out how to capture commits to repos the searched user doesn't * maintain. One way may be to search t...
const express = require("express"); const bodyParser = require("body-parser"); const cors = require("cors"); const fs = require("fs"); const crypto = require("crypto"); const tf = require('@tensorflow/tfjs'); require('@tensorflow/tfjs-node'); tf.setBackend('tensorflow'); const db = require("./db"); const chess = requi...
/** * Xử lý event chỉ đối với nút .plant-btn: */ // document.querySelector('.plant .plant-btn').addEventListener('click', function(e) { // e.stopPropagation(); // alert("Đã thua họach!"); // document.querySelector('.plant .plant-img').setAttribute('src', ''); // document.querySelector('.plant .plant-i...
/* global fieldProperties, setAnswer, goToNextField */ var choices = fieldProperties.CHOICES var appearance = fieldProperties.APPEARANCE var fieldType = fieldProperties.FIELDTYPE var numChoices = choices.length var labelContainer = document.querySelector('#label') var hintContainer = document.querySelector('#hint') ...
"use strict"; function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, a...
const Native = require("./Native"); const EventEmitter = require('events').EventEmitter; const SemanticSDP = require("semantic-sdp"); const OutgoingStreamTrack = require("./OutgoingStreamTrack"); const uuidV4 = require('uuid/v4'); const SDPInfo = SemanticSDP.SDPInfo; const Setup = SemanticSDP.Setup; const MediaInf...
// @ts-check const express = require("express"); const bcrypt = require("bcrypt"); const session = require("express-session"); const bodyParser = require("body-parser"); /** @ts-ignore */ const randomName = require("node-random-name"); let RedisStore = require("connect-redis")(session); const path = require("pa...
import React, { useState } from "react" //router import { Link } from "gatsby" //components import { Formik, Form } from "formik" import { Container, Row, Col, Button, ProgressBar } from "react-bootstrap" //custom components import Step1 from "./steps/step-1" import Step2 from "./steps/step-2" import Step3 from "./s...
/** * @version 0.5 * https://github.com/trezor/blockbook/blob/master/docs/api.md * https://doge1.trezor.io/api/v2/address/D5oKvWEibVe74CXLASmhpkRpLoyjgZhm71?details=txs * * @typedef {Object} UnifiedTransaction * @property {*} transactionHash * @property {*} blockHash * @property {*} blockNumber * @property {*}...
/* Copyright 2010 by <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed i...
"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"; Object.defineProperty(exports, "__esModule", { value: true }); exports.restParams = exports.numeric = exports.atomic = exports.item = exports.map = exports.array = exports.def = exports.single = exports.maybe = exports.many = exports.any = exports.occurrence = void 0; var _seq = require("./seq"); var...
import React from "react"; import Web3 from "web3"; import regPub from "../js/regPublisher" import regVoter from "../js/regVoter" import regSolver from "../js/regSolver" import regDapperVerify from "../js/regDapper" // import fleekStorage from '@fleekhq/fleek-storage-js' import { contractABI } from "../js/contract"; im...
// Outputs // Calculations let rem25slots; let rem35slots; let arrayTotal; let total25disks; let total35disks; let total25slots; let total35slots; let totalSlots // Sets the configured array maximums function updateOutputs(load) { if(load === false) { arrayTotal = parseInt(document.querySelector("#model")...
/* eslint no-invalid-this:off */ 'use strict'; const {DataRepository, Item} = require('core/interfaces/DataRepository'); const PropertyTypes = require('core/PropertyTypes'); const F = require('core/FunctionCodes'); const Errors = require('core/errors/data-repo'); const merge = require('merge'); const {t} = require('cor...
const moment = require('moment') const db = require("../models") const User = db.user const Store = db.store const Motohouse = db.motohouse const Order = db.order const OrderItem = db.orderitem // 在 contorller 裡面設定關聯 User.hasMany(Order) Motohouse.hasMany(Order) Store.hasMany(Order) OrderItem.hasOne(Order) Order.belong...
/* * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. */ 'use strict'; const startButton = document.getElementById('startButton'); const callButton = do...
#!/usr/bin/env node 'use strict'; process.env.UV_THREADPOOL_SIZE = Math.ceil(Math.max(4, require('os').cpus().length * 1.5)); var fs = require('fs'), path = require('path'); var base64url = require('base64url'), clone = require('clone'), cors = require('cors'), enableShutdown = require('http-shut...
/* À faire ! - utiliser bitsArrayToBytesArray() partout. - two dimentional array array(32) [ 1- 1- [1,1,0,0,0,0,0,0] 2- [1,1,0,0,0,0,0,0] 3- [1,1,0,0,0,0,0,0] 4- [1,1,0,0,0,0,0,0] 2- 1- [1,1,0,0,0,0,0,0] 2- [1,1,0,0,0,0,0,0] 3- [1,1,0,0,0,0,0,0] 4- [1,1,0,0,0,0,0,0] etc... ] */ /* ...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
// Copyright 2017 Quip import {ResponseHandler} from "../../../shared/base-field-builder/response-handler.js"; import { SalesforceRecordEntity, RECORD_PREFIX_TYPE, } from "./salesforce-record.js"; import {RECORD_TYPE_DISPLAYNAMES} from "../record-picker.jsx"; import {SalesforceClient} from "../client.js"; exp...
import * as clinicaldataModule from "./clinicaldatamodule.js"; import * as admindataWrapper from "./odmwrapper/admindatawrapper.js"; import * as languageHelper from "./helper/languagehelper.js"; import * as ioHelper from "./helper/iohelper.js"; import * as htmlElements from "./helper/htmlelements.js"; const $ = query ...
// Code Developed by <NAME> // https://github.com/thadeucity // It is a simple code, feel free to improve it wherever you want. const fireWidth = 450; const fireHeight = 150; const superSampling = 2; const randTable = Array(fireWidth*50).fill([0]); let randSorter = 0; let fireIntensity = Array(fireHeight).fill(null...
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Zimlets * Copyright (C) 2010, 2011, 2013, 2014, 2015, 2016 Synacor, Inc. * * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License"); * you may not use this file except in compliance with the Licen...
title = "BEE"; description = `[Click] to move Gather Pollen `; characters = [ ` w w ww lyly llylyl llylyl lyly `, ` wwww lyly llylyl llylyl lyly `,` R R R RRRRR g ggg ggg g `,` B BB BBBB BBbbwB BBbbBB BBBB ` ]; /** * @typedef {{ * pos: Vecto...
import React from "react"; import { UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem } from "reactstrap"; import { useAlertState } from "context/alert.js"; function IDEFiles({active, setActive, size}) { const { setInputOptions, setConfirmOptions, setDragDropOptions } = useAlert...
const postcss = require("postcss"); const meta = require("./package.json"); const name = meta.name; const settings = require("./lib/settings.json"); const version = meta.version; const author = meta.author.name; const license = meta.license; const getDisplaySettings = require("./utils/getDisplaySettings"); const getCal...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const assert_1 = tslib_1.__importDefault(require("assert")); const __1 = require("../.."); const _testConfig_1 = require("../common/_testConfig"); const TestHelpers_1 = require("../common/TestHelpers"); const ...
import React from 'react'; import { Dropdown, Menu, Spin, Table, Tabs, Tooltip } from 'antd'; import { CheckOutlined, CloseOutlined, LoadingOutlined } from '@ant-design/icons'; import { connect } from 'dva'; import { withRouter } from 'umi'; import { convertByteUnits, getDuration, makeTableHeader, makeToolTip, makeTool...
/*! * vscode-csv-helper * https://github.com/narsenico/vscode-csv-helper * * Copyright (c) 2019, <NAME>. * Released under the MIT License. * * Icon made by <NAME> from www.flaticon.com */ const vscode = require('vscode'); const CSV_LANG_IDS = [ 'csv', 'csv-comma', 'csv-pipe', 'csv-dollar', '...
const enemyBehaviourReturns = { DONE_STEP: Symbol('EBR: Done step'), GET_DELTA_T: Symbol('EBR: Get delta time'), } const EPBWait = function* (enemy, time) { while (time > 0) { time -= yield enemyBehaviourReturns.GET_DELTA_T; yield enemyBehaviourReturns.DONE_STEP; } }; const maxMoveSpeed = 120; const E...
// Copyright (c) Microsoft. All rights reserved. import React from "react"; import { connect } from 'react-redux'; import { ButtonToolbar } from "react-bootstrap"; import { isFunction } from "../../common/utils"; import ApiService from "../../common/apiService" import lang from "../../common/lang"; import RuleTrigger ...
const dark = { "--Background": "hsl(235, 21%, 11%)", "--principal-color-text": "hsl(234, 39%, 85%)", "--color-text-header": "hsl(0, 0%, 98%)", "--bg-color-header": "hsl(235, 24%, 19%)", "--sombra": "hsl(100, 10%, 10%)", "--bg-movil": "url(./assets/img/bg-mobile-dark.jpg)", "--bg-desktop": "url(./assets/im...
var EasyLog = function (options) { var logoId = 'easy-log-id'; var panelId = 'easy-log-panel-id'; var isPanelFixed = false; var headerId = 'easy-log-panel-header-id'; var minimizeId = 'easy-log-minimized-id'; var maxId = 'easy-log-max-id'; var fixedId = 'easy-log-fixed-id'; var closedId ...
/** * @author Changlon <<EMAIL>> * @github https://github.com/Changlon * @date 2022-03-14 16:41:32 */ import wechatPub from "koa-wechat-public" import axios from "axios" import fs from "fs" import path from "path" import cryptoJs from "crypto-js" // downloadFileToLocal([ // { // file_type:...
"use strict"; var errors = {}; var app; (function (app) { (function (importers) { "use strict"; var BaseImporter = (function () { function BaseImporter() { } BaseImporter.prototype.importUsage = function (usageNode, context) { var result = new a...
import React from 'react'; import { graphql, Link } from 'gatsby'; import styled from 'styled-components'; import 'bootstrap/dist/css/bootstrap.min.css'; import Hero from '../components/Hero'; import Layout from '../components/Layout'; import SEO from '../components/Seo'; import RelatedMeetups from '../components/Rel...
import React from "react" import {Button, Col} from "react-bootstrap"; import Row from "react-bootstrap/Row"; import tabs from "../tabs/tab.enum"; import IndicatorBot from "../../../network/network.indicator.bottombar"; import dashboardState from "../dashboard.saved.state"; // Icons import AddCat from "../../../img/ico...
import PropTypes from 'prop-types'; import React from 'react'; import { accessor } from './utils/propTypes'; import { accessor as get } from './utils/accessors'; let propTypes = { event: PropTypes.object.isRequired, // @Appointment field info declaration patientNameAccessor: accessor, clinicianImageAcc...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import BooleanToggle from '../../libs/ui/boolean-toggle'; import { Modal, ModalHeader, ModalBody, ModalFooter } from '../../libs/ui/modal'; import { Checkbox, isFileVisualizable } from '../objectutils'; import { addToF...
import React, { Component } from "react"; import { View, TouchableOpacity, Alert, Platform, Image } from "react-native"; import {connect} from 'react-redux'; import { Tabs, Tab, TabHeading } from "native-base"; import Antd from "react-native-vector-icons/AntDesign"; import FastImage from "react-native-fast-image"; //ut...
'use strict'; /* * PayPlug API for NodeJS. Developped first by clouderial.com for its own use and given to the community */ /* * This module holds the Payment class which holds all payment feature */ const log4js = require('log4js'), jsonLayout = require('log4js-json-layout'); log4js.addLayout...
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import { CaretDownOutlined } from '@ant-design/icons'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; import { Card, Breadcrumb, Menu, Col, Button, Row, Dropdown, Tooltip, message }...
/** * /gulpfile.js * @file * * ===Tasks defined in this file=== * * - Main Tasks - * setup * build * watch * clean * remove * reset * * - Subtasks - * less * fonts * collectStatic * jshint * buildAssets * cleanNodeModules * cleanFontFiles * cleanLibFiles * cleanBuildFiles * cleanTestFiles * cle...
// Dependencies const OsmParser = require('./OsmParser.js'); const OsmElement = require('./OsmElement.js'); const elementInteractionsTemplate = require('./elementInteractionsTemplate.js'); // Exports module.exports = class OsmWrapper { constructor(lat, lon, latCoverage, lonCoverage, settings) { this.bounds = O...
const express = require('express'); const protected = require('../auth/protected'); const checkFields = require('../util/checkFields'); const updateFields = require('../util/updateFields'); const Transcript = require('../models/Transcript'); const User = require('../models/User'); const router = express.Router(); //...
import { css } from 'styled-components' export const theme = { colors: { orange: '#f66a0a', green: '#28a745', blue: '#0070f3', lightblue: '#79b8ff', lightestBlue: '#c8e1ff', offWhite: '#f6f8fa', grey: '#6a737d', grey2: '#586069', black: '#1A1E...
/** * Created by tutech on 07/07/2016. */ import { addClass, removeClass, moveElement } from '../../js/utils/dom-utils'; import { scrollLock } from '../../js/utils/general-utils'; import { jump } from '../../js/utils/aoSmoothScroll'; import translator, { namespacedTranslator } from '../../js/utils/translator'; impor...
var sqlite3 = require('sqlite3').verbose(); var db = new sqlite3.Database('./data/flowers.db'); var users = {}; const bcrypt = require('bcrypt'); const saltRounds = 10; /** @typedef ArrangementData {Object} * @property {string} id * @property {string} name * @property {string} description * @property {string[]} ph...
// reminders.js ~ Copyright 2016 <NAME> ~ License MIT var ONE_DAY = 86400000; // millisecond conversion for a day var DAYS_3 = ONE_DAY * 3; var DAYS_6 = ONE_DAY * 6; var DAYS_7 = ONE_DAY * 7; var DAYS_13 = ONE_DAY * 13; var DAYS_14 = ONE_DAY * 14; var DB_NAME = process.env.DB_NAME; var MongoClient = require('mongodb'...
import { MissingIcon } from '@react-navigation/elements'; import { CommonActions, NavigationContext, NavigationRouteContext, ParamListBase, TabNavigationState, useLinkBuilder, useTheme, } from '@react-navigation/native'; import React from 'react'; import { Animated, LayoutChangeEvent, Platform, St...
const startButton = document.getElementById('start') const resetButton = document.getElementById('reset') const speedOption = document.getElementById('wpm') const skinOption = document.getElementById('skin') const textarea = document.getElementById('textarea') const output = document.getElementById('output') const stat...
api = { "getFlterData" : "index.php?r=medinfi-analytics/get-filter-data", "getProjectList" : "index.php?r=medinfi-analytics/get-project-list", "getProject" : "index.php?r=medinfi-analytics/get-project" } $(document).ready(function () { //alert('its working yahoo !!') //Filters data getFilterD...
// The client ID of a GitHub OAuth app registered at https://github.com/settings/developers. // The “callback URL” of that app points to https://www.puzzlescript.net/auth.html. // If you’re running from another host name, sharing might not work. const HOSTPAGEURL = 'https://clementsparrow.github.io/Pattern-Script/src'...
/** * @author <EMAIL> * Copyright 2017,Rujia,Yifan. * Licensed under MIT (https://github.com/BlockTechCert/BTCert/blob/master/LICENSE) */ function getBalance(address) { $.getJSON("https://blockchain.info/q/addressbalance/" + address, function( result) { mbtc = parseInt(result) / (100000000) $("#balance").ht...
var devExportModal = $('#dev-export-modal'); var devExportField = $('#export-edit-log'); var devSelectorButtons = [ $('#dev-select-button-1'), $('#dev-select-button-2'), $('#dev-select-button-3'), $('#dev-select-button-4'), ]; var devModeActive = false; var devModeTarget = 0; function showDevExportMo...
/* eslint-disable no-unused-vars */ const { Message, MessageEmbed, MessageAttachment, User, } = require('discord.js'); const Command = require('../../struct/Command'); const Client = require('../../struct/Client'); const moment = require('moment'); require('moment-duration-format'); const languageSchema = requi...
const cds = require('../cds') const cdsv = require('./cdsv') const YAML = { stringify: (...args) => (YAML.stringify = require('./2yaml'))(...args) } // alpha fixes for gaps const _skip_unused = require ('../alpha/_skip_unused') const compile = (csn) => ({ for: Object.assign ((x,o) => _fluent (compile_for,x, csn,o), ...