text
stringlengths
2
1.05M
/* * Copyright (c) 2013 - present Adobe Systems Incorporated. All rights reserved. * * 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 * ...
/* scales.js * In this file we define data as objects to populate the SCIM & PAIQI, scales * created by George Marzloff | george@marzloffmedia.com */ // FIM // Based on https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/InpatientRehabFacPPS/downloads/irfpai-manualint.pdf // SCIM // Based on http://sci2....
// @flow import { mergeStyles } from 'wix-rich-content-common'; import styles from '../statics/styles/video-viewer.scss'; export const containerClassName /*: ClassNameStrategy*/ = theme => { const mergedStyles = mergeStyles({ styles, theme }); return mergedStyles.video_container; };
import React, { Component } from 'react' import { connect } from 'react-redux' import { Button, Col, Row } from 'antd'; /**Components */ import Listar from './Listar' import CrearEditar from './CrearEditar' /* Helpers */ import { pushPath } from 'helpers/helpers' import { pathnames as utilPathnames } from '...
var assert = require('assert'); var battle; describe('Desolate Land', function () { afterEach(function () { battle.destroy(); }); it('should activate the Desolate Land weather upon switch-in', function () { battle = BattleEngine.Battle.construct(); battle.join('p1', 'Guest 1', 1, [{species: "Groudon", abilit...
(window.webpackJsonp=window.webpackJsonp||[]).push([[129],{1576:function(t,e,a){"use strict";a.r(e);var n=a(24),r=a.n(n),o=a(25),c=a.n(o),u=a(26),l=a.n(u),i=a(27),s=a.n(i),f=a(16),d=a.n(f),m=a(0),p=a.n(m),v=a(854),h=a(855),b=a(702),y=a(703),g=a(207),E=a(1031);function R(t){var e=function(){if("undefined"==typeof Reflec...
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { Injectable } from '@angular/core'; import { ReplaySubject, Subject } from 'rxjs'; export class NzRadioService { constructor() { ...
module.exports = { //单行最大长度 printWidth: 120, //tab键的缩进 tabWidth: 4, //使用单引号而非双引号 singleQuote: true, //末尾分号 semi: true, //添加es5中被支持的尾逗号 trailingComma: 'es5', //在对象字面量声明所使用的的花括号后({)和前(})输出空格 bracketSpacing: true, //在多行JSX元素最后一行的末尾添加 > 而使 > 单独一行(不适用于自闭和元素) jsxBracket...
(function(){ var iframe = document.createElement('iframe'); iframe.src = chrome.extension.getURL('rate.html'); iframe.id = 'effective'; iframe.style.zIndex = '9999999'; iframe.style.width = '395px'; iframe.style.height = '230px'; iframe.style.top = '20px'; iframe.style.right = '30px'; iframe.style.position =...
'use strict'; var app = angular.module('appJeBouquine', ['ngRoute','ngStorage','ngAnimate','angucomplete-alt', 'toaster']);
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import React from "react" import Layout from "../../layout/page-container.js" import AboutMe from "./content/about-me.js" import data from "../../api.json"; const AboutMePage = (props) => ( <Layout> AboutMe <AboutMe data={data} /> </Layout> ) export default AboutMePage
function editStatesModal($id) { url = "getInfosStatesModal.html"; // on declare un formulaire var form = { id: $id }; //on post var state = send_post(form, url); $('#id_state').val(state.id_state); $('#new_name_state').val(state.name_state); }
import { request } from './request' export function getCategoryDatas() { return request({ url: '/category' }) } export function getCategoryGoods(type, page) { return request({ url: '/home/data', params: { type, page } }) }
this.wc=this.wc||{},this.wc.wcBlocksData=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefine...
Package.describe({ name: 'praneybehl:react-conditionals', version: '0.1.5', summary: 'React component for easy conditional logic packaged for Meteor', git: 'https://github.com/praneybehl/meteor-react-conditionals', documentation: 'README.md' }); Package.onUse(function(api) { api.versionsFrom('1.2.1'); ap...
import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; import React from 'react'; import { SafeAreaProvider } from 'react-native-safe-area-context'; import { connect } from '../../../base/redux'; import { DialInSummary } from '../../../invite'; i...
const BaseModel = require(`../BaseModel`); /** * NetworkCountQuery class */ class NetworkCountQuery extends BaseModel { /** * Creates new NetworkCountQuery model * @param {object} options - model options object * @param {string} options.name - Filter by device type name * @param {string...
'use strict'; module.exports = { type: 'error', error: { line: 2, column: 1, message: 'Unexpected end of file. The decorator operator \'@\' at 1:1 should be followed by a name (read/write).', }, };
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Latin1Supplement.js * * Copyright (c) 2009-2012 Design Science, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the...
// @flow import { compose } from 'redux'; import { connect } from 'react-redux'; import { RegisterTeiDataEntryComponent } from './RegisterTeiDataEntry.component'; import { withErrorMessageHandler } from '../../../../../HOC/withErrorMessageHandler'; const mapStateToProps = (state: ReduxState) => ({ showDataEntry: s...
import { createSlice } from '@reduxjs/toolkit'; const localStorageKey = 'CurrentUser'; const buildUser = (data) => { const { AccessToken, AccessTokenExpiration, RefreshToken, UserID, Administrator } = data; if (UserID != null && AccessToken != null && AccessTokenExpiration != null && RefreshToken != null && A...
/*************************** [bundle] ****************************/ // Original file:./examples/svg.html /*****************************************************************/ window.__etcpack__bundleSrc__['43']=function(){ var __etcpack__scope_bundle__={}; var __etcpack__scope_args__; __etcpack__scope_bundle...
import React from 'react' import SvgIcon from '@material-ui/core/SvgIcon' function Broken (props) { return ( <SvgIcon {...props}> <path d="M12.604 15.233l-3.5 3.44L11.473 21H5c-1.102 0-2-.9-2-2V5c0-1.1.899-2 2-2h6.05L9.105 4.914l3.5 3.44-3.5 3.44 3.5 3.44zM19 3c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2h-4.675l-2.36...
/** * @class draw2d.shape.icon.Package * See the example: * * @example preview small frame * * var icon = new draw2d.shape.icon.Package(); * * canvas.add(icon,50,10); * * @inheritable * @author Andreas Herz * @extends draw2d.shape.icon.Icon */ import draw2d from '../../package...
import React from "react" import { Link } from "gatsby" import styled from "styled-components" import { ThemeToggler } from "gatsby-plugin-dark-mode" const Navbar = () => { return ( <Wrapper> <div className="navbar"> <div className="full-width"> <ul className="nav-links"> <li>...
// @flow import Scanner from "./scanner"; import Token from "./token"; export default function scanNumericLiteral (scanner: Scanner): ?Token { if (!/[0-9]/.test(scanner.char)) { return; } const token = new Token(Token.NumericLiteral, scanner.char); token.configure(scanner); if (/[0-9.]/.test(scanner.peek()))...
import { ABC, LETTER_WIDTH, LETTER_HEIGHT } from './serift'; const STRING_LENGTH = 8; export default function convertText2Smiles(text = '', bgSymbol = '🤘', textSymbol = '💀', strLength = STRING_LENGTH) { if (!text.length) return text; function getLetter(symb, lineIndex) { let letter; const POSITION = li...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React from 'react'; import { SummaryStatus } from '../../summar...
import React from "react"; import Status from "components/views/Status"; import { Container } from "helpers/reactstrap"; const ShipStatus = props => { return ( <Container fluid style={{ paddingTop: "100px" }}> <Status {...props} clientObj={{}} viewscreen /> </Container> ); }; export default ShipStatu...
/** * jscolor, JavaScript Color Picker * * @version 1.4.1 * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html * @author Jan Odvarko, http://odvarko.cz * @created 2008-06-15 * @updated 2013-04-08 * @link http://jscolor.com */ var jscolor = { dir : '', // location of js...
const config = { siteTitle: "Morangcode", // Site title. siteTitleShort: "Morangcode", // Short site title for homescreen (PWA). Preferably should be under 12 characters to prevent truncation. siteTitleAlt: "Brian Morang'a", // Alternative site title for SEO. siteLogo: "/logos/logo-1024.png", // Logo used for S...
import React from "react"; import "./Header.css"; import punkLogo from "../assets/header/cryptopunk-logo.png"; import searchIcon from "../assets/header/search.png"; import themeSwitchIcon from "../assets/header/theme-switch.png"; const Header = () => { return ( <div className="header"> <div className="logo...
import {html, PolymerElement} from '@polymer/polymer/polymer-element.js'; /** * `bar-chart` * A barchart visualisation * * @customElement * @polymer * @demo demo/index.html */ class BarChart extends PolymerElement { static get template() { return html` <style> :host { display: bloc...
var summarizeTopLevel = require('./summarizeTopLevel') var formatSequence = require('sequence-formatter') var uriToMeta = require('../uriToMeta') var URI = require('sboljs').URI var Sequence = require('sboljs/lib/Sequence') function summarizeSequence (sequence, req, sbol, remote, graphUri) { if (sequence instanceo...
import {defaults, forOwn, includes, isEmpty, map, mapValues, omit, omitBy, snakeCase, values} from 'lodash'; import Promise from './Promise.js'; import promiseWrap from 'promise-chains'; import util from 'util'; import * as requestHandler from './request_handler.js'; import {HTTP_VERBS, KINDS, MAX_LISTING_ITEMS, MODULE...
/*global CompilerContext, Handlebars, shouldThrow */ var Exception = Handlebars.Exception; describe('strict', function() { describe('strict mode', function() { it('should error on missing property lookup', function() { shouldThrow(function() { var template = CompilerContext.compile('{{hello}}', {st...
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; type Props = { size?: string | 'small' | 'medium' | 'large', color?: string, rtl?: boolean, title?: string }; /* eslint-disable prettier/prettier */ export default function IconCenterFocusStrong(props: Props) { const iconProps = { ...
var Alloy = require('/alloy'), _ = require('/alloy/underscore')._, TAP = Ti.App.Properties; function S4() { return ((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1); } function guid() { return S4() + S4() + '-' + S4() + '-' + S4() + '-' + S4() + '-' + S4() + S4() + S4(); } function Sync(method,...
function fillCircle(imageData, xp ,yp, radius, col) { var xoff = 0; var yoff = radius; var balance = -radius; while (xoff <= yoff) { var p0 = xp - xoff; var p1 = xp - yoff; var w0 = xoff + xoff; var w1 = yoff + yoff; imageData = horizontalLine(imageData, ...
YMaps.Hotspots.Loader.onLoad("heroes-307-184-9",{"objects":[{"data":{"name":"\u041a\u0435\u0440\u0447\u044c","Point":{"pos":"36.464342 45.30667"},"style":"#hero"},"base":new YMaps.GeoPoint(36.464342,45.30667),"geometry":[[-10,-5,10,33]]}]});
import { r as registerInstance, h, H as Host } from './index-ec84eadc.js'; const DataValue = class { constructor(hostRef) { registerInstance(this, hostRef); } render() { return (h(Host, { class: "bal-data-value" }, h("slot", null))); } }; export { DataValue as bal_data_value };
export function isRequired(report, schema, json) { // eslint-disable-line import/prefer-default-export const originalPath = report.path; if (Array.isArray(schema.required)) { schema.required.forEach(prop => { const hasValue = json[prop]; if (!hasValue) { report.path = [prop]; // eslint-dis...
window.onload=function(){ id=$("#id").html(); $("#agree").click(function(){ window.location.href="/index.php/Index/sx/sx_hkHandle?id=" + id + "&option=1" }) $("#disagree").click(function(){ window.location.href="/index.php/Index/sx/sx_hkHandle?id=" + id + "&option=0" }) }
/** * The MIT License (MIT) * Copyright (c) 2016, Jeff Jenkins. */ const Constants = require('../constants/Constants'); const RequestAPI = require('./Api'); var _pendingRequests = {}; const API_URL = '/api/articles'; function makeUrl(part) { return API_URL + part; } //API calls var ArticleApi = { getEntityL...
Chart.defaults.global = { animation: true, animationSteps: 60, animationEasing: "easeOutIn", showScale: true, scaleOverride: false, scaleSteps: null, scaleStepWidth: null, scaleStartValue: null, scaleLineColor: "#eeeeee", scaleLineWidth: 1, scaleShowLabels: true, ...
import React from 'react' import { graphql, useStaticQuery } from 'gatsby' import { Link } from 'gatsby' const query = graphql` { allMdx { distinct(field: frontmatter___category) } } ` const Categories = () => { const {allMdx:{distinct}} = useStaticQuery(query) return ( <ul className="categ...
import React from "react"; import { Link, graphql } from "gatsby"; import Img from "gatsby-image"; import Layout from "../components/NavLayout/index"; export const query = graphql` query PostingTemplate($id: Int!) { strapiPosting(strapiId: { eq: $id }) { title description media { childImageSharp { ...
#!/usr/bin/env node let args = require("args"); args .command("list", "List all bounded contexts for current application") ; const flags = args.parse(process.argv); if( args.sub.length == 0 ) args.showHelp();
/** * Copyright 2016 The AMP HTML 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 require...
import Radio from './src/radio'; export default Radio;
var app=angular.module("CloudScript",["ngAnimate","firebase","ngRoute","ngCookies"]);
/* PRACTICALSERIES (c) 2017 ******************************************************************************* Title : LOCAL SCROLL - JQUERY 09-01-SCROLL.JS ******************************************************************************* PRACTICALSERIES: Practical Series of Publications ...
// Based on Zeptos touch.js // https://raw.github.com/madrobby/zepto/master/src/touch.js // Zepto.js may be freely distributed under the MIT license. ;(function($){ if ($.fn.swipeLeft) { return; } var touch = {}, touchTimeout, tapTimeout, swipeTimeout, longTapTimeout, longTapDelay = 750, gesture; fu...
'use strict'; var mongoose = require('mongoose'); var GalleryImage = require('./model'); var mw = { formatQuery: require('warepot/format-query'), paginate: require('warepot/paginate') }; module.exports = { create: function (req, res, next) { GalleryImage.create(req.body, function (err, galleryImage) { ...
import adapter from '@sveltejs/adapter-static'; import preprocess from 'svelte-preprocess'; /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: [ preprocess({ postcss: true }) ], kit...
export { BaseAnchor } from './src/components/BaseAnchor/BaseAnchor.esm.js'; export { getButtonCss } from './src/theme/styles/button.esm.js'; export { Button, getButtonStyles } from './src/components/Button/Button.esm.js'; export { AnchorButton } from './src/components/AnchorButton/AnchorButton.esm.js'; export { Announc...
import curry from 'ramda/src/curry'; import placeholder from 'ramda/src/__'; function forOwn(obj, fn) { for (const key in obj) { if (obj.hasOwnProperty(key)) { fn(obj[key], key); } } } function isArrayLike(value) { return value && typeof value === 'object' && ty...
if (typeof exports === 'object') { var assert = require('assert'); var alasql = require('..'); } describe('Test 123 - SHOW DATABASES, TABLES, COLUMNS, INDEX, CREATE TABLE', function () { it('1. SHOW DATABASES', function (done) { alasql('create database test123a'); alasql('create database test123b'); alasql('u...
//app.js var ut=require("utils/util.js"); App({ onLaunch: function () { //调用事先声明的方法 //输出当前时间 // console.log(ut.formatTime(new Date())) // console.log(ut.rand(1,10)) // 展示本地存储能力 var logs = wx.getStorageSync('logs') || [] logs.unshift(Date.now()) wx.setStorageSync('logs', lo...
/** Jquery Data Filter JS - @version 1.0.7 - @url https://github.com/godoyrw/jquery-data-filter **/ !function(a){a.fn.filterData=function(t,i,n){var r=this;return void 0===i?r.filter(function(){return void 0!==a(this).data(t)}):void 0===n?r.filter(function(){return a(this).data(t)===i}):(r.filter(function(){return a(...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_autorenew = void 0; var ic_autorenew = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0...
var React = require('react'); var multiLangData = { "motocal": { "en": "motocal / Granblue Fantasy ATK Calculator", "ja": "元カレ計算機(グラブル攻撃力計算機)", "zh": "前男友计算器(碧蓝幻想攻击力计算器)", }, "応援テキスト": { "en": "Kanpa to Me", "ja": "製作者を応援する", "zh": "支持制作者", }, "メイン装備y...
const assert = require('assert'); const videoUrlLink = require('..'); describe('videoUrlLink.twitter', () => { const urls = [ 'https://twitter.com/taylorswift13/status/1121935013484867585', 'https://twitter.com/blakelively/status/1045768952872398848' ] urls.forEach(function (url) { ...
import Link from "next/link"; import { useRouter } from "next/router"; export default function ProjectFeed({ projects }) { return projects ? projects.map((project) => <ProjectItem project={project} />) : null; } function ProjectItem({ project }) { const router = useRouter(); return ( <> <h1>{...
const got = require('@/utils/got'); const cheerio = require('cheerio'); module.exports = async (ctx) => { const rootUrl = 'https://www.cgtn.com/'; const response = await got({ method: 'get', url: rootUrl, }); const $ = cheerio.load(response.data); const list = $('.titleArea') ...
'use strict'; System.register(['./events', '../common/util', '../common/decorators'], function (_export, _context) { "use strict"; var getEventOption, Util, delayed, _dec, _desc, _value, _class, firstValue, WidgetBase; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)...
/*! jQuery UI - v1.11.4 - 2015-03-11 * http://jqueryui.com * Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fa...
var mongoose = require('mongoose') const UserSchema = new mongoose.Schema({ _id:mongoose.Schema.Types.ObjectId, firstName: { type: String, }, lastName: { type: String, }, Email: { type: String, }, Password: { type: String, }, Mobile: { typ...
define({"topics" : [{"title":"Cloudera Manager Installation","shortdesc":"\n <p class=\"shortdesc\"></p>\n ","href":"datacollector\/UserGuide\/Administration\/Administration_title.html#concept_gxn_whv_l2b","attributes": {"data-id":"concept_gxn_whv_l2b",},"menu": {"hasChildren":false,},"to...
module.exports={title:"GOV.UK",slug:"gov-dot-uk",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GOV.UK icon</title><path d="M2.4 13.031c.261-.64-.04-1.374-.682-1.638-.631-.262-1.362.049-1.623.688-.266.637.038 1.363.668 1.623.632.267 1.368-.037 1.623-.673m.858-3.244c.256-.636-.045-1.3...
import { getDb } from '../db/utils'; import { sql } from '../sql-string'; /** * @typedef {'sweet' | 'spicy' | 'sour' | 'salty' | 'bitter'} ProductFlavorName */ /** * @typedef ProductFlavorFilter * @property {ProductFlavorName} flavorName the name of the flavor * @property {1|2|3|4|5} level the flavor level (1-5)...
import React, {useState, useEffect} from "react"; import requests from "../../requests"; import CommentDialogButton from "./CommentDialog"; import './Post.css' import {utcToLocal} from "../../date" import EditPost from './EditPostDialog'; import { Alert, Avatar, Button, ListItem, ListIt...
/** * @generated * Copyright 2004-present Facebook. All Rights Reserved. * **/ /** * @flow */ /* eslint-disable */ 'use strict'; /*:: import type { ReaderFragment } from 'relay-runtime'; type EquipmentBreadcrumbs_equipment$ref = any; export type FutureState = "INSTALL" | "REMOVE" | "%future added value"; exp...
const { User } = require('../models'); // import user model const getAll = async () => { const result = await User.find({}); return result; }; const getOne = async ({ id, email, username }) => { const result = await User.findOne({ $or: [{ _id: id }, { email }, { username }], }); return result; }; const...
/* External dependencies */ import React, { Fragment } from "react"; import styled from "styled-components"; import PropTypes from "prop-types"; import { __ } from "@wordpress/i18n"; /* Internal dependencies */ import FacebookAuthorName from "./FacebookAuthorName"; const FacebookSiteAndAuthorNamesWrapper = styled.p` ...
// Old contents of reducers.js import { SORT_BY_ENGLISH, HIDE_DUPLICATES } from "./actions"; // Small program, and each action operates directly on the same slice of state, so no need to create // seperate reducers and use combineReducers let reducer = (state, action) => { if (action.type === SORT_BY_ENGLISH) { ...
const uid = require('uid-safe').sync; const config = require('config'); const getLanguage = require('./getLanguage'); const logger = require('./bunyan'); function generateId() { return uid(24); } exports.createSessionId = function createSessionId(req, res) { const id = generateId(); const expires = new Date(Dat...
import * as React from "react"; import Svg, { Path } from "react-native-svg"; function SvgNpmjsLine(props) { return ( <Svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}> <Path fill="none" d="M0 0h24v24H0z" /> <Path d="M20 3a1 1 0 011 1v16a1 1 0 01-1 1H4a1 1 0 01-1-1V4a1 1 0 011-1h...
var NISLFuzzingFunc = function() { this.isOpen ? this.close() : this.open(); }; NISLFuzzingFunc();
/* eslint-env mocha */ import should from 'should'; import { openDb, closeDb } from '../../lib/db.js'; import config from '../test-config.js'; import { importGtfs, getDb } from '../../index.js'; describe('getDb():', () => { before(async () => { await openDb(config); await importGtfs(config); }); after...
mergeInto(LibraryManager.library, { // Test asynchronously calling a function on the main thread. report_result__proxy: 'async', report_result__sig: 'viii', report_result: function(param1, param2, param3) { if (ENVIRONMENT_IS_WORKER) { console.error('This function should be getting called on the main ...
import React from "react"; import { serializeAPIMessageToPrompts } from "utilities/apiSerializers"; test("serializes API response", () => { const testPrompt = { prompt: "Today, I went on an adventure to a new country", text_0: " that I've never been to. I went to a place called… I met a guy named Carlo...
module.exports = require('./config/' + (process.env.NODE_ENV || 'development'));
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ //--------------------------------------------------------...
/* * Copyright (c) 2015-present, Vitaly Tomilov * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Removal or modification of this copyright notice is prohibited. */ const {InnerState} = require(`../inner-state`); const {assertOptions} = require(`assert-opt...
/** * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'language', 'zh', { button: '設定語言', remove: '移除語言' } );
/** * Created by jjimenez on 1/26/15. */ var config = { ctx: null, canvasWidth: 200, canvasHeight: 200, circleX: 100, circleY: 100, circleRadius: 90, transparency: 0.75, pulseCount: 0, arcCount: 0, baseColor: "white", timerColors: [ "blue", "yellow", "green", "purple"], ...
// Karma configuration // Generated on Sat Aug 24 2019 15:20:59 GMT+1000 (Australian Eastern Standard Time) console.log('KARMA CONFIG : ' + process.env.MODE); const inBrowser = (process.env.MODE && process.env.MODE === 'browser'); module.exports = function(config) { const browsers = (inBrowser) ? [ 'Chrome' ] : [...
import React from "react" import IconComponent from "../components/Icon" export default function ProjectCard(props) { const techIcons = props.technologies.map((tech, index) => { console.log(tech) return <IconComponent name={tech} key={index} /> }) return ( <div className="project-card"> <h2>{p...
// all the validators for the question should be added in response_validators . e.g., if there is a validator // for question of type MCQ, then it should be added as response_validators['MCQ'] = function() { return true;}; var response_validators = {}; //Response clearer is a dictionary which contains the response cle...
'use strict'; /** * SUMMARY_START [default] * @project: GFS2_Master * @copyright: liningftp@qq.com * @name: lauchOrder * @desc: master request chunkserver * @file: /daemon/lauchOrder.js * @author: admin * SUMMARY_END */ // REQUIRE_START [default] // START const {comm, log, clog, jsonlog, jsons} = require(...
"use strict"; var _sum = require("./math/sum"); var _sum2 = _interopRequireDefault(_sum); var _sqr = require("./math/sqr"); var _sqr2 = _interopRequireDefault(_sqr); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var data = [1, 2, 3, 4, 5]; var sumSqr = function su...
import React, { useReducer } from "react"; export default (reducer, actions, defaultValue) => { const Context = React.createContext(); const Provider = ({ children }) => { const [state, dispatch] = useReducer(reducer, defaultValue); const boundActions = {}; for (let key in actions) { boundAction...
/*! { "name": "dataset API", "caniuse": "dataset", "property": "dataset", "tags": ["dom"], "authors": ["@phiggins42"] } !*/ define(['Modernizr', 'createElement'], function( Modernizr, createElement ) { // dataset API for data-* attributes Modernizr.addTest('dataset', function() { var n = createElement...
(function e(t,n){if(typeof exports==="object"&&typeof module==="object")module.exports=n();else if(typeof define==="function"&&define.amd)define([],n);else if(typeof exports==="object")exports["SwupFadeTheme"]=n();else t["SwupFadeTheme"]=n()})(window,function(){return function(e){var t={};function n(o){if(t[o]){return ...
require('dotenv').config() var app = require('./app'); var port = process.env.PORT; var server = app.listen(port, function() { console.log('Express server listening on port ' + port); });
function pressHomeTab() { var table = document.getElementById('HomeTab'); if (table != null) { for (var i = 0; i < table.rows.length; i++) { for (var j = 0; j < table.rows[i].cells.length; j++) table.rows[i].cells[j].onclick = function () { switchView(this.textConte...
export const state = () => ({ eventLog: { level: '', logtype: '', node: '', event: '', sortBy: 'TimeStr', sortDesc: false, page: 1, itemsPerPage: 15, }, syslog: { pri: '', host: '', tag: '', msg: '', sortBy: 'TimeStr', sortDesc: false, page: 1, items...
/*! * Datepicker for Bootstrap v1.5.1 (https://github.com/eternicode/bootstrap-datepicker) * * Copyright 2012 Stefan Petre * Improvements by Andrew Rowls * Licensed under the Apache License v2.0 (https://www.apache.org/licenses/LICENSE-2.0) */(function(factory){ if (typeof define === "function" && define.amd)...