text
stringlengths
3.07k
16k
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LineChartPathWrapper = LineChartPathWrapper; exports.LineChartPathContext = void 0; var React = _interopRequireWildcard(require("react")); var _reactNative = require("react-native"); var _reactNativeSvg = require("react-native-sv...
import React, { PureComponent } from "react"; import TextAnchor from "./TextAnchor"; export const minRadiusInPx = 3; const textOffset = 16; export default class CircleMeasurement extends PureComponent { componentDidMount() { this.fill.addEventListener("mousedown", this.onFillMouseDown); this.stroke.addEvent...
/** * How to use: * each dragable-list can have a DragDropManager instance. * So, after body content, write scripts like below: * <script> * var dragManager1 = new DragDropManager(); * dragManager1.init('#drag_container_id', '.drag_item_class', dragStyle_obj, callback); * </script> * dragStyle_obj is...
import React, {useEffect, useRef, useState} from 'react'; import { View, Text, StyleSheet, Dimensions, SafeAreaView, Image, Slider, Animated, FlatList, } from 'react-native'; import colors from '../config/colors'; import TrackPlayer, { Capability, Event, RepeatMode, State, usePlaybackState,...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
var ultimaBusca; var camposNovo = { nome: '#nome', cpf:'#cpf', dataNasc:'#data_nasc', telRes:'#telres', telCel:'#telcel', email:'#email', cep:'#cep', end:'#end', complemento:'#complemento', numero: '#numero', bairro: '#bairro', cidade: '#cidade', uf:'#uf', especia...
import React from 'react' import { withTranslation } from 'react-i18next' import { Section, Tabs, Tab, Heading, Accordion, AccordionPanel, Notification } from 'grommet' import { toast } from 'react-toastify' import moment from 'moment' import { WeekTab, Available, Undo, Loader } from '../components' import { api, const...
/********************************************************************** * Identify areas of longterm EVI linear trend and get * the year of strongest change (slope) for each area ***********************************************************************/ var year_start = 2001; var year_end = 2014; // Add Thuringia ...
//Global helper functions the might be better off somewhere else but I'm putting them here to be stubborn. function userAlert(message, windowTitle) { const children = []; children.push(createElement('h1', {}, windowTitle ?? 'Alert')); children.push(createElement('p', {}, message)); return makeOKPopup(c...
/** * @file * Updates a container with a an ECS task definition * based on the DeployParams created from the provided event; * Optionally updates a service also which will * trigger a rolling deploy of the new version * * This could be called directly or respond to an event such as an * SNS notification sent by...
/* eslint-disable max-classes-per-file */ import { localStorageGet, } from '@lrnwebcomponents/utils/utils.js'; import { observable, makeObservable, computed, configure } from 'mobx'; import { DeviceDetails } from "@lrnwebcomponents/replace-tag/lib/PerformanceDetect.js"; configure({ enforceActions: false, useP...
// Helpful helper function function removeAllChildren(node) { let child = node.firstChild; while (child) { node.removeChild(child); child = node.firstChild; } } // Simple tag parser for finding tags for marking function parseTags() { // tags array for opening tags and closing tags let tags = [] // ...
import angular from 'angular'; import angularMeteor from 'angular-meteor'; import template from './tgDiagram.html'; import {TangibleController} from '../../api/tangibles/controller'; import {Diagrams} from '../../api/collections/diagrams.js'; import {Libraries} from '../../api/collections/libraries.js'; import 'pubsub-...
var SECOND = 1000; // multiply by second = hundred microseconds var dt = 0.1, period = dt * SECOND; var top = 0; var alphaR, betaR, gammaR; function convertDegreesToRadians (degrees) { return degrees * (Math.PI / 180); } function initGyro() { var x, y, z; var xaxis = 0; // set frequency of measuremen...
// GET WEATHER https://api.openweathermap.org/data/2.5/onecall?lat={lat}&lon={lon}&exclude={part}&appid={API key} // GET LAT & LON https://api.openweathermap.org/geo/1.0/direct?q={city name},{state code},{country code}&limit={limit}&appid={API key} // Seattle used as example for user // Console logs may be toggled on/o...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import store from '../lib/Store'; import { bindActionCreators } from 'redux'; import { toast } from 'react-toastify'; import * as _ from 'underscore'; import './WordDrag.less'; import dictionary from '../lib/FullDictionary.json'; import {u...
'use strict' const Database = use('Database') const Gun = use('App/Models/Gun') const TarkovDatabaseService = use('App/Services/TarkovDatabaseService') const TarkovLensService = use('App/Services/TarkovLensService') // This service updates the 'guns' database table by fetching data from Tarkov-Database and TarkovLens...
const chai = require('chai'); const { expect } = chai; const { solidity } = require('ethereum-waffle'); chai.use(solidity); const hardhat = require('hardhat'); const { deployments, ethers } = hardhat; describe('ConvexStrategy3Crv', () => { let deployer, treasury, user; let dai, t3crv, usdc, ...
import React, { Component } from 'react'; import _ from 'lodash'; import { connect } from 'react-redux'; import { withTranslation } from 'react-i18next'; import ReactGa from 'react-ga'; import PropTypes from 'prop-types'; import { Fab, CircularProgress, Tooltip, withStyles } from '@material-ui/core'; import { Save as...
let lpState = { docOrigin: null, urlParser: null, ytVideoId: null, player: null, t0: null, t1: null, looping: null, active: null, loopMaintainer: null, playerState: null, preprocessBoundaries: function () { if (Number.isNaN(this.t0)) { this.t0 = 0; } if (Numb...
const express = require('express'); const app = express(); const dashboardRoute = express.Router(); const auth = require('../middleware/auth'); dashboardRoute.use(auth); dbConfig = require('../database/db'); const Block = require('../models/Block'); const Instance = require('../models/Instance'); const DockerInstanc...
/* eslint-disable react/forbid-prop-types */ /* global google */ import React, { Component } from 'react'; import { MapContext } from '@react-google-maps/api'; import * as ReactDOM from 'react-dom'; import makeMarkerWithLabel from 'markerwithlabel'; import types from '@appbaseio/reactivecore/lib/utils/types'; import { ...
var questions = [{ "q": "Which of the following climate change events has actually happened?", "a": [ "Powerful storms with unprecidented storm surges", "Droughts and floods in areas typically not prone to them", "Thawing permafrost creating a feedback loop due to released methane", "All...
const { readLines } = require('../utils/readandwrite'); const { find, uniq } = require('lodash'); const IntCodeComputer = require('../common/icc'); const UP_ARROW = '^'.charCodeAt(0); const RIGHT_ARROW = '>'.charCodeAt(0); const LEFT_ARROW = '<'.charCodeAt(0); const DOWN_ARROW = 'v'.charCodeAt(0); function getScaffol...
import React, { Component } from 'react'; import TransitionGroup from 'react-transition-group/TransitionGroup'; import FirstChild from '../FirstChild'; import Modal from '../Modal'; import Form from '../Form'; import Stagger from '../Stagger'; import { getDifferenceOfDates, getNowDate, getSummary } from './utilities'...
'use strict' import path from 'path' import Datastore from 'nedb' import {dialog} from 'electron' import Scheme from './db.scheme.js' function loadADB (db) { return new Promise((resolve, reject) => { db.loadDatabase((err) => { if (err) reject(err) else resolve(db) }) }) } function validateSc...
let facade = require('gamecloud') let {EntityType, IndexType} = facade.const let fetch = require("node-fetch"); /** * CP成功注册事件 * 主网下发CP注册通知,此时应该将CP记录插入数据库 * @param {Object} data.msg { cid, name, url, address, ip, cls, grate, wid, account } * * @description 如果不返回 Promise 的话,事件将不能充当同步事件使用,即使外围使用 await 也起不到阻塞作用 */...
import { Sketch, Vector } from '../../handcar' const s = new Sketch() s.size(400, 300) // https://www.youtube.com/watch?v=bGz7mv2vD6g // Had to tweak the fitness function to get it to do anything // Bad stutter on Firefox Development Edition let lifespan = 400 const lifeP = s.createP() let count = 0 const target = ne...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; // Test Multiple Scenes console.log("ww=" + wind...
import _ from 'lodash' import { Map } from 'immutable' // toast notifications import toast from 'utils/toastify-helper' import * as toastCommon from 'components/toast-notifications/toast-notifications-common' // redux import date from '../utils/date' import api from 'redux/utils/api' import firebase from 'redux/utils...
require("dotenv").config(); const mysql = require("mysql"); const cTable = require("console.table"); const inquirer = require("inquirer"); const connection = mysql.createConnection({ host: 'localhost', port: 3306, user: 'root', password: '<PASSWORD>!', database: 'employee_db', }); connection.c...
var et = require('elementtree'), inflect = require('inflect'), ElementTree = et.ElementTree, element = et.Element, subElement = et.SubElement; /** * This function merges two objects. Pretty simple stuff. */ function merge(obj1, obj2) { var obj3 = {}; for (var attr1 in obj1) { ...
const functions = require('firebase-functions'); const { initializeApp } = require('@firebase/app'); const { doc, setDoc, getFirestore } = require('@firebase/firestore'); const { conversation, Canvas } = require('@assistant/conversation'); const language = require('@google-cloud/language'); const firebaseConfig = { ...
const tl = new TimelineMax(); let isFrontSelected = true; let isBackSelected = false; const openAnim = function() { tl.fromTo($("#mainContainer"), 1.2, { opacity: 0, width: "0%" }, { opacity: 1, width: "100%", ease: Power2.easeInOut }) .fromTo($(".mainHeaderWrapper"), 0.4, { opacity: 0, x: 30 }, {opacity: 1, x...
import React, {Component} from 'react'; import {Text,View,StyleSheet,Platform,Dimensions,Alert, Keyboard, ScrollView} from 'react-native'; import {Input, Button,LabelInput,RowButton} from '../Form'; import CustomBackTitle from '../CustomBackTitle'; import Http from '../../utils/Http'; import Touch from '../../utils/Tou...
var makeNewRowToTable = function(){ var numberOfColumns = $('#invoice-table > thead > tr > th').length; var newLineToBeAppended = "<tr>"; for(var j = 0; j <numberOfColumns; j++){ newLineToBeAppended += "<td>&nbsp;</td>"; } newLineToBeAppended += "</tr>"; $('#invoice-table > tbody:last-c...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
/** * @license Copyright 2017 Google Inc. 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 a...
const _ = require('lodash') const GoalKeeper = require('../players/experimental/GoalkeeperMain') const GoalKeeperSides = require('../players/experimental/GoalkeeperSides') const GoalKeeperPush = require('../players/experimental/GoalkeeperPush') const FieldConstraints = require('../entities/FieldConstraints') const Atta...
import React from 'react'; import PropTypes from 'prop-types'; import { ConfigProvider, Menu, Dropdown, Table, Icon, Button, Row, Col, Tooltip, Spin } from 'antd'; import * as moment from 'moment'; import { LIMIT } from '../../../constants'; import '../../../lib/styles.css'; import ResizableTable from '../../shared/Res...
import React, { Component } from 'react' import {withRouter} from 'react-router-dom' import {Formik, Form} from 'formik' import {generateAlert} from '../shared/Alert' import {customAlphabet} from 'nanoid' import ServiceProviderSurveyStep0 from './ServiceProviderSurveyStep0' import ServiceProviderSurveyStep1 from './Ser...
var log = require('../core/log.js'); var math = require('mathjs'); var strategy = {}; strategy.init = function() { this.name = '<NAME>' this.trend = 'none'; this.requiredHistory = this.tradingAdvisor.historySize; let settings = this.settings; settings.stcLength ? this.stcLength = settings.stcLength : this....
const DomainResource = require('./DomainResource'); const ContactDetail = require('./ContactDetail'); const UsageContext = require('./UsageContext'); const CodeableConcept = require('./CodeableConcept'); const CompartmentDefinition_Resource = require('./CompartmentDefinition_Resource'); class CompartmentDefinition ext...
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { capitalize, sum } from 'lodash'; import Layout from '../layout'; import { useAPI } from '../../state/api'; import { useCurrentUser } from '../../state/current-user'; import SegmentedButtons from '../../compone...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import OpenSeadragon from 'openseadragon'; import debounce from 'lodash/debounce'; import ns from '../config/css-ns'; import ZoomControls from '../containers/ZoomControls'; /** * Represents a OpenSeadragonViewer in the mirador workspace. Re...
'use strict'; const assert = require('assert'); const compileMimeMatch = require('..'); describe('compileMimeMatch(mimeType)', () => { it('should ignore params', () => { const mimeType = 'text/html; charset=utf-8'; assert.strictEqual(compileMimeMatch('text/*')(mimeType), true); assert.strictEqual(comp...
import React, { Component } from 'react' import { Text, ScrollView, View, TouchableOpacity, Modal, TextInput, TouchableHighlight, } from 'react-native' import gql from "graphql-tag"; import { Mutation } from 'react-apollo'; import { format } from 'tech-services-time' import {ColorSet } from...
import path from 'path'; import alias from '@rollup/plugin-alias'; import { importMetaAssets } from '@web/rollup-plugin-import-meta-assets'; import glob from 'glob'; import babel from 'rollup-plugin-babel'; import clear from 'rollup-plugin-clear'; import { terser } from 'rollup-plugin-terser'; import visualizer from 'r...
if (!String.prototype.startsWith) { String.prototype.startsWith = function(searchString, position) { position = position || 0; return this.indexOf(searchString, position) === position; }; } if (!String.prototype.includes) { Object.defineProperty(String.prototype, 'includes', { value...
import React, {Component, PropTypes} from 'react'; import ActionCreator from '../../../actions/ActionCreator'; import {baseUrl} from '../../../config'; import styles from './RegisterPage.css'; import UUID from '../../../utils/UUID'; import {Button, Input} from '../../SEUI/elements'; import Loader from '../../atoms/Loa...
import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import { useDispatch } from 'react-redux'; import { injectIntl } from 'react-intl'; import { isEmpty } from 'lodash'; import { Button, message, Modal, Slider, Switch, Tooltip } from 'antd'; import { setMatchBotVotingPower } from '.....
var _ = require('lodash'); var AWS = require('aws-sdk'); var events = require('events'); var moment = require('moment'); var dateRange = require('moment-range'); var path = require('path'); var async = require('async'); var util = require('util'); var Uploader = require('s3-streaming-upload').Uploader; var ReadableSt...
/** * "follow" model, for subscriptions * @author adrienjoly, whyd **/ var snip = require('../snip.js'); var mongodb = require('./mongodb.js'); var ObjectId = mongodb.ObjectId; //ObjectID.createFromHexString; var COLNAME = 'follow'; var HISTORY_LIMIT = 20; // utility functions function transformSubscriptionArray...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// // HiveAlive RaspberryPi IOT monitoring // <NAME>, 2018 // // Get params if(process.argv.length < 3) { console.error("### No config filename provided. Exiting"); process.exit(1); } // Load config var config = JSON.parse(require('fs').readFileSync(process.argv[2])); // Static config values const WAV_PATH = "/tmp/h...
var SessionsObj = []; var SpeakersObj = []; var SponsorsObj = []; var TimeSlotsObj = [ {TimeSlotID:'',TimeShow:"Any Time"}, {TimeSlotID:'1',TimeShow:"7:30 - Registration"}, {TimeSlotID:'2',TimeShow:"8:00 - Keynote"}, {TimeSlotID:'3',TimeSho...
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Row, Col, Form, Card, Select, List, Input, Carousel } from 'antd'; import { routerRedux, Link } from 'dva/router'; import TagSelect from '@/components/TagSelect'; import Ellipsis from '@/components/Ellipsis'; import StandardFormRow fr...
var mysql = require('mysql'); var cheerio = require('cheerio'); //可以像jquer一样操作界面 var charset = require('superagent-charset'); //解决乱码问题: var superagent = require('superagent'); //发起请求 charset(superagent); var async = require('async'); //异步抓取 var express = require('express'); var eventproxy = require('eventproxy'); ...
const webpack = require("webpack"); const path = require("path"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const { CleanWebpackPlugin } = require("clean-webpack-plugin"); // const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const htmlPlugin = new HtmlWebpackPlugin({ template: './src/f...
'use strict'; const Base = require('run-plugin-webpack'); const SvgiconsToSvgfont = require('svgicons2svgfont'); const Font = require('fonteditor-core').Font; const fs = require('fs'); const path = require('path'); const svgToTtf = require('svg2ttf'); // checks if a recompilation is necessary function shouldReplace(s...
import { connect } from 'react-redux' import { compose } from 'recompose' import { withRouter } from 'react-router-dom' import R from 'ramda' import contractMap from 'eth-contract-metadata' import ConfirmTransactionBase from './confirm-transaction-base.component' import { clearConfirmTransaction, updateGasAndCalcul...
/** * @fileOverview the interaction when geom was selected * @author sima.zhang */ var Util = require('../../util'); var FIELD_ORIGIN = '_origin'; function isSameShape(shape1, shape2) { if (Util.isNil(shape1) || Util.isNil(shape2)) { return false; } var shape1Origin = shape1.get('origin'); var shape2Or...
'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;...
/* Display this flow when an order is returned to the customer due to missing items or changes quantities */ // Logic: // for each item in_review: // allow customer to add, or edit. // keep track of page. cycle through all 'in_review' items. // fetch all items, save 'items' and 'review_items' array (where in_revie...
const path = require('path'); const colors = require('colors'); const startAndListen = require('./listen'); const { FFCreatorCenter, FFGifImage, FFText, FFTween, FFScene, FFImage, FFAudio, FFCreator, } = require('../'); const createFFTask = () => { const bg1 = path.join(__dirname, './assets/imgs/bg/h...
const Component = require('react').Component const h = require('react-hyperscript') const inherits = require('util').inherits const connect = require('react-redux').connect const EthBalance = require('./eth-balance') const addressSummary = require('../util').addressSummary const explorerLink = require('etherscan-link'...
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { Button } from '@newrelic/gatsby-theme-newrelic'; import { graphql, Link } from 'gatsby'; import { Location } from '@reach/router'; import { get, orderBy } from 'lodash'; import SEO from '../components/seo'; import Layout from '../co...
"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...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
/* global describe beforeEach it */ //database and models const db = require('../index') const {Order, OrderDetails, User, Beer, BeerStyle} = require('./index') // const {expect} = require('chai') // const assertType = require('chai-asserttype') describe('The `order` model', () => { // First we clear the database ...
#!/usr/bin/env node /* JSON 3 Builder | http://bestiejs.github.com/json3 */ var path = require("path"), fs = require("fs"), gzip = require("zlib").gzip, spawn = require("child_process").spawn, marked = require(path.join(__dirname, "vendor", "marked")), // The path to the Closure Compiler `.jar` file. closurePat...
'use strict'; const fs = require('fs'); const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const WebpackCleanupPlugin = require('webpack-cleanup-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-we...
import React, { Component } from 'react'; import axios from 'axios'; import { Breadcrumb, BreadcrumbItem } from 'reactstrap'; import base from './base'; // import { connect } from 'react-redux'; import Navbar from './Navbar'; import SidebarNav from './SideBarNav'; import '../CSS/EditLoan.css'; class EditLoan extends C...
var data2xml = require('data2xml'); var convertjson = require('xml-js'); var connect = require('../../database/connection') var webconnector = require('./qbxml/responseWEB') var moment = require('moment-timezone'); var removeAccents = require('remover-acentos'); var convert = data2xml({ xmlHeader: '<?xml version...
#!/usr/bin/env node /* * Ports changes from develop to main. The only commits * that will be ported are 'true diffs'. This logic will * generate a new portPR branch and cherry-pick the commits * to the new branch. */ const shell = require('shelljs'); const PR_REGEX = new RegExp(/(\(#\d+\))(\s+\(#\d+\))*$/); con...
import { useState, useMemo, useCallback, useEffect, useRef } from 'react' import { useWeb3React as useWeb3ReactCore } from '@web3-react/core' import copy from 'copy-to-clipboard' import { isMobile } from 'react-device-detect' import { NetworkContextName } from '../constants' import ZTS_ABI from '../constants/abi...
const { log, error } = console; const got = require('got'); const events = require('events'); const Websocket = require('ws'); const { sort } = require('fast-sort'); const axios = require('axios'); let pairs = [], symValJ = {}; const eventEmitter = new events(); const getPairs = async () => { const ...
const {setIntervalAsync} = require('set-interval-async/dynamic') const rollbar = require('./rollbar') const sleep = t => new Promise(resolve => process.env.NODE_ENV === 'test' ? resolve() : setTimeout(resolve, t), ) const privateChannelPrefix = process.env.NODE_ENV === 'production' ? '🤫-private-' : '😎-pri...
'use strict'; var EventEmitter = require('eventman'); var inherits = require('inherits'); var amgui = require('../amgui'); var defineCompactProperty = require('../utils/defineCompactProperty'); function KeyLine (opt, timeline) { EventEmitter.call(this); this.timeline = timeline; this._keys = []; th...
/** * Module dependencies. */ var Emitter = require('../util/emitter'), path = require('path'), fs = require('fs.extra'), _ = require('lodash'), open = require("open"); /** * Module Creator * Applands the module skeleton. * @constructor */ function Appland() { /** * Module's na...
/* * @author Mark * @source https://github.com/marcopoloq/AdventureLandPublic/blob/master/dps_meter.js */ class meters { constructor(args) { // Variables for the dps meter this.dps_values = 5; // Amount of characters to show in the dps meter. this.dps = []; this.dps_h = $('<tr/>'...
import React, { Component } from 'react'; import { View, PanResponder, Animated, Image, StyleSheet, } from 'react-native'; import ClipRect from './ClipRect'; export default class ImageCrop extends Component { static defaultProps = { editRectWidth: 212, editRectHeight: 212, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SLUG_MISSING_REQUIRED_DATE = void 0; exports.addFileTemplateFields = addFileTemplateFields; exports.compileStringTemplate = compileStringTemplate; exports.dateParsers = void 0; exports.expandPath = expandPath; exports.extractTemplat...
class TributeEvents { constructor(tribute) { this.tribute = tribute this.tribute.events = this } static keys() { return [{ key: 9, value: 'TAB' }, { key: 8, value: 'DELETE' }, { key: 13, value: '...
require('dotenv').config() const express = require('express') const SpotifyWebApi = require('spotify-web-api-node') const spotifyMappers = require('./mappers/mapSpotifyData') const app = express() const port = 9000 const jsonParser = express.json() const cookieParser = require('cookie-parser') app.use(cookieParser(...
/** * @license Copyright 2016 Google Inc. 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 a...
/*Geolocation with Ajax code*/ //alert("from geolocation"+batteryLevel); var country; var geocoder; geocoder = new google.maps.Geocoder(); if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(successFunction, errorFunction); } //Get the latitude and the longitude; function successFuncti...
// python -m http.server // http://localhost:8000/kisscartoon.js // CONFIG var siteName = "KissCartoon" var rootUrl = 'http://kimcartoon.me' var URL = window.location.origin // END CONFIG var episodeLinks = $('table.listing a').map(function(i,el) { return $(el).attr('href'); }); var episodeNames = $('table.listing a...
// CONSIDER: More button var $ = jQuery, activityFeed = $('#activityFeed'), activityList = $('#activityList'), // refreshAction = $('#refresh-feed'), resumeAction = $('#resume-feed'), pauseAction = $('#pause-feed'), source = $("#activity-template").html(), ...
var steem = require("steem"); var fs = require("fs"); var steemBlockTracker = require("./steemBlockTracker"); var userData = require("./userData.json"); var steemBroadcaster = require("./steemBroadcaster") .start(steem.auth.toWif(userData.name, userData.password, 'owner'), userData.name); var postsFilter = requ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _UniversalDisposable() { const data = _interopRequireDefault(require("../../../../nuclide-commons/UniversalDisposable")); _UniversalDisposable = function () { return data; }; return data; } ...
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, } from 'react-native'; import _ from 'underscore'; import Icon from 'react-native-vector-icons/MaterialIcons'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as vwmActio...
// JS var d3 = window.d3 || require('d3'); // CSS require('./big_number.css'); var px = require('../javascripts/modules/caravel.js'); function bigNumberVis(slice) { var div = d3.select(slice.selector); function render() { d3.json(slice.jsonEndpoint(), function (error, payload) { //Define the percentag...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); require('./chunk-14c82365.js'); var helpers = require('./helpers.js'); var __chunk_5 = require('./chunk-13e039f5.js'); // var script = { name: 'BSidebar', props: { open: Boolean, type: [String, Object], overlay: Boolean, ...
import React, { useState } from 'react'; import { motion } from 'framer-motion'; import shuffle from 'lodash/shuffle'; import { useMediaQuery } from 'react-responsive'; import Footer from '../components/footer'; import SideNav from '../components/side-nav'; import Coobo from '../images/coobo-logo-white.png'; import Coo...
import { DataTexture, FloatType, IntType, UnsignedIntType, ByteType, UnsignedByteType, ShortType, UnsignedShortType, RedFormat, RGFormat, RGBAFormat, RedIntegerFormat, RGIntegerFormat, RGBAIntegerFormat, NearestFilter, } from 'three'; function countToStringFormat( count ) { switch ( count ) { ca...
/** * This is a simple script getting the commits since the last tag (which * corresponds to a GitHub release). Each commit is filtered to: * - hide trivial stuff * - hide those containing "Don't mention in changelog"/"Don't show in changelog". * - categorize as fix or improvement * * Authors nickname are fetche...
'use strict' import Animate from 'velocity-animate' import View from '../../Views/View.web' import dom_traversal from '../../Views/dom_traversal.web' import EmojiPickerPopoverView from './EmojiPickerPopoverView.web' import emoji_web from '../emoji_web' class EmojiPickerControlView extends View { // Lifecycle - Init...
'use strict' var tap = require('tap') var helper = require('../../lib/agent_helper') var params = require('../../lib/params') collectionTest('count', function countTest(t, collection, verify) { collection.find({}).count(function onCount(err, data) { t.notOk(err) t.equal(data, 30) verify(null, [ 'D...