text stringlengths 2 1.04M |
|---|
/**
* @overview datasets of ccm component for rendering a kanban card
* @author André Kless <andre.kless@web.de> 2017
* @license The MIT License (MIT)
*/
ccm.files[ 'datasets.js' ] = {
"homework": {
"title": "Homework",
"owner": "John",
"summary": "Very important homework.",
"priority": "A",
... |
import boxen from 'boxen'
import chalk from 'chalk'
const { max } = Math
const blue = chalk.keyword('dodgerblue')
const grey = chalk.keyword('grey')
const lime = chalk.keyword('lime')
const orange = chalk.keyword('orange')
const peachpuff = chalk.keyword('peachpuff')
const plum = chalk.keyword('plum')
const red = cha... |
var managment_View = require('managment_View');
var qr = require('qrLibrary');
var utils = require('utils');
show();
/* ***********************************************************
* Public functions
* ***********************************************************/
/* ***********************************************... |
import { get } from 'lodash';
// eslint-disable-next-line import/prefer-default-export
export const getUserOptions = (users = []) => users.map(user => ({
value: user.id,
label: `${get(user, ['personal', 'firstName'], '')} ${get(user, ['personal', 'lastName'], '')}`,
})); |
const HtmlWebpackPlugin = require('html-webpack-plugin');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const path = require('path');
const webpack = require('webpack');
const common = require('./_common.js');
// Used instead of __dirname.
const root = require('app-root-path') + '';
/**
* Development co... |
import React, { useState, useEffect, Fragment } from "react";
import { getFees, DEFAULT_FEES } from "../lib/fees"
import {
BrowserRouter as Router,
Switch,
Route,
Redirect,
} from "react-router-dom";
import { BigNumber } from "@ethersproject/bignumber";
import BN from "bignumber.js";
import Jazzicon from 'jazzi... |
var should = require('should');
var assert = require('assert');
var request = require('supertest');
var mongoose = require('mongoose');
var winston = require('winston');
describe('Routing', function() {
var url = 'http://104.236.131.132:3000';
// within before() you can run all the operations that are needed t... |
// This file will be included as an inline script tag by index.html. It
// also gets wrapped in a `window.onload = function() { ... }` wrapper
// so that the whole file doesn't need to be indented. This means things
// included in the bundle are available here.
'use strict';
const regl = window._regl = window.regl({
... |
import React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import { SocialIcon } from "react-social-icons"
import Header from "./header"
import "./layout.css"
const Layout = ({ children, pageTitle, headerTitle }) => {
const data = useStaticQuery(graphql`
query ... |
Template.Documentation.onCreated(function() {
SEO.set({
title: "AWARE Create - Documentation"
});
}); |
import * as constants from 'utilities/constants';
import BigNumber from 'bignumber.js';
const ethers = require('ethers');
const commaNumber = require('comma-number');
const format = commaNumber.bindWith(',', '.');
export const encodeParameters = (types, values) => {
const abi = new ethers.utils.AbiCoder();
retur... |
/**
* author: Samuel Gratzl
* email: samuel_gratzl@gmx.at
* created: 2016-10-28T11:19:52.797Z
*/
export class ObjectUtils {
/**
* merges the second object into the first one
* @param target
* @param others
* @internal
* @returns {T}
*/
static merge(target, ...others) {
... |
// After popup has loaded
async function onLoad() {
let [tab] = await chrome.tabs.query({ active: true, currentWindow: true });
chrome.scripting.executeScript(
{
target: { tabId: tab.id },
function: getRecipe,
},
handleRecipe
);
}
// Get recipe from original tab
function getRecipe() {
t... |
'use strict'
const { ipcMain } = require('electron')
const Events = require('events')
module.exports = class SoundCloud extends Events {
constructor(window) {
super()
this.window = window
this.playing = false
this.trackMetadata = {}
window.webContents
.on('media-started-playing', onMediaSt... |
import * as React from 'react';
import Link from './link';
import { StyledNextPrevious } from './styles/PageNavigationButtons';
const NextPrevious = ({ mdx, nav }) => {
let currentIndex;
const currentPaginationInfo = nav.map((el, index) => {
if (el && el.url === mdx.fields.slug) {
currentIndex = index;... |
/* user */
module.exports.ping = require('./ping')
module.exports.help = require('./help')
module.exports.hangang = require('./hangang')
module.exports.corona = require('./corona')
module.exports.feedback = require('./feedback')
module.exports.invite = require('./invite')
module.exports.melon = require('./melon')
modul... |
/**
* Fontawesome iconpicker
*
* @package llorix-one-lite
*/
(function ($) {
'use strict';
wp.customizerRepeater = {
init: function () {
$( '.iconpicker-items>i' ).on(
'click', function () {
var iconClass = $( this ).attr( 'class' ).slice( 3 );
var classInput = $( this ).parents( '.iconpicker-... |
export default [
// weapons
{
damage: 5,
effect: 'damage',
element: 'water',
icon: 'dagger',
name: 'ocean dagger',
price: 6,
set: 2,
size: '14px',
},
{
damage: 6,
effect: 'damage',
element: 'fire',
icon: 'sword',
name: 'flaming sword',
price: 7,
set: 2... |
/*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
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 ... |
import expect from "expect";
import commentsReducer from "../../client/reducers/comments";
import defaultComments from "../../client/data/comments";
describe("Coments Reducer", function () {
describe("Adding a comment", () => {
const author = "Wes Bos";
const comment = "Cool!";
const expected = { user: a... |
import { useContext, useRef } from 'react';
import Context from './form-state-context';
import reducer, { initialState } from './reducers';
import { initFormState } from './actions';
const useFormReducer = (formName) => {
const [state, dispatch] = useContext(Context);
if (!dispatch) {
throw "redux-formkit: use... |
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark... |
"use strict";
const { hasWeakRefs } = require("../../utils");
const { domSymbolTree } = require("../helpers/internal-constants");
const { filter, FILTER_ACCEPT } = require("./helpers");
exports.implementation = class NodeIteratorImpl {
constructor(globalObject, args, privateData) {
this._active = false;
this... |
/* eslint-disable react/forbid-prop-types */
import React, { memo, useState, useEffect } from 'react'
import PropTypes from 'prop-types'
import { useSelector } from 'react-redux'
import _filter from 'lodash/filter'
import _size from 'lodash/size'
import { Checkbox } from '@ufx-ui/core'
import {
useCommonBfxData,
re... |
//////////////////////////////////
//File:...WWWRoot\js\custom\client_functions.js
//Created By: crmtogether.com
//Used in WWWRoot\CustomPages\company\ctsage300.asp
//////////////////////////////////
function _getPeriod(val){
switch(val) {
case "1":
return "Jan";
break;
case "2":
return "Feb";
break;
... |
var _ = require('underscore');
exports.create = function(options) {
var requestor = options.requestor;
var optionsToSend = {
url: options.apiUrls.templates
};
_.extend(optionsToSend, options.clientOptions);
var listUserCreatedTemplates = (getOptions, callback) =>
requestor.get(_.extend({}, options... |
// common (shared between server and client renderers) ender method.
'use strict';
/*global underscore, N*/
// 3rd-party
var _ = underscore;
////////////////////////////////////////////////////////////////////////////////
// render.common(views, path, locals, layout, skipBaseLayout) -> String
// - viewsTree... |
/*!
* Pikaday
*
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
*/
(function (root, factory)
{
'use strict';
var moment;
if (typeof exports === 'object') {
// CommonJS module
// Load moment.js as an optional dependency
try { moment = re... |
/**
* Auto-generated action file for "JIRA 7.6.1" API.
*
* Generated at: 2019-05-07T14:42:34.430Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / jira-local-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under t... |
'use strict'
const path = require('path')
const defaultSettings = require('./src/settings.js')
function resolve(dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title || 'vue Element Admin' // page title
// If your port is set to 80,
// use administrator privileges to execute the command line... |
// that's right, we're going ES6 bay bee
module.exports = class Version {
constructor(name, abbv, hasOT, hasNT, hasAPO) {
this.name = name;
this.abbv = abbv;
if (hasOT == "yes") {
this.hasOT = true;
} else {
this.hasOT = false;
}
if (hasNT =... |
/* @flow */
import * as React from 'react';
import Linkify from 'react-linkify';
import { Localized } from '@fluent/react';
import parse from 'html-react-parser';
import './Metadata.css';
import ContextIssueButton from './ContextIssueButton';
import FluentAttribute from './FluentAttribute';
import OriginalStringProx... |
import { shouldBe } from "./resources/assert.js";
import drinkCocoa from './export-default-function-hoisting/cocoa.js'
shouldBe(drinkCocoa(), 42); |
// Packages
const ms = require('ms')
const chalk = require('chalk')
// Utilities
const error = require('../../../util/output/error')
const info = require('../../../util/output/info')
function handleError(err, { debug = false } = {}) {
// Coerce Strings to Error instances
if (typeof err === 'string') {
err = n... |
/*!
=========================================================
* Light Bootstrap Dashboard React - v2.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/light-bootstrap-dashboard-react
* Copyright 2020 Creative Tim (https://www.creative-tim.com)
* License... |
(function(){
var APP_MODULE_NAME = 'jotformAnalytics';
angular.module(APP_MODULE_NAME, ['ionic', 'routes'])
.run([
'$ionicPlatform', '$state',
function($ionicPlatform, $state) {
$ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar a... |
(function($) { "use strict";
//Navigation
jQuery(document).ready(function($){
//if you change this breakpoint in the style.css file (or _layout.scss if you use SASS), don't forget to update this value as well
var MqL = 1170;
//move nav element position according to window width
moveNavigation();
$(... |
import members from "./AlumniData";
import Member from "./AlumniMemberCard";
const MainCard = (props)=>{
const LatestYear = new Date().getFullYear() - 1;
return(
<div className="panel panel-default">
<div className="panel-heading">
<h4 className="panel... |
"use strict";
(function(angular) {
angular.module("youtubePluginContent").controller("ContentHomeCtrl", [
"$scope",
"Buildfire",
"DataStore",
"TAG_NAMES",
"STATUS_CODE",
"CONTENT_TYPE",
"$modal",
"$http",
"YOUTUBE_KEYS",
"Utils",
"$timeout",
"LAYOUTS",
"$rootScope"... |
/**
* 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 styled from "styled-components";
import { flexColumnBase, wrapperSizeBase } from "../base";
const Wrapper = styled.div`
${flexColumnBase}
${wrapperSizeBase}
`;
export default Wrapper; |
import React from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import Button from "@material-ui/core/Button";
const styles = theme => ({
button: {
margin: theme.spacing.unit
},
input: {
display: "none"
}
});
function ContainedButtons(props) {
co... |
/**
* Persian translation for bootstrap-datepicker
* Mostafa Rokooie <mostafa.rokooie@gmail.com>
*/
;(function($){
$.fn.datepicker.dates['fa'] = {
days: ["یکشنبه", "دوشنبه", "سهشنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه", "یکشنبه"],
daysShort: ["یک", "دو", "سه", "چهار", "پنج", "جمعه", "شنبه", "یک"],
days... |
module.exports = {
server: {
input: './src/server/server.js',
output: './build/server/server.js',
},
}; |
function initBrandChoose(){
const selector = {
lsAppend: ".jsl-brand",
tpl: ".jst-brand",
btnAdd: ".js-btn-brand",
lsChoose: ".jsl-brand-choose",
btnChoose: ".js-btn-brand-save"
}
let $lsAppend = $(selector.lsAppend);
let $lsChoose = $(selector.lsChoose);
let $btnChoose = $(selector.btnChoose);
let $bt... |
var private = {}, self = null,
library = null, modules = null;
function Generator(cb, _library) {
self = this;
library = _library;
cb(null, self);
}
Generator.prototype.onBind = function (_modules) {
modules = _modules;
modules.api.dapps.getGenesis(function (err, res) {
if (err) {
return library.logger... |
/* ------------------------------------------------------------------------- *
* Copyright 2002-2021, OpenNebula Project, OpenNebula Systems *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may *
* n... |
import React from "react";
const Rating = ({ value, text, color }) => {
return (
<div className="rating">
{Array.from({ length: 5 }, (_, i) => (
<span>
<i
style={{ color }}
className={
value >= i + 1
? "fas fa-star"
: v... |
function p2kwiet9745998652616_button192735980060914_onClick_seq0(eventobject) {
undefined.show();
} |
import isEmpty from 'lodash/isEmpty'
import * as ActionTypes from '../constants/starsup.constants'
const DEFAULT_QUEUE_LINE = 0
const initialState = {
levels: [],
structure: {},
clones: 0,
level: 1,
users: {
list: [],
install: null,
query: {
limit: 8,
offset: 0,
},
meta: {
... |
const { Model, DataTypes } = require('sequelize');
const sequelize = require('../config/connection');
class Event extends Model {}
Event.init(
{
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true,
},
date: {
type: DataTypes.DATE,
al... |
/*
@license
dhtmlxScheduler v.4.3.1
This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited.
(c) Dinamenta, UAB.
*/
scheduler.locale={date:{month_full:["Január","Február","... |
(function(){
if (typeof self === 'undefined' || !self.Prism || !self.document) {
return;
}
var callbacks = [];
var map = {};
var noop = function() {};
Prism.plugins.toolbar = {};
/**
* Register a button callback with the toolbar.
*
* @param {string} key
* @param {Object|Function} opts
*/
var regi... |
/**
* @author zhixin wen <wenzhixin2010@gmail.com>
* version: 1.11.0
* https://github.com/wenzhixin/bootstrap-table/
*/
(function ($) {
'use strict';
// TOOLS DEFINITION
// ======================
var cachedWidth = null;
// it only does '%s', and return '' when arguments are undefined
var... |
const Hashmap =require('./left-join.js').Hashmap;
const repeatedWord =require('./left-join.js').repeatedWord;
const hash = require('./left-join.js');
const leftJoin = require('./left-join.js').leftJoin;
let hashOne = new hash.Hashmap(50);
let hashTwo = new hash.Hashmap(50);
let hashThree = new hash.Hashmap(50);
has... |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 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... |
"use strict";
const ApiError = require("../errors/api-error");
const bunyan = require('bunyan');
const config = require('../config');
const log = bunyan.createLogger(
{
name: config.applicationName || 'express-starter',
version: config.version,
serializers: {
err: (err) => {
... |
const router = require('express').Router();
const { User } = require('../../models');
// URL: /api/user
router.post('/', async (req, res) => {
try {
const newUser = await User.create({
// TODO: SET USERNAME TO USERNAME SENT IN REQUEST
username: req.body.username,
// TOD: SET PASSWORD TO PASSWOR... |
//vendor imports
import React from 'react'
//self imports
import classes from './Screen.module.css'
export default function ScreenFoot({ children, style }) {
return (
<footer className={classes['screen-foot']} style={style}>
{children}
</footer>
)
} |
import React from 'react';
import PropTypes from 'prop-types';
import GameStatsRow from './GameStatsRow';
import {
GameStatsHeader,
GameStatsWrapper,
GameStatsHeaderRow,
GameStatsHeaderSpacer,
} from './index.styles';
import {DEFAULT_TEAM_COLOR} from '../../../../lib/constants';
const GameStats = ({stats, h... |
/*globals Foo:true, $foo:true */
import { normalizeTuple } from "ember-metal/property_get";
var obj, moduleOpts = {
setup: function() {
obj = {
foo: {
bar: {
baz: {}
}
}
};
window.Foo = {
bar: {
baz: {}
}
};
window.$foo = {
bar: {
... |
/*
* @Author: 张飞达
* @Date: 2020-10-28 08:35:25
* @LastEditors: 张飞达
* @LastEditTime: 2020-10-28 08:40:35
* @Description:简单的事件订阅发布的实现
*/
function LoadEvent() {
this.listeners = {}
this.on = function(eventName, callback) {
if (this.listeners[eventName] === undefined) {
this.listeners[eventName] = []
... |
/* global expect:false, test:false */
import { isBoolean } from '../src';
test('it returns true for a boolean value', () => {
expect(isBoolean(true)).toBe(true);
expect(isBoolean(false)).toBe(true);
});
test('it returns false for a 1 or 0', () => {
expect(isBoolean(1)).toBe(false);
expect(isBoolean(0)).toBe(f... |
// This file is needed because it is used by vscode and other tools that
// call `jest` directly. However, unless you are doing anything special
// do not edit this file
const standard = require('@grafana/toolkit/src/config/jest.plugin.config');
// This process will use the same config that `yarn test` is using
// I... |
const controllers = require('../controllers/index')
module.exports = (app) => {
app.get('/', controllers.home.index)
app.get('/buy', controllers.user.domainBuy)
app.get('/price', controllers.user.domainPrice)
app.get('/ip', controllers.user.domainIP)
app.get('/renew', controllers.user.domainRenew)
... |
/**
* File: SecurityAdmin.js
*/
(function($) {
var refreshAfterImport = function(e) {
// Check for a message <div>, an indication that the form has been submitted.
var existingFormMessage = $($(this).contents()).find('.message');
if(existingFormMessage && existingFormMessage.html()) {
// Refresh member li... |
//# sourceMappingURL=3.e4076c69.chunk.js.map |
class Bullet extends Phaser.Physics.Arcade.Sprite {
constructor (scene, x, y) {
super(scene, x, y, 'bullet');
}
fire (x, y, velocity) {
this.body.reset(x, y);
this.setActive(true);
this.setVisible(true);
this.setVelocityY(-velocity);
}
deactivate () {
... |
const setupKanji = (apiToken, callback) =>
new Promise((resolve, reject) => {
chrome.storage.local.get(['wkhighlight_allkanji', 'wkhighlight_allkanji_updated'], result => {
const kanjiUpdated = result["wkhighlight_allkanji_updated"] ? result["wkhighlight_allkanji_updated"] : formatDate(new Date());
modifiedSin... |
import React from 'react';
import {LogBox} from 'react-native';
import {createStackNavigator} from '@react-navigation/stack';
import {LoginPage, user_DB_class} from './main/login';
import {SignUpPage} from './main/sign-up';
import {ProfilePage} from './main/profile';
import {SettingsPage} from './main/settings_screen_c... |
(function () {
"use strict";
var fs = require('fs')
, filename = process.argv[2]
, YAML = require('./index');
if(!filename) {
console.log("Please add input file");
process.exit(1);
}
fs.readFile(filename, 'utf8', function (err, data) {
if (err) {
r... |
/**
* Generated bundle index. Do not edit.
*/
export * from './nouislider';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmcyLW5vdWlzbGlkZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZzItbm91aXNsaWRlci8iLCJzb3VyY2VzIjpbIm5nMi1ub3Vpc2xpZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FB... |
import { PolymerElement } from '@polymer/polymer/polymer-element.js';
import '@polymer/paper-item/paper-item.js';
import '@polymer/paper-item/paper-item-body.js';
import '@polymer/paper-input/paper-input.js';
import '@polymer/paper-spinner/paper-spinner-lite.js';
import '@polymer/paper-button/paper-button.js';
import {... |
import React from 'react'
import { Form, Input, Icon, Checkbox, Button } from 'antd'
const FormItem = Form.Item
class RegisterFormComponent extends React.Component {
state = {
confirmDirty: false,
}
handleConfirmBlur = e => {
const { value } = e.target
const { confirmDirty } = this.state
this.s... |
var noop = require("../../core/utils/common").noop,
windowUtils = require("../../core/utils/window"),
domAdapter = require("../../core/dom_adapter"),
typeUtils = require("../../core/utils/type"),
each = require("../../core/utils/iterator").each,
version = require("../../core/version"),
_windowRe... |
// A metric for the force (weight or strength) of a movement
// NOTE: THIS DOES NOT YET WORK PROPERLY
define([
"src/kinematics/RunningStat",
"src/kinematics/NumericalDifferentiator",
"src/kinematics/PastAndPresent"
], function (RunningStat, NumericalDifferentiator, PastAndPresent) {
"use strict";
/... |
import React from 'react';
import Basic from '../examples/basic';
const testCases = {};
const noRenderCases = {};
testCases.basic = {
description: 'Basic',
element: <Basic />
};
export { testCases, noRenderCases }; |
import expensesReducer from '../../reducers/expenses';
import expenses from '../fixtures/expenses';
test('should set default state', () => {
const state = expensesReducer(undefined, { type: '@@INIT' });
expect(state).toEqual([]);
});
test('should set remove expense by id', () => {
const action = {
type: 'SE... |
import $ from "jquery";
import { getUrlParams } from "./helpers";
const datasets = {
tabs: {
tab: "c-tab",
},
};
const selectors = {
country: "[data-c-contact-country]",
select: "[data-c-country-select]",
countryByHandle: (handle) => `[data-c-contact-country="${handle}"]`,
tabs: {
current: "[data... |
var util = require('util'),
webutil = require('../util/web'),
Tab = require('../client/tab').Tab,
Amount = ripple.Amount,
Base = ripple.Base;
var AppsTab = function ()
{
Tab.call(this);
};
util.inherits(AppsTab, Tab);
AppsTab.prototype.tabName = 'apps';
AppsTab.prototype.mainMenu = 'apps';
AppsTab... |
// CodeMirror version 2.2
//
// All functions that need access to the editor's state live inside
// the CodeMirror function. Below that, at the bottom of the file,
// some utilities are defined.
// CodeMirror is the only global var we claim
var CodeMirror = (function() {
// This is the function that produces an edit... |
'use strict';
/* Module for Promotiondetailinfo */
var promotiondetailinfoModule = angular.module('promotiondetailinfo.module', ['myApp']);
/**
* Module for promotiondetailinfo
*/
promotiondetailinfoModule.config(['$routeProvider', function($routeProvider) {
// Pages routes
$routeProvider.when('/promotiond... |
import Vue from 'vue'
import Vuex from 'vuex'
import common from './modules/common'
import user from './modules/user'
import permission from './modules/permission'
import tagView from './modules/tagView'
import dict from './modules/dict'
import persistedState from 'vuex-persistedstate'
Vue.use(Vuex)
export default new... |
const EventEmitter = require('events');
const debug = require('debug')('flora-scrapper');
const floraDevice = require('./FloraDevice');
class Flora extends EventEmitter {
delay (ms) {
return new Promise(res => setTimeout(res, ms));
}
async listenDevice(macAddress) {
const device = await f... |
import React from 'react';
import Dialog from 'material-ui/Dialog';
import NewProjectSelection from './NewProjectSelection';
import ProjectDetails from './ProjectDetails';
import ProjectStructure from './ProjectStructure';
import ImportProject from './ImportProject';
import CloneProject from './CloneProject';
import Ne... |
/**
* @license Copyright (c) 2003-2022, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module enter/entercommand
*/
import Command from '@ckeditor/ckeditor5-core/src/command';
import { getCopyOnEnterAttributes } from... |
import Response from '../utils/helpers/response';
import Check from '../utils/helpers/check';
class PropertyValidation {
static async create(req, res, next) {
try {
const is_admin = res.locals.user.is_admin;
const {
price, state, city, address,
} = req.body;
if (!is_admin) return ... |
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/model/json/JSONModel",
"sap/ui/model/resource/ResourceModel"
], function(UIComponent, JSONModel, ResourceModel)
{
"use strict";
return UIComponent.extend("sap.ui.core.internal.samples.composite.xmlcomposite.exTableWrapperOuterBinding.Component",
{
metadata:
{... |
/** Used to compose unicode character classes. */
const rsAstralRange = "\\ud800-\\udfff";
const rsComboMarksRange = "\\u0300-\\u036f";
const reComboHalfMarksRange = "\\ufe20-\\ufe2f";
const rsComboSymbolsRange = "\\u20d0-\\u20ff";
const rsComboMarksExtendedRange = "\\u1ab0-\\u1aff";
const rsComboMarksSupplementRange =... |
import I from 'immutable';
export const ComponentDef = I.Record({
_type: 'ComponentDef',
path: null, // String
render: null, // { Element | null }
// May be partially filled in before transformation.
decorators: null, // { []Decorator | null }
// Null before transformation, but child Element decorators may... |
const profile = process.env.profile || process.profile;
exports.config = {
tests: './*_test.js',
timeout: 10000,
output: './output',
helpers: {
FileSystem: {},
},
include: {},
bootstrap: false,
mocha: {},
name: 'sandbox',
};
if (profile === 'failed') {
exports.config.tests = './*_test_failed.j... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
'use strict';
var fetchNode = require('./node-ponyfill');
var fetch = fetchNode.fetch.bind({});
fetch.polyfill = true;
if (!global.fetch) {
global.fetch = fetch;
global.Response = fetchNode.Response;
global.Headers = fetchNode.Headers;
global.Request = fetchNode.Request;
} |
const Org = require('../org-model');
const Programs = require('../../programs/model');
const getAllOrganizations = async (req, res) => {
try {
const orgs = await Org.findAll();
res.status(200).json(orgs);
} catch (err) {
res.status(500).json({ errorMessage: err });
}
};
const getAllProgramsByOrgani... |
import React from "react";
import ReadRecipeDetails from "./readRecipeDetails";
import ReadRecipeInstructions from "./readRecipeInstructions";
import ReadRecipeIngredients from "./readRecipeIngredients";
import { Container, Col, Row } from "react-bootstrap";
import PersonChoices from "./PersonChoices";
import REST fro... |
/*! UIkit 2.10.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(addon) {
var component;
if (jQuery && jQuery.UIkit) {
component = addon(jQuery, jQuery.UIkit);
}
if (typeof define == "function" && define.amd) {
define("uikit-cover", ["uikit"], function(){
... |
const axios = require('axios')
module.exports = async function ({ HTTP_PORT }) {
const res = await axios.get(`http://localhost:${HTTP_PORT}/xml/<test>TEST<%2Ftest>`)
if (res.status !== 200) {
throw new Error(`Response ${res.status}`)
}
if (!res.data.match(/^<message>([^<>]+)<\/message>$/i)) {
throw new... |
$(document).ready(function() {
$("#login-form").submit(function(e) {
$.ajax({
type: 'post',
url: 'ajax_signin.php',
data: $('#login-form').serialize(),
success: function(html) {
if(html == 'true') {
window.location.reload(... |
import lights from './Lights'
import NodesManage from './NodesManage'
import Node from './Node'
const ease = (from, to, rate = 6) => {
return from + (to - from) / rate
}
class Scene {
constructor (options, renderer) {
this.globalEditable = true // if this was false all editing options disabled
... |
/**
* The MIT License (MIT)
* Copyright (c) 2017-present Dmitry Soshnikov <dmitry.soshnikov@gmail.com>
*/
'use strict';
function main() {
console.info(`
=========================================================
* CLI commands are moved to the \x1b[1mregexp-tree-cli\x1b[0m package *
========================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.