text stringlengths 2 1.04M |
|---|
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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... |
export default function PluginIndent(WangEditor, $) {
// 用 createMenu 方法创建菜单
WangEditor.createMenu(function (check) {
let menuId = 'nbalignright';
if (!check(menuId)) {
return;
}
let editor = this;
// 创建 menu 对象
let menu = new WangEditor.Menu({
editor: editor,
id: menuId,
title: "右对齐",
... |
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ |
module.exports = {
parser: '@typescript-eslint/parser',
env: {
es6: true,
node: true,
},
plugins: ['@typescript-eslint'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
rules: {
... |
var db = util.executeReturnOneCol(
'SELECT sys_context(\'userenv\',\'db_name\') FROM dual'
);
sqlcl.setStmt('set sqlprompt "_USER@' + db + '> "');
sqlcl.run(); |
//seed.js
// export default function seed(models) {
// return models.User.create(
//
// { username: "tassos", firstName: "Tassos", lastName: "Lambrou", email: "tassos.lambrou@students.makeschool.com", password: "$2a$10$Sn2y0uVfpKfXLntxYs2w8.UsHuTZspHtEiwIrzmnq/oitUHvS1h7W", avatarURL: "https://cdn.file... |
module.exports = (Sequelize, DataTypes) => {
const AdditionalDataSchema = Sequelize.define('AdditionalDataSchema', {
uuid: {
type: DataTypes.UUID,
allowNull: false,
primaryKey: true,
defaultValue: DataTypes.UUIDV4,
},
locationId: {
type: DataTypes.UUID,
allowNull: false... |
/*! jQuery UI - v1.10.3 - 2013-11-23
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.sortable.js
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function( $, undefined ) {
var uuid = 0,
runiqueId = /^ui-id-\d+$/;
// $.ui might exist... |
var filename = require('path').basename(__filename);
var fn = require(`../${filename}`);
var moment = require('moment');
var expect = require('chai').expect;
var _ = require('lodash');
describe(filename, function () {
it('fills holes in the data', function () {
var data = [
[moment.utc('1980', 'YYYY').valu... |
import {getScore, splitLines} from "./PdfRenderer";
class TextRenderer {
constructor(title, score) {
this.score = score;
this.text = [];
this.text.push("# " + title);
}
addUser(name, rank, comment, start) {
this.text.push('Judge Name: ' + name + ', rank: ' + rank)
this.text.push('Date: ' +... |
const NATURES = [
'vp', // charter vfr
'ip', // charter ifr
'vs', // instruction vfr
'vss', // instruction vfr solo
'is', // instruction ifr
'iss', // instruction ifr solo
'tr', // trial flight
'tec', // technical flight
'vc' // "commercial" sight seeing flight
]
export const getFlightNatures = () =>... |
import jsonDiff from 'json0-ot-diff';
import diffMatchPatch from 'diff-match-patch';
import { PREVIEW_IMAGES } from './collectionName';
import { fetchShareDBDoc } from './fetchShareDBDoc';
export const getPreview = (connection) => (options) => {
const { id } = options;
const doc = connection.get(PREVIEW_IMAGES, id... |
import React from 'react';
import { MoonLoader } from 'react-spinners';
export default () => {
return (
<div className="row spinner block">
<div className="m-auto">
<MoonLoader
color={'#3A3985'}
loading={true}
/>
... |
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var m=this||self,n=function(a,b){a=a.split(".");var c=m;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[... |
import { run } from '@ember/runloop';
import { DEBUG } from '@glimmer/env';
/* globals EmberDev */
import { set, get, observer, on, computed } from 'ember-metal';
import Service, { inject as injectService } from '@ember/service';
import { Object as EmberObject, A as emberA } from 'ember-runtime';
import { jQueryDisable... |
var fs = require('fs');
var path = require('path');
var gulp = require('gulp');
var sass = require('gulp-sass');
var plumber = require('gulp-plumber');
var autoprefixer = require('gulp-autoprefixer');
var minCSS = require('gulp-minify-css');
var concat = require('gulp-concat');
var clean = require('gulp-clean');
var b... |
/*
* Copyright (c) AXA Group Operations Spain S.A.
*
* 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,... |
var projects = [
{
"name": "Imports",
"url": "https://github.com/joaopcanario/imports",
"langs": "Python",
"description": "A Python helper to list all possible unused packages installed on your Project"
},
{
"name": "CFOpen API",
"url": "https://github.com/joaopcanario/cfopen-api",
"la... |
import Vue from "vue";
Vue.directive( 'mdl', {
bind: function() {
componentHandler.upgradeElement( this.el );
}
} ); |
describe('tableajax component', function () {
var controller;
beforeEach(function () {
module('adaptv.adaptStrapDocs');
});
it('should initialize with correct configuration', inject(function ($rootScope, $controller, $compile, $http) {
controller = $controller('tableajaxCtrl', {
$scope: $rootSco... |
/*
* Author: Zoltán Lajos Kis <zoltan.lajos.kis@ericsson.com>
*/
module.exports.bin = [
0x02, // version = 2
0x00, // type = 0
0x00, 0x08, // length = 8
0x49, 0x96, 0x02, 0xd2 // xid = 1234567890
];
module.e... |
const express = require("express");
const mongoose = require("mongoose");
const cors = require("cors");
const addUserRouter = require("./routers/addUserRouter");
const allUsersRouter = require("./routers/allUsersRouter");
const deleteUserRouter = require("./routers/deleteUserRouter");
require("dotenv").config();
cla... |
import { runChoiceGroupMixinSuite } from '@lion/form-core/test-suites';
import '@lion/radio-group/define';
runChoiceGroupMixinSuite({
parentTagString: 'lion-radio-group',
childTagString: 'lion-radio',
choiceType: 'single',
}); |
module.exports = function () {
return function (formData) {
return {
description: `${formData.name}: ${formData.base}, ${formData.toppings.length > 0 ? formData.toppings.join(', ') : 'No Toppings'}`
}
}
} |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... |
// @flow
import _ from 'lodash'
import type { State, Field } from '../types'
/* Utility that flattens a piece of state by
* selecting each keys 'value' property.
* */
export const flattenState = (state: State) =>
_.mapValues(state, (piece: Field | any): any => {
if (typeof piece !== 'object') return piece
if (... |
"use strict";
var fs = require('fs');
var path = require('path');
//var leeCodigos=require('./lib/leecodigosError');
/*
var respuesta;
leeCodigosError(function(err,data){
if ( err ){
respuesta={};
}
respuesta=data;
});
*/
function leeCodigosError(callBack) {
var f=path.join(__dirname,'../Er... |
import FlowToolbar from './FlowToolbar';
import KoniToolbar from './KoniToolbar';
import MindToolbar from './MindToolbar';
export {
FlowToolbar,
KoniToolbar,
MindToolbar
}; |
const liveServer = require("live-server");
const params = {
port: 3000, // Set the server port. Defaults to 8080.
host: "0.0.0.0", // Set the address to bind to. Defaults to 0.0.0.0 or process.env.IP.
root: "", // Set root directory that's being served. Defaults to cwd.
open: true, // When false, it w... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[241],{mCLh:function(e,o,t){var n,p,i;!function(s){if("object"==typeof e.exports){var c=s(0,o);void 0!==c&&(e.exports=c)}else p=[t,o],void 0===(i="function"==typeof(n=s)?n.apply(o,p):n)||(e.exports=i)}(function(e,o){"use strict";Object.defineProperty(o,"__esModule",{v... |
var apiwriter = require('apiwriter');
/* When running with OnPrem, ensure that Basic Auth is set up in the virtual directory itself.
* Set these environment variables when running writer tool for boards.js
* set cfgApisUrl=http://localhost:8080/tfs/DefaultCollection/fooScrum/AgileTeam/_apis
* set cfgUserName=<Doma... |
module.exports = {
extends: ['soraka'],
rules: {
'import/no-extraneous-dependencies': 0,
'global-require': 0,
'import/no-dynamic-require': 0,
'no-restricted-syntax': 0,
'no-await-in-loop': 0,
'no-useless-escape': 0,
},
globals: {
APP_ENV: true,
APP_GLOBAL_CONFIG: true,
},
} |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import {
Row,
Col,
Card,
Form,
Input,
Select,
Button,
Modal,
message,
} from 'antd';
import StandardTable from '@/components/StandardTable';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import Res... |
/**
*
* DetailPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Table, Tag } from 'antd';
// import { FormattedMessage } from 'react-intl';
import { compose } from 'redux';
import request from 'utils/request';
// import messages from './messa... |
//# sourceMappingURL=chunk-2d22bd06.4cbc16ce.js.map |
// This file has been autogenerated.
exports.setEnvironment = function() {
process.env['AZURE_SUBSCRIPTION_ID'] = 'e0b81f36-36ba-44f7-b550-7c9344a35893';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.delete('/subscriptions/e0b81f36-36ba-44f7-b550-7c9344a35893/reso... |
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import babel from 'rollup-plugin-babel';
import uglify from 'rollup-plugin-uglify';
import license from 'rollup-plugin-license';
import pkg from './package.json';
export default {
input: 'src/index.js',
output: {
... |
/* TODO: enable linting and fix resulting errors */
/* eslint-disable */
/* Copyright (c) Trainline Limited, 2016-2017. All rights reserved. See LICENSE.txt in the project root for license information. */
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var rename = ... |
const Joi = require('joi');
Joi.objectId = require('joi-objectid')(Joi);
exports.slotsVlaidatorSchema = Joi.object({
doctorId: Joi.objectId(),
clinicId: Joi.objectId(),
from: Joi.date().required(),
to: Joi.date().required(),
reserved: Joi.boolean(),
}); |
test('sets up correctly when passed an ID', async () => {
const newPage = await browser.newPage();
await newPage.goto(PATH, { waitUntil: 'load'});
await newPage.evaluate(() => {
const tinyMDE = new TinyMDE.Editor({element: 'tinymde'});
})
expect(await newPage.$eval('#tinymde > :first-child', el => el.cla... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){var r=function(c,j){function r(){var a=arguments,b=this.getContentElement("advanced","txtdlgGenStyle");b&&b.commit.apply(b,a);this.foreach(function(b){b.commit&&"... |
module.exports = {
siteMetadata: {
title: `Skohub Blog`,
author: {
name: `the SkoHub Community`
},
description: `A blog for SkoHub.`,
siteUrl: `https://blog.skohub.io`,
email: `skohub@hbz-nrw.de`,
social: {
github: `skohub-io`,
},
},
plugins: [
{
resolve: `gat... |
/* Licence see: /LICENCES/wgt/licence.txt */
/**
* @author dominik alexander bonsch <db@webfrap.net>
*/
$R.addAction( 'req_search', function( jNode ){
"use strict";
jNode.removeClass('wcm_req_search');
var nForm = jNode.parentX('form'),
formId,
evAction,
fTrigger,
dropBox;
if( !nForm ){
... |
import * as Interrupt from './interrupts';
export {default as CPU} from './CPU';
export {Interrupt}; |
import { getBonApiToken, getFoodRepoToken } from "./APIKeys.js";
import { Alert } from 'react-native';
async function httpGet(theUrl, token) {
// let xmlHttp = new XMLHttpRequest();
// xmlHttp.responseType = "json";
// xmlHttp.open("GET", theUrl); //opens get req
// xmlHttp.setRequestHeader("Authorization", to... |
import { Link } from "react-router-dom"
// hooks
import { useContext } from "react"
import { useList } from "react-firebase-hooks/database"
// icons
import { ReactComponent as PDFIcon } from "assets/icons/pdf.svg"
// constant
import { db } from "constant/firebase"
import { SPREADSHEET_KEY } from "constant/static"
// co... |
webpackHotUpdate_N_E("pages/register",{
/***/ "./src/Components/auth/register.js":
/*!*****************************************!*\
!*** ./src/Components/auth/register.js ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require_... |
import Nerv from 'nervjs'
import classNames from 'classnames'
import './style/swiper.scss'
class Swiper extends Nerv.Component {
constructor (props) {
super(props)
this.state = {
currentIndex: this.props.current,
containerWidth: 0,
containerHeight: 0,
// touch
touching: false,
... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import Tracer from './tracer.js';
Tracer('web')
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
//... |
ace.define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
'use strict';
var dom = require("../../lib/dom");
var cssText = "#ace_settingsmenu, #kbshortcutmenu {\
background-color: #F7F7F7;\
color: black;\
box-shadow: -5px 4px 5px rgba(126, 126, 126, 0... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.SiFoursquare = function SiFoursquare (props) {
return GenIcon({"tag":"svg","attr":{"role":"img","viewBox":"0 0 24 24"},"child":[{"tag":"title","attr":{},"child":[]},{"tag":"path","attr":{"d":"M17.727 3.465l-.535 2.799c-.064.303-.445... |
/*******************************************************************************
* Copyright 2018 IBM Corp.
*
* 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/li... |
// @flow
import { wait } from 'react-testing-library';
import { loadPlugins } from 'react-plugin';
import {
cleanup,
getPluginState,
mockState,
mockCall
} from '../../../../testHelpers/plugin';
import { createFixtureListUpdateResponse } from '../../testHelpers';
import { register } from '../..';
import type {... |
var breadcrumbs=[['-1',"",""],['2',"VitNX3 Documentation","topic_00000000000016E1.html"],['789',"VitNX3.Functions.Win32 Namespace","topic_00000000000000C6.html"],['790',"Constants Class","topic_00000000000001C1.html"],['1979',"ResultWin32 Class","topic_00000000000001F4.html"],['1982',"Fields","topic_00000000000001F4_va... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LambdaWordpressStack = void 0;
const cdk = require("@aws-cdk/core");
const ec2 = require("@aws-cdk/aws-ec2");
const efs = require("@aws-cdk/aws-efs");
const lambda = require("@aws-cdk/aws-lambda");
const rds = require("@aws-cdk/aws-rds... |
exports.validate = function() {
// TODO
return true;
}; |
const MySQL = require('mysql');
const mysqlConnection = MySQL.createConnection({
host: 'localhost', //192.168.2.47
port: '3306',
user: 'user_appgfo',
password: 'AppChess,2021',
database: 'gfo'
});
/*mysqlConnection.connect((err) => {
if (!err)
console.log("DB connection succeed");
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setTwoToneColor = setTwoToneColor;
exports.getTwoToneColor = getTwoToneColor;
var _iconsReact = _interopRequireDefault(require("@ant-design/icons-react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj ... |
//# sourceMappingURL=component---src-pages-index-jsx-f901ab7da514504425f7.js.map |
'use strict';
const Assert = require('@hapi/hoek/lib/assert');
const Clone = require('@hapi/hoek/lib/clone');
const Template = require('./template');
const internals = {};
exports.compile = function (messages, target) {
// Single value string ('plain error message', 'template {error} message')
if (typeo... |
/**
* Handle color operations. The object methods are chainable.
* @param {String} input The input color in either rbga or hex format
*/
var Color = function (input) {
// declare variables
var rgba = [], result, stops;
/**
* Parse the input color to rgba array
* @param {String} input
*/
function init(inpu... |
const { TextFile } = require('./TextFile.js');
class JSONFile {
constructor(filename) {
this.adapter = new TextFile(filename);
}
async read() {
const data = await this.adapter.read();
if (data === null) {
return null;
}
else {
return JSON.parse... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
export var COMMAND_LOGGER_ENABLED = 'GUI - COMMAND_LOGGER_ENABLED';
/** @type {?} */
export var EVENT_LOGGER_ENABLED = 'GUI - E... |
// COPYRIGHT © 2017 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
//# sourceMappingURL=3.840ca06d.chunk.js.map |
const { DELEGATE } = require('@arkecosystem/crypto').constants
require('../../../../lib/matchers/transactions/types/delegate')
describe('.toBeDelegateType', () => {
test('passes when given a valid transaction', () => {
expect({ type: DELEGATE }).toBeDelegateType()
})
test('fails when given an invalid trans... |
const express = require("express");
const path = require("path");
// const router = require("./router");
const app = express();
const port = 3000;
app.use("/", express.static(path.join(__dirname, "../public")));
// app.use("/", router);
app.listen(port, () => console.log(`Example app listening on port ${port}`)); |
module.exports = function ({ $lookup }) {
return {
object: function () {
return function (object, $step = 0) {
let $_, $bite
return function $parse ($buffer, $start, $end) {
switch ($step) {
case 0:
... |
var gulp = require('gulp')
var rollup = require('rollup')
var commonjs = require('rollup-plugin-commonjs')
var uglify = require('gulp-uglify')
var rename = require('gulp-rename')
var rollupHandle = rollup.rollup({
input: './index.js',
plugins: [
commonjs()
]
})
gulp.task('common', function (callback) {
r... |
import isPlainObject from 'is-plain-object';
import { Record, Set } from 'immutable';
import Mark from './mark';
import Point from './point';
import Range from './range';
/**
* Default properties.
*
* @type {Object}
*/
const DEFAULTS = {
anchor: undefined,
focus: undefined,
isFocused: undefined,
marks: u... |
// Copyright 2017 The Kubernetes Dashboard Authors.
//
// 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 applicabl... |
/**
* Carto CSS editor module
*
* new cdb.admin.mod.CartoCSSEditor({
* model: dataLayer
* table: table
* })
*
*/
cdb.admin.mod = cdb.admin.mod || {};
cdb.admin.mod.CartoCSSEditor = cdb.admin.Module.extend({
_TEXTS: {
tip: '<strong>Ctrl + SPACE</strong> to autocomplete. <strong>... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/
import type ValidationContext from '../ValidationContext';
import { GraphQLError } from '../../error';
import type { ... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { addComment } from '../../actions/post';
const CommentForm = ({ postId, addComment }) => {
const [text, setText] = useState('');
return (
<div className="post-form">
<div className... |
class Notify {
constructor({ title, body, timestamp }, clickEvt) {
this.title = title;
this.body = body;
this.timestamp = timestamp;
this.clickEvt = clickEvt;
}
static async create(task, clickEvt) {
const notifier = new Notify(task, clickEvt);
if (await notifier.getPermission())
no... |
var searchData=
[
['process_57',['process',['../class_network.html#a68f7580902f58633f48cb10837c041a7',1,'Network']]]
]; |
import React, { PureComponent } from 'react';
import { FormattedMessage, formatMessage } from 'umi-plugin-react/locale';
import { Spin, Tag, Menu, Icon, Avatar, Tooltip, message } from 'antd';
import moment from 'moment';
import groupBy from 'lodash/groupBy';
import NoticeIcon from '../NoticeIcon';
import HeaderSearch ... |
const getLocalEnv = require('./env')
const {assertArray, assertNumber} = require('../util')
const {baseOptions, fetchy_util, urlPathes} = getLocalEnv()
module.exports = function(request) {
return async function(sessionId, elementId, keysToSend, options) {
let text = null
if(!options) options = {...baseOpti... |
/* eslint-disable no-undef */
/**
* Dependencies.
*/
import ms from '../lib/deps/ms/index.js';
import assert from 'assert';
// strings
describe('ms(string)', function() {
it('should not throw an error', function() {
assert.doesNotThrow(function() {
ms('1m');
});
});
it('should preserve ms', fu... |
var http = require('http'),
faye = require('faye');
var server = http.createServer(),
bayeux = new faye.NodeAdapter({mount: '/faye', timeout: 45});
bayeux.attach(server);
server.listen(8000);
/*
bayeux.on('handshake', function(clientId) {
console.log('handshake: ' + clientId);
});
bayeux.on('subscribe', f... |
describe("", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;
browser.get("build/docs/examples/example-example101/index-jquery.html");
});
it('should jsonify filtered objects', function() {
expect(element(by.id('default-spacing')).getText()).toMatch(/\{\n "name": ?"value"\n}... |
'use strict'
const { test } = require('tap')
const { sink, once } = require('./helper')
const pino = require('../')
test('redact option – throws if not array', async ({ throws }) => {
throws(() => {
pino({ redact: 'req.headers.cookie' })
})
})
test('redact option – throws if array does not only contain strin... |
var RE_CROP = /^([0-9]*)x([0-9]*)$/
module.exports = function(raw) {
var parsed
if (raw && (parsed = RE_CROP.exec(raw))) {
return {
width: +parsed[1] || 0
, height: +parsed[2] || 0
}
}
return null
} |
import React from "react"
import { Container } from "semantic-ui-react"
const Session = () => (
<Container style={{ marginTop: "7em" }}>
<h1>Session</h1>
</Container>
)
export default Session |
import { __assign, __spread } from 'tslib';
import { Component, ChangeDetectionStrategy, ViewEncapsulation, ChangeDetectorRef, Renderer2, ElementRef, Input, NgModule } from '@angular/core';
import { toCssPixel } from 'ng-zorro-antd/core';
import { CommonModule } from '@angular/common';
/**
* @fileoverview added by ts... |
const cashier = require("../cashier");
const data = require("../data");
beforeEach(async (done) => {
user = await data.resetTestUser();
done();
});
function setUserBalance(balance) {
user.fields.Balance = balance;
user.fields.AvailableBalance = balance;
}
test('User bets 10, returns true object', () ... |
class Bird{
constructor(x, y, r)
{
this.body = Bodies.circle(x, y, r);
World.add(world, this.body);
Matter.Body.setMass(this.body, this.body.mass*4);
this.r = r;
};
show() {
const pos = this.body.position;
const angle = this.body.angle;
push();
... |
const test = require('ava');
const LogSuppress = require('../lib/log-suppress');
const r = require('randomstring');
const async = require('async');
const environment = r.generate();
const { PendingBalancedRequester, Responder } = require('../')({ environment });
LogSuppress.init(console);
test('Supports environment'... |
'use strict';
var parseMeasurement = require('../parsers').parseMeasurement;
module.exports.definition = {
set: function(v) {
this._setProperty('top', parseMeasurement(v));
},
get: function() {
return this.getPropertyValue('top');
},
enumerable: true,
configurable: true,
}; |
export * from './navbar';
export * from './activityFeed';
export * from './header';
export * from './tag';
export * from './optionButton'; |
/*
* == BSD2 LICENSE ==
* Copyright (c) 2017, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... |
import React from 'react';
import { Box } from '@material-ui/core';
import { view, store } from '@risingstack/react-easy-state';
import { Radio, Tooltip } from 'antd';
import { Store_app } from '../../stores/Store_App';
import {
FormOutlined,
DeleteOutlined,
AppstoreTwoTone,
WindowsFilled,
CopyOutlined,
DragOutli... |
(function() {
__ant_icon_load({
name: 'sound',
theme: 'fill',
icon:
'<svg viewBox="64 64 896 896"><path d="M892.1 737.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 ... |
module.exports = {
tableName : 'indexesTable',
identity : 'indexes',
connection : 'associations',
attributes : {
name : 'string',
indexUnique : {
type : 'string',
unique : true
},
indexNotUnique : {
columnName : 'indexDuplicates',
type : 'string',
index : true
... |
/**
* @overview ccm component for basic gamification implementation
* @author Felix Fröhling <felix.froehling1@gmail.com> 2019
* @license The MIT License (MIT)
* @version latest (1.0.0)
*/
{
var component = {
/**
* unique component name
* @type {string}
*/
name: 'gamification',
ver... |
const electron = require('electron');
const wallpaper = require('wallpaper');
const axios = require('axios');
const macaddress = require('macaddress');
const url = require('url');
const path = require('path');
const mkdirp = require('mkdirp');
let fs = require('fs');
const qs = require('qs');
const { app, BrowserWindow... |
module.exports = {
up: (queryInterface, Sequelize) => queryInterface.changeColumn(
'TravelStipends', 'createdBy', {
type: Sequelize.STRING,
allowNull: true,
}
),
down: (queryInterface, Sequelize) => queryInterface.changeColumn(
'TravelStipends', 'createdBy', {
type: Sequelize.STRING... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("omi"));
else if(typeof define === 'function' && define.amd)
define(["omi"], factory);
else if(typeof exports === 'object')
exports["restore-from-trash"] = ... |
// English
'use strict';
var en = function() {}
en.code = 'en';
en.data = {
/* Sign Message */
NAV_SignMsg: 'Sign Message',
MSG_message: 'Message',
MSG_date: 'Date',
MSG_signature: 'Signature',
MSG_verify: 'Verify Message',
MSG_info1: 'Include the... |
import './style.css';
import React from 'react';
import ContactLinks from '../../components/ContactLinks';
import contactBaby from '../../assets/images/contact/cool-baby-square.PNG';
import cloudFade from '../../assets/images/contact/cloudfade.JPG';
export default function Contact() {
return (
<div className='page-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.