text stringlengths 3.07k 16k |
|---|
import React, { Component } from 'react';
import {
View, Text, StyleSheet, ScrollView, Alert,
Image, TouchableOpacity, NativeModules, Dimensions,
AppRegistry,
} from 'react-native';
// import Video from 'react-native-video';
var ImagePicker = NativeModules.ImageCropPicker;
const styles = StyleSheet.create({
... |
// MODULES //
import React, { useCallback, useEffect, useState } from 'react';
import logger from 'debug';
import { useTranslation } from 'react-i18next';
import Button from 'react-bootstrap/Button';
import FormGroup from 'react-bootstrap/FormGroup';
import FormLabel from 'react-bootstrap/FormLabel';
import Col from '... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
const path = require('path')
const { semver } = require('@vue/cli-shared-utils')
/** @type {import('@vue/cli-service').ServicePlugin} */
module.exports = (api, options) => {
const cwd = api.getCwd()
const webpack = require('webpack')
const webpackMajor = semver.major(webpack.version)
const vueMajor = require('... |
import React from 'react';
import {RouteHandler} from 'react-router';
import {StoreMixin} from 'mesosphere-shared-reactjs';
import AlertPanel from '../../components/AlertPanel';
import DCOSStore from '../../stores/DCOSStore';
import FilterBar from '../../components/FilterBar';
import FilterHeadline from '../../compone... |
"use strict";
// Globals
var options; // Global options object
var replacement; // Replacement option
var lookup; //Words lookup option
var abstractifyAPI = "http://127.0.0.1:5000/";
var abstractify = abstractifyAPI + "abstractify";
var progress = abstractifyAPI + "get_progress";
var progressBarHTML =
'<div class=... |
// Work experience cards
const experiencecards = document.querySelector(".experience-cards");
const exp = [
{
title: "Quantum Hedge Fund Analyst",
cardImage: "assets/images/experience-page/alpha_alternatives.jpg",
place: "Alpha Alternatives",
time: "(June, 2021 - July, 2021)",
desp: "<li>Worked... |
const map = {};
const CFG = {};
[
// Boolean for verbose reporting
'DEBUG', // Effectively defaults to false (ignored unless `true`)
// Boolean (effectively defaults to true) on whether to cache WebSQL
// `openDatabase` instances
'cacheDatabaseInstances',
// Boolean on whether to auto-name d... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _dom = _interopRequireDefault(require("../../shared/dom7"));
var _utils = require("../../shared/utils");
var _class = _interopRequireDefault(require("../../shared/class"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? o... |
import React from 'react';
const Toaster = React.lazy(() => import('./views/notifications/toaster/Toaster'));
const Tables = React.lazy(() => import('./views/base/tables/Tables'));
const Breadcrumbs = React.lazy(() => import('./views/base/breadcrumbs/Breadcrumbs'));
const Cards = React.lazy(() => import('./views/base... |
import React, { useState } from "react"
import axios from "axios";
import { Link } from "gatsby"
import Layout from "components/Layout"
import { Input, TextArea } from "flwww";
import { message, Space, Timeline } from 'antd';
import styled from "@emotion/styled"
import colors from "styles/colors"
const MyForm = () => ... |
/* global config, APP, Strophe */
/* jshint -W101 */
// cache datachannels to avoid garbage collection
// https://code.google.com/p/chromium/issues/detail?id=405545
var RTCEvents = require("../../service/RTC/RTCEvents");
var _dataChannels = [];
var eventEmitter = null;
var DataChannels = {
/**
* Callback tr... |
/**
* This program is a boilerplate code for the standard tic tac toe game
* Here the “box” represents one placeholder for either a “X” or a “0”
* We have a 2D array to represent the arrangement of X or O is a grid
* 0 -> empty box
* 1 -> box with X
* 2 -> box with O
*
* Below are the tasks which needs to be co... |
import dat from 'dat.gui'
import Stats from 'stats.js'
import { graphics, audio } from './data'
import { captureAudio, loadDraggedAudio, initAudio } from './audio'
import { random, randomColor, vendorPrefixed, vendorPrefix } from './utils'
document.exitFullscreen =
vendorPrefixed('exitFullscreen', document) ||
... |
import React, { useState, useEffect, Popover } from 'react';
import { useParams, useHistory } from 'react-router-dom';
import axios from 'axios';
import 'antd/dist/antd.css';
import { Form, Button, Select, DatePicker, TimePicker, Modal } from 'antd';
import { useSelector } from 'react-redux';
const EditMatching = ({ s... |
/*
Copyright (c) Microsoft Corporation
All Rights Reserved
Apache License 2.0
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 a... |
const WIDTH = 300;
const HEIGHT = 300;
// For buttons
const WIDTH_EXT = 200;
let gImage;
let gGon = 6;
const SCALAR = HEIGHT * 0.4;
const FILE_NAMES = [
'F.svg',
'yosegi1.svg',
'yosegi2.svg'
];
let gReflectionParameter = 1; // 1 or -1
let gRotationParameter = 0; // From 0 to (gGon - 1)
function preload()... |
var Song = require('../models').Song,
Mplayer = require('./mplayer');
youtube = require('./youtube');
var Player = module.exports = function() {
// mplayer
this._mplayer = new Mplayer();
this._mplayer.start();
// Current song
this._currentSong = undefined;
// Playlist
this._playlist = [];
thi... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LooseParser = exports.pluginsLoose = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enum... |
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { injectIntl, FormattedMessage } from 'react-intl';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import Dialog from '@material-ui/core/Dialog';
import DialogTitle from '@material-ui/core/DialogTitle'... |
/* */
const express = require('express');
const app = express();
const exec = require('child_process').exec;
const fs = require("fs");
const path = require('path');
const formidable = require('formidable');
const bodyparser = require('body-parser');
const c = require(path.join(__dirname, '_config.js'));
app.use(bod... |
const globby = require('globby');
const path = require('path');
const fse = require('fs-extra');
const _ = require('lodash');
// Build JSON Tokens
const buildJson = async (srcPath, tokens) => {
const pathName = srcPath
.replace('js', 'json')
.replace('src/tokens', 'dist/json');
(async () => {
await fs... |
// Testing framework
const chai = require('chai');
const chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
const expect = chai.expect;
chai.should();
// Useful
const convertSourceMap = require('convert-source-map');
// Dependents
const Logger = require('../src/logger');
const IoTest = require('.... |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... |
const renderRoomField = () => {
let uniqName = `rm_${Date.now()}`
let field = document.createElement('div')
field.classList.add(...(('rm_field bg-white my-4 shadow-lg rounded-xl p-3 flex flex-col items-center gap-3 relative').split(' ')))
field.id = uniqName
field.innerHTML = /*html*/ `<img src="img... |
/*
* Tutorial
* The 0h n0 tutorial with its messages and required tile(s) to tap.
* (c) 2015 Q42
* http://q42.com | @q42
* Written by <NAME>
* <EMAIL> | @mrtnkl
*/
var TutorialMessages = [
//{ msg: 'Welcome to 0h n0. Tap any tile to continue...', tiles: [], next: true },
{ msg: 'Pink dots can see others <br... |
import React, { useState, useRef, memo } from 'react';
import PropTypes from 'prop-types';
import SwipeableViews from 'react-swipeable-views';
import { makeStyles, useTheme } from '@material-ui/core/styles';
import {
withStyles,
AppBar,
Box,
ClickAwayListener,
Toolbar,
Grid,
Grow,
Card,
CardContent,
... |
// import React from 'react'
// import PropTypes from 'prop-types'
// import Helmet from 'react-helmet'
// import { Link, graphql } from 'gatsby'
// import styled from 'styled-components'
// import { Layout, Wrapper, Header, Subline, Article, SectionTitle } from '../components'
// import config from '../../conf... |
var data = []
var currentID = -1
function init() {
if (window.location.href.includes("#")) window.location.href = "/"
data = JSON.parse(localStorage.getItem('passwords'))
loadPasswords()
}
init()
function loadPasswords() {
var content = document.getElementById("content")
content.innerHTML = ``
if (data ==... |
goog.module('os.ui.util.AutoHeightUI');
goog.module.declareLegacyNamespace();
const ui = goog.require('os.ui');
const Module = goog.require('os.ui.Module');
/**
* A directive to automatically size a component to a percentage of available space. Available space is determined
* by subtracting the height of all sibli... |
import React from 'react';
import Carousel from './subAbout/Carousel';
import { theAgents } from './subAbout/Constants'
const About = () => {
return (
<div id="about">
<div id="team" className="my-10">
<div className="container mx-auto">
<div className="...">
<div className="t... |
'use strict';
var assert = require('assert');
var fs = require('fs');
var path = require('path');
var child_process = require('child_process');
var outputFormat = process.env.OUTPUT_FORMAT ||
(+process.env.NODE_BENCH_SILENT ? 'silent' : false) ||
'default';
// verify outputFormat... |
// Zipkin Test App, acts as a server for the other testers as well
// as doing a few other things that likely don't need to be here.
// Logging and other i18n and related could be removed if needed.
//
// This was split off since I'm favoring Jaeger, but wanted to keep
// a working version of Zipkin prior to moving ove... |
// Three JS Template
window.addEventListener("load", init, false);
function init() {
createWorld();
createLights();
// createGrid();
createPrimitive();
// createGUI();
//---
animation();
}
//--------------------------------------------------------------------
var scene, camera, renderer, container;
var _w... |
/*jslint node: true */
"use strict";
// var fs = require('fs');
var crypto = require('crypto');
var Mnemonic = require('bitcore-mnemonic');
var Bitcore = require('bitcore-lib');
var objectHash = require('bng-core/object_hash');
// var device = require('bng-core/device.js');
// var walletDefinedByKeys = require('bng-co... |
import React, {Component} from 'react'
import {Grid, Statistic, Icon, Segment, Divider, Checkbox, Message, Form} from "semantic-ui-react";
import SalonBooking from "../SalonBooking";
import axios from "axios/index";
import {SERVER_ROUTES, COMMON_ERROR_MESSAGE} from "../../common/commonVarList";
import moment from 'mome... |
import React from 'react';
import { connect } from 'react-redux';
import { saveJenkinsServer, deleteJenkinsServer, testJenkinsServer } from '../common/rest'
import { TextInput, Checkbox, ButtonGroup, Button, Message, Modal } from '../common/aui'
const ActionDialog = ({
message,
state
}) => {
switch(state){... |
"use strict";
/**
* @license
* Copyright 2013 Palantir Technologies, Inc.
*
* 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
*
* Unle... |
/**
* @ngdoc object
* @name anol.layer.BaseWMS
*
* @param {Object} options AnOl Layer options
* @param {Object} options.olLayer Options for ol.layer.Image
* @param {Object} options.olLayer.source Options for ol.source.ImageWMS
*
* @description
* Inherits from {@link anol.layer.Layer anol.layer.Layer}.
*/
imp... |
// The MIT License (MIT)
//
// Copyright (c) 2019-2020 Camptocamp SA
//
// 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
// u... |
import React from 'react';
import { connect } from 'react-redux';
import { fetchUser, fetchFriends } from '../../store/user';
import { fetchAllUsers } from '../../store/allUsers';
import { fetchLevels } from '../../store/level';
import { Link } from 'react-router-dom';
import EditProfile from './EditProfile';
import Ve... |
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
import { Overlay, ScrollStrategyOptions }... |
/**
* @fileOverview random layout
* @author <EMAIL>
*/
const Layout = require('./layout');
const SPEED_DIVISOR = 800;
/**
* fruchterman 布局
*/
Layout.registerLayout('fruchterman', {
getDefaultCfg() {
return {
maxIteration: 1000, // 停止迭代的最大迭代数
center: [ 0, 0 ], // 布局中心
gr... |
let chart = {};
let updatedDataUsed = false;
/** Test data for this chart */
const dataSet1 = {
co2: [
{ label: "SCI", y: 18 },
{ label: "CIT", y: 29 },
{ label: "IRV", y: 40 },
{ label: "GRA", y: 34 },
{ label: "LJA", y: 24 }
],
c... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Howl } from './howler'
import { noop } from './utils'
class ReactHowler extends Component {
constructor (props) {
super(props)
this.initHowler = this.initHowler.bind(this)
}
componentDidMount () {
this.initHowler()
... |
import * as THREE from "three";
/* Code for split meshes to surfaces an then merge it to one mesh */
function mapGeometryToFaces(geometry) {
const positions = geometry.getAttribute("position");
const normals = geometry.getAttribute("normal");
const arr = [];
for (let i = 0; i < positions.array.length; i += 9... |
import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
import './index.less'
const { templates, util } = MIP
const log = util.log('mip-myh-adv')
export default class MIPMYHAdv extends MIP.CustomElement {
build () {
// 在这里注册 say 事件的监听
this.addEventAction('click', (event, adSign) => {
let adSignVal = adSign + ',' + this.postData['userid'] + ',' + this.postE... |
import React, { useState } from "react";
import {
Modal,
ModalHeader,
ModalBody,
Table,
Input,
Form,
} from "reactstrap";
import {
useFormik,
FormikProvider,
FieldArray,
ErrorMessage,
} from "formik";
import * as Yup from "yup";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
impor... |
// ==UserScript==
// @name Glitch Auction Calorie Cost Calculator
// @description Calculates the calories ("energy") per currant.
// @include http://www.glitch.com/auctions/cat-food/*
// @author <NAME> <<EMAIL>>
// @version 1.0
//
// ==/UserScript==
function main() {
// Remove any items... |
/**
* @copyright 2020 <NAME> & Sons, Inc.
* @license MIT
*/
const fs = require('fs');
const path = require('path');
const axios = require('axios');
const chalk = require('chalk');
const SimpleTable = require('cli-simple-table');
// scary red error message
exports.error = (msg) => {
console.error(chalk.bold.red(m... |
// Copyright 2017 the V8 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.
// Flags: --ignition --turbo
Debug = debug.Debug
var exception = null;
var object_with_symbol_key = {[Symbol("a")]: 1};
var object_with_callbacks = { ... |
'use strict';
import React, {
Component,
} from 'react';
import {
Animated,
DatePickerIOS,
Dimensions,
Image,
ListView, ScrollView,
StyleSheet,
Switch,
Text,TextInput, View,
TouchableOpacity, TouchableHighlight,
} from 'react-native';
var moment = require('moment');
require('moment-timezone');... |
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { t } from 'ttag';
import $ from 'jquery';
import HathorAlert from '../components/HathorAlert';
imp... |
/* globals EmberENV */
import { guidFor } from '@ember/object/internals';
import { run } from '@ember/runloop';
import Ember from 'ember';
import global from './global';
import { isTestContext, getContext } from './setup-context';
import { nextTickPromise } from './-utils';
import settled from './settled';
import hbs f... |
import shuffleArray from 'shuffle-array';
const PARENT = 'nicotb';
const CHARACTER_SET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
let sessionFetcher;
function generateServiceUserId() {
const str = shuffleArray(CHARACTER_SET.split(''))
.slice(0, 10)
.join('');
const time = Date.now();
retu... |
// 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 ... |
/* ----------------------------------------------------------------------------
BSD 3-Clause License
Copyright (c) 2018, wrightm-mac
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification... |
/*
* *******************************************************************************************
* @author: <NAME> (Kyri123)
* @copyright Copyright (c) 2021, <NAME>
* @license MIT License (LICENSE or https://github.com/Kyri123/KAdmin-ArkLIN2/blob/master/LICENSE)
* Github: https://github.com/Kyri123/KAdmin-ArkLIN2... |
/*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
function showAddNewGoal() {
hideForms();
$(".entityAddContainer").show();
showCancel();
hideCreateGoal();
piwikHelper.lazyScrollTo(".entityContainer", 4... |
const isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
var cv = require('../../opencv');
var HelpFunc = require('../perf_helpfunc');
var Base = require('../base');
} else {
var paramsElement = document.getElementById('params');
var runButton = ... |
import React, { Component } from "react";
import { withStyles } from "@material-ui/core/styles";
import Button from "@material-ui/core/Button";
import Dialog from "@material-ui/core/Dialog";
import MuiDialogTitle from "@material-ui/core/DialogTitle";
import IconButton from "@material-ui/core/IconButton";
import CloseIc... |
// © 2019, MIT license
const { charRangeRe, charRangeReGlobal } = require('./characters')
const { wideLength } = require('./length')
/**
* Returns a sliced string with wide/fullwidth characters counting for two.
*
* This function has the same interface as String.prototype.slice(), except that the string
* is the ... |
/* eslint-disable camelcase */
import path from 'path';
import { readFileSync } from 'fs-extra';
import { expect } from 'chai';
import { sequelize } from '../../server/models';
import { fakeUser, fakeCollective, fakeEvent, fakeUpdate } from '../test-helpers/fake-data';
const banCollectivesQuery = readFileSync(path.jo... |
const uuid = require('uuid')
const { debug } = require('../lib/config').getPreDbConfig()
const utils = require('./utils')
const getMeta = require('../lib/getMeta')
const drivers = {}
/**
* Validate that the driver implementation has a function by name provided
* @param {string} path
* @param {object} driver
* @pa... |
import path from 'path';
import * as fetch from '../lib/fetch.js';
import * as parse from '../lib/parse.js';
import * as transform from '../lib/transform.js';
import * as datetime from '../lib/datetime.js';
import * as rules from '../lib/rules.js';
import * as fs from '../lib/fs.js';
import * as maintainers from '../li... |
/**
* esta variable guarda el handler de validacion del formulario. La dejo global para no tener que buscarla siempre
*/
var form_handler ;
function setup_validation() {
var custom_messages = {};
var custom_rules = {};
/* custom_messages['cpm_jovenesbundle_proyectotype[escuela][localidad... |
var fs = require('fs');
var path = require('path');
var _ = require('underscore');
var cheerio = require('cheerio');
var JSON5 = require('json5');
var utilities = require('../gulpTasks/buildUtilities');
exports.load = function (from, options) {
return new Dictionary(from, options);
};
// Converts from the old XML f... |
var chessground = require('chessground');
var partial = chessground.util.partial;
var editor = require('./editor');
var drag = require('./drag');
var m = require('mithril');
function castleCheckBox(ctrl, id, label, reversed) {
var input = m('input[type=checkbox]', {
checked: ctrl.data.castles[id](),
onchange... |
// (c) <NAME> <<EMAIL>>. All rights reserved.
// Approximation of a trefoil knot. Based on ideas from:
// http://www.jcu.edu/math/ictcm99/animations/knot.htm
// http://virtualmathmuseum.org/SpaceCurves/
// I then butchered the math a bit, so don't trust it.
function trefoilFunc(t) {
var t2 = t+t;
var t3 = t2... |
import macro from 'vtk.js/Sources/macro';
import vtkDataArray from 'vtk.js/Sources/Common/Core/DataArray';
import vtkPoints from 'vtk.js/Sources/Common/Core/Points';
import vtkPolyData from 'vtk.js/Sources/Common/DataModel/PolyData';
import { DesiredOutputPrecision } from 'vtk.js/Sources/Common/DataModel/DataSetAttrib... |
'use strict';
/* eslint-disable class-methods-use-this, no-param-reassign */
const n = require('numeral');
const NexusComponent = require('./nexus/base/Component'); // eslint-disable-line no-unused-vars
const MarketComponent = require('./market/v1/summary'); // eslint-disable-line no-unused-vars
const numerFmt = '0... |
// Sonoff-Tasmota Motion Sensor Accessory plugin for HomeBridge
//
// Remember to add accessory to config.json. Example:
/* "accessories": [
{
"accessory": "mqtt-motion-sensor-tasmota",
"name": "Motion Sensor",
"url": "mqtt://MQTT-BROKER-ADDRESS",
"username": "MQTT USER NAME",
"password": "<PASSWORD>",
... |
const ethers = require('ethers');
const express = require('express');
const chalk =require('chalk');
const dotenv = require('dotenv');
const inquirer = require('inquirer');
const app = express();
dotenv.config();
const data = {
WBNB: process.env.WBNB_CONTRACT, //wbnb
to_PURCHASE: process.env.TO_PURCHASE, // token... |
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 = Reflect.decorate(d... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _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]; } } }... |
// Video Popup code
var $doc = $(document);
// Building the slider using IIFE
(function () {
var pl = {
data: {
jsonFile: "./src/data/data.json"
},
model: {
getJsonData: function (jsonFile) {
var dfd = $.Deferred();
$.ajax({
... |
'use strict';
//Declaración de variables globales////////////////
//input
const input = document.querySelector('.js_input');
//botón
const butonSearch = document.querySelector('.js_button');
//ul donde se pintan resultados búsqueda
const resultsContainer = document.querySelector('.js_results');
// ul donde se... |
var JOGAR = 1;
var ENCERRAR = 0;
var estadoJogo = JOGAR;
var trex, trex_correndo, trex_colidiu;
var solo, soloInvisivel, imagemDoSolo;
var grupoDeNuvens, imagemDaNuvem;
var grupodeobstaculos, obstaculo1, obstaculo2, obstaculo3, obstaculo4, obstaculo5, obstaculo6;
var pontuacao=0;
var fimDeJogo, reiniciar;
functi... |
import algoliasearch from 'algoliasearch/lite';
import instantsearch from 'instantsearch.js';
import { searchBox, hits } from 'instantsearch.js/es/widgets';
import * as $ from 'jquery';
// Search Client
const searchClient = algoliasearch('W5144GWNC7', '007a65abffcee913949d61c3aa980ed8');
const index = searchClient.ini... |
goog.module('grrUi.core.versionDropdownDirectiveTest');
goog.setTestOnly();
const {VersionDropdownDirective} = goog.require('grrUi.core.versionDropdownDirective');
const {coreModule} = goog.require('grrUi.core.core');
const {testsModule} = goog.require('grrUi.tests');
describe('version dropdown directive', () => {
... |
import { NES } from './src/nes.js';
import { Renderer } from './src/renderer.js';
document.getElementById('rom').addEventListener('change', loadRom, false);
const palette = Uint8ClampedArray.from([
124, 124, 124, 255, 0, 0, 252, 255, 0, 0, 188, 255, 68, 40, 188, 255, 148, 0, 132, 255, 168, 0, 32, 255, 168, 16, 0... |
/**
* This module provides convenient storage abstractions. Implementing storage in
* a utility module, rather than directly calling browser storage APIs, avoids code
* duplication and allows us to swap out the underlying storage implementation if
* needed (e.g., switching from localforage to Dexie, or directly usi... |
var x11 = require('../../lib/x11');
var Exposure = x11.eventMask.Exposure;
var PointerMotion = x11.eventMask.PointerMotion;
var ButtonPress = x11.eventMask.ButtonPress;
var ButtonRelease = x11.eventMask.ButtonRelease;
var SubstructureNotify = x11.eventMask.SubstructureNotify;
var StructureNotify = x11.eventMask.Structu... |
import React from 'react';
import { connect } from 'react-redux';
import { compose } from 'redux';
import { createStructuredSelector } from 'reselect';
import { compose as composeApollo, graphql } from 'react-apollo'
import injectReducer from 'utils/injectReducer';
import gql from 'graphql-tag';
import { Link } from ... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import { createStructuredSelector } from 'reselect';
import {OUTPUT_WIDTH} from 'constants/ViewConstants';
import {actionConstants as portActionTypes} from './constants';
import {actionConstants as nodeActionTypes}from "features/nodes/constants";
const FOREIGN_MOUSE_UP = 'iot.red/mouse/MOUSE_UP';
const FOREIGN_CLEAR ... |
$(document).ready(function() {
$("#update_nv1111").submit(function(event) {
event.preventDefault();
var form_oke = true;
var ten_ns = $.trim($("#ten_ns_update").val());
var id_staff = $.trim($("#id_staff").val());
// var email = $.trim($("#email_update").val());
// va... |
import helpers from "../utils/helpers";
import internalFs from "./internalFs";
import externalFs from "./externalFs";
import path from "../utils/path";
import remoteFs from "./remoteFs";
import Url from "../utils/Url";
import dialogs from "../../components/dialogs";
import constants from "../constants";
/**
*
* @pa... |
// Copyright (c) 2014-2019, MyMonero.com
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// cond... |
// Imports
import React, { Component } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { Helmet } from "react-helmet";
import { Link } from "react-router-dom";
import { withRouter } from "react-router-dom";
import states from "./states";
// UI Imports
import { Grid, Grid... |
'use strict';
/* App Modules of TD-Portal */
var tdPortal = angular.module('courseConnect', [
'ngAnimate',
'ui.bootstrap',
'ngScrollGlue',
'ngRoute',
'Directives',
'Services',
'Filters',
'CtrlIndex',
'CtrlChat',
'CtrlPrivate',
'CtrlUserLogin',
'CtrlUserSignup',
'Ctr... |
import React, { Component } from 'react'
import Sprinkle, { attrs as sprinkleAttrs } from './Sprinkle'
import zip from 'lodash/zip'
import '../css/Donut.css'
const isDev = process.env.NODE_ENV === 'development'
const SPRINKLE_SCALE = 2
const SPRINKLE_META = sprinkleAttrs(SPRINKLE_SCALE)
const TWO_PI = Math.PI * 2
con... |
import THREE from './three';
import {attachRotator, onWindowResize as onRotatorWindowResize, setRotation, applyRotationToObject} from './rotator';
// if ( ! Detector.webgl ) { Detector.addGetWebGLMessage(); }
// var stats;
var camera, scene, renderer, lut;
var position;
var mesh, legend;
var colorMap = 'rainbow';
var ... |
import React, { Component } from 'react';
import { withRouter, Switch, Redirect } from 'react-router-dom';
import GatewayStatus from '../../common/GatewayStatus';
import LeftNav from '../../components/LeftNav';
import LoadableComponent from '../../utils/LoadableComponent';
import GatewayRoute from '../../components/Gat... |
import Knex from 'knex';
import validate from 'validate';
import md5 from 'md5';
import configs from '../configs/index';
const knex = Knex(configs.knexConfig);
export default class ModelTest{
static async save(data){
//console.log(data);
let result = await knex('test_data')
.insert... |
/*
* Copyright 2015-2017 <NAME>. (http://www.onehippo.com)
*
* 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 appl... |
const fs = require('fs');
const he = require('he');
const capitalize = require('./demo-gen-utils').capitalize;
const plnkrUrl = 'http://plnkr.co/edit/?p=preview';
const contentMainTs = fs.readFileSync('misc/plunker-builder-templates/main.ts').toString();
const packageJson = JSON.parse(fs.readFileSync('package.json'))... |
import React from "react"
import styled from "styled-components"
import { Link, useStaticQuery } from "gatsby"
import Layout from "../components/Layout"
import SEO from "../components/seo"
import "../css/style.scss"
const Wrapper = styled.div`
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing:... |
import { client } from '../plugins/Platform.js'
import { addEvt, cleanEvt, getTouchTarget } from '../utils/touch.js'
import { position, leftClick, stopAndPrevent } from '../utils/event.js'
import { clearSelection } from '../utils/selection.js'
const
keyCodes = {
esc: 27,
tab: 9,
enter: 13,
space: 32,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.