text
stringlengths
2
1.05M
// Copyright 2006 The Closure Library Authors. 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 requ...
Array.prototype.myreduce = function (func) { let arr = this; let accum = 0; for (let i = 0; i < arr.length; i++) { accum = func(accum, arr[i]); } return accum; }; // let result = [1, 2, 3].reduce((a, b) => a + b); let result = [1, 2, 3].myreduce((a, b) => a + b); console.log(result);
https://github.com/imaya/zlib.js/blob/master/src/huffman.js
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; const SvgIconCustom = global.__MUI_SvgIcon__ || SvgIcon; let Sms = props => <SvgIconCustom {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V...
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).VueCompositionAPI={},t.Vue)}(this,(function(t,n){"use strict";function e(t){return t&&"object"==typeof t...
function initializeMap() { var mapOptions = { center: {lat: 59.323, lng: 18.03}, zoom: 13, scrollwheel: false, navigationControl: false, mapTypeControl: false, scaleControl: false, draggable: false, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document....
import messageHandler from "baselayer/MessageHandler"; import * as API from "../API"; import store from "../store"; const FETCH_RECENT_SOURCES = "skyportal/FETCH_RECENT_SOURCES"; const FETCH_RECENT_SOURCES_OK = "skyportal/FETCH_RECENT_SOURCES_OK"; // eslint-disable-next-line import/prefer-default-export export const...
import moment from 'moment' import _ from 'lodash' import Logger from './../../utils/Logger' class StockDetails { static toHTMLString(stock) { const htmlString = `<div class="alert alert-${ parseFloat(stock.c) > 0 ? "success" : "danger" }"> <div class="row"> <div class="col-xs-6"> ...
let loginController = ($scope, $state) => { $scope.loginUser = function() { $state.go('home'); } $scope.notyetavailable = function() { alert('This feature is currently not available.'); } } loginController.$inject = [ "$scope", "$state"]; export { loginController };
/*! * Bootstrap-select v1.11.2 (http://silviomoreto.github.io/bootstrap-select) * * Copyright 2013-2016 bootstrap-select * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE) */ !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"o...
const path = require('path'); const webpack = require('webpack'); const { CheckerPlugin } = require('awesome-typescript-loader'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); function genarateCssLoader(test, lang, options) { return { test, use: [{ loader: MiniCssExtractPlugin.loader }, 'c...
/* * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file in the browser devtools. * If you are trying to read the output file, select a different ...
/** * 对象数组根据属性去重 * @param {*} data * @returns [] */ export function arrayClearReapt (data, key) { let arrs = data let newArrs = [] for(let i = 0; i < arrs.length; i++) { let flag = false for(let j = i + 1; j < arrs.length; j++) { if (arrs[i][key] === arrs[j][key]) { flag =...
// updater.js // // Updates the state of the world // // Copyright 2013, E14N (https://e14n.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/...
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@artezio/observable-react"),require("@artezio/models")):"function"==typeof define&&define.amd?define(["react","@artezio/observable-react","@artezio/models"],t):"object"==typeof exports?exports.Designer=t(require(...
// /* // * // * ListExecution actions - NOT USED // * // */ // import * as c from './constants'; // // export function defaultAction() { // return { // type: c.DEFAULT_ACTION, // }; // } // // export function listExecutionAction(payload) { // return { // type: c.LIST_EXECUTION_ACTION, // payload /...
import { Rock } from "./rock.js"; import CopperOre from "../../../items/ores/copper-ore.js"; export class CopperRock extends Rock { examineText = "A copper rock."; constructor(scene) { super({ scene: scene, name: "Copper Rock", varName: "copperRock", ima...
var group__z_half_edge_data_structures = [ [ "ZMeshClasses", "group__z_mesh_classes.html", "group__z_mesh_classes" ] ];
import { primaryColor, warningColor, dangerColor, successColor, infoColor, roseColor } from "../../material/ui-kit"; const badgeStyle = { badge: { marginRight: "3px", borderRadius: "12px", padding: "5px 12px", textTransform: "uppercase", fontSize: "10px", fontWeight: "500", li...
(window.webpackJsonp=window.webpackJsonp||[]).push([[131],{742:function(s,n,a){"use strict";a.r(n);var t=a(5),r=Object(t.a)({},(function(){var s=this,n=s.$createElement,a=s._self._c||n;return a("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[a("h1",{attrs:{id:"param-batch-job"}},[a("a",{staticClass:"h...
export var DateModels; (function (DateModels) { let SelectType; (function (SelectType) { SelectType[SelectType["None"] = 0] = "None"; SelectType[SelectType["Single"] = 1] = "Single"; SelectType[SelectType["All"] = 2] = "All"; SelectType[SelectType["Only"] = 3] = "Only"; S...
// server.js // load the things we need // var express = require('express'); // var app = express(); // set the view engine to ejs // app.set('view engine', 'ejs'); // app.use(express.static('views')); // use res.render to load up an ejs view file // index page // app.get('/', function(req, res) { // res.rend...
/** * Created by yydashen on 2018/2/1. */ //二级地区显示 function province() { var regionId=$("#regionId option:selected").val(); $.ajax({ type:'post', url:hotelSelect, data:{'regionId':regionId}, async: false, dataType: 'json', success: function (res) { $...
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage'; import {authenticateSession, invalidateSession} from 'ember-simple-auth/test-support'; import {beforeEach, describe, it} from 'mocha'; import {clickTrigger, selectChoose} from 'ember-power-select/test-support/helpers'; import {currentURL, find, findA...
import React from "react"; const SearchBar = () => { return <div className="search_bar__container">Search Bar</div>; }; export default SearchBar;
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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...
import {h} from 'preact'; import {saveAs} from 'file-saver'; import Button from './Button'; import NumberRange from './NumberRange'; import styles from './Controls.css'; import Checkbox from './Checkbox'; export default function Controls({ duration, fps, gifSource, quality, showFullImage, showAntiClockwise, dis...
'use strict'; ////////////////// // app // ////////////////// var clickerCalcs = angular.module('trimpCalcApp', []); clickerCalcs.controller('TrimpCalcCtrl', function($scope) { $scope.keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; $scope.keyStrUriSafe = "ABCDEFGHIJK...
const express = require('express') const app = express() const PORT = 8888 const bodyParser = require('body-parser') const cors = require('cors') const fs = require('fs') const nodemailer = require('nodemailer') // const { google } = require('googleapis') // const OAuth2 = google.auth.OAuth2 // const OAuth2Client = ne...
import React from "react"; import { Link } from "react-router-dom"; // JavaScript plugin that hides or shows a component based on your scroll import Headroom from "headroom.js"; // reactstrap components import { Button, Collapse, DropdownToggle, DropdownMenu, DropdownItem, UncontrolledDropdown, NavbarBran...
import _ from 'lodash'; import { database } from 'lib/db'; /** * @param {Object[]} tagObject the tag to be added. * @returns {boolean} tags number of tags modified */ export async function addTag(tagObject) { await database('tags').insert(tagObject); return true; } /** * Fetches direct meta data ...
/*! Summernote v0.8.12 | (c) 2013- Alan Hong and other contributors | MIT license */ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(window,func...
import { SET_DEVICES_LIST, SET_DEVICE_ITEM, SET_FORMDATA_CONNECT, SET_FORMDATA_DETAIL, SET_FORMDATA_REMARK, SET_FORMDATA_FILES, SET_FORMDATA_CLEAR, } from '../mutation-types' import weui from 'weui.js' import { fetchList, fetchDevice, maintainDevice, } from '@/api/devices' const state = { ...
const lines = gets(); const salary = Number(lines); let percent; if (salary <= 400.0) { percent = 15.0; } else if (salary <= 800.0) { percent = 12.0; } else if (salary <= 1200.0) { percent = 10.0; } else if (salary <= 2000.0) { percent = 7.0; } else { percent = 4.0; } const reajust = (percent / 1...
export const projects = [ { title: "Apvocate", type: "Business", client: "Apvocate Limited", description: "Built using React and React-Native and is actively maintained. Helping businesses to work with their loyal customers to achieve even more success through advocacy.", techStack: "R...
var _ = require('lodash'); var $ = require('jquery'); jQuery = $; // this is for old backward compatability of bootrap modules var ko = require('knockout'); var dndPageScroll = require('dnd-page-scroll'); require('./bootstrap'); require('./jquery-ui'); require('./knockout-bindings'); var components = require('ungit-com...
THREE.TransformControls = function (camera, domElement) { if (domElement === undefined) { console.warn( 'THREE.TransformControls: The second parameter "domElement" is now mandatory.' ); domElement = document; } THREE.Object3D.call(this); this.visible = false; this.domElement = domElement; ...
// Copyright (C) 2017 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: | Collection of assertion functions used throughout test262 defines: [assert] ---*/ function assert(mustBeTrue, message) { if (mustBeTrue === true) { ...
const menu = document.querySelectorAll(".menu-mobile") const menumobile = document.querySelector(".menu-mobile") const menuHamburguer = document.querySelector(".menu-hamburguer") const menuShow = document.querySelectorAll('.menu-toggle ul li a') menuHamburguer.addEventListener('click', ()=> { for(const element o...
/*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ /** * Initialization Code and shared classes of library sap.ui.ux3. */ sap.ui.define([ 'sap/ui/core/library', // library dependency 'sap/ui/commons/library'], // li...
// Creare's 'Implied Consent' EU Cookie Law Banner v:2.4 // Conceived by Robert Kent, James Bavington & Tom Foyster // Modified by Simon Freytag for syntax, namespace, jQuery and Bootstrap C = { // Number of days before the cookie expires, and the banner reappears cookieDuration : 14, // Name of our cooki...
var classprzeszkoda = [ [ "Czy_Kolizja", "classprzeszkoda.html#a59708f9e085f59fbdd993aa9e0fb25db", null ] ];
/*jshint eqeqeq:false */ (function (window) { 'use strict'; /** * Creates a new client side storage object and will create an empty * collection if no collection already exists. * * @param {string} name The name of our DB we want to use * @param {function} callback Our fake DB uses callbacks because in *...
import SimpleSchema from 'simpl-schema'; import BaseCollection from '/imports/api/base/BaseCollection'; import { Interests } from '/imports/api/interest/InterestCollection'; import { check } from 'meteor/check'; import { Meteor } from 'meteor/meteor'; import { _ } from 'meteor/underscore'; import { Tracker } from 'mete...
var assert = require('assert') var Address = require('./address') var crypto = require('./crypto') var convert = require('./convert') var Network = require('./network') var Opcode = require('./opcode') function Script(data) { this.buffer = data || [] if(!Array.isArray(this.buffer)) { throw new Error('expect Sc...
$(function() { $('.play-video').on('click', function(event) { event.preventDefault(); var $that = $(this), type = $that.data('type'), videoUrl = $that.attr('href'), $video; if (type === 'youtube') { $video = '<iframe id="video-player" src="'+v...
var express = require('express'); var path = require('path'); var gameRouter = express.Router(); module.exports = function () { gameRouter.route('/') .get(function (req, res) { res.sendFile(path.join(__dirname, '../views/play.html')); }); return gameRouter; };
var classhou_1_1precondition__violation = [ [ "precondition_violation", "classhou_1_1precondition__violation.html#a99c5e409fa31753a4ee3cb769b54b9a1", null ] ];
const smallCups = document.querySelectorAll('.cup-small'); const liters = document.getElementById('liters'); const percentage = document.getElementById('percentage'); const remained = document.getElementById('remained'); updateBigCup(); smallCups.forEach((cup, idx) => { cup.addEventListener('click', () => { hig...
var HeatTiles = require('./src/index'); // Globally expose HeatTiles in the browser if(typeof window !== 'undefined') { window.HeatTiles = HeatTiles; } // AMD Support if(typeof define === 'function' && define.amd) { define([], function() { return HeatTiles; }); } // CommonJS Support module.exports = HeatTi...
const fs = require('fs') const turf = require('@turf/turf') const geohash = require('ngeohash'); const highzoomStream = fs.createWriteStream("./wind_highzoom.geojsonld"); const midzoomStream = fs.createWriteStream("./wind_midzoom.geojsonld"); const lowzoomStream = fs.createWriteStream("./wind_lowzoom.geojsonld"); let...
import { logoutSaga, checkAuthTimeoutSaga, authUserSaga, authCheckStateSaga } from './auth'; import { fetchOrdersSaga, purchaseBurgerSaga } from './order'; import { initIngredientsSaga } from './burgerBuilder'; import { takeEvery, all } from 'redux-saga/effects'; import { AUTH_INITIATE_LOGOUT, AUTH_CHECK_TIMEOUT, ...
/* * @license FusionCharts JavaScript Library * Copyright FusionCharts Technologies LLP * License Information at <http://www.fusioncharts.com/license> * * @author FusionCharts Technologies LLP * @version fusioncharts/3.3.1-sr3.21100 * @id fusionmaps.Belgium.20.10-30-2012 06:07:26 */ FusionCharts(["private","mod...
import path from 'path'; import webpack from 'webpack'; import autoprefixer from 'autoprefixer'; const SRC_DIR = path.join(__dirname, '../'); export default { devtool: 'source-map', entry: [ 'babel-polyfill', 'webpack-dev-server/client?http://0.0.0.0:3000', 'webpack/hot/dev-server', './index', ]...
describe('Auth', function () { beforeEach(module('components.auth')); beforeEach(module(function ($stateProvider) { $stateProvider.state('app', { url: '/' }); })); describe('Routes', function () { var $state, AuthService, $location, $rootScope, $q; function goTo(url) { $location.url(url); ...
/*! * FullCalendar v2.3.0 * Docs & License: http://arshaw.com/fullcalendar/ * (c) 2013 Adam Shaw */ (function(factory) { if (typeof define === 'function' && define.amd) { define([ 'jquery', 'moment' ], factory); } else { factory(jQuery, moment); } })(function($, moment) { ;; var fc = $.f...
//1 unit = 1cm /*$(document).ready(function () { });*/ var players = [], currentPlayer, otherPlayer; var container; var camera, scene, renderer, loader, textureManager; var keyboardControl; var clock; var poolTable, ballArray, holeArray, playBallStart, eightballstart; var startPosArray; var collisionArray = [],...
'use strict'; /* ------------------------------------------------------------------------------------------------ CHALLENGE 1 - Review Write a function that iterates over an array of people objects and creates a new list of each person's full name using the array method 'map'. Each object will have the shape {firstNa...
import React from 'react'; import PropTypes from 'prop-types'; const Author = ({firstName, lastName}) => { const fullName = (firstName || lastName ) ? `${firstName || ''} ${lastName || ''}` : 'Anonymous'; return ( <span> {`Author: ${fullName}`} </span> ) }; Author.propTypes = ...
ace.define("ace/mode/csound_preprocessor_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var C...
var searchData= [ ['update_5fcycle_183',['UPDATE_CYCLE',['../_config_8h.html#accbf9ecab7aedeabb949d797657a04fb',1,'Config.h']]], ['updateinfo_184',['updateInfo',['../_balance_car_8ino.html#a62d08aadd1bcf30936f37705e85d85c7',1,'BalanceCar.ino']]] ];
const uc = window.uc; /** * 设置系统横竖屏 * @param {Number} orientaiton 屏幕模式; { 1: '竖屏', 2: '横屏' } * */ export default (orientaiton = 1) => { return new Promise((resolve, reject) => { uc.requestScreenOrientation({ orientaiton, // 1:竖屏模式 2:横屏模式,传感器模式的横屏,对应 android SCREEN_ORIENTATION_SENSOR_LANDSCAPE suc...
/* eslint-disable import/no-extraneous-dependencies */ import Vue from 'vue'; import { MglMap, MglGeojsonLayer, MglMarker, MglPopup } from 'vue-mapbox'; import Mapbox from 'mapbox-gl'; Vue.component('MglMap', MglMap); Vue.component('MglGeojsonLayer', MglGeojsonLayer); Vue.component('MglMarker', MglMarker); Vue.compone...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: > FunctionDeclaration within a "do-while" Block in strict code is not allowed description: Declaring function within a "do-while" loop negative: SyntaxError bestPracti...
function Grid(size, previousState) { this.size = size; this.cells = previousState ? this.fromState(previousState) : this.empty(); } // Build a grid of the specified size Grid.prototype.empty = function () { var cells = []; for (var x = 0; x < this.size; x++) { var row = (cells[x] = []); ...
import React, { Component } from 'react'; class ASList extends React.Component { constructor(props) { super(props); } //行头、表体Header table //排序、增删行 render() {} }
const appRoot = require('app-root-path'); const nock = require('nock'); const querystring = require('querystring'); const should = require('should'); const enketo_ = require(appRoot + '/lib/external/enketo'); const Problem = require(appRoot + '/lib/util/problem'); describe('external/enketo', () => { const enketoConf...
'use strict' const fs = require('fs'); const meta = require('./meta.json'); const schema = require('./schema.json'); const barometer = require('./barometer'); module.exports = function (app) { var plugin = { }; let persistTimer = null; plugin.id = 'signalk-barometer-trend'; plugin.name = 'Barometer Tr...
import '../site_configs/hof_cug-63710/js/63710'; import '../site_configs/hof_cug-63710/styles/63710.scss';
/** * assert * * assert.throw(block, error, message) * assert.ifError(vaule) */ const assert = require("assert"); const fs = require("fs"); function readConfigFile(cb){ fs.readFile("config.cfg", (err, data)=>{ if(err && err.code == "ENOENT"){ // cb(err, { "database": "psql://localhost/test"}); ...
import request from '@/utils/request' const defaultSettings = require('@/settings.js') export function login(data) { return request({ url: '/keyauth/v1/oauth2/tokens/', method: 'post', auth: { username: defaultSettings.client_id, password: defaultSettings.client_secret }, data }) }...
import filter from 'lodash/filter'; import flatten from 'lodash/flatten'; import get from 'lodash/get'; import map from 'lodash/map'; import set from 'lodash/set'; import some from 'lodash/some'; import startsWith from 'lodash/startsWith'; angular.module('managerApp') .controller('TelecomTelephonyLineCallsSimultaneo...
( function ( mw, $ ) { QUnit.module( 'mmv.bootstrap', QUnit.newMwEnvironment( { setup: function () { mw.config.set( 'wgMediaViewer', true ); mw.config.set( 'wgMediaViewerOnClick', true ); this.sandbox.stub( mw.user, 'isAnon' ).returns( false ); } } ) ); function createGallery( imageSrc, caption ) { v...
const { NotImplementedError } = require('../extensions/index.js'); /** * Calculate turns number and time (in seconds) required * to solve puzzle * * @param {Number} disks number of disks * @param {Number} turnsSpeed speed (in turns/hour) * @return {Object} object with props turns (number of turns) * and second...
import fs from 'fs'; import glob from 'glob'; import dot from 'dot-object'; import { readVueFiles, readLangFiles, extractI18nItemsFromVueFiles, extractI18nItemsFromLanguageFiles, logMissingKeys, logUnusedKeys, } from './library/index'; export var VueI18NExtractReportTypes; (function (VueI18NExtractReportTypes) { Vu...
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee}; const reporting = require('../lib/reporting'); const extend = require('../lib/extend'); module.exports = [ { zigbeeModel: ['43076'], model: '43076', vendor: 'Enbrighten', description: '...
/* Field Color (color) */ /*global jQuery, document, redux_change, redux*/ (function( $ ) { 'use strict'; redux.field_objects = redux.field_objects || {}; redux.field_objects.color = redux.field_objects.color || {}; $( document ).ready( function() { } ); ...
// Copyright & License details are available under JXCORE_LICENSE file /* This code tests if some of the evaluated values in a subthread are the same as in the mainthread. Code spawns itself in mt-keep mode and gets results from files, since we cannot rely on stdout. */ if (process.isPackaged) return; var path...
import nodemailer from 'nodemailer'; import exphbs from 'express-handlebars'; import nodemailerhbs from 'nodemailer-express-handlebars'; import {resolve} from 'path'; import mailConfig from '../config/mail'; class Mail{ constructor(){ const {host, port, secure, auth} = mailConfig; this.transporter = nodemai...
/*! * Knockout ES5 plugin - https://github.com/SteveSanderson/knockout-es5 * Copyright (c) Steve Sanderson * MIT license */ (function(global, undefined) { 'use strict'; // Model tracking // -------------- // // This is the central feature of Knockout-ES5. We augment model objects by converting...
module.exports = { selector: '#lift li', parse: { name: 1, status: { child: 0, attribute: 'class', regex: /-([a-z]+)$/ } } };
/** * @license Angular v5.2.6 * (c) 2010-2018 Google, Inc. https://angular.io/ * License: MIT */ import { EventEmitter, Injectable } from '@angular/core'; import { __extends } from 'tslib'; import { LocationStrategy } from '@angular/common'; /** * @fileoverview added by tsickle * @suppress {checkTypes} checked b...
function User(email, name) { this.email = email; this.name = name; this.online = false; } User.prototype.login = function () { this.online = true; console.log(this.email, 'has logged in'); } User.prototype.logout = function () { this.online = false; console.log(this.email, 'has logged out'...
var penyedia = new DaftarObj2({ prefix : 'penyedia', url : 'pages.php?Pg=ref_penyedia', formName : 'penyediaForm', penyedia_form : '0', loading: function(){ //alert('loading'); this.topBarRender(); this.filterRender(); this.daftarRender(); this.sumHalRender(); }, detail: function(){ ...
// import Vue from "../node_modules/vue/dist/vue.js"; import Vue from 'vue' // 导入 css文件 import 'normalize.css/normalize.css' // A modern alternative to CSS resets // 引入第三方插件 import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' import ECharts from 'vue-echarts/components/ECharts.vue' impor...
var Volume = { isDragging: false, init: function() { $('#bottom .volume').mousedown(function(event) { Volume.setVolume(event); }); $('#bottom .volume .slider .knob').mousedown(function(event) { Volume.startDrag(event); }); $(window).mouseup(functi...
import React from "react" import Layout from "../components/layout" import Metadata from "../components/metadata" const Index = () => { return ( <Layout> <Metadata title="Home" description="This is my home page" /> <h1>Home page</h1> <h2>I help organisation thrive with Analytics, Insight and A/...
/* global angular:false */ (function (angular, $) { 'use strict'; angular.module('mvcDemo') .controller('TasksCtrl', ['$scope', function ($scope, guaService) { $scope.tasks = [ {id: 111, name: 11111, description: 11111}, {id: 222, name: 22222, description: 11111}, {id: 333, name...
define(["../../../vaadin-material-styles/color.js", "../../../vaadin-material-styles/typography.js", "../../../vaadin-material-styles/mixins/required-field.js", "../../../vaadin-material-styles/font-icons.js", "../../../vaadin-material-styles/mixins/field-button.js", "../../../../@polymer/polymer/lib/utils/html-tag.js"...
let ModbusRequestBody = require('./request-body.js') /** Read Discrete Inputs Request Body * @extends ModbusRequestBody */ class ReadDiscreteInputsRequestBody extends ModbusRequestBody { static fromBuffer (buffer) { try { let fc = buffer.readUInt8(0) if (fc !== 0x02) { ...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ var CONST = require('./const'); /** * Convert the given angle from degrees, to the equivalent angle in radians. * ...
export const ScheduleAction = { label: "ScheduleAction", description: `Scheduling future actions, events, or tasks. Related actions: * ReserveAction: Unlike ReserveAction, ScheduleAction allocates future actions (e.g. an event, a task, etc) towards a time slot / spatial allocation.`, _id: { viewableBy: ...
/** * @module connection-pool-party */ import debug from 'debug'; import ConnectionPoolParty from './connection-pool-party'; import defaultConnectionPoolFactory from './default-connection-pool-factory'; import forceFqdnConnectionPoolFactory from './force-fqdn-connection-pool-factory'; // Send all debug() logs to stdo...
/** * Auto-generated action file for "Microsoft Graph API" API. * * Generated at: 2019-08-07T14:53:12.583Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / microsoft-graph-api-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector ar...
module.exports = { presets: ["next/babel"], plugins: [["styled-components", { ssr: true }], "inline-react-svg"], };
import React from 'react' import styled, {keyframes} from 'styled-components' const lightshow = keyframes` 0% { color: #fb8a8b; } 16% { color: #f76272; } 32% { color: #e10079; } 48% { color: #e10079; } 64% { color: #a231ef; } 80% { color: #15216b; } 100% { color: #...
//Userデータを管理 var Preferences = require("preferences");//データ保存 var DOMAIN = 'jp.ac.aitech.maslab'; module.exports.getAccount = function(){ var prefs = new Preferences(DOMAIN); return prefs; } module.exports.isLogin = function(){ var prefs = new Preferences(DOMAIN); return prefs.login; } module.exports.setUse...
import { combineReducers } from 'redux'; import keplerGlReducer from 'kepler.gl/reducers'; import { REQUEST_PARKING_DATA, GET_PARKING_DATA, SET_MAP_MODE } from './actions'; import { MAP_MODE } from '../configs/map'; const isLoadingReducer = function ( state = false, action) { switch (action.type) { case REQUEST_P...
$(document).ready(function() { listenRemoveStudent(); $("#student_autocomplete").on('input', function() { const name = $(this).val(); if (name.length > 2) { refreshStudents(name); } else { $('#student_autocomplete_matches').hide(); } }); $('#for...
const { DateTime } = require("luxon"); const CleanCSS = require("clean-css"); const UglifyJS = require("uglify-es"); const htmlmin = require("html-minifier"); const eleventyNavigationPlugin = require("@11ty/eleventy-navigation"); module.exports = function(eleventyConfig) { // Eleventy Navigation https://www.11ty.de...