text
stringlengths
2
1.04M
/** * @format */ import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import App from '../src'; // Note: test renderer must be required after react-native. it('renders correctly', () => { renderer.create(<App />); });
import React from 'react'; import MessageBoxFunctionalLayout from './MessageBoxFunctionalLayout'; import MessageBoxFunctionalLayoutFactory from './MessageBoxFunctionalLayout.driver'; import { createDriverFactory } from 'wix-ui-test-utils/driver-factory'; import sinon from 'sinon'; import { isTestkitExists, isEnzyme...
var calendar_main_selector = 'div[role="main"]'; var body = document.querySelector('body'); var month_selector = 'div[data-active-view="month"]'; var mousewheelHander = function (e) { if (e.target.id == 'el') return; // Only disable scrolling when the calendar is in "Month" view if (document.queryS...
export * from './country-black-list.validator';
/* stylelint-disable no-descending-specificity */ import styled, { css } from 'styled-components' import Vars from '../utilities/vars' import { overlay } from '../utilities/mixins' import { fromTheme } from '../utilities/functions' Vars.addDerivedDefault(() => ({ dimensions: [16, 24, 32, 48, 64, 96, 128], })) const...
// Copyright 2018-2020, University of Colorado Boulder /** * Container for the cake representation * * @author Jonathan Olson <jonathan.olson@colorado.edu> */ import Shape from '../../../../../kite/js/Shape.js'; import Path from '../../../../../scenery/js/nodes/Path.js'; import fractionsCommon from '../../../frac...
'use strict'; var mapObj = require('map-obj'); var decamelize = require('decamelize'); module.exports = function (input, separator, options) { if (typeof separator !== 'string') { options = separator; separator = null; } options = options || {}; separator = separator || options.separator; var exclude = optio...
/*! * Masonry PACKAGED v4.0.0 * Cascading grid layout library * http://masonry.desandro.com * MIT License * by David DeSandro */
import styled from 'styled-components'; import { FloatingButton } from '#components/Layout/Navbar/NavMobile.style'; import { CCard } from '#components/CreativeCoding/CreativeCoding.style'; import { CardFooter } from '#common/Card'; export const ConceptsWrapper = styled.section` ${props => props.theme.spacing.secti...
// @flow /* eslint-disable no-undef */ export type ShortBoolean = 0 | 1; export type Meta = { [key: string]: ?string|?number } export type Event = { initialize: () => mixed, name: string, time: ?number } export type State = { onEnter: () => mixed, getActiveTraceId(): ?string, getActivePhase(): ?string...
import "./Project.css"; function Project(props) { return ( <div className="project"> <h2>{props.title}</h2> <img src={props.src} alt={props.alt} /> <p> Github Repo:{" "} <a rel="noopener noreferrer" href={props.github} target="_blank"> {props.github} </a> ...
step1list = new Array(); step1list["ΦΑΓΙΑ"] = "ΦΑ"; step1list["ΦΑΓΙΟΥ"] = "ΦΑ"; step1list["ΦΑΓΙΩΝ"] = "ΦΑ"; step1list["ΣΚΑΓΙΑ"] = "ΣΚΑ"; step1list["ΣΚΑΓΙΟΥ"] = "ΣΚΑ"; step1list["ΣΚΑΓΙΩΝ"] = "ΣΚΑ"; step1list["ΟΛΟΓΙΟΥ"] = "ΟΛΟ"; step1list["ΟΛΟΓΙΑ"] = "ΟΛΟ"; step1list["ΟΛΟΓΙΩΝ"] = "ΟΛΟ"; step1list["ΣΟΓΙΟΥ"] = "ΣΟ"; step1l...
import { describe, it } from 'flow-typed-test'; import logger from 'koa-logger'; describe('koa-logger', () => { it('returns a logger suitable for koa', async () => { const loggerMiddleware = logger(); await loggerMiddleware({ context: 'foo' }, () => Promise.resolve()); }); it('can change the transporter...
/*! * Copyright (c) 2017-Present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required ...
cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "file": "plugins/cordova-plugin-whitelist/whitelist.js", "id": "cordova-plugin-whitelist.whitelist", "runs": true }, { "file": "plugins/cordova-plugin-bluetooth-serial/www/bluetoot...
const { Client, Account } = require('@mutadev/muta-sdk'); async function main() { const client = new Client(); const account = new Account(); const tx = await client.composeTransaction({ serviceName: 'asset', method: 'create_asset', payload: { name: 'My Token' + Math.random(), supply: 10...
GameButtons = function () { this.addButton = function (type, xx, yy, f, scope) { if (xx == -1) { xx = game.world.centerX; } if (yy == -1) { yy = game.world.centerY; } var over = 0; var down = 1; s...
import axios from "axios"; import { setAlert } from "./alert"; import { GET_POSTS, POST_ERROR, UPDATE_LIKES, DELETE_POST, ADD_POST, GET_POST, ADD_COMMENT, REMOVE_COMMENT } from "./types"; //Get posts export const getPosts = () => async dispatch => { try { const res = await axios.get("/api/posts")...
/* eslint-disable flowtype/require-valid-file-annotation */ import WalletListModal from './WalletListModal.ui' export default WalletListModal
/*! elementor - v3.1.0 - 24-01-2021 */ (self["webpackChunkelementor"] = self["webpackChunkelementor"] || []).push([["toggle"],{ /***/ "../assets/dev/js/frontend/handlers/toggle.js": /*!****************************************************!*\ !*** ../assets/dev/js/frontend/handlers/toggle.js ***! \******************...
const express = require('express'); const router = express.Router(); const userController = require('../controllers/user'); const studentController = require('../controllers/student'); router.post('/login', userController.login); router.post('/create', userController.create); router.post('/logout', userController.logo...
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { var Controller = { offset: 0, limit: 10, index: function () { // 初始化表格参数配置 Table.api.init({ extend: { index_url: 'kefu/reco...
import React from 'react'; import Request from 'superagent'; import Alert from 'react-s-alert'; import 'react-s-alert/dist/s-alert-default.css'; import Sudoku from './Sudoku'; class Application extends React.Component { constructor(props) { super(props); this.onChange = this.onChange.bind(this); ...
var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); /** * Setting up css styling */ //To style with JS document.getElement.style.property = new style c.style.backgroundColor = 'silver'; // c.style.height = '100%'; // c.style.width = '100%'; // c.style.minHeight = '500px'; // c.style.minWidth =...
// TODO: Fix these unit tests! describe("Env", function() { var env; beforeEach(function() { env = new jasmineUnderTest.Env(); }); describe("#pending", function() { it("throws the Pending Spec exception", function() { expect(function() { env.pending(); }).toThrow(jasmineUnderTest.Sp...
const { describe, it, before, after } = require("mocha"); const chai = require("chai"); const chaiHttp = require("chai-http"); const app = require("../../../app"); const Config = require("../../../config"); const { resetDatabase } = require("../../../src/helpers/functions/Test"); chai.use(chaiHttp); const { expect } =...
class Pointer { constructor() { this.id = -1 this.texcoordX = 0 this.texcoordY = 0 this.prevTexcoordX = 0 this.prevTexcoordY = 0 this.deltaX = 0 this.deltaY = 0 this.down = false this.moved = false this.color = [30, 0, 300] } } exp...
import { makeStyles } from '@material-ui/core/styles'; export const useStyles = makeStyles((theme) => ({ appBar: { position: 'fixed', zIndex: theme.zIndex.drawer + 1 }, title: { flexGrow: 1 }, menuButton: { marginRight: theme.spacing(2), [theme.breakpoints.up('md')]: { display: 'non...
'use strict'; const _ = require('lodash'); const Promise = require('bluebird'); const AWS = require('aws-sdk'); const MsRestAzure = require('ms-rest-azure'); const ComputeManagementClient = require('azure-arm-compute'); const CONST = require('../constants'); const errors = require('../errors'); const NotImplemented = ...
import hasOwn from '@actualwave/has-own'; const getHandler = (data, [name]) => (data ? data[name] : undefined); const hasHandler = (data, [name]) => hasOwn(data, name); const setHandler = (data, [name, value]) => { if (!data) { return false; } data[name] = value; return true; }; const deletePropertyHan...
'use strict'; const Generator = require('yeoman-generator'); const chalk = require('chalk'); const yosay = require('yosay'); const common = require('./lib/common'); module.exports = class extends Generator { constructor(args, opts) { super(args, opts); common.supportedApplicationOptions.forEach(option => { ...
import DictElement from "./dict-element" export default class Trailer extends DictElement{ constructor(xref){ super({ Info:xref.getNewDict(), Size:1, }) } }
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import Ember from 'ember'; import { test } from 'ember-qunit'; import moduleForService from 'gooru-web/tests/helpers/module-for-service'; moduleForService( 'service:api-sdk/network', 'Unit | Service | api-sdk/network', { // needs: [] } ); test('readMyNetwork', function(assert) { const service = this.sub...
define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/ContextualMenu", "office-ui-fabric-react/lib/Button", "./ContextualMenuExample.scss"], function (require, exports, tslib_1, React, ContextualMenu_1, Button_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true })...
import React, { useEffect, useState, useCallback } from 'react'; import { LocalForm, Control, Errors, actions } from 'react-redux-form'; import { Button, Card, CardBody, CardFooter, CardHeader, Col, FormGroup, Input, Label, Row, } from 'reactstrap'; import { useDispatch, useSelector } from 'react-re...
/** * Copyright (c) 2013-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-local * @format */ 'use strict'; const GraphQLCompilerContext = require('../core/GraphQLCompilerContext'); const Graph...
console.log('load _drum_65_16_FluidR3_GM_sf2_file'); var _drum_65_16_FluidR3_GM_sf2_file={ zones:[ { midi:128 ,loopStart:0 ,loopEnd:0 ,keyRangeLow:65 ,keyRangeHigh:65 ,sampleRate:44100 ,coarseTune:0 ,fineTune:0 ,originalPitch:6500 ,anchor:0.00997732 //'High Timbale(L) } ] };
/* Copyright 2020-2021 Lowdefy, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
exports.id = function(id, what) { if (id) return id; id = what.scope.data.$id; if (!id) return id; return 'x' + id.slice(0, 4); }; exports.num = function(val, what, str) { if (!val) return ''; return what.filters.post(exports.num.map[val] || '', what, str); }; exports.num.map = { 0: '', 1: 'one', 2: 'two', 3:...
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import moment from 'moment'; import { makeStyles } from '@material-ui/styles'; import { Card, CardActions, CardContent, Avatar, Typography, Divider, Button, LinearProgress } from '@material-ui/core'; const useStyles = makeStyles((t...
jQuery('.item_destroy').click(function(e){ e.preventDefault(); var elem = jQuery(this); if(confirm('Delete item?')){ jQuery.ajax({ url: jQuery(this).data('url'), type: 'POST', dataType: 'json', data: { _method: 'DELETE', ...
import React, { useState } from "react"; import PropTypes from "prop-types"; import { get } from "lodash"; import { Query } from "react-apollo"; import { ContentSelectButton, ContentSelected, } from "components/ContentPickerSelect"; import ContentPicker from "components/ContentPickerv2"; import getAvailableRoutin...
const urlParams = require('../lib') const url = urlParams.add('https://api.com?q=dogs', { act: 'find', type: [ 'good', 'beautiful' ], v: 2 }) console.log(url) // => https://api.com?q=test&act=create&v=2
/** * 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. */ const fs = require('node:fs'); const { JSDOM, ResourceLoader } = require('jsdom'); const path = require('node:path'); const url = requir...
"use strict"; /** @copyright (c) 2017-present James Kyle <me@thejameskyle.com> MIT License 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...
// The MIT License (MIT) // // Copyright (c) 2016-2020 Camptocamp SA // // 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 // u...
import $ from 'jquery'; import config from 'core/config'; import typeUtils from 'core/utils/type'; import 'generic_light.css!'; import 'ui/drawer'; const DRAWER_CLASS = 'dx-drawer'; const DRAWER_WRAPPER_CLASS = 'dx-drawer-wrapper'; const DRAWER_PANEL_CONTENT_CLASS = 'dx-drawer-panel-content'; const DRAWER_VIEW_CONTENT...
// Copyright (c) 2013 Titanium I.T. LLC. All rights reserved. See LICENSE.TXT for details. "use strict"; var simplebuild = require("../lib/simplebuild"); var Mocha = require("mocha"); exports.runTests = function(options, success, failure) { var mocha = new Mocha({ui: "bdd"}); simplebuild.deglobSync(options.files).f...
import React from "react"; import styles from "./Preview.less"; export const Preview = props => ( <aside className={styles.TagPreviewWrap}> {/* {`<!-- Global head tags are inserted before local tags --> \n`} */} <pre className={styles.TagPreview}> <div className={styles.Tag}>{`<head>`}</div> <div...
$(function() { var FADE_TIME = 150; // ms var TYPING_TIMER_LENGTH = 400; // ms var COLORS = [ '#e21400', '#91580f', '#f8a700', '#f78b00', '#58dc00', '#287b00', '#a8f07a', '#4ae8c4', '#3b88eb', '#3824aa', '#a700ff', '#d300e7' ]; // Initialize variables var $window = $(window); var $usernameInp...
'use strict'; /* global contacts */ /* global ActivityHandler */ /* global MockAlphaScroll */ /* global MockasyncStorage */ /* global MockCookie */ /* global MockContactAllFields */ /* global MockContactsList */ /* global MockContacts */ /* global MockExtFb */ /* global Mockfb */ /* global MockImageLoader */ /* global ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NCX = void 0; const tslib_1 = require("tslib"); const xml_js_mapper_1 = require("r2-utils-rn/dist/es6-es2015/src/_utils/xml-js-mapper"); const ncx_navpoint_1 = require("./ncx-navpoint"); const ncx_pagelist_1 = require("./ncx-pagelist")...
(function() { setupAutoRefresh(); function setupAutoRefresh() { if (!window.needAutoRefresh) { return; } document.addEventListener('visibilitychange', function() { if (document.visibilityState == 'visible') { location.assign(location.toString());...
const isProduction = process.env.NODE_ENV !== "development" /** * src 中用到的 tampermonkey 内置函数, 均需要在 prefix 中声明 @grant * * externals 中用到的包, 应当 * 1. 在 prefix 中声明 @require * 2. 执行 yarn add *** --dev 将之作为 devDependencies, 以便在 development 环境下运行 */ const prefix = ` // ==UserScript== // @name template-ts-tamper...
"use strict"; const path = require("path"); const fs = require("fs"); const serialp = require("serialport"); const ModbusRTU = require('modbus-serial'); const PLCCom = require('./util/PLC-Com'); const COMMUNICATION_TIMEOUT = 2000; class ModbusCom extends PLCCom { constructor(config, MBObject){ super(config...
// generated from ldml/main/*.xml, xpath: ldml/numbers/currencies ({ AUD_displayName:"ดอลลาร์ออสเตรเลีย", CAD_displayName:"ดอลลาร์แคนาดา", CHF_displayName:"ฟรังก์สวิส", CNY_displayName:"หยวนเหรินหมินปี้ (สาธารณรัฐประชาชนจีน)", EUR_displayName:"ยูโร", GBP_displayName:"ปอนด์สเตอร์ลิง (สหราชอาณาจักร)", HKD_displayN...
/** * This library was created to emulate some jQuery features * used in this template only with Javascript and DOM * manipulation functions (IE10+). * All methods were designed for an adequate and specific use * and don't perform a deep validation on the arguments provided. * * IMPORTANT: * ========== * It's ...
import React from 'react'; import { View, Text, Image } from 'react-native'; import { Icon } from 'react-native-elements'; import { Container, SymptomCard, BackBtn } from '../components' export default function Symptopms(props) { const styles = { warningContainer: { flexDirection: 'row', padding: 20, back...
var generatedVegaSpec = {} var visualizationData = [] var generatedVegaSpecEncoding = {}; var serverUrl = "" $(function () { var toastNotificationSelector var toastNotification CarbonComponents.settings.disableAutoInit = true; toastNotificationSelector = document.querySelector('[data-notification]'); ...
/*! * tangram.js framework source code * * commands forms/SimpleEditor * * Date: 2015-09-04 */ ; tangram.block([ '$_/form/SimpleEditor/', ], function(pandora, global, undefined) { var _ = pandora, cache = pandora.locker, console = global.console, regCommand = cache.read(new _.Ide...
import Phaser from 'phaser'; import logoImg from "../assets/logo.png"; export default class ForestPage extends Phaser.Scene { constructor() { super({key:"Forest"}); } preload(){ this.load.image("logo", logoImg); } create(){ const logo = this.add.image(400, 250, "logo"); ...
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
import React from 'react'; import PropTypes from 'prop-types'; const Share2 = (props) => { const { color, size, ...otherProps } = props; return ( <svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" fill="none" stroke={color} strokeWid...
/*! * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2016 Froala Labs */ /** * Montenegrin */ $.FE.LANGUAGE['me'] = { translation: { // Place holder "Type something": "Ukucajte ne\u0161tp", // Basic formatting "...
export { VizPreviews } from './styles'; export { VizPreview } from './VizPreview'; export { LiveVizPreview } from './LiveVizPreview';
describe('Completely empty specter-home', () => { beforeEach(() => { cy.task("clear:specter-home") }) it('Visits specter and clicks around', () => { cy.viewport(1200,660) cy.visit('/') cy.contains('Welcome to Specter Desktop') cy.get('#node-switch-icon').click() cy.get('[href="/nodes/node/...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
/** * toChecklist plugin (works with jQuery 1.3.x) * @author Scott Horlbeck <me@scotthorlbeck.com> * @url http://www.scotthorlbeck.com/code/tochecklist/ * @version 1.4.2 * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by...
// "http://rhodes-store-server.heroku.com/application"; function waitsForSpies(spy, msg, timeout) { timeout = timeout || 1000; var spies = $.isArray(spy) ? spy : [spy]; for(var i in spies) { spies[i].refCallCount = spies[i].refCallCount || 0; //jasmine.log(spies[i].identity +': ' +spies[i]....
import React from 'react'; import renderer from 'react-test-renderer'; import OGMessageItemBody from '../index'; import { OG_MESSAGE } from '../../../../../__mocks__/messagesMock'; describe('OGMessageItemBody', () => { it('should do a snapshot test of the OGMessageItemBody DOM', function () { const component =...
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview Test suite for the Site Engagement WebUI. */ var ROOT_PATH = '../../../../../'; var EXAMPLE_URL_1 = 'http://example.com/'; var EXAMP...
import React from 'react' import { Link } from "@reach/router" // css import './Topbar.css' const Topbar = () => <div className="bar"> <h1>Upload files</h1> <div> <Link to="/"><button>List Files</button></Link> <Link to="/upload-page"><button>New File</button></Link> </div> </div> export d...
/** * @file Profile image stories. * @copyright IBM Security 2019 - 2021 */ import { boolean, object } from '@storybook/addon-knobs'; import { storiesOf } from '@storybook/react'; import React from 'react'; import { security } from '../../../.storybook'; import { ProfileImage } from '../..'; import { className,...
const ghost = require('./lib/ghost'); const core = require('./lib/core'); async function run() { try { const input = { uploads: await ghost.uploads.list(), content: await ghost.content.fetch() }; const unused = core.filterUnused(input); core.display(unused); return process.exit(0); ...
const { Http, Response } = require('farrow-http') const http = Http() // add http middleware http.use(() => { // returning response in middleware return Response.text(`Hello Farrow`) }) http.listen(3000)
module.exports = (app) => { app.koa.use(module.require("koa-helmet")()); };
/*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([ "sap/ui/fl/apply/_internal/changes/descriptor/Registration", "sap/ui/fl/apply/_internal/changes/descriptor/app/ChangeDataSource", "sap/ui/fl/apply/_i...
import ExternalDashboard from '../dashboard.vue' import Application from '../application.vue' import ApplicationApply from '../application_apply.vue' import ApplicationApplyOrganisation from '../application_apply_organisation.vue' import ApplicationApplyLicence from '../application_apply_licence.vue' import Application...
var searchData= [ ['lastelementincycle_223',['LastElementInCycle',['../classoperations__research_1_1_sparse_permutation.html#a68c2934475b5f68d6d6b9b2fdfb9955d',1,'operations_research::SparsePermutation']]], ['looseends_224',['LooseEnds',['../classoperations__research_1_1_dynamic_permutation.html#aa0db30f1e3a5ede55a...
declare module 'http-status' { declare module.exports: { '100': 'Continue', '101': 'Switching Protocols', '200': 'OK', '201': 'Created', '202': 'Accepted', '203': 'Non-Authoritative Information', '204': 'No Content', '205': 'Reset Content', '206': 'Partial Content', '207': 'Mul...
'use strict'; var prettify = require('gulp-jsbeautifier'); var diff = require('..'); module.exports = function(gulp, conf) { gulp.task('beautify', function() { var task = gulp.src([ '!node_modules/**/*.js', '**/*.js' ]) .pipe(prettify({ config: '.jsbeautifyrc', mode: ...
const C = Module; const INTERNAL = {}; const SIZE_OF_INT = 4; const SIZE_OF_NODE = 5 * SIZE_OF_INT; const SIZE_OF_POINT = 2 * SIZE_OF_INT; const SIZE_OF_RANGE = 2 * SIZE_OF_INT + 2 * SIZE_OF_POINT; const ZERO_POINT = {row: 0, column: 0}; const QUERY_WORD_REGEX = /[\w-.]*/g; const PREDICATE_STEP_TYPE_DONE = 0; const PR...
//declare boundary of region var oLat = 39.5675, oLng = -75.5651, zLevel = 10, mZoom = 16; //adjust lat-lon coordinates to center on your region //declare basemaps // Basemap Layers var Esri_WorldImagery = L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y...
import Api from '../api' import { Type } from '../api' import { LOADED_BOUNS, LOAD_MORE_BOUNS, LOADED_LATEST_DATA, LOAD_SEARCH_DATA, TOGGLE_THEME, LOADED_ANDROID_DATA, LOADED_IOS_DATA, LOADED_VIDEO_DATA, LOADED_EXPAND_DATA, LOADED_FRONTEND_DATA, LOADED_RANDOM_DATA, ADD_COLLECTION, REMOVE_COLLE...
import 'antd/lib/mentions/style/index';
'use strict'; /** * @ngdoc service * @name audioSpriteSurferApp.Sprite * @description * # Sprite * Factory in the audioSpriteSurferApp. */ angular.module('audioSpriteSurferApp') .factory('Sprite', function(wavesurfer) { var i = 0; var Sprite = function(model) { this.model = model || {}; ...
const Discord = require("discord.js"); const client = new Discord.Client(); var raids = []; client.on('ready', () => { console.log(`Logged in as ${client.user.tag}!`); }); client.on('message', msg => { if (msg.content === '!ping') { msg.reply("PONG! MOTHER FUCKER."); } if (msg.content.toLower...
(function ($) { //simpleSwitch jQuery plugein by Nelson Kuang 2016.3.30 $.fn.extend({ simpleSwitch: function () { //replace all the checkboxes with simple switches this.each(function () { var This = $(this); This.addClass("simple-switch"); ...
'use strict'; module.exports = { up: async(queryInterface, Sequelize) => { await queryInterface.bulkInsert('users', [{ name: 'new01', firstName: 'man01', email: 'newman01@example.com', password: 'Abc123?!', role: 'ADMIN', ...
$(document).ready(function () { 'use strict'; if (!localStorage.getItem('adesha-user-email') || !localStorage.getItem('adesha-user-username')) { window.location.replace("login.html"); } $('.the-user-name').html(localStorage.getItem('adesha-user-username')); $('.the-user-email').html(localStorage.getItem('...
/* jslint node: true */ 'use strict'; const createHash = require('crypto').createHash; exports.createNamedUUID = createNamedUUID; function createNamedUUID(namespaceUuid, key) { // // v5 UUID generation code based on the work here: // https://github.com/download13/uuidv5/blob/master/uuid.js // ...
// DO NOT EDIT! This test has been generated by tools/gentest.py. // OffscreenCanvas test in a worker:2d.transformation.setTransform.skewed // Description: // Note: importScripts("/resources/testharness.js"); importScripts("/2dcontext/resources/canvas-tests.js"); var t = async_test(""); var t_pass = t.done.bind(t); v...
sap.ui.define(['jquery.sap.global', '<%= projectNamespaceAMD %>/control/D3Chart', 'sap/ui/thirdparty/d3'], function( $, D3Chart, d3 ) { 'use strict'; return D3Chart.extend('<%= projectNamespace %>.control.D3PieChart', { init: function() { D3Chart.prototype.init.call(this); ...
goog.require('goog.debug.Console'); goog.require('goog.testing.PropertyReplacer'); goog.require('goog.testing.jsunit'); goog.require('ydn.db'); goog.require('ydn.db.crud.Storage'); goog.require('ydn.debug'); var reachedFinalContinuation, schema, debug_console; var setUp = function() { // ydn.debug.log('ydn.db.co...
import MSBarCartesian from'../_internal/msbarcartesian';import Bar2DDataset from'../../dataset/bar2d';import ColumnMultiSeriesGroup from'../../dataset/groups/column-multiseries';import datasetFactory from'../../factories/multiseries-dataset';class MSBar2D extends MSBarCartesian{static getName(){return'MSBar2D'}construc...
(function () { function ModalCtrl($uibModal) { this.createRoom = function() { var modal = $uibModal.open({ templateUrl: 'templates/modal.html', controllerAs: 'modalInstance', controller: function($uibModalInstance) { this.roomName = ""; var addRoom = function(na...
const { Model, DataTypes } = require('sequelize'); const sequelize = require('../config/connection'); class Degree extends Model {} Degree.init({ degree: { type: DataTypes.TEXT, allowNull: false } }, { sequelize, timestamps: false }) module.exports = Degree
/** * Created by Ziga, Primoz & Sebastien on 1.4.2016. */ export class BufferAttribute { static DRAW_TYPE = { STATIC: 0, STREAMING: 1, DYNAMIC: 2 }; /** * Create new BufferAttribute object. * * @param array Buffer data. * @param itemSize Size of an item. */ constructor(array, itemSize) { thi...
export { default } from 'ember-deposit/services/store';