text stringlengths 2 1.04M |
|---|
$(document).ready(
function()
{
var ref_flow_meter;
var conversion_factor_array;
var conversion_factor_index;
var conversion_factor;
var g,h,i
var alarm_data;
var queue_interval_id;
var nintervalId;
var data = [];
var t = new Date();
for (var i = ... |
import $S from "../../interface/stack.js";
import $M from "../../interface/model.js";
import $ML2 from "../../interface/ML2.js";
import DataHandler from "./DataHandler";
// import AppHandler from "../../common/app/common/AppHandler";
var DataHandlerV2;
(function($S){
// var DT = $S.getDT();
$M().setBinaryOperators(... |
import React, { Component} from 'react';
import { Bar, Line, Pie } from 'react-chartjs-2';
import Heatmap from 'react-simple-heatmap';
import ReactWordcloud from "react-wordcloud";
import Widget04 from './../Widgets/Widget04';
import {
Card,
CardBody,
CardHeader,
Col,
Progress,
Row
} from 'reactstrap';
impo... |
// @flow
import { get } from "lodash";
import type { PbRenderElementAttributesPluginType } from "@webiny/app-page-builder/types";
export default ({
name: "pb-render-page-element-attributes-animation",
type: "pb-render-page-element-attributes",
renderAttributes({ element, attributes }) {
const { ani... |
require('../css/cycle-camera.css');
angular.module('opentok-meet').directive('draggable', ['$document', '$window',
function draggable($document, $window) {
const getEventProp = (event, prop) => {
if (event[prop] === 0) return 0;
return event[prop] || (event.touches && event.touches[0][prop]) ||
... |
export { EuiKeyboardAccessible } from './keyboard_accessible';
export { EuiScreenReaderOnly } from './screen_reader'; |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
import { combineReducers } from 'redux';
import texts from './grabbleTextReducer';
const rootReducer = combineReducers({
texts,
});
export default rootReducer; |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/
/******/ // add "moreModules" to the modu... |
"use strict";
exports.__esModule = true;
var _keys = require("babel-runtime/core-js/object/keys");
var _keys2 = _interopRequireDefault(_keys);
var _create = require("babel-runtime/core-js/object/create");
var _create2 = _interopRequireDefault(_create);
var _classCallCheck2 = require("babel-runtime/helpers/classCa... |
import { Calendar } from '@fullcalendar/core';
import dayGridPlugin from '@fullcalendar/daygrid';
import timeGridPlugin from '@fullcalendar/timegrid';
import listPlugin from '@fullcalendar/list';
import deLocale from '@fullcalendar/core/locales/de';
import bootstrapPlugin from '@fullcalendar/bootstrap';
function initCa... |
const path = require('path');
const appRoot = path.join(__dirname);
require('electron-compile').init(appRoot, require.resolve('./main')); |
import ngMock from 'ng_mock';
import expect from 'expect.js';
import sinon from 'auto-release-sinon';
import { RequestQueueProvider } from '../../_request_queue';
import { SearchSourceProvider } from '../search_source';
import StubIndexPatternProv from 'test_utils/stub_index_pattern';
describe('SearchSource', functio... |
import React, {Component} from 'react';
import {Checkbox} from "react-bootstrap";
//lists checkboxes for all proficiencies under a given stat
const ProficiencyList = (props) => {
let statName = props.statName;
let statProficiencies = props.proficiencyObject;
let onChange = props.onChange;
return (
... |
var _ = require('lodash');
var Q = require('q');
var fs = require('fs');
var xml2js = require('xml2js');
var async = require('async');
module.exports = {
// Gets all applicationSettings from the .NET web.config and returns them in a JavaScript object
compile: function(options){
// options should always be... |
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';
var fs = require('fs');
var bufIndexof = require('buf-indexof');
function ReadLines(file, options) {
options = options || {};
if (!options.readChunk) {
options.readChunk = 1024;
}
if (!options.newLineCharacter) {
options.newLineCharacter = 0x0a; //linux line ending
... |
import { Dropdown, Menu, Popover, Spin, Tag, Tooltip } from 'antd'
import {
UserOutlined,
CalendarOutlined,
MessageOutlined,
EditOutlined,
ShareAltOutlined,
QrcodeOutlined
} from '@ant-design/icons'
import { formatDistanceToNow } from 'date-fns'
import chinese from 'date-fns/locale/zh-CN'
import React from ... |
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a dif... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createMediaLibrary = createMediaLibrary;
exports.clearMediaControl = clearMediaControl;
exports.removeMediaControl = removeMediaControl;
exports.openMediaLibrary = openMediaLibrary;
exports.closeMediaLibrary = closeMediaLibrary;
exp... |
/*
* Tests that the autosplitter makes at least one split
*/
(function() {
'use strict';
load('jstests/sharding/autosplit_include.js');
load("jstests/sharding/libs/find_chunks_util.js");
var st = new ShardingTest({shards: 1, mongos: 1, other: {chunkSize: 1, enableAutoSplit: true}});
/* Return total number of chunks... |
window.c.root.ProjectsHome = (((m, c, moment, h, _) => {
const I18nScope = _.partial(h.i18nScope, 'projects.home');
return {
controller: () => {
let sample6 = _.partial(_.sample, _, 6),
loader = m.postgrest.loader,
project = c.models.project,
... |
c['4630']=[['4631',"Colors Field","topic_00000000000016B8.html",0],['4632',"EnableOffset Field","topic_00000000000016BE.html",0],['4633',"Font Field","topic_00000000000016B7.html",0],['4634',"HasHighlighting Field","topic_00000000000016C0.html",0],['4635',"Images Field","topic_00000000000016B9.html",0],['4636',"InvertA... |
/* Copyright 2018 Streampunk Media Ltd.
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 wri... |
'use strict'
const bs58 = require('bs58')
const CID = require('cids')
module.exports = function (cid) {
if (Buffer.isBuffer(cid)) {
cid = bs58.encode(cid)
}
if (typeof cid !== 'string') {
throw new Error('unexpected cid type: ' + typeof cid)
}
CID.validateCID(new CID(cid.split('/')[0]))
return cid... |
var uuid = require("uuid");// For Unique ID Genration
var bucket = require("../../index").bucket;
var config = require("../config/config");
var N1qlQuery = require('couchbase').N1qlQuery;
const bucketName = "lab_banco"
function BySupplierModel() {
};
// Pedidos atendidos por fornecedor:
BySupplierModel.fetchAll = fu... |
/**
* @program: loquat-utils
* 基础工具
* @description: get的基本实现
*
* @author: entfrm开发团队-王翔
*
* @create: 2021-11-18
*/
import castPath from './castPath'
import toKey from './toKey'
/**
* 不支持默认值的 'get' 的基本实现
*
* @param {Object} object 要查询的对象
* @param {Array|string} path 要获取的属性的路径
* @returns {*} Returns 解析后的价值... |
import Vue from 'vue';
import Scene from './Scene';
import PageTemplate from './PageTemplate';
import Components from './Components';
import ComponentInfo from './ComponentInfo';
import Attribute from './Attribute';
import ComponentTree from './ComponentTree';
import CombinedComponents from './CombinedComponents';
impo... |
(function() {
/**
* Save a reference to whatever previously occupied the global
* 'ab' variable.
*
* @type {Object}
*/
var _ab = window.ab;
/**
* Test registry.
*
* @type {Object}
*/
var _tests = {};
/**
* Create/retrieve and ab test.
*
* @param {String} name
* @param {Float} traffic
* @return {Test}... |
import { addTouchFriendlyContextMenu } from "./TouchContextMenu.js";
import { TypedEvent } from './TypedEvent.js';
function toParString(strings, ...values) {
if (strings.length === 1)
return strings.raw[0];
else {
let r = '';
for (let i = 0; i < strings.length; i++) {
r += st... |
module.exports = {
nets: {},
params: {
reverseSilks: false,
centerHole: false,
northHole: true,
westHole: true,
southHole: true,
eastHole: true,
},
body: (p) => {
let wordParts;
if (p.param.reverseSilks) {
wordParts = ["puck", "... |
/**
* NETWORK
*
* The network service is used to communicate with the Latcoin network.
*
* It encapsulates a ripple.Remote instance.
*/
var module = angular.module('network', []);
module.factory('rpNetwork', ['$rootScope', function($scope)
{
/**
* Manage network state.
*
* This class is intended to m... |
/*!
* Vue.js v2.6.11
* (c) 2014-2020 Evan You
* Released under the MIT License.
*/ |
// Generated by CoffeeScript 1.10.0
(function () {
var XMLAttribute;
module.exports = XMLAttribute = (function () {
function XMLAttribute(parent, name, value) {
this.options = parent.options;
this.stringify = parent.stringify;
if (name == null) {
thro... |
//function openSlave() {
// Engine.GetGUIObjectByName("panelContainer").hidden = false;
//}
//function closeSlave() {
// Engine.GetGUIObjectByName("panelContainer").hidden = true;
//}
//function toggleSlave() {
// Engine.GetGUIObjectByName(
// "panelContainer"
// ).hidden = !Engine.GetGUIObjectByName("panelCon... |
'use strict'
var stampit = require('stampit')
var MainChain = require('./MainChain'),
CypherObject = require('../cypher/CypherObject')
var EmptyChain = stampit()
.methods({
addNode: function(node) {
return MainChain({
node: node
})
},
backToMain: function() {
return this
},
buildResetCy... |
MobData = {
100: [{ id: "0",name:"リザードライダー",type:2,inid:0,repop:22,isptboss:0,posx:118.16,posy:59.41, lv_min:0, lv_max:0, is_npc: false },
{ id: "1",name:"リザードライダー",type:2,inid:0,repop:22,isptboss:0,posx:137.00,posy:60.38, lv_min:0, lv_max:0, is_npc: false },
{ id: "2",name:"ナイトシャドー",type:2,inid:4,repop:18,isptboss:0... |
/***
* Repository model
*/
const mongoose = require('mongoose');
// const bcrypt = require('bcryptjs');
var RepositorySchema = mongoose.Schema({
// _id: { type: mongoose.Schema.Types.ObjectId }, // manually create id
owner: { type: mongoose.Schema.Types.ObjectId },
name: { type: String },
status: { ... |
module.exports = {
value: ['mod.rol', 'mod.staff', 'setstaff', 'rol.staff'],
description: "Elige el rol de staff para tu servidor, este sera visible en los tickets. :I",
type: "fun",
func: (bot, message, servidor, usuario, footer, embed, iniciacon, init) => {
let permisos = message.member.hasPermission('ADMINISTR... |
/*global THREE, console */
// This set of controls performs orbiting, dollying (zooming), and panning. It maintains
// the "up" direction as +Y, unlike the TrackballControls. Touch on tablet and phones is
// supported.
//
// Orbit - left mouse / touch: one finger move
// Zoom - middle mouse, or mousewheel / touc... |
module.exports={A:{A:{"1":"I F E D A B","16":"hB"},B:{"1":"C O P H J K L T U M UB"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PB G V I F E D A B C O P H J K L W X Y Z a b c d e f g h i j k l m n o p q r s t u v w Q y z WB BB HB DB EB FB CB AB S N IB JB KB LB MB NB OB GB QB RB T U gB oB","16":"fB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H J K L... |
/**
* @license Angular v8.2.14
* (c) 2010-2019 Google LLC. https://angular.io/
* License: MIT
*/
import { ɵglobal, NgZone, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, NgModule, APP_ID } from '@angular/core';
import { ɵgetDOM, ɵBrowserDomAdapter, BrowserModule, ɵELEMENT_PROBE_PROVIDERS } from '@angul... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var object_sizeof_1 = __importDefault(require("object-sizeof"));
var generateHash_1 = __importDefault(re... |
const dgram = require("dgram")
const config = require("../config.json")
var localIP
require("local-ipv4-address")().then(res => { localIP = res })
const sock = dgram.createSocket("udp4", (msg, peer) => {
if (peer.family != "IPv4") return
var string = msg.toString()
if (string.startsWith("LuciferDiscovery")) {
Lo... |
class Employee {
constructor(name, id, email){
this.name = name;
this.id = id;
this.email = email;
}
getName() {
return this.name
}
getEmail() {
return this.email
}
getId() {
return this.id
}
getRole() {
return this.constructor.name
}
}
module.exports = Employee |
let addEmp25 = (employees) => {
employees.push(
{id:25, name: 'Johanna Hill'}
)
return employees;
};
export {addEmp25}; |
/**
* The MIT License (MIT)
*
* Copyright (c) 2016 Auth0, Inc. <support@auth0.com> (http://auth0.com)
*
* 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... |
const sinon = require('sinon');
const should = require('should');
const factory = require('../');
describe('factory', () => {
it('should throw if no options', () => {
(function wrapper() {
factory();
}).should.throw();
});
it('should throw if no bucket', () => {
(function wrapper() {
fa... |
const TremendousClient = require('../lib/client');
const fetchMock = require('fetch-mock');
const getOrganizationsFixture = require('./fixtures/getOrganizations.json');
const createOrganizationFixture = require('./fixtures/createOrganization.json');
const getProductsFixture = require('./fixtures/getProducts.json');
co... |
/* view_comfy icon*/
import React from "react";
const Icon = (props = {}) => (
<svg viewBox="0 0 48 48" {...props}>
<path d="M6 18h8v-8H6v8zm0 10h8v-8H6v8zm10 0h8v-8h-8v8zm10 0h8v-8h-8v8zM16 18h8v-8h-8v8zm10-8v8h8v-8h-8zm10 18h8v-8h-8v8zM6 38h8v-8H6v8zm10 0h8v-8h-8v8zm10 0h8v-8h-8v8zm10 0h8v-8h-8v8zm0-28v8h8v-8h-... |
module.exports = function(application){
application.get('/', function(req, res){
res.format({
html: function(){
res.send('Bem vindo a sua app NodeJS!');
},
json: function(){
var retorno = {
body: 'Bem vindo a sua app NodeJS!'
}
res.json(retorno);
}
});
});
application.post... |
/*
Copyright (C) 2019 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
import '../questionnaire-mapping-link/questionnaire-mapping-link';
import '../issue/issue-unmap-item';
import template from './unmap-dropdown-item.stache';
import Mappings from '../../models/mapper... |
/**
* Desafio 05
* https://osprogramadores.com/desafios/d05/
*
* autor: andre@andregarzia.com
*/
'use strict'
let app = {
loading: false,
data: {},
report: {
departamentos: {},
departamentos_data: {},
max_d: 0,
min_d: 999999999999999,
max_d_n: "",
min_... |
// Prompt the user to enter what they are currently doing
const userInput = process.argv[2];
console.log('Current user activity:', userInput);
// If the user does not enter anything, return an error message
if (!userInput) {
console.error(
'\nPlease enter your current activity\nUsage: `node index.js <activity>`'... |
/**
* Copyright 2012-2013 Amazon.com, Inc. or its affiliates. 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. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... |
const TemplatePath = require("./TemplatePath");
const config = require("./Config");
class EleventyExtensionMap {
constructor(formatKeys = []) {
this.unfilteredFormatKeys = formatKeys.map(function(key) {
return key.trim().toLowerCase();
});
this.formatKeys = this.unfilteredFormatKeys.filter(key =>
... |
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
f... |
const axios = require('axios');
(async function () {
const sms = await axios({
url: 'https://api2.totalvoice.com.br',
method: 'post',
headers: {
'Access-Token': '' //para obter entre no site Total Voice e faça o seu cadastro
},
data: {
'numero_destino': '',
'mensagem': ''
}
});
console.log(sms... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _index = require('../index');
var _index2 = _interopRequireDefault(_index);
var _vcTooltip = require('../../vc-tooltip');
var _vcTooltip2 = _interopRequireDefault(_vcTooltip);
require('../assets/index.less');
require('../../vc-too... |
const assert = require('assert');
const fs = require('fs-extra');
const path = require('path');
const { v4: uuidv4 } = require('uuid');
const AwaitLock = require('../common/await_lock');
const WizDb = require('../db/wiz_db');
const paths = require('../common/paths');
class DataStoreMap {
//
constructor() {
thi... |
// This icon file is generated automatically.
// tslint:disable
var MedicineBoxTwoTone = { "name": "medicine-box", "theme": "twotone", "icon": function (primaryColor, secondaryColor) {
return { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { ... |
let { getProvider, getRelevantFilters } = require('../src/utils')
let DebugProvider = require('../src/provider-debug')
describe('Utils', () => {
// Not handled - missing schema, schema with no matching provider
describe('getProvider', () => {
let Providers = {
provider1: {
a: 1,
},
pr... |
const casterToken = canvas.tokens.get(args[0].tokenId);
if (!casterToken) {
ui.notifications.warn("Please select a valid token to use this ability.");
return;
}
const targetId = Array.from(game.user.targets)[0];
if (!targetId) {
ui.notification.warn("This spell requires at least one valid target.");
return;
}
... |
var gulp = require('gulp'),
sass = require('gulp-sass'),
rename = require('gulp-rename'),
cssmin = require('gulp-minify-css'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
jshint = require('gulp-jshint'),
scsslint = require('gulp... |
jQuery.support.cors = true;
var table;
$(function() {
var name = getCookie("name");
var token = getCookie("token");
table = $("#example").DataTable({
"bDestroy":true,
"paging": true,
"lengthChange": false,
"ordering": true,
"info": true,
"autoWidth": false,
"searching": true,
... |
'use strict'
const path = require('path')
const defaultSettings = require('./src/settings.js')
function resolve(dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title || 'vue Admin Template' // page title
// If your port is set to 80,
// use administrator privileges to execute the command lin... |
//mapboxgl.accessToken =
// 'pk.eyJ1IjoiYXczMjMwIiwiYSI6ImNqdzI5ODZwejB1ZGkzeXFwZHQ5dGpiYjgifQ.4L8LsuWyVvyA2PlELAhg0Q'
//const map = new mapboxgl.Map({
// container: 'map',
// style: 'mapbox://styles/aw3230/ck45gulvp08gn1cp5omwlc6oq',
// center: [-81.379234, 28.538336],
// zoom: 15.5,
// bearing: 27,
// pitch: 4... |
"use strict";
var helpers = require("../../helpers/helpers");
exports["Etc/GMT-4"] = {
}; |
let tableArray=[
{
patronMoniker:'Denny',
patronEmail:'daVjncjC0d3@',
patronId:9,
phoneNumber:'407-732-8899'
}
];
module.exports=tableArray; |
var GetTileY = function (worldX, worldY) {
return this.getTileXY(worldX, worldY, true).y;
}
export default GetTileY; |
var gulp = require('gulp'),
streamqueue = require('streamqueue'),
minifyHtml = require('gulp-minify-html'),
templateCache = require('gulp-angular-templatecache'),
concat = require('gulp-concat'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify');
gulp.task('minify', function() {
var stream... |
import utils from './utils.js'
import PrRequestBuilder from './PrRequestBuilder.js'
export default class PrRequest {
constructor(builder) {
this.baseUrl = builder ? builder.baseUrl : ''
this.method = builder ? builder.method : 'get'
this.headers = builder ? utils.clone(builder.headers) : {}... |
export { default } from 'ember-moment/helpers/moment-to-now'; |
$(document).ready(function(){
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$('.showdetail').hide();
$(".order").hide();
$("#title").hide();
$("#food").hide();
... |
import Mail from './mail.svg'
import Github from './github.svg'
import Facebook from './facebook.svg'
import Youtube from './youtube.svg'
import Linkedin from './linkedin.svg'
import Twitter from './twitter.svg'
import Instagram from './instagram.svg'
import Spotify from './spotify.svg'
// Icons taken from: https://si... |
import * as swcHelpers from "@swc/helpers";
// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
var React = require("react");
var TextComponent = /*#__PURE__*/ function(_Component) {
"use strict";
swcHelpers.inherits(TextComponent, _Component);
v... |
const fs = require("fs");
const path = require("path");
const { createFilter } = require("rollup-pluginutils");
const { transformAsync, createConfigItem } = require("@babel/core");
const presetEnv = require("@babel/preset-env");
const { convertSvgData } = require("@svgr-iconkit/build-utils");
const babelOptions = {
... |
/*****
License
--------------
Copyright © 2017 Bill & Melinda Gates Foundation
The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens... |
window.bookSummaryJSON = "<p>Tom Dreyfus is a Prefect, a law enforcement officer with the Panoply. His beat is the multifaceted utopian society of the Glitter Band, that vast swirl of space habitats orbiting the planet Yellowstone, the teeming hub of a human interstellar empire spanning many worlds. His current case: i... |
// https://docs.cypress.io/guides/guides/plugins-guide.html
// if you need a custom webpack configuration you can uncomment the following import
// and then use the `file:preprocessor` event
// as explained in the cypress docs
// https://docs.cypress.io/api/plugins/preprocessors-api.html#Examples
/* eslint-disable im... |
module.exports = {
// presets: ["@vue/cli-plugin-babel/preset"],
}; |
const moment = require('moment-timezone')
const mergeDateAndTime = require('./mergeDateAndTime')
describe('aircraft', () => {
describe('mergeDateAndTime', () => {
it('should create a JS date for the given date and time string', () => {
expect(
mergeDateAndTime('2018-12-15', '2018-12-14 14:00', 'Eur... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... |
// 初始化数据库
const db = wx.cloud.database();
const common = db.collection('kc_common');
Page({
data: {
minstu:1,
maxstu:1,
mintea:1,
maxtea:1,
time:""
},
pageData:{
id:"abd27dd45f36862c009c9aa701c48126"
},
// 监听步进器数据
onminstu:function(event){
this.setData({
minstu:event.d... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, Inc.
*
* 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 ri... |
/*
* Author: Vignesh Kumar
* Copyright: vigneshuvi
* Date: 23/03/2017
* This file contains the register the web service modules and its file path.
*/
'use strict';
module.exports = {
webservices: [
{
name : "users",
methods : require('./services/v1/user/user')
}
]
}; |
import { foo } from "./library/a.js";
export default foo; |
jstack.dataBindingElementCompiler.push({
match(n){
let tagName = n.tagName.toLowerCase();
return (tagName=='script'||tagName=='template')&&n.getAttribute('type')=='text/j-javascript';
},
callback(n,dataBinder,scope){
let script;
if(n.tagName.toLowerCase()=='template'){
let childNodes = document.importN... |
term_.prefs_.set("background-color", "#262c35");
term_.prefs_.set("foreground-color", "#ebebeb");
term_.prefs_.set("cursor-color", "rgba(217,0,47, 0.5)"); /* #d9002f */
term_.prefs_.set("color-palette-overrides", ["#191919", "#bf091d", "#3d9751", "#f6bb34", "#17b2e0", "#7830b0", "#8bd2ed", "#ffffff", "#191919", "#bf091... |
// Game.js
// eslint-disable-next-line no-var
var OregonH = OregonH || {};
// constants
OregonH.WEIGHT_PER_OX = 20;
OregonH.WEIGHT_PER_PERSON = 2;
OregonH.FOOD_WEIGHT = 0.6;
OregonH.FIREPOWER_WEIGHT = 5;
OregonH.GAME_SPEED = 800;
OregonH.DAY_PER_STEP = 0.2;
OregonH.FOOD_PER_PERSON = 0.02;
OregonH.FULL_SPEED = 5;
Oreg... |
'use strict';
const knex = require('knex');
module.exports = function (app) {
return knex({
client: process.env.BACKEND_DATABASE_CLIENT,
useNullAsDefault: true,
connection: {
host: process.env.BACKEND_DATABASE_HOST,
user: process.env.BACKEND_DATABASE_USER,
password: process.env.BACKEND... |
var express = require('express');
var router = express.Router();
var userCompetitionRepository = require('../repository/userCompetitionRepository');
var Repo = new userCompetitionRepository();
//get all by ID
router.get('/:id',(req,res)=>{
Repo.getById(req.params.id).then(x=>{
res.status(200).json(x);
... |
// Global variables
var map;
var vessels = [];
var clusters = [];
var clustersDrawn = 0;
var topLeftPixel;
var botRightPixel;
var filterQuery = {};
var showVesselName = false;
var savedTracks;
var savedTimeStamps;
var loadSavedFeatures = false;
var timeOfLastLoad = 0;
var selectSearchedVessel = false;
var selectMarkedV... |
const fs = require('fs')
const useRoutes = (app) => {
const rotesList = fs.readdirSync(__dirname)
let len = rotesList.length
for (let i = 0; i < len; i++) {
if (rotesList[i] !== 'index.js') {
const router = require(`./${rotesList[i]}`)
app.use(router.routes())
app.use(router.allowedMethods(... |
'use strict'
let form = document.getElementById('form') ;
let table = document.getElementById('table') ;
function Movie (name , image , number) {
this.name= name ;
this.image= image ;
this.number= number ;
Movie.all.push(this);
}
Movie.all = [] ;
function addMovie (e) {
e.preventDefault(); ... |
// @flow
/* Import singletons */
import flatten from './utils/flatten'
import stringifyRules from './utils/stringifyRules'
import generateAlphabeticName from './utils/generateAlphabeticName'
import css from './constructors/css'
import ServerStyleSheet from './models/ServerStyleSheet'
import StyleSheetManager from './m... |
//load modules
const npm = require("../../modules/NPM.js");
npm.npm();
//load database
dbinit = require("../../modules/dbinit.js");
dbinit.dbinit();
//start code
module.exports = {
category: `linux`,
name: "proton",
description: "[linux] Search the ProtonDB",
explain: `This command will search the Proton Data... |
/**
* Created by Andy Likuski on 2019.09.16
* Copyright (c) 2019 Andy Likuski
*
* 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... |
import React from "react";
import Container from "react-bootstrap/Container";
import Navbar from "react-bootstrap/Navbar";
import Nav from "react-bootstrap/Nav";
import NavDropdown from "react-bootstrap/NavDropdown";
export default function NavBar(props) {
const user = props.user;
return (
<Navbar data-testid... |
import { Link } from 'react-router-dom';
import styles from '../styles/style.module.css';
function Navbar() {
return (
<div className={styles.navbar}>
<h2>Math Magicians</h2>
<div className={styles.links}>
<Link to="/">Home </Link>
<Link to="/calculator">Calculator </Link>
<Li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.