text stringlengths 3.07k 16k |
|---|
'use strict'
// http://localhost:7651
// https://discordapp.com/oauth2/authorize?&client_id=199938847948275714&scope=bot
const _ = require('lodash-fp')
const pathJoin = require('path').join
// const ChildProcess = require('child_process')
const discord = require('discord.js')
const tldr = require('tldr/lib/index')
cons... |
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ... |
document.body.style.overflow = 'hidden'
document.body.style.width = '100vw'
document.body.style.height = '100vh'
document.body.style.margin = '0'
document.body.style.padding = '0'
const regl = require('regl')()
const mat4 = require('gl-mat4')
const sphere = require('primitive-icosphere')
const camera = require('lookat... |
// (function(root, factory) {
// if (typeof module === 'object' && typeof module.exports === 'object') {
// console.log('是commonjs模块规范,nodejs环境')
// module.exports = factory();
// } else if (typeof define === 'function' && define.amd) {
// console.log('是AMD模块规范,如require.js')
// define(factor... |
var travelMarkers = Array();
var appointmentMarkers = Array();
var appMarkersVisState = true;
var completeMarkers = Array();
var compMarkersVisState = true;
var OutstandingMarkers = Array();
var OutMarkersVisState = true;
var allMarkers = Array();
var lastMarker;
var map;
$(document).ready(function () {
//enable ... |
const path = require('path');
const consolidate = require('consolidate');
const _ = require('lodash');
const Logger = require('@ladjs/logger');
const nodemailer = require('nodemailer');
const I18N = require('@ladjs/i18n');
const base64ToS3 = require('nodemailer-base64-to-s3');
const strength = require('strength');
cons... |
/*
* ----------------------------------------------------------------------------
*
* Copyright (c) 2021 - <NAME>
*
* -----------------------------------------------------------------------------
* THALES MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
* THE SOFTWARE, EITHER EXPRESS OR IMPLI... |
import React, { Component } from "react";
import { render } from "react-dom";
import _ from "lodash";
import { Button, Form, Input } from "semantic-ui-react";
import PropTypes from "prop-types";
export const DECREASE_VALUE = "DECREASE_VALUE";
export const INCREASE_VALUE = "INCREASE_VALUE";
/*
USAGE EXAMPLES:
<Form.... |
/**
* @file timers.js
* @module timers
* @description Contains all of the functions needed for generating time stamps,
* reformatting time stamps and tracking time durations.
* @requires module:configurator
* @requires module:loggers
* @requires module:basic-constants
* @requires module:generic-constants
* @re... |
import * as mobilenet from '@tensorflow-models/mobilenet';
import * as cocoSsd from '@tensorflow-models/coco-ssd';
import '@tensorflow/tfjs-backend-cpu';
import '@tensorflow/tfjs-backend-webgl';
import { fabric } from 'fabric';
import { handleError } from './helpers';
import * as templates from './templates';
import * ... |
"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.p... |
let canvas;
let ctx;
let originPosition = [100, 100];
let scaleFactor = [20, 20];
let pointThickness = 2;
let vectors3DCube = [
[0, 0, 0], [1, 0, 0], [1, 0, 1], [0, 0, 1],
[0, 1, 1], [1, 1, 1], [1, 1, 0], [0, 1, 0]
]
let vectors3D = [
[0, 0, -1.3], [1.5, 0, 1.3], [-1.5, 0, 1.3], [0, 1, 0]
]
let connectedPoint... |
/* eslint-disable react/jsx-pascal-case */
import React, { Component } from 'react';
import Types from 'prop-types';
import { SVG } from '@opuscapita/react-svg';
const dropdownSVG = require('!!raw-loader!@opuscapita/svg-icons/lib/arrow_drop_down.svg');
const propTypes = {
navigationItems: Types.arrayOf(Types.shape({... |
// server.js
// where your node app starts
// include modules
const express = require('express');
const multer = require('multer');
const bodyParser = require('body-parser');
const fs = require('fs');
const sql = require("sqlite3").verbose();
const postcardDB = new sql.Database("postcards.db");
const FormData = requ... |
import * as THREE from "three";
/**
* Based on https://github.com/mrdoob/three.js/blob/a72347515fa34e892f7a9bfa66a34fdc0df55954/examples/js/exporters/STLExporter.js
* Tested on r68 and r70
* @author jcarletto / https://github.com/jcarletto27
* @author kjlubick / https://github.com/kjlubick
* @author kovacsv / http... |
import path from "path";
import fs from "fs";
// import inquirer from "inquirer";
import freeSwagger from "../src/main";
// import { init } from "../src/bin/init";
import { rc } from "../src/default/rc";
const wait = time =>
new Promise(resolve =>
setTimeout(() => {
resolve();
}, time)
);
const asse... |
const R = require('ramda')
const intcode = require('./intcode')
const vec = require('../vec')
const assert = require('assert')
const parseInput = R.pipe(
intcode.parseRAM,
intcode.spawn,
intcode.arrayExecutor([]),
R.prop('output'),
R.map(String.fromCharCode),
R.join(''),
R.split('\n'),
)
const getTile =... |
const {app, BrowserWindow, TouchBar, Tray, globalShortcut, nativeImage} = require('electron')
const path = require('path')
const si = require('systeminformation');
const spawn = require('child_process').spawn;
// colors https://flatuicolors.com/palette/defo
const appName = "Touchbar System Monitor"
const {TouchBarButt... |
const defaultTheme = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
module.exports = {
theme: {
/* For Letter size */
screens: {
print: {"raw": "print"},
xsm: "500px",
sm: "640px",
md: "833px",
lg: "1079.5px",
xl: "1280px",
},
/*... |
let tabslength = 0;
let totalTabs = 0;
var FileMap = new Map();
const ele = require('electron');
/*inter process communication methods*/
ele.ipcRenderer.on('openFile',(event,message,filePath) =>{
fnAddNewTab();
$("#tabContent_"+tabslength).find("textarea").val(message);
$("#tabContent_"+tabslength).find("tex... |
import React from "react"
import styled from "@emotion/styled"
import { graphql, Link } from "gatsby"
import About from "../components/About"
import Grid from "../components/Grid"
import Devlog from "../components/Devlog"
import Layout from "../components/Layout"
import CardTile from "../components/CardTile"
import col... |
/* eslint-disable react-hooks/exhaustive-deps */
import React, { useState, useEffect } from 'react'
import { Header } from '../../components'
import { Container } from '../../components/style'
import { Form, Icon, Input, Row, Col, Modal } from 'antd';
import { withRouter } from 'react-router-dom'
import { connect... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the... |
function agregardatos(id_celular, celularNombre, celularPrecioContado, celularPrecioCuotas, celularValorCuota, celularTamPantalla, celularCamaraP, celularCamaraS, celularVideo, celularCapMemoInterna, celularCapMemoRAM, celularBateria, celularTiempoCarga, celularSistemaOperativo, celularFuente, celularImagen, celularcas... |
import React from 'react';
import { jwtDecode } from 'jwt-js-decode';
import { Route, Redirect, Link } from 'react-router-dom';
import MapPage from './MapPage';
import ParkingSpotCreationForm from './ParkingSpotCreationForm';
import ChangePasswordForm from './ChangePasswordForm';
import ParkingSpotsSetPriceView from '.... |
import styled from 'styled-components';
import bgImg from '../../assets/images/red_kit.jpg';
export const StyledSection = styled.section`
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direct... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = _interopDefault(require('react'));
var path = _interopDefault(require('path'));
var fusionCore = require('fusion-... |
const fs = require('fs')
const config = require('../../config.json')
const Discord = require('discord.js')
const moment = require('moment-timezone')
function isNumber (configName, string) {
const input = parseInt(string.split(' ')[2].trim(), 10)
if (isNaN(input) || input < 0 || input % 1 !== 0) return 'That is not... |
/*
- set: log, isOnline, valve
- get: mode, senson enable/disable, threshold, schedule, learning dataset(default/ambil data dulu)
*/
var sensors = require('./SensorInstances');
var valves = require('./ValveInstances');
var ValveInstances = require('./ValveInstances');
var ConfigManager = require('../configuration/Conf... |
'use strict'
plugin.info = {
name: "Linkedin Connect",
chat,
sayOnStart: task => pickOne(startChats(task)),
sayOnEnd: task => pickOne(doneChats(task)),
}
function chat(task, status) {
if(status.code == 102) return pickOne(startChats(task))
if(status.code == 200) return pickOne(doneChats(task))
}
function... |
import React, { Component } from 'react'
import Websocket from 'react-websocket'
export const DeviceMode = {
MANUAL: 'manual',
AUTOMATIC: 'automatic'
}
export const ConnectionState = {
DISCONNECTED: 'disconnected',
CONNECTING: 'connecting',
CONNECTED: 'connected'
}
const defaultState = {
ip: null,
stat... |
import React from "react";
import { InputGroup } from "reactstrap";
import { AvForm } from "availity-reactstrap-validation";
import { Card, CardContent, Divider } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import Formsy from "formsy-react";
import { addValidationRule } from "formsy... |
var viewer = new Cesium.Viewer('cesiumContainer', {
//2.本地图片
// imageryProvider: new Cesium.SingleTileImageryProvider({
// url: 'worldimage.jpg'
// }),
//geocoder: false,
homeButton: false,
sceneModePicker: false,
baseLayerPicker: false,
navigationHelpButton: false,
animation... |
import React from 'react';
import { Link, useHistory, useLocation } from 'react-router-dom';
import { Row, Col, Card, Button } from 'react-bootstrap';
import classNames from 'classnames';
import dayjs from 'dayjs';
import Select from 'react-select'
import qs from 'query-string'
import relativeTime from 'dayjs/plugin/re... |
var cart = [];
// console.log('1234');
function addCart() {
$('.btn-add-card').click(function(){
let obj = new Object();
obj.id = $(this).attr('data-id');
// alert(obj.id);
$.ajax({
url: "/cart/add",
type: "GET",
dataType: "json",
data:... |
"use strict";
/**
* Copyright Microsoft Corporation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _three = require('three');
var Three = _interopRequireWildcard(_three);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { defa... |
var QUnit = require("steal-qunit");
var stache = require("can-stache");
var DefineMap = require("can-define/map/map");
var globals = require("can-globals");
var domMutate = require("can-dom-mutate");
var domMutateNode = require("can-dom-mutate/node");
var canSymbol = require("can-symbol");
var stacheTestHelpers = requ... |
'use strict'
var path = require('path')
const webpack = require('webpack')
const glob = require('glob')
// const autoprefixer = require('autoprefixer')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const vuxLoader = require('vux-loader')
co... |
import {withToastr} from '@dozgrou/react-native-toastr';
import React, {useCallback, useState} from 'react';
import {Pressable, StyleSheet, Switch, Text, TextInput, TouchableOpacity, View} from 'react-native';
import CustomToastr from './CustomToastr';
const toastrTexts = [
'I am a beautiful toastr !',
'Lorem Ipsu... |
const log4js = require('log4js'),
uuid = require('uuid');
const assert = require('@barchart/common-js/lang/assert'),
Disposable = require('@barchart/common-js/lang/Disposable'),
DisposableStack = require('@barchart/common-js/collections/specialized/DisposableStack'),
promise = require('@barchart/common-js/lang/pro... |
const fs = require('fs');
const typeDefController = {};
const tab = ` `;
typeDefController.generateTypeDef = (req, res, next) => {
try {
// start with the empty string
let query = '';
const databases = res.locals.SQLSchema.tables;
// console.log(databases);
query +=
"require('dotenv').co... |
import React, { Fragment } from "react";
import { Col, Row, Button, Grid} from "antd";
import style from "../styles.module.scss";
import isMobile from "../../../../isMobile/isMobile";
import { styleComponent } from "../../../../defaultFunction/style";
import { paymentSchema } from "../../../../../validation/coin/paymen... |
/* Copyright 2021 F5 Networks, 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
*
* Unless required by applicable law or agreed ... |
const fs = require('fs');
const _ = require('lodash');
const Const = require('../../config/music_constant');
const Miss = require('../../config/missing_note');
const Util = require('../util');
class SongPart {
constructor(key, all_possible_notes, motif, chordProgressObj, chordProgressRule) {
this.key = key;
... |
var codeMirrorData ;
var codeMirrorQuery ;
function changeMode(element,syntax) {
var mode = "turtle";
switch (syntax.toUpperCase()) {
case "TURTLE": mode = "turtle" ;
break ;
case "N-TRIPLES": mode = "turtle" ;
break ;
case "RDF/XML": mode = "xml" ;
b... |
/*
* SPDX-License-Identifier: Apache-2.0
*/
'use strict';
const { Gateway, Wallets } = require('fabric-network');
const { BlockDecoder } = require('fabric-common')
const fs = require('fs');
const path = require('path');
const {sha256} = require("js-sha256");
const {getLogger} = require("fabric-network/lib/logger")... |
/*jshint laxcomma: true, smarttabs: true, node: true, unused: true, esnext: true*/
'use strict';
/**
* resource field definitions
* @module tastypie/fields/api
* @author <NAME>
* @since 0.0.1
* @requires events
* @requires path
* @requires util
* @requires mout/lang/isFunction
* @requires mout/lang/isString
*... |
const express = require('express');
const path = require("path");
const https = require('https');
const http = require('http');
const crypto = require('crypto');
const url = require('url');
const fs = require('fs');
let GameRoom = require("./game_modules/game_room").GameRoom;
const StartpositionsSH = require("./game_... |
import { $ } from "@js/loadJquery"
/**
* A function that creates the DOM part for a photo based on its FlickrAPI representation
* @param {object} photo - The photo's FlickrAPI object
* @param {array} urls - The photo's url objects
* @param {string} galleryIdentifier - The identifier for the fancybox gallery
* @re... |
import React from 'react'
import { flags2HTMLstring } from './flagText'
import './index.css'
const ConfirmStep = ({ submission = {}, dispatch = () => {}, children }) => {
let pubcite = submission.publication ? (
<>
<h4>
Publication ({submission?.publication?.type?.name}):
<button onClick={... |
// <NAME>
// August 2019
// A real-time tracker for the ISS.
// Based on <NAME>'s Coding Train video example: https://www.youtube.com/watch?v=uxf0--uiX0I
// ISS coordinates: https://api.wheretheiss.at/v1/satellites/25544/
// Map API: https://leafletjs.com/reference-1.5.0.html#polyline
// Map tiles: https://www.openstre... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
/**
* This sample creates all the models in \DTDL\Models folder in the ADT service instance
* and creates the corresponding twins in \DTDL\DigitalTwins folder
* The ... |
import React, { useState, useEffect } from 'react';
import { useParams, Link } from 'react-router-dom';
import styled from 'styled-components';
import { ContainerList, Form, Title, Line, Button, ButtonHover, CancelButton, CancelButtonHover, Footer, Label, Select } from '../../components/Styles';
import api from '../..... |
/*jslint node: true */
"use strict";
var _ = require('GAEAcore/node_modules/lodash');
var headlessWallet = require('./start.js');
var eventBus = require('GAEAcore/event_bus.js');
var objectHash = require('GAEAcore/object_hash.js');
var db = require('GAEAcore/db.js');
var storage = require('GAEAcore/storage.js');
const... |
"use strict";
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
_Object$defineProperty(exports, "__esModule", {
value: true
});
exports.handler = exports.builder = exp... |
'use(strict)'
import {DOMParser} from '../compat.js'
import * as RDFaWalker from './walker.js'
var ID = '@id'
export function parse (doc, base, options) {
if (typeof window !== 'undefined') {
if (doc == null) {
doc = window.document
} else if (typeof doc === 'string') {
doc = new DOMParser().pa... |
/*
By <NAME> <<EMAIL>>
*** Este script requer o Babel & Gulp 4 ou posterior ***
Antes de usar, instale a última versão do GULP-CLI e os plugins necessários:
npm i --save-dev @babel/cli @babel/core @babel/polyfill @babel/preset-env @babel/register
npm i --save-dev gulp@4 gulp-autoprefixer gulp-c... |
import 'normalize.css'
import 'styles/main.scss'
import M from 'materialize-css'
import find from 'lodash/find'
import clone from 'lodash/clone'
import {
FaceApiAdapter,
NativeFaceDetectorAdapter,
TrackingAdapter,
NodeOpenCVAdapter
} from 'adapters'
import WebCamManager from 'services/WebCamManager'
import F... |
// (C) Copyright 2016 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import CSSClassnames from '../../utils/CSSClassnames';
import DragIcon from '../icons/base/Drag';
import { padding } from './utils';
const CLASS_ROOT = CSSClassname... |
//Neu
//lade havarieseite finde den neusten h1 titel
//lade zdf.de/nachrichten und suche den h1 titel
//lade havarie index
//vergleiche
//ermittle versatz //finde pos von havarie_artikel_1 ind live_Artikel_liste
//regeln
//wenn versatz und versatz älter als 1 cron intervall dann fehler gelb
// wenn versatz größer 1... |
import React, { useState, useEffect } from 'react';
import { Form, Modal, Col, Row, Divider, Checkbox, Tag } from 'antd';
import numeral from 'numeral';
import { connect } from 'dva';
import FIELDS from '@/config/fields';
import WrapperComplexFormItem from '@/components/HOC/WrapperComplexFormItem';
import { useGe... |
const {
app,
shell,
dialog,
ipcMain,
nativeImage,
BrowserWindow,
Menu
} = require('electron')
const {resolve} = require('path')
const i18n = require('./i18n')
const setting = require('./setting')
const updater = require('./updater')
require('@electron/remote/main').initialize()
let windows = []
let openf... |
/*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you 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 agre... |
/* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
const isou_url = window.location.href.split('/index.php')[0].replace(/\/+$/, '');
function setIsouActiveNotificationImage(active = true) {
var button = document.getElementById('isou-top-aside-notifications-button');
var image = document.getElementById('isou-top-aside-notifications-image');
var submit = doc... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
/*
* @desc 将图片、文本等绘制到canvas上,以供用户下载保存
* <CreatePic config={[
{
image: require('static/images/1.png'),
x: 10,
y: 10
},{
image: require('static/images/3.png'),
x: 1... |
'use strict'
const mutil = require('../../js/mock/mockutils.js');
const hc = require('../../js/mock/hconst.js');
const schedule = require('./schedule.js');
class FixedSchedule {
constructor(api) {
this.api = api;
this.name = 'FixedSchedule';
this.setup();
// this.mode = 0;
this.mode(3);
... |
import React, { Component } from 'react';
import {
Text,
View,
TouchableOpacity,
TextInput,
Keyboard,
KeyboardAvoidingView,
FlatList,
TouchableWithoutFeedback
} from 'react-native';
import { Fonts, Colors } from '../Themes';
import TodoCard from '../Components/TodoCard';
import ChatandToDosFetchingView ... |
/*********************************************************************************
Copyright © 2016, Alliance for Sustainable Energy, LLC
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. Redistributi... |
/* TODO: Declare namespace to stop pollution */
var setupControls = function() {
controls = {
enabled: false,
moveForward: false,
moveBackward: false,
moveLeft: false,
moveRight: false,
canJump: false,
floor_height: 10,
gravity: 9.81,
controls: undefined,
prevTime: performance... |
'use strict';
const path = require('path');
const fs = require('fs');
const exec = require('child_process').execSync;
/**
* use magik-hooks to handle Git hooks manipulation
*
* @access private
* @link https://github.com/magikMaker/magik-hooks
* @type {{create: module.exports.create, remove: module.exports.remove... |
'use strict'
/*******************************************************************************
* Copyright (c) 2013-2017 <NAME>
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which acc... |
const Jed = require('jed');
const path = require('path');
const helper = require('think-helper');
const cookie = require('cookie');
const moment = require('moment');
const numeral = require('numeral');
const assert = require('assert');
module.exports = class i18n {
assert(type, value, message) {
assert(helper[ty... |
/**
* 分析主升浪
*/
const moment = require("moment");
const request = require('request-promise-native');
// 最终输出结果
let out = [];
// 生产对应的日期
let now = +new Date();
let fIndex = 0;
const MongoClient = require("mongodb").MongoClient;
const url = "mongodb://localhost:27017";
let singles, stocks;
MongoClient.connect(url,{ useN... |
import {
setAccounts,
updateAccountKeys,
authenticateUser
} from '../actionCreators';
import {
storeUser,
getUsers,
getActiveCoinList,
checkPinForUser,
resetUserPwd,
addEncryptedKeyToUser,
deleteUser,
setUserBiometry,
setUsers,
setUserKeyDerivationVersion,
} from "../../utils/asyncStore/asyncS... |
/* eslint-disable react/prop-types */
/** 资源管理/机柜U位管理 **/
// ==================
// 所需的各种插件
// ==================
import React from 'react';
import P from 'prop-types';
import _ from 'lodash';
import http from '@src/util/http';
import {
Form,
Button,
Input,
Table,
Modal,
Select,
Tag
... |
const tissues = {
'Salmonella Typhimurium (LT2)': {
cells: [
],
tissues: [
],
},
'Gallus gallus': {
cells: [
],
tissues: [
],
},
'<NAME>vis': {
cells: [
],
tissues: [
],
},
'<NAME>': {
cells: [
],
tissues: [
],
},
'Dictyostelium discoideu... |
/**! compression tag for ftp-deployment */
/* globals Toaster, ClipboardJS */
/**
* Display a notification.
*
* @param {string}
* type - the notification type.
* @param {string}
* message - the notification message.
*/
function notify(type, message) {
'use strict';
const title = ... |
$(document).ready(function () {
var sTabledata = $('.table-data').DataTable(
{
'paging' : true,
'lengthChange': true,
'searching' : true,
'ordering' : false,
'info' : true,
'autoWidth' : false,
"pageLength" : 10
});
$("div.dataTables_wr... |
'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]; } } }... |
/**
* @file layout.js
* @brief Base for layout view using tabs.
* @author <NAME> (INRA UMR1095)
* @date 2017-03-07
* @copyright Copyright (c) 2017 INRA/CIRAD
* @license MIT (see LICENSE file)
* @details
*/
let Marionette = require('backbone.marionette');
let Layout = Marionette.View.extend({
attributes: {... |
import React, { useState, useEffect } from "react";
import axios from "axios";
import {
Card,
CardContent,
CardMedia,
Typography,
makeStyles,
} from "@material-ui/core";
import noImage from "../img/download.jpeg";
import { useSelector, useDispatch } from "react-redux";
import { catchPokemon, releasePokemon } from ... |
const $dropdown = $(".dropdown");
const $dropdownToggle = $(".dropdownToggle");
const $dropdownMenu = $(".dropdown-menu");
const showClass = "show";
$(document).ready(function () {
$('select').niceSelect();
$('input[type="tel"]').each(function (index) {
var element = $('input[type="tel"]')[index];
... |
import React, { Component } from 'react';
import { PropTypes } from 'prop-types';
import { List, Icon, Input, Menu, Checkbox } from 'semantic-ui-react';
/* ------------------- 资源树单个层级节点元素元素 ------------------- */
class ListItem extends Component {
constructor(props) {
super(props);
this.state = {
name:... |
allCustomer()
let globalCusArr = []
function allCustomer(){
$.ajax({
url: '/customer/clist',
type: 'GET',
contentType: 'application/json; charset=utf-8',
success: function (data) {
console.log(data)
globalCusArr = data;
createCustomer(data)
... |
/**
* @date - 29/07/2020
* @author <NAME> <EMAIL>
* @purpose TestTreatmentRemark - select - holds the test and treatment instruction classifier type.
* @returns UI Field of the main form.
*/
import { Controller, useFormContext } from 'react-hook-form';
import CustomizedTextField from 'Assets/Elements/CustomizedTe... |
import { INPUT } from "./input.js";
export default class Solver {
constructor() {}
// Accepts a number in some base, and returns the number
// in another base (from "fromBase" to "toBase").
#changeNumberBase = (number, fromBase = 10, toBase = 10) => {
const converted = parseInt(number, fromBase).toString(... |
/* eslint-disable camelcase */
const core = require('@actions/core');
const github = require('@actions/github');
const {name, homepage} = require('../package.json');
const DEFAULT_RESOLVED_KEYWORDS = [
'close',
'closes',
'closed',
'fix',
'fixes',
'fixed',
'resolve',
'resolves',
'resolved',
].join(','... |
var mediaPath = location.protocol + '//' + location.hostname + '/iris/assets/ui_uploads/';
var arrLinbComponent2Data = {};
var iptvChannels = [];
/**
* @type object Хэш файлов, чьи изменения необходимо отслеживать.
*/
var filesToTrackChanges = {};
function LinbUtil_WorkplacetypeFromUri() {
if ("undefined" === typeo... |
/**
* Created by juju on 10/12/2014.
*/
var lastcoinbase=0;
var lastbtcebtc=0;
var lastbfin=0;
var lastbitsta=0;
var lastbtceltc=0;
var baysideavg=0.0;
var lastbayside=0.0;
function getBitcoinValues(callback) {
var origin = 'http://anyorigin.com/get?url=';
var cbaseapi = 'https://coinbase.com/api/v1/prices/s... |
const fs = require('fs');
const sh = require('shelljs');
let db = require('./db');
const BRO_DEPS = [
"libssl1.0-dev",
"libgeoip-dev",
"cmake",
"flex",
"bison",
"libpcap-dev",
"python-dev",
"python-pip",
"python-scapy",
"swig",
"zip",
"git",
"nmap",
"tcpdump",
"texinfo",
"d... |
/*MIT License
Copyright (c) 2018 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... |
import React from 'react';
import {StyleSheet, View, ScrollView, Text, Button, TouchableOpacity, ActivityIndicator} from 'react-native';
import {Observer} from 'mobx-react/custom';
import app from '../stores/app';
import iap from '../stores/iap';
export default class IAPPage extends React.Component {
renderPrice = ... |
import React from "react"
import {
Hr,
Layout,
LayoutContent,
layoutContentPadding,
} from "../components/Layout"
import { Link as GatsbyLink, graphql } from "gatsby"
import Seo from "../components/Seo"
import { StaticImage, GatsbyImage, getImage } from "gatsby-plugin-image"
import { MDXRenderer } from "gatsby-... |
import React from 'react';
import ContainerHeader from 'components/ContainerHeader';
import IntlMessages from 'util/IntlMessages';
import CircularProgress from "@material-ui/core/CircularProgress";
import {connect} from "react-redux";
import CommonDataTable from 'components/CommonDataTable'
import TableRow from "@mater... |
//
// ribbon.js
// examples
//
// Created by <NAME> on 2/24/14.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
function vectorMultiply(vector, scalar) {
return [ vector[0... |
import React, {useState, useEffect} from "react";
import "../Styles/form.css";
import { useForm } from "react-hook-form";
import { ErrorMessage } from "@hookform/error-message";
import paiement_type from "../components/paiement_type";
import PayPal from "../components/PayPal";
export default function Panier({ currentU... |
/*jslint plusplus: true */
//--------------Game objects--------------------
function Card(someId) {
'use strict';
this.id = someId;
this.state = 0;
this.location = [];
}
function Deck(numCards) {
'use strict';
this.deckArray = [];
this.deckSize = numCards;
this.shuffleD... |
"use strict";
//Area de partidas
var partidas = []
function getHistorico(){
let ajax = new XMLHttpRequest();
let UsuarioLocalStorage = localStorage.getItem('usuario');
let UserId = JSON.parse(UsuarioLocalStorage).id;
let json = JSON.stringify({UserId: UserId});
ajax.open("POST", "../../php/DB/getHistori... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.