text
stringlengths
5.97k
41.2k
import React from "react"; //import "./Register.css"; import { Alert, Keyboard, BackHandler, Button, View, Text, TextInput, FlatList, ScrollView, TouchableOpacity, Switch, StyleSheet, StatusBar, Dimensions, TouchableWithoutFeedback, TouchableNativeFeedback, VirtualizedList, TimePickerAndroid, DatePickerAndroid, Modal ...
class NeuronalNetwork { nrInputNeurons = 7 nrOutputNeurons = 2 nrHiddenNeuronsLayer1 = 20 weigthInHi = [ [-9.573098, -1.4854251, -0.34228095, -2.188, 17.590433, -2.966979, -1.9279383, 4.57891, -49.276424, -4.6155014, 11.608291, 4.7270913, -2.7858176, 7.706456, -2.6397383, 6.35533, -1.1433047, -22.65...
var Map = require('../../app/commonscripts/ctmap').Map; var Util = require('../../app/commonscripts/utilities'); angular.module("klera").factory('dragdropManager', ['logService', 'container', 'layoutManager', 'sessionManager', 'floor', '$rootScope', function (logService, Container, layoutManager, sessionManage...
// Portions Copyright 2019 <NAME> (https://github.com/Jimbly/) // Released under MIT License: https://opensource.org/licenses/MIT const assert = require('assert'); const camera2d = require('./camera2d.js'); const glov_engine = require('./engine.js'); const { applyCopy, effectsQueue, effectsIsFinal } = require('./effec...
import { Mat4 } from '../../math/mat4.js'; import { Vec3 } from '../../math/vec3.js'; import { BoundingBox } from '../../shape/bounding-box.js'; import { INDEXFORMAT_UINT16, INDEXFORMAT_UINT32, PRIMITIVE_LINELOOP, PRIMITIVE_LINESTRIP, PRIMITIVE_LINES, PRIMITIVE_POINTS, PRIMITIVE_TRIANGLES, PRIMITIVE_TRIFAN, P...
// Copyright 2019 Esri 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 agreed to in writing, software distr...
var app_excludes = ["Shell", "explace", "UserDefaults","dlm", "MarketingAPI", "ConfigurationObject", "uitype=advanced", "*-", "copilot", "quickview", "quickcreate"]; var debug = false; var logger; //CONSTRUCTOR function utilsabapflp(_user, _logger) { this.user = _user; this.logger = _logger; } /** * getSuffix */ ...
// some values const canvasMaxWidth = 1900; var enableComplexAnimation = true; // some inline functions function isInRange(value, min, max) { return value >= min && value < max; } function clamp01(value) { return value > 1 ? 1 : value < 0 ? 0 : value; } function RandomRange(min, max) { return min + (max - ...
$(document).ready(function () { }); function KendoSettings() { this.url = ''; this.height= ''; this.rowTemplate = ''; this.columns = ''; this.filter = ''; this.pageable = true; this.page = 10; this.wrapper = '#grid'; this.filterable = false; this.data = {}; ...
/** * Creates regular expressions based on specified settings * @example * new RegExpCreator({caseSensitive: true, diacritics: false}).create('lorem'); * // => /()(lorem)/gm */ class RegExpCreator { /** * @typedef RegExpCreator~accuracyObj * @type {object.<string>} * @property {string} value - An accur...
/** * 返回列表第一页 */ function returnFirstPage() { $("#grid-data").bootgrid("repage", true); } /** * * @param thisElement 被点击的按钮本身 * @auth jiwenfang * @createTime 2017年3月21日 下午4:56:35 * @desc 添加Tab标签,进行选中并展示添加DIV页 * */ function showAddDiv(thisElement){ $("#add_overTimeLeave").empty();...
"use strict"; /** * cleanMaruComic.js clean comic page from ads. * @author Isitea<<EMAIL>> */ const { ImageEx } = require( "../module/ImageEx" ); const { ImageExLoader } = require( "../module/ImageExLoader" ); const { acrDOM } = require( "../module/acrDOM" ); const { ipcRenderer } = require( "electron" ); const si...
var PropertyDialog = (function() { var instance = null; function PrivateConstructor() { var dialog = $("#propertyDialog"); var menuId = "propertyFunctions"; var rightDiv; var worksheetId; var alignmentId; var propertyId, propertyUri, propertyLabel, propertyRdfsLabel, propertyRdfsComment, propertyIsPro...
const THREE = require("three"); const OrbitControls = require("three-orbitcontrols"); //import { OBJLoader } from "three/examples/jsm/loaders/OBJLoader"; import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js"; //import {CSS3DRenderer,CSS3DObject,CSS3DSprite} from "three/examples/jsm/renderers/CSS3DRender...
import React from 'react'; import { connect } from 'react-redux'; import { View, Text, TouchableOpacity, BackHandler, Animated } from 'react-native'; import Svg, { Path } from 'react-native-svg'; import { updatePopup, updateBulkEdit, moveLinks } from '../actions'; import { CONFIRM_DELETE_POPUP, LIST_NAMES_POPUP, MY_...
"use strict"; require("core-js/modules/es.symbol"); require("core-js/modules/es.symbol.description"); require("core-js/modules/es.symbol.iterator"); require("core-js/modules/es.array.concat"); require("core-js/modules/es.array.filter"); require("core-js/modules/es.array.from"); require("core-js/modules/es.array....
'use strict'; // --------------------------------------------------------------------------- const Exchange = require('ccxt/js/base/Exchange'); const { ExchangeError, ArgumentsRequired, AuthenticationError, DDoSProtection, ExchangeNotAvailable, InvalidOrder, InvalidNonce, OrderNotFound, PermissionDenied, Insufficient...
var loadSuccess = false; if(groupId != '') { urlParam = "groupId="+groupId; } $(function(){ //加载树 $("#groupTree").tree({ url:curUrl + "/lc/manage/action/group!loadGroupsTree.action?"+urlParam, onBeforeExpand:function(node,param){ var url = curUrl + "/lc/manage/action/group!loadGroupsTree.act...
const fs = require('fs-extra') const { prefix } = JSON.parse(fs.readFileSync('./settings/setting.json')) /* Dimohon untuk tidak menghapus link github saya, butuh support dari kalian! makasih. */ exports.textTnC = () => { return ` Source code / bot ini merupakan program open-source (gratis) yang ditulis men...
// GLOBALS const examples_items = document.getElementById("examples_items"); const examples_left = document.getElementById("examples_left"); const examples_right = document.getElementById("examples_right"); const options_background_input = document.getElementById("options_background_input"); const options_foreground_...
//$(document).ready(function () { var isRotation = true; new Propeller(document.getElementById('wrapper-propeller'), { inertia: 0, speed: 0, step: 0, onRotate : function(){ /*console.log("rotate");*/ isRotation = false; }, onDragStop : function(){ /* console.log("stop");*/ if(!isRotation){ ...
"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 (Object.protot...
// A cross-browser requestAnimationFrame // See https://hacks.mozilla.org/2011/08/animating-with-javascript-from-setinterval-to-requestanimationframe/ var requestAnimFrame = (function(){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFra...
import FlightSuretyApp from "../../build/contracts/FlightSuretyApp.json"; import FlightSuretyData from "../../build/contracts/FlightSuretyData.json"; import Config from "./config.json"; import Web3 from "web3"; const gancheAddressesExcludingContractOwner = [ { address: "0x03cf3b49148b6e34c241eea65a95e873f9c80573", ...
import React, { Component, useEffect, useState } from "react"; import { useParams } from "react-router-dom"; import { Card, CardContent, CardHeader, Grid, Avatar, Button, TextField, Table, TableHead, TableRow, TableBody, TableCell, CircularProgress, } from "@material-ui/core"; import Preloader...
var g_widget_mode = true; // 편집에서는 초기 false var dgn_width = 1200; var dgn_height = 1000; function Form_Load( ) { DGN_Design.MetaShowLayout( "toolbar_ctrl", false ); DGN_Design.SetPropertyTool( DGN_PPT, false ); DGN_Design.AddInitProperty( "SearchTp", "string", "" ); // stdt, enddt DGN_PPT.UseCtrlTypeCha...
var icossin2 = function(dx, dy){ var theta = Math.atan2(dx, dy); return { cos: Math.cos(theta), sin: Math.sin(theta), theta: theta } } /* See: /sys/src/libdraw/drawrepl.c */ var drawreplxy = function(min, max, x){ var sx; sx = (x - min) % (max - min); if(sx < 0) sx += max - min; return sx + min; } va...
/** * @name SearchSource * * @description A promise-based stream of search results that can inherit from other search sources. * * Because filters/queries in Kibana have different levels of persistence and come from different * places, it is important to keep track of where filters come from for when they are sav...
import React, { useState, useEffect, useReducer } from "react"; import { Box, Card, Table, Button, TableRow, TableBody, TableCell, TableHead, TextField, TableContainer, IconButton, Menu, MenuItem, Avatar, Typography, Grid, InputLabel, FormControl, Select, Container, Paper, In...
import _ from 'lodash'; import axios from 'axios'; import moment from 'moment'; import cookie from 'react-cookies'; import styled from 'styled-components'; import React, { Component } from 'react'; import { CardText } from 'material-ui/Card'; import { MenuItem, Popover, Menu, Chip, FlatButton } from 'material-ui/'; im...
require('./bootstrap'); // 富文本 import E from "wangeditor"; import i18next from "i18next"; const createEdit = (textarea_css_feature)=>{ let div_css_feature = "div_description" const $text1 = document.querySelector(textarea_css_feature) const _div = document.createElement("DIV"); _div.id=div_css_feature; div_...
const { app, Menu, Tray, electron } = require('electron') require('@electron/remote/main').initialize() const { BrowserWindow } = require('electron') var ipc = require('electron').ipcMain; var url = require('url') var express = require('express'); const find = require('find-process'); const util = require('util') const...
// 0x07006C58 - 0x07006D58 import { gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPVertex, gsSP2Triangles, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometryMode, G_IM_FMT_RGBA, G_...
import { DeleteOutlined, EyeOutlined, FileExcelOutlined, LoadingOutlined, PrinterOutlined, SettingOutlined, UserAddOutlined, SearchOutlined } from "@ant-design/icons"; import { Button, Card, Col, Input, notification, Popconfirm, Row, Space, DatePicker,...
/* if (typeof define !== 'function') { var define = require('amdefine')(module); } define(["./jsgui-lang-util", "./data-object-fields-collection"], function(jsgui, Fields_Collection) { */ var jsgui = require('./jsgui-lang-util'); var Data_Value = require('./data-value'); var Data_Object = require('./data-object...
/* eslint-disable prefer-promise-reject-errors */ /* eslint-disable no-unused-vars */ 'use strict' const MAX_PRECISION = false const precision = 2 const gaussMatrix = [ [0.0121, 0.0261, 0.0337, 0.0261, 0.0121], [0.0261, 0.0561, 0.0724, 0.0561, 0.0261], [0.0337, 0.0724, 0.0935, 0.0724, 0.0337], [0.0261, 0.0561, ...
import "antd/es/table/style"; import _Table from "antd/es/table"; import "antd/es/card/style"; import _Card from "antd/es/card"; import "antd/es/typography/style"; import _Typography from "antd/es/typography"; import "antd/es/tooltip/style"; import _Tooltip from "antd/es/tooltip"; function asyncGeneratorStep(gen, reso...
'use strict'; const BbPromise = require('bluebird'); const _ = require('lodash'); const NOT_FOUND = -1; module.exports = { compileMethods() { const corsPreflight = {}; const defaultStatusCodes = { 200: { pattern: '', }, 400: { pattern: '.*\\[400\\].*', }, 401:...
/* <NAME>, University of Amsterdam 10753532, 01-02-2018 Programming project for the university of Amsterdam. Renders a webpage with visualizations of world food consumption and Dutch food export. Main elements are an interactive map, a bar chart and a line chart. */ // font size for axes var axisFontSize = "10px"; //...
import {Sides} from "../../core/utils.js"; import PolyNumber from "../../1D/polynumber/base.js"; import Expression2D from "../notation/expression.js"; import {ORIENTATION, SIDE} from "../../core/constants.js"; import RowNotation2D, {ExtendedRowNotation2D} from "../notation/row_major.js"; import ColumnNotation2D, {Exten...
var typeSelected = new Array("contact", "geo"); var HASHTAGS_LIST = new Array(); var idPlace = new Array("contact", "geo"); var timeout = setTimeout('', 1000); var countrycodes = "fr"; var dataContact; //gère la correspondance entre les btn et les icons var listIcoScope = { "contact" : "user", "gro...
window.additionalTestFns = {}; var unloadRequire; (function () { var requireModules = { }; var originalDef = require.def; var originalDefine = define; var originalLoad = require.load; require.def = function() { var name = arguments[0]; requireModules[name] = arguments; originalDef.apply(require, arguments...
// Abstract objects/classes function rectangle(x = 0, y = 0, width = 1, height = 1) { // Constructor lines this.x = x; this.y = y; this.height = height; this.width = width; // Rectangle objects exist in the 2D canvas, and canvas coordinates are as // follows: // w i d t h // (0, 0) --...
//commonly used type shorthand. TODO: merge with ITEM_KIND somehow usefully. const SUPPLYTYPE = {treasure: 10, recovery: 4, evolution: 17, skill: 67, augment: 73, vessels: 75, Untracked: [1,2,3,19,37,38,39,50,82]}; //jshint ignore:line SUPPLYTYPE.Consumables = [SUPPLYTYPE.recovery, SUPPLYTYPE.evolution, SUPPLYTYPE.augm...
var socket = null; var utf8 = new TextEncoder('UTF-8'); var CLIENT_KEY = utf8.encode('Client Key'); var SERVER_KEY = utf8.encode('Server Key'); function b64encode(buf) { return btoa(String.fromCharCode.apply(null, new Uint8Array(buf))); } function b64decode(s) { // https://developer.mozilla.org/en-US/docs/W...
var express = require("express"); var nodemailer = require('nodemailer'); var dateTime = require('node-datetime'); var fs = require("fs"); var router = express.Router(); var Cryptr = require('cryptr'), cryptr = new Cryptr('myTotalySecretKey'); var asyncLoop = require('node-async-loop'); var mailemail = '<EMAIL>'; v...
import React, { useState, useRef, useEffect } from "react"; import { View, ImageBackground, ScrollView, TouchableOpacity, Image, } from "react-native"; import styles from "../styles"; import { AntDesign, Entypo } from "@expo/vector-icons"; import COLOR from "../../../constants/colors"; import moment from "mom...
import React, { useEffect, useState, useRef } from 'react' import { connect } from 'react-redux' import Container from '../../../atoms/Container/Container' import Input from '../../../atoms/Input/Input' import Button from '../../../atoms/Button/Button' import { fetchAdvanceJobs, deleteJob, deleteJobItem, fetchJ...
var util = require('util'), inspect = util.inspect, path = require('path'); var fs = require('fs-extra'); var _ = require('lodash'), _s = require('underscore.string'), exec = require('child_process').execSync, grunt = require('grunt'), globule = require('globule'), jsy...
import React from 'react'; import RaisedButton from '../../elements/RaisedButton'; import { browserHistory } from 'react-router'; import * as toastr from '../../../utils/toastr'; import { QUERY_STRING, WAITING_TIME, getHandsetStatusOptions, HANDSET_STATUS } from '../../../core/common/constants'; import RS, { Option } f...
class Recipe { static all = []; constructor(id, name, ingredients, time, course, ratings) { this.id = id; this.name = name; this.ingredients = ingredients; this.time = time; this.course = course; this.ratings = ratings; this.constructor.all.push(this) } get...
import { html, ifDefined } from "../assets/@lion/core/index.js"; import { SakaiElement } from "../sakai-element.js"; import "./sakai-topic-list.js"; import "./sakai-add-topic.js"; import "./sakai-conversations-tag-manager.js"; import "./sakai-conversations-guidelines.js"; import "./sakai-conversations-settings.js"; imp...
function webgl_setup(){ // first, we obtain necessary context and shader code from our page var gl = document.getElementById('can').getContext('webgl'); var source_vs = document.getElementById('vertex-shader').textContent; var source_fs = document.getElementById('fragment-shader').textContent; // c...
const ISIZE = 4 // sizeof(isize) (wasm32=4, wasm64=8) // enum _p_err const p_err_none = 0 // no error const p_err_badfd = -1 // invalid file descriptor const p_err_invalid = -2 // invalid data or argument const p_err_sys_op = -3 // invalid syscall op or syscall op data const p_err_ba...
// @ts-check import '@agoric/zoe/exported.js'; import { E } from '@endo/eventual-send'; import { Nat } from '@agoric/nat'; import { assertProposalShape, makeRatioFromAmounts, getAmountOut, getAmountIn, ceilMultiplyBy, ceilDivideBy, makeRatio, floorDivideBy, } from '@agoric/zoe/src/contractSupport/inde...
// данные юзера var user_token var game_id var user_data // константы const ABC = "abcdefghjklmn" // игровая логика var color_move = "black" var can_atacovat // допсказки var tips = {} // количество баллов потраченых на подсказки var score = 0 // количество использованых подсказок var countTips = 0 // даные canvas для ...
const React = require('react'); const Radium = require('radium'); const d3 = require('d3'); const moment = require('moment'); const numeral = require('numeral'); const BreakPointGroup = require('./d3/BreakPointGroup'); const GridLinesGroup = require('./d3/GridLinesGroup'); const CirclesGroup = require('./d3/CirclesGr...
function addInputFieldRequisition(t) { for (var e = $("#normalRequisition tbody tr").length + 1, a = $("#txfieldnum").val(), l = "", n = 0; n < a; n++) { l += '<input id="total_tax' + n + "_" + e + '" class="total_tax' + n + "_" + e + ' valid_number" type="hidden"><input id="all_tax' + n + "_" + e + '"...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchSingleData } from '../../store/singleData'; import { postGraph } from '../../store/graph'; import { LineGraph, BarGraph, PieGraph, ScatterChart, } from '../graphCharts/index'; import { ChatDrawer } from '../sidedrawer...
function defaultFunctionHandlers(){ var funcs = {}; funcs.debugparams = function(outputContext, unordered, ordered){ console.log("PARAM DEBUG:", unordered, ordered); return newVariant(VAR_UNDEFINED, undefined); } // ========= BUILTIN-FUNCTION: obj(<named parameters> ...) ========= funcs.obj = fu...
import React, { useState, useEffect } from 'react' import Card from './card' import { Link } from 'gatsby' import TableRow from './tableRow' import Table from './table' import Nav from './nav' import { isBillNew, didBillFailGovernor, didBillPassGovernor, isUpdateMajor, getBillActions, getBillIntroduction, ...
window.onload = setupYat; // IDEA: utbedre navngivning, samt konsekvente engelske navn og oppsett/rekkefølge på funksjonene mtp lesbarhet /*-----------------Globale variabler-----------------------*/ let comboIdYat = ["1","2","3","4","5","6","par","toPar","treLike","fireLike","litenStraight","storStraight","hus","sjans...
try{FOIMachine = FOIMachine;}catch(err){FOIMachine = {};} FOIMachine.events = FOIMachine.events !== undefined ? FOIMachine.events : _.extend({}, Backbone.Events); FOIMachine.templates = FOIMachine.templates !== undefined ? FOIMachine.templates : {}; FOIMachine.templates.agencySummaryTemplate = '\ <% if (!hidden || ca...
var gpr_elementoActual = null; $(function() { "use strict"; /* Preloader */ $(window).load(function() { setTimeout(function() { $('body').addClass('loaded'); }, 500); }); $('.material-tooltip').remove(); $('select').material_select(); gpr_loadCards(); $('#panelFiltro input[type="text"]').keypress(funct...
import React from 'react'; import { FaPlay, FaPause, FaStop, FaVolumeMute, FaEye, FaHourglass, FaHourglassStart, FaHourglassHalf, FaHourglassEnd } from 'react-icons/fa'; import '../../styles/Timer.css'; import Verbal30 from '../../audio/30-seconds-verbal.wav'; import Verbal60 from '....
// Copyright 2017, 2018, 2019, 2020 The Appgineer // // 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 ...
import React from 'react' import { graphql, StaticQuery, Link } from 'gatsby' import { Global, css } from "@emotion/core" import Img from 'gatsby-image' import styled from 'styled-components' import FontFace from '../utils/font-face' import Nav from '../components/nav' import NavMobile from '../components/navMobile' im...
import Bb from 'backbone'; import { omit } from 'underscore'; let chai = require('chai'); let sinonChai = require('sinon-chai'); let chaiAsPromised = require('chai-as-promised'); chai.use(chaiAsPromised); chai.use(sinonChai); let expect = chai.expect; import { spy, stub } from 'sinon'; import * as firebase fro...
module.exports = { Init: () => { alt.factions = []; alt.factionRanks = {}; alt.factionPlayerList = {}; initFactionsUtils(); DB.Query("SELECT * FROM factions", (e, result) => { for (var i = 0; i < result.length; i++) { result[i].sqlId = result[i].id...
const binance = require('node-binance-api'), _ = require('lodash'), moment = require('moment'), numeral = require('numeral'), math = require('mathjs'); const APIKEY = process.env.APIKEY; const APISECRET = process.env.APISECRET; // Default configuration options const maxTrackedPairs = 1; const depthLimit = 20; const w...
load('jstests/libs/parallelTester.js'); load('jstests/parallel/fsm_libs/assert.js'); load('jstests/parallel/fsm_libs/utils.js'); load('jstests/parallel/fsm_libs/worker_thread.js'); /** extendWorkload usage: * * $config = extendWorkload($config, function($config, $super) { * // ... modify $config ... * $config...
(function () { var btnFinish = $('<button id="finish" class="btn btn-labeled btn-pretty btn-success"></button>').text('Simpan') .addClass('btn btn-labeled btn-pretty btn-success') .on('click', function(){ Simpan(); }); $("#smartwizard").on(...
import * as utils from "base/utils"; import Events from "base/events"; import Model from "base/model"; import globals from "base/globals"; import { close as iconClose } from "base/iconset"; const class_loading_first = "vzb-loading-first"; const class_loading_data = "vzb-loading-data"; const class_error = "vzb-error"; ...
import { mat4 } from "./lib/gl-matrix.js"; import { GLContext } from "./lib/wgl-fast.js"; import * as GLTF from "./lib/GLTF/index.js"; import * as wGLTF from "./lib/wGLTF/index.js"; import { CreatePlayer } from "./lib/SM/MeshPlayer.js"; import { AnimRecorder } from "./lib/SM/AnimRecorder.js"; import { MotionDecoder } ...
import matrix_t from '../jsfeat_struct/matrix_t' import * as cache from '../jsfeat_cache' import * as linalg from '../jsfeat_linalg' import * as matmath from '../jsfeat_mat_math' import { C1_t, F32_t, EPSILON } from '../jsfeat_struct' /** * @typedef {import('../jsfeat').Point} Point * @typedef {import('../jsfeat_str...
import 'react-native-gesture-handler' import { StyleSheet, Text, View, FlatList, TextInput } from 'react-native'; import * as Sharing from 'expo-sharing' import { Gesture, GestureDetector} from 'react-native-gesture-handler' import Animated, { useSharedValue, useAnimatedStyle, withTiming, withSpring, withSequence, with...
// 引入地图实例 const map = require('../../utils/map.js'); const QQmap = map.QQmap; const app = getApp() const util = require('../../utils/util.js'); const wxLogin = util.wxLogin; const service = util.service; const GDmap = require('../../libs/amap-wx.js'); const payment = app.payment Page({ data: { currentIndex: 1, ...
import React, { Component } from 'react' import { withStyles } from '@material-ui/styles' import { Table, TableBody, TableCell, TableHead, TableRow, TableSortLabel, Paper, Popper, ClickAwayListener, ButtonGroup, Button, MenuList, MenuItem, Snackbar, SnackbarContent, Container, Checkbox...
/* * simplestore * Copyright 2015 <NAME> * https://github.com/cdmedia/simplestore * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ var simpleStore = { products: [], plugins: {}, filters: { category: [], nation: [], opensourceonly: false,...
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) { try { step(gene...
//----------------------------------// //------ ITEMCLOUD Lemon 1.3 -------// //------ ------------------- -------// //--- DEVELOPED FOR ITEMCLOUD.ORG --// //------ ------------------- -------// //-- (c) 2018-2021 <NAME> --// //----------------------------------// //------ JS LIBRARY FUNCTIONS ------// //--------------...
'use strict'; const {expect} = require('chai'); const {parse} = require('../lib/parsing.js'); const NodeType = require('../lib/NodeType.js'); const Publishing = require('../lib/publishing.js'); const {publish, createDefaultPublisher} = Publishing; describe('publish', function() { describe('Publishers', function (...
import { isEmpty } from "@ember/utils"; import Component from "@ember/component"; import showModal from "discourse/lib/show-modal"; import discourseComputed, { afterRender, bind, } from "discourse-common/utils/decorators"; import I18n from "I18n"; import TextareaTextManipulation from "discourse/mixins/textarea-text...
// Business Logic function Game(numberOfPlayers, players, turn, winner) { this.numberOfPlayers = 0; this.players = []; this.turn = 0; this.winner = ""; }; Game.prototype.createPlayers = function(){ var myPlayer = new Player("Player " + (this.numberOfPlayers+1)); this.players[this.numberOfPlayers] = myPlaye...
import fetch from 'node-fetch'; import MTGO from '../../data/mtgo'; import { sql, dynamicSortMultiple } from '../../utils/database'; import { calculateEventStats } from '../../utils/swiss'; import { getParams, getQueryArgs, groupQuery, pruneObjectKeys, eventsQuery, } from '../../utils/querybuilder'; const Me...
//Init map layers let mapid = document.getElementById("map"); let mymap = L.map(mapid).setView([45.4729, 9.2187], 13); let geojsonLayers = []; let popUpInformation = []; //Marker var let mark = undefined; let datepicker = document.getElementById("datepicker"); // para n maior que 30 let z_value = 1.960; // para n me...
// If we are dev env, load dotenv if (process.env.NODE_ENV != "production"){ require('dotenv').config(); } var MongoClient = require('mongodb').MongoClient; var async = require('async'); var requestify = require('requestify'); var moment = require('moment'); var SportMonks = require('../../fetcher/sportmonks'); con...
'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]; } } }...
const { resolve, join, dirname, basename } = require('path') const os = require('os') const { readFileSync, realpathSync, writeFileSync } = require('fs') const repl = require('repl') const commander = require('commander') const { spawn } = require('child_process') const chalk = require('chalk') const updateNotifier = r...
import React from "react" import Seo from "../components/seo" import { connect } from 'react-redux'; import { graphql, Link } from 'gatsby' import { GatsbyImage } from "gatsby-plugin-image"; import * as R from 'ramda' import Typography from '@mui/material/Typography'; import Paper from '@mui/material/Paper'; import Gri...
/* === This is a file from Node-Red being used as-is. === */ /** * Copyright JS Foundation and other contributors, http://js.foundation * * 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 *...
class Feature { constructor(vowsh) { this.Vowsh = vowsh; } init() {} onMessage(message) {} } class AutocompleteFeature extends Feature { constructor(vowsh) { super(vowsh); this.input = $('#chat-input-control'); } init() { if(!$('#autocomplete').length) ...
var Funnel = require('broccoli-funnel'); var merge = require('lodash/merge'); var mergeTrees = require('broccoli-merge-trees'); var existsSync = require('exists-sync'); var fs = require('fs'); var path = require('path'); var writeFile = require('broccoli-file-creator'); var babelTranspiler = require('broccoli-babel-tra...
/** * NGINAD Project * * @link http://www.nginad.com * @copyright Copyright (c) 2013-2016 NginAd Foundation. All Rights Reserved * @license GPLv3 */ var adserver_domain = 'server.nginad.com'; var script_name = 'nginad.js'; var delivery_path = '/delivery/impress'; /* Are you using the Forensiq.com Ad Fraud Servi...
import React, { useState, useEffect } from 'react'; import Img from 'gatsby-image'; import { useStaticQuery, graphql } from 'gatsby'; import Absscreenwrapper from '../../absscreenwrapper'; import Starsgiver from '../../interactions/starsgiver'; import Selectdropd from '../../interactions/selectdropd'; import Btninfo fr...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _interopRequireDefault(_define...
/** * @Author: <EMAIL> * @Date: 2017.2.28 下午 2:14 * @Desc: 公共组件 - VerticalViewPager * @Name: VerticalViewPager.js * @LifeCycle:http://www.tuicool.com/articles/nu6zInB */ import React, {Component, PropTypes} from "react"; import { StyleSheet, View, Text, Dimensions, TouchableNativeFeedback, ...
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; import _extends from "@babel/runtime/helpers/esm/extends"; import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import _typeof from "@babel/runtime/helpers/esm/typeof"; import _slicedToArray from "@babel/runtime/helpers/esm/sliced...
import { store } from './storage'; import { take } from './fetch'; import { menu } from './menu'; class UI { constructor() { this.menu = document.querySelector('.menu'); this.todo = document.getElementById('maa'); this.weather = document.getElementById('weather-lay'); this.middle = document.querySelec...
const grid_size = 50; const half_grid_size = grid_size / 2; function grid_x(x) { return x * grid_size + half_grid_size; }; function grid_y(y) { return y * grid_size + half_grid_size; }; const dp = [[1, 0], [1, 1], [0, 1], [-1, 1], [-1, 0], [-1, -1], [0, -1], [1, -1]]; const has_brown = [[1, 1, 1, 1, 1, 0, 0], [1, ...