text stringlengths 3.07k 16k |
|---|
/* CSCN - Created with jsPsychMaker: https://github.com/gorkang/jsPsychMaker */
questions = ( typeof questions != 'undefined' && questions instanceof Array ) ? questions : [];
questions.push( check_fullscreen('SCSORF') );
SCSORF = []; //temporal timeline
var instruction_screen_experiment = {
type: 'instruction... |
import React from "react";
import { setTitle } from "../../actions/titleActions"
import { updateInputValue, selectedAssetData, setTrue, setFalse, setValue } from "../../actions/smActions"
import { connect } from "react-redux"
import { bindActionCreators } from 'redux';
import './SecurityMaster.css'
import { Link, withR... |
var express = require('express');
const { post } = require('request');
var router = express.Router();
var request = require('request');
var app = express();
var sleep = require('system-sleep');
var path = require('path');
app.set('Views', __dirname + '/Views');
app.set('view engine', 'ejs');
app.set('Views',... |
/**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import { Link } from "gatsby"
import { SiteContext, ContextProviderComponent } from "../context/mainContext"
import { titleIfy, slugify } from... |
#!/usr/bin/env node
// -*- coding: utf-8; fill-column: 80; -*-
// nibbler.js
// Created by <NAME> on 2017-11-29 09:49 +0100.
// Copyright (c) 2017 <NAME> <<EMAIL>>.
//
// Based on Mike Bostock's gist [1].
// [1] "The Gist to Clone All Gists", Mike Bostock,
// https://gist.github.com/mbostock/3883098
//
"use strict"... |
import React, { Component } from 'react';
import axios from 'axios'
import Card from './card';
import Grid from '@material-ui/core/Grid'
import { withStyles } from '@material-ui/core/styles';
import InputBase from '@material-ui/core/InputBase';
import SearchIcon from '@material-ui/icons/Search';
import { fade } from '@... |
/*
* Copyright (C) 2012-2013 DFKI GmbH
* Deutsches Forschungszentrum fuer Kuenstliche Intelligenz
* German Research Center for Artificial Intelligence
* http://www.dfki.de
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation... |
import React, { useContext, useState } from "react";
import { black, MAX_BET, sumBet } from "../lib/defs";
import { AppContext } from "../App";
import { addHandler } from "../App/reducer";
import { SHOW_MESSAGE } from "../Display";
import Chip from "../Chip";
import "./styles.scss";
const DISPLAY_VALUES = {
z1: "1ST... |
let a = `
Abborfato: Rotto
accanùizit: Accaniti
aiòto: Aiuto
Al finale: Alla fine
àlur: Allora
àlveril: Alberi
Appare: Appare
Aùstòz: Auto
Assahara: Assai
avviari: Cominciare
Bartàiza: Partita
beìcoli: Veicoli
Bistòla: Pistola
Bombola a mano: Granata a frammentazione
Bò... |
var VueTyper = window.VueTyper.VueTyper;
function makeParticles() {
particlesJS("particles-js", {
"particles": {
"number": {
"value": 100,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": "#ffffff"
},
"shape": {... |
import Component from "./component";
import { getRadialPosition, calculateDegreeToRadian, DEGREE_NEGATIVE_90, DEGREE_360, calculateValidAngle, DEGREE_0, } from "../helpers/sector";
import { range } from "../helpers/utils";
import { isLabelAxisOnYAxis } from "../helpers/axes";
export function getScaleMaxLimitValue(scale... |
import React,{Component} from 'react'
import {View, StyleSheet, Text, Platform, ViewPropTypes, Image, TouchableWithoutFeedback} from 'react-native'
import {MapView, Marker, Polyline, MultiPoint} from 'react-native-amap3d'
import { SearchBar, Toast } from 'antd-mobile'
import { connect } from 'react-redux'
import ApiCli... |
import React, { useEffect, useContext, useState } from "react";
import {
Header,
Button,
Segment,
Icon,
Modal,
Form,
Grid,
Loader,
} from "semantic-ui-react";
import { Context } from "../../Context";
const ProductCreationModal = ({ id, open, onClose, edit = {} }) => {
const { token } = useContext(Con... |
const QD_DATA = "./data/quickdraw.json";
var qd_json = null;
var canevas = null;
var ctx = null;
$(document).ready( () => {
// -- socket IO
var socket = io();
// -- canvas
canevas = document.getElementById('canvas');
ctx = canevas.getContext('2d');
// -- on btn PRESS
$("#talk").mousedown( () =... |
const pathUtils = require('path')
const child_process = require('child_process')
// Libraries mapped by their name.
// Format:
// 'library_name'{
// name: 'library_name',
// status: 'error/success',
// fallback: true/false, # Whether this library could not be imported and a fallback library is used inst... |
import React, { Component, PropTypes } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import _ from 'lodash';
import Editor from './Editor';
import { searchFilters, getFilter } from '../utils/searchResults';
import * as TodoActions from '../actions/todos';
import style ... |
import React, { Component } from 'react';
import styles from './OverPointList.less';
import moment from 'moment';
import { DatePicker,Input,Button,Radio,Row, Col,Spin,Card } from 'antd';
import MonitorContent from '../../components/MonitorContent/index';
import {routerRedux} from 'dva/router';
import { connect } from '... |
// var WEATHER_SEARCH_URL = "https://api.openweathermap.org/data/2.5/weather?id=524901&APPID=<KEY>";
var map;
function activatePlacesSearch() {
const options = {
types: ['(cities)']
};
var input = document.getElementById('search-term');
let autocomplete = new google.maps.places.Autocomplete(inp... |
const path = require('path')
const fs = require('fs')
const git = require('isomorphic-git')
const http = require("isomorphic-git/http/node")
const shell = require('shelljs')
const { Octokit } = require("@octokit/rest")
/**
* environment variables
*/
const GH_TOKEN = process.env.GH_TOKEN || process.env.GITHUB_TOKEN... |
$(function () {
var url = window.location.href;
var aId = url.split("=")[1];
albumDetail(aId); //专辑详情
//录音
$(".lesson-recording1").click(function () {
allClick();
$(this).addClass("lesson-recording2").siblings().removeClass("lesson-upload2");
var u = navigator.userAge... |
const kinveyBaseUrl = "https://baas.kinvey.com/";
const appKey = '<KEY>';
const appSecret = 'cea443eaef974f0f81899dd640d2964b';
function requester(method, endpoint, authorization, data) {
function getAuthorization(type) {
return type === 'basic'
? 'Basic ' + btoa(appKey + ":" + appSecret)
... |
const express = require("express");
const bodyParser = require("body-parser");
const path = require("path");
const cors = require("cors");
const http = require("http");
const socketIo = require("socket.io");
const passport = require("passport")
const JwtSrategy = require("./authentication/jwtstrategy")
const dbConnect ... |
import axios from 'axios'
/**
* 创建dom元素
* @param {*} name dom元素名
* @param {*} options dom属性
*/
function createElem(name, options) {
const elem = document.createElement(name);
elem.className = options && options.className;
return elem
}
/**
* 将选择的图片显示到对话框中
* @param {*} files 添加到预览列表的图片文件集
* @param {... |
'use strict';
var config = require('./config/config.json');
var gpio = require('onoff').Gpio;
var http = require('http');
var fs = require('fs');
var zlib = require('zlib');
var filePath = './public/index.html';
var htmlFile = fs.readFileSync(filePath).toString('utf8');
var fileStats = fs.statSync(filePath);
var rout... |
const {findRoots, isPathContains, findTarget, defaults, readJson, writeJson} = require('./Utils')
const debug = require('debug')('cpp-compile-on-save')
const fs = require('fs')
const path = require('path')
var watch = require('node-watch')
class Manager {
constructor() {
this._watched = []
this._... |
import React, { useEffect } from "react";
import { connect, useDispatch } from "react-redux";
import { getDetailedObj } from "../../store/productsStore/productsSlicer"
import { form, TextField, Button } from '@material-ui/core';
import "bootstrap/dist/css/bootstrap.min.css";
import "mdbreact/dist/css/mdb.css";
import "... |
import React, { Fragment, Component } from "react";
import PropTypes from "prop-types";
import classname from "classname";
import TopHomePage from "../blocks/HomePage/Top";
import OurExperience from "../blocks/HomePage/OurExperience";
//Questionable
import Header from "../components/Header";
import Footer from "../co... |
/**
* Create scene, camera, renderer.
*/
var setUp = function() {
var result = {};
// create a scene, that will hold all our elements such
// as objects, cameras and lights.
var scene = new THREE.Scene();
// create a camera, which defines where we're looking at.
// a frustrum is a pyramid wi... |
'use strict';
var container = document.getElementById('doctors-container');
var containerFav = document.getElementById('favDoctors-container');
var allButton = document.getElementById('all');
var favButton = document.getElementById('fav');
var favDoctors=JSON.parse( localStorage.getItem('fav') ) || [];
// array of... |
'use strict';
import TinyGesture from './TinyGesture.js';
import {requestAnimation, easeInOut} from '../requestAnim.js';
class ScrollMover{
constructor(){
this.startPosition=0;
this.targetPosition=0;
this.moveDistance=0;
this.moving = false;
this.requestAnimation = requestA... |
const assert = require('assert');
const getter = require('../dist/getter');
const obj = {
a: {
b: [1, 2, { c: [3, 4, [5, { d: 6 }]] }]
}
}
console.log(` ===>>> const obj = ${JSON.stringify(obj)}`);
describe('getter.js', function() {
it(`getter()(obj) should return obj`, function() {
assert.deepEqual(... |
import React from 'react';
import TextField from '@material-ui/core/TextField';
import Typography from '@material-ui/core/Typography';
import Input from '@material-ui/core/Input';
import Grid from '@material-ui/core/Grid';
import Chip from '@material-ui/core/Chip';
import BlockIcon from '@material-ui/icons/Block';
imp... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { ChromePicker } from 'react-color';
import TextField from 'material-ui/TextField';
import Checkbox from 'material-ui/Checkbox';
import { Row, Col } from 'react-flexbox-grid';
import styles from ... |
var assert = require("assert");
var library = require("mysql");
var app_utils = require('../lib/users/utils.js');
var Logger = require('../lib/Logger.js');
var default_config = {
name: 'default',
host: "127.0.0.1",
user: 'Invalid user',
password: '<PASSWORD>',
database: 'Invalid database',
table: "Invalid ... |
/*jslint evil: true, regexp: false */
/*----------------------------------------------------------------------------
-- Copyright 2011, Open Universiteit Nederland. This file is distributed
-- under the terms of the GNU General Public License. For more information,
-- see the file "LICENSE.txt", which is included in t... |
"use strict";
var path = require ('path'),
fs = require ('fs'),
os = require ('os'),
util = require ('util'),
cluster = require ('cluster'),
io = require ('fsobject'),
confFu = require ('conf-fu');
var MODULE_NAME = 'dataflo.ws';
var EventEmitter = require ('events').EventEmitter;
var da... |
// check which side point C on the line from A to B
const linePointSide = (A, B, C) => {
return ((B[0]-A[0])*(C[1]-A[1])-(B[1]-A[1])*(C[0]-A[0]));
}
// srcPoints, dstPoints: array of four elements [x, y]
const checkFourPointsConsistent = (x1, x2, x3, x4, x1p, x2p, x3p, x4p) => {
if ((linePointSide(x1, x2, x3) > 0)... |
const BaseClient = require('../baseclient.js');
var crypto = require('crypto');
class BankID extends BaseClient {
constructor(settings) {
super(settings);
this.settings = settings || {};
this.clientInfo = {
name: "BankID",
version: "20210406",
... |
const path = require("path");
const esprima = require("esprima");
const { spawn } = require("child_process");
const { remote } = require("electron");
const jetpack = require("fs-jetpack");
const v4 = require("uuid");
const appDataPath = path.resolve(remote.app.getPath("appData"), "TwilioQuest");
const codeStoragePath ... |
// Know issues in cpgf script binding
// Joy stick is not supported because it uses irr::array which is a template
cpgf.import(null, "builtin.debug");
function SMouseState()
{
this.Position = new irr.position2di();
this.LeftButtonDown = false;
}
var MouseState = new SMouseState();
var JoystickState =... |
import React, { useState, useEffect, useContext } from 'react';
import { Context } from '../../Context/AppContext';
import { useHistory } from "react-router";
import './transaction.scss';
import PropTypes from 'prop-types';
import User from '../../Services/API/UserServices';
import { setLogoByAccountType, search } from... |
const chalk = require('chalk');
const formatDecimal = require('format-decimal');
const jfObject = require('@jf/object');
const log4js = require('log4js');
const translations = require('@jf/translations').i();
/**
* Configuración por defecto a aplicar.
* Se puede cambiar haciendo `require('log4js'... |
'usestrict';
var hoursOfOps = ['6a', '7a', '8a', '9a', '10a', '11a', '12p', '1p', '2p', '3p', '4p', '5p', '6p', '7p', '8p'];
var cookies = [];
//console.log('Begining of Code');
function CookSales(name, minCust, maxCust, avgCook) { //Create Object 'CookSales'
this.name = name;
this.minCust = minCust;
this.maxCust =... |
const express = require("express");
const router = express.Router();
const SpotifyWebApi = require("spotify-web-api-node");
const config = require("config");
const auth = require("../middleware/auth");
const { User } = require("../models/user");
const { logger } = require("../startup/logging");
const moment = require("... |
/* eslint-disable no-console */
import { date } from 'quasar';
import { read, add, update, del } from '../../api';
import { cmSchema, parcelaSchema, opiekunSchema, userSchema } from '../../api/db/schema/schema';
import { validateDataAgainstSchema } from '../../api/db/schema/validator';
const { GET_DB_DATA, GET_CEMETERY... |
import Vue from 'nativescript-vue';
import Vuex from 'vuex';
import config from '~/config';
import { eurRates, ratesDate } from "~/seeds/eurRates";
const connectivity = require("connectivity");
const Sqlite = require("nativescript-sqlite");
Vue.use(Vuex);
const debug = process.env.NODE_ENV !== 'production';
const st... |
const dottie = require('dottie')
const builders = require('./builders')
// const apiLookupTracker = require('./utils/api-lookup-tracker')
const cardListTracker = require('./utils/card-list-tracker')
const { inspect } = require('./utils/local-util')
const { cloneDeep } = require('lodash')
const ONE_TAB = ' '
const IN... |
'use strict'
const _ = require('lodash')
const debug = require('debug')('electron-installer-common:installer')
const desktop = require('./desktop')
const error = require('./error')
const fs = require('fs-extra')
const glob = require('glob-promise')
const path = require('path')
const template = require('./template')
co... |
import {setupModal} from '../utils/modal';
// аргументы setupModal(modal, closeCallback, modalBtns, openCallback, noPrevDefault, preventScrollLock)
// возможна инициализация только с первыми аргументом,
// если вам нужно открывать модалку в другом месте под какими-нибудь условиями
const initModals = () => {
const mo... |
import querstring from 'querystring'
/**
* 通用函数库- 清空对象空值类函数
*
* deleteObjectEmptyValue 删除对象空值
* arrSort 数组排序
* citySort 城市按照字母排序
* capitalizationRMB 人民币转换为大写
* checkTel 校验手机号码
* changDataType 数据格式装换
*/
/**
* 删除对象空值
* @param {object} obj
* 例子:let obj={a:1,b:null,c:''}
* deleteObjectEmptyVa... |
var board = {
a1: " ", a2: " ", a3: " ",
b1: " ", b2: " ", b3: " ",
c1: " ", c2: " ", c3: " ",
}
var winConditions = [
["a1", "a2", "a3"],
["b1", "b2", "b3"],
["c1", "c2", "c3"],
["a1", "b1", "c1"],
["a2", "b2", "c2"],
["a3", "b3", "c3"],
["a1", "b2", "c3"],
["a3", "b2", "c1"],
]
var listOfSqu... |
import React, { useEffect, useRef, useState } from 'react'
// import Terminal from '../../../components/payments/stripe/Terminal'
import dynamic from 'next/dynamic'
import { loadStripeTerminal } from '@stripe/terminal-js/pure';
import 'tailwindcss/tailwind.css'
/**
*
* Initiates a Stripe Terminal flow
* Directed f... |
var Benchmark = require('benchmark');
run([
bench('Native try {} catch (e) {} vs fast.try()', require('./try')),
bench('Native try {} catch (e) {} vs fast.try() (single function call)', require('./try-fn')),
bench('Native .apply() vs fast.apply() (3 items, no context)', require('./apply-3')),
bench('Native .a... |
const request = require('request')
const ndjson = require('ndjson')
const Filecoin = require('./filecoin')
const ChainGraph = require('./graph-chain')
const MarketGraph = require('./graph-market')
const OrderbookGraph = require('./graph-orderbook')
const DealsGraph = require('./graph-deals')
const NetworkGraph = requir... |
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, <NAME>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { createElement, useMemo, useCallback } from 'react'
import { area as d3Area, curveBasis, curveL... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.hashPersonalMessage = exports.isValidSignature = exports.fromRpcSig = exports.toCompactSig = exp... |
import React, { useEffect, useState } from 'react';
import io from 'socket.io-client';
import ChevronRight from '../icons/ChevronRight';
import Modal from '../modal/Modal';
import DismissModal from '../modal/DismissModal';
import Fields from '../input/Field';
import Button from '../button/Button';
import useApi from '... |
'use strict'
const vscode = acquireVsCodeApi()
function postMessageToHost(type, value) {
if (type) {
vscode.postMessage({
type,
value,
})
}
}
function getPlotElement() {
const plot_element = document.getElementById('plot-element')
if (!plot_element) {
r... |
const fs = require('fs');
const path = require('path');
const { spawn } = require('child_process');
const ncp = require('copy-paste');
const recording = require('./recording');
const del = require('del');
exports.reduceUI = (state, action) => {
switch (action.type) {
case 'CONFIG_LOAD':
case 'CONFIG_RELOAD':... |
/* eslint-disable no-console */
/**
* Why choose inheritance over a HOC? Multiple advantages for this particular use case.
* In short, we need identical functionality to setState(), unless there is a prop defined
* for the state key. Also:
*
* 1. Single Renders
* Calling trySetState() in constructor(), compo... |
'use strict'
/* eslint-env browser, webextensions */
const browser = require('webextension-polyfill')
const debug = require('debug')
const log = debug('ipfs-companion:client:embedded')
log.error = debug('ipfs-companion:client:embedded:error')
// Polyfills required by embedded HTTP server
const uptimeStart = Date.now(... |
import tplListItem from '../template/list-item.art';
import utils from './utils';
import smoothScroll from 'smoothscroll';
class List {
constructor (player) {
this.player = player;
this.index = 0;
this.audios = this.player.options.audio;
this.bindEvents();
}
bindEvents () ... |
'use strict'
const log = require('debug')('ipfs:components:peer:storage')
const createRepo = require('../runtime/repo-nodejs')
const getDefaultConfig = require('../runtime/config-nodejs')
const { ERR_REPO_NOT_INITIALIZED } = require('ipfs-repo').errors
const uint8ArrayFromString = require('uint8arrays/from-string')
co... |
import React from 'react';
import Web3 from 'web3';
import Ruler from "./Ruler";
import { Scaler } from "dapparatus";
import { withRouter } from 'react-router-dom';
import Balance from "./Balance";
import Blockies from 'react-blockies';
import i18n from '../i18n';
import { ERC20TOKEN } from '../config';
import { dollar... |
import React, {
useMemo,
useState,
useCallback,
} from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import noop from 'lodash/noop';
import find from 'lodash/find';
import stripesFinalForm from '@folio/stripes/final-form';
import {
Pane,
Paneset,
Row,
Col,
... |
var language1 = "en";
var lesson_number = "3";
var activity_name = "Observe, Compare and share - II";
var answerintext = "";
var attemptnumber = 0;
var numberofworkersineachgroup = [0,0,0];
var weightinplate = [0,0,0];
var check_options = [0,0,0,0];
function sessionstart()
{
var JsonArray =
{
"app_name": "Food_... |
/* eslint-disable no-use-before-define */
'use strict';
const _ = require('lodash');
const BbPromise = require('bluebird');
// NOTE --> Keep this file in sync with ../stage.js
// NOTE: This code was written since there are problem setting up dedicated CloudFormation
// Stage resource (see https://github.com/serverl... |
"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... |
import React from 'react';
import _ from 'lodash';
import { navigate, queryConsumer } from './router';
import { LocalSettings } from './LocalSettings';
export var sortAs = {};
sortAs.personName = function (text) {
var words = text.replace(/,/g, '').split(' ');
words = _.filter(words, (word) => !word.match(/\.$... |
import React from 'react';
import PropTypes from 'prop-types';
import {Amplitude} from '@amplitude/react-amplitude';
import {Button, Divider, Icon, Popup, Responsive} from 'semantic-ui-react';
import {downloadFile, fileSortedVersions} from '../../utilities';
import CopyButton from '../../../components/CopyButton/CopyBu... |
function getCfgCmd(cfgcmd){
var cfgcmdlist = {
1: "ConfigReportReq",
129: "ConfigReportRsp",
2: "ReadConfigReportReq",
130: "ReadConfigReportRsp"
};
return cfgcmdlist[cfgcmd];
}
function getDeviceName(dev){
var deviceName = {
47: "R718DA2",
61: "R718DB2",
62: "R718F2",
67: "R71... |
/**
* GitHub v3 REST API
* GitHub's v3 REST API.
*
* The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require("react");
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
function _extends() {
_extends =
Object.assign ||
f... |
/* eslint-disable prettier/prettier */
import React, { useEffect, useState } from 'react'
import { Redirect, useLocation } from 'react-router'
import axios from 'axios'
import {
CButton,
CCard,
CCardBody,
CCol,
CContainer,
CForm,
CFormControl,
CInputGroup,
CInputGroupText,
CListGroup,
CListGroupIt... |
function textAreaAdjust(o) {
o.style.height = "1px";
o.style.height = (25+o.scrollHeight)+"px";
}
function enableTab(el) {
el.onkeydown = function(e) {
if (e.keyCode === 9) {
// get caret position/selection
var val = this.value,
start = this.selectionStart,
... |
const path = require('path')
const fs = require('fs-extra')
const replaceInFile = require('replace-in-file')
const execa = require('execa')
const chalk = require('chalk')
const sequence = require('../helpers/sequence')
const ask = require('../helpers/ask')
const exit = require('../helpers/exit')
const spinner = requir... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { __assign, __awaiter, __extends, __generator } from "tslib";
import { AbortController, AbortError } from "@azure/abort-controller";
import FormData from "form-data";
import { HttpHeaders } from "./httpHeaders";
import { RestError } from ... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
import React, { Component } from "react";
import { View, Text, TouchableOpacity, Image, SafeAreaView, Dimensions } from "react-native";
import { Actions } from "react-native-router-flux";
import { connect } from "react-redux";
import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
import { B... |
/// <binding ProjectOpened='default' />
/*
This file in the main entry point for defining Gulp tasks and using Gulp plugins.
Click here to learn more. http://go.microsoft.com/fwlink/?LinkId=518007
*/
var gulp = require('gulp'),
sourcemaps = require('gulp-sourcemaps'),
sassCompiler = require('gulp-dart-sass'),... |
'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProp... |
"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... |
// common.js comprises several functions and variables that are used by more than one page
// in the application.
// Set some global variables for control and verification.
let count = 0;
let countLocations = 0;
let countProducts = 0;
let countOnList = 0;
let dollarsOnList = 0;
let locationcount = 0;
let lastlocat... |
/* eslint-disable */
import React, {
Component
} from 'react';
import {
AppRegistry,
StyleSheet,
View,
Text,
ListView,
DeviceEventEmitter
} from 'react-native';
import Beacons from 'react-native-beacons-manager';
import BluetoothState ... |
const postsColl = require('../dbase').db().collection('posts')
const ObjectID = require('mongodb').ObjectID
const sanitizeHTML = require('sanitize-html')
const Post = function (data, userId, requestedPostId) {
this.data = data
this.userId = userId
this.errors = []
this.requestedPostId = requestedPostI... |
//"use strict";
// The Ceylon version to use for the user code we'll be running
var ceylonVersion = "1.3.3-SNAPSHOT";
var langMod = 'ceylon/language/' + ceylonVersion + '/ceylon.language-' + ceylonVersion;
require.config({
baseUrl: "modules",
waitSeconds: 15,
map: {
'*': {
'ceylon/lan... |
'use strict'
const FindMyWay = require('find-my-way')
const Reply = require('./reply')
const Request = require('./request')
const Context = require('./context')
const {
kRoutePrefix,
kCanSetNotFoundHandler,
kFourOhFourLevelInstance,
kReply,
kRequest,
kContentTypeParser,
kBodyLimit,
kLogLevel,
kFourO... |
"use strict";
let preloader;
let Layout = function () {
let self = this;
this.init = function() {
window.onload = function() {
self.bodyLoaded();
};
self.lazyFunc();
document.querySelector("body").classList.add("ready");
self.exists();
self.ieStubF... |
/* eslint-disable no-unused-expressions */
import DocumentViewer from '../DocumentViewer';
import DocBaseViewer from '../DocBaseViewer';
import BaseViewer from '../../BaseViewer';
import DocPreloader from '../DocPreloader';
import fullscreen from '../../../Fullscreen';
import { ICON_FULLSCREEN_IN, ICON_FULLSCREEN_OUT, ... |
import React from "react";
import "./datatable.sass";
import colResize from "../resize.js";
import DtConfig from "./datatable_config";
import DTHEADER from "./datatable_header";
import DatatableEvents from "./datatable_renderer_events";
import ContextMenu from "../ContextMenu/ContextMenu";
import { withRouter } from "r... |
//Create an account on Firebase, and use the credentials they give you in place of the following
var config = {
apiKey: "<KEY>",
authDomain: "ngpe-1505201056116.firebaseapp.com",
databaseURL: "https://ngpe-1505201056116.firebaseio.com",
projectId: "ngpe-1505201056116",
storageBucket: "ngpe-150520105... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var spatial_1 = require("../../core/util/spatial");
var glyph_1 = require("./glyph");
var utils_1 = require("./utils");
// algorithm adapted from http://stackoverflow.com/a/14429749/3406693
function _cbb(x0, y0,... |
var Ripple = (function () {
function Ripple(element) {
var _this = this;
if (window.getComputedStyle(element).position !== "absolute" && window.getComputedStyle(element).position !== "fixed") {
element.style.position = "relative";
}
var isTouching = false;
element... |
import React, { Component } from 'react';
import USMap from './map';
import KeyIndicator from './key-indicator';
import Lenses from './lenses';
import Citations from './citations';
import TopicSelect from './topic-select';
import { ReactComponent as IconBook } from '../images/icons/book.svg';
import { ReactComponent a... |
// MenuHero Styles:
// Imports
//////////////////////////////////////////////////////////////////////
// Core
import styled from 'styled-components';
// Extended Styles
// Constants
import { Theme, Root } from 'constants/Theme';
import { Base } from 'constants/styles/Base';
// Keyframes
import { SlideToRightKeyfra... |
const arweave = Arweave.init()
// array of posts objects
const posts = [];
async function get_profile(address) {
let get_applicant_wallet =
{
op: 'and',
expr1:
{
op: 'equals',
expr... |
let population;
let target;
let populationSize;
let mutationRate;
let started=false;
let bestPhrase;
let limitedP;
let allP;
let stats;
let timer;
let timerValue;
let mf;
function setup(){
bestPhrase = createP("Best phrase:");
bestPhrase.position(10,10);
bestPhrase.id("best");
txtPercent = createP("%"... |
import React from "react";
import FileManager from "./FileManager";
class RowObjective_evaluation extends React.Component{
constructor(props){
super(props);
this.year = this.props.year;
this.value = this.props.value;
this.years = this.props.years;
this.id = this.props.id;
... |
const { createFilePath } = require(`gatsby-source-filesystem`);
const path = require(`path`);
const assignInWith = require('lodash/assignInWith');
const find = require('lodash/find');
exports.createPages = async ({ graphql, actions }) => {
const { createPage } = actions;
const indexTemplate = path.resolve(`./src... |
var i;
/*--------------------------------------------GPA cALCULATION-----------------------------------------------------------------------------*/
var n;
//var gpa_calc=0.00;
function getvalue_gpa(){
n = document.getElementById("no1").value;
n = parseInt(n);
getvalues_gpa();
}
function getvalues_gpa(){
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.