text stringlengths 2 1.04M |
|---|
const settings_roles = require('./settings_roles');
const settings_logs = require('./settings_logs');
module.exports = {
settings_roles,
settings_logs,
}; |
import test from 'ava';
import expect from 'expect';
import Dragonbinder from '../lib';
function getNewStore() {
let mainModule = {
state: { b: [1], a: 0, c: { a: 1 } },
mutations: {
pushB(state, payload) {
state.b = [...state.b, payload];
},
deleteB(state) {
delete state.b;... |
'use strict';
var util = require('util'),
EventEmitter = require('events').EventEmitter,
parseXML = require('xml2js').parseString,
DataHandler;
DataHandler = function (stream) {
var self = this,
containsToMethodMap = {
'<STARTPROC': self.handleStartProcessingTag,
'<STA... |
'use strict';
var url = require('url');
var urlJoin = require('../lib/url-join');
var loopback = require('loopback');
var express = require('express');
var swagger = require('../lib/swagger');
var request = require('supertest');
var expect = require('chai').expect;
describe('swagger definition', function() {
descr... |
var crypto = require('crypto');
function Statuses(__SLAG_PROPERTIES) {
__SLAG_PROPERTIES = __SLAG_PROPERTIES || {};
var __SLAG_DEVICE = JSON.parse(process.env.SLAG_DEVICE);
var __SLAG_CHECKS = [], __SLAG_NAMES = [
'apiName',
'bubbleParent',
'id'
];
if (__SLAG_NAMES.length > 0 && process.env.SLAG_STRICT =... |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2013 SAP AG. All rights reserved
*/
sap.suite.ui.commons.Timeline.prototype._createAddDialog=function(){var t=this;this._addDialog=new sap.m.Popover(this.getId()+"-popover_add",{title:this.resBundle.getText("TIMELINE_ADD_POST"),placement:sap.m.Pla... |
'use strict';
// const User = require('../models/User');
const cleanNumberData = require('./clean_number_data');
const cheerio = require('cheerio');
const webdriver = require('selenium-webdriver');
const chromedriver = require('chromedriver');
const chromeCapabilities = webdriver.Capabilities.chrome();
chromeCapabili... |
import {
T,
always,
compose,
concat,
cond,
converge,
equals,
head,
isEmpty,
join,
last,
length,
slice
} from 'ramda'
const toSentence = cond([
[
isEmpty,
always('')
],
[
compose(equals(1), length),
head
],
[
compose(equals(2), length),
join(' and ')
],
[
... |
if (typeof Roblox === 'undefined') {
Roblox = {};
}
Roblox.InstallationInstructions = (function () {
function show(mode) {
if (typeof mode == 'undefined') {
mode = 'installation';
}
loadImages(mode);
// Presize modal, if we are showing an image, to fix a bug where some browsers size the modal before load... |
"use strict";
var KTLayoutQuickActions = function() {
// Private properties
var _element;
var _offcanvasObject;
// Private functions
var _init = function() {
var header = KTUtil.find(_element, '.offcanvas-header');
var content = KTUtil.find(_element, '.offcanvas-content');
... |
import './index.less'
import ReactDom, { render ,Component, PropTypes} from 'react';
import { Router, Route, browserHistory,Link } from 'react-router'
import { Provider } from 'react-redux';
import { createHistory } from 'history'
import configureStore from './store/configureStore';
import Header from './containers... |
if ( ! Function.prototype.bind) {
Function.prototype.bind = function bind(that) { // .length is 1
var target = this;
if (typeof target !== "function") {
throw new TypeError("Function.prototype.bind called on incompatible " + target);
}
var args = Array.prototype.slice.cal... |
/*
*
* 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"); y... |
(function() {
'use strict';
angular
.module('app.dashboard')
.controller('Dashboard', Dashboard);
/* @ngInject */
function Dashboard(logger) {
/*jshint validthis: true */
var vm = this;
vm.title = 'Dashboard';
activate();
function activate() {... |
/*
* Copyright 2005 Shinya Kasatani
*
* 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 agree... |
var locData = {};
var loc = ''; //DEPRECATED
var preloader = {
extraLoad : {},
oldHash : {},
show : function() {
//$("#preloader").css('margin-top', ($("#menu-container").height()));
$("#preloader").show();
},
hide : function() {
$("#preloader").hide();
},
callback : function (response, status, xhr) {
i... |
Search.setIndex({docnames:["index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames... |
"use strict";
var stylesInDom = [];
function getIndexByIdentifier(identifier) {
var result = -1;
for (var i = 0; i < stylesInDom.length; i++) {
if (stylesInDom[i].identifier === identifier) {
result = i;
break;
}
}
return result;
}
function modulesToDom(list, options) {
var idCountMap... |
/**
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you 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 appl... |
const express = require('express');
const app = express();
const dotenv = require('dotenv');
dotenv.config();
//const next = require('next');
const dev = process.env.NODE_ENV !== 'production';
//const nextApp = next({ dev });
const bodyParser = require('body-parser');
const request = require('request');
const port ... |
'use strict'
process.env.BABEL_ENV = 'renderer'
const path = require('path')
const { dependencies } = require('../package.json')
const webpack = require('webpack')
const MinifyPlugin = require("babel-minify-webpack-plugin")
const CopyWebpackPlugin = require('copy-webpack-plugin')
const MiniCssExtractPlugin = require... |
import React from 'react';
import {View} from 'react-native';
import Carousel from 'react-native-snap-carousel';
import CarouselCardItem, {SLIDER_WIDTH, ITEM_WIDTH} from '../CarouselCardItem';
const CarouselCards = ({data}) => {
const isCarousel = React.useRef(null);
return (
<View>
<Carousel
la... |
/**
* Kendo UI v2019.1.115 (http://www.telerik.com/kendo-ui)
* Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
#!/usr/bin/env node
const http = require('http');
const fetch = require('node-fetch');
const id = process.argv[2];
const gist = 'https://api.github.com/gists/' + id;
const responses = {
md: require('./responses/md'),
index: require('./responses/index'),
notFound: require('./responses/not-found'),
file... |
function Qx(){}
function dYb(a,b){a.b=b}
function wYb(a,b){$1b(b,a.e)}
function g2b(a,b){T1b(a.a,b)}
function U1b(a,b){GZb(a.a,b)}
function Px(a,b){lj(b.a,a)}
function _1b(a){this.a=a}
function b2b(a){this.a=a}
function h2b(a){this.a=a}
function C2b(a){this.a=a}
function T4b(a){this.a=a}
function L$b(a){return Kqc+a}
f... |
import React from 'react';
import { Caption, Divide, Title, Info } from './MovieInfo.styles';
const MovieInfo = ({ item }) =>
<Caption>
<Title>{item.name}</Title>
<Divide/>
<Info>{item.text}</Info>
</Caption>;
export default MovieInfo; |
/*
* Copyright 2011 Twitter, 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... |
import { INPUT_CHANGE, ADD_ITEM, DEL_ITEM, GET_LIST, GET_MY_LIST } from './actionTypes'
const defaultState = {
inputValue: '',
list: ['敲代码','出bug','找bug', '改bug']
}
export default (state = defaultState, action) => {
if(action.type === INPUT_CHANGE) {
let newState = JSON.parse(JSON.stringify(state))
newS... |
/**
* @author aakimov
*/
/*jshint browser:true jquery:true*/
/*global alert*/
define([
'jquery',
'mage/utils/wrapper',
'Magento_Checkout/js/model/quote'
], function ($, wrapper, quote) {
'use strict';
return function (targetModule) {
var masterpassData = window.... |
/**
* @package Stability Responsive HTML5 Template
*
* Template Scripts
* Created by Dan Fisher
Init JS
1. Main Navigation
2. Isotope
3. Magnific Popup
4. Flickr
5. Carousel (based on owl carousel plugin)
6. Content Slider (based on owl carousel plugin)
7. FitVid (... |
require('dotenv').config()
const gulp = require('gulp')
const sonarqubeScanner = require('sonarqube-scanner')
gulp.task('analyse', function (callback) {
sonarqubeScanner({
serverUrl: process.env.SONARQUBE_URL,
options: {
'sonar.projectKey': 'defra:identity:hapi-plugin',
'sonar.sources': '.',
... |
import { Vec3 } from './Vec3'
/**
* A 3x3 matrix.
* @class Mat3
* @constructor
* @param array elements Array of nine elements. Optional.
* @author schteppe / http://github.com/schteppe
*/
export class Mat3 {
constructor(elements) {
/**
* A vector of length 9, containing all matrix elements
* @pro... |
import { React } from 'react';
import Link from 'next/link';
import Grid from '@material-ui/core/Grid';
import Paper from '@material-ui/core/Paper';
import Box from '@material-ui/core/Box';
import Button from '@material-ui/core/Button';
import NavigateNextIcon from '@material-ui/icons/NavigateNextOutlined';
import Divi... |
/**
* DOM Tests
*/
asyncTest("transform", function(assert) {
$.ajax({
url: 'fixtures/test.xml',
dataType: 'xslt'
}).done(function(data) {
$('body > .container').append($(data).find('body').html());
var expected = '<html><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/><tit... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lodash_1 = require("lodash");
class ParameterParser {
constructor() {
/**
* @type {number}
*/
this.priority = 60;
}
/**
* @type {RegExp}
*/
get regExp() {
return /<\{(.+... |
var payment_elements = require('./payment_elements.js');
module.exports = {
userCallback: undefined,
urlReturnCallback: undefined,
urlReturnChannels: [
'alipay_pc_direct', // 默认只开启 alipay_pc_direct 使用 callback 返回 URL
],
innerCallback: function(result, err) {
if (typeof this.userCallback === 'func... |
import React, { Component } from 'react';
import { Redirect } from 'react-router-dom'
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/core/TextField';
import CssBaseline from '@material-ui/core/CssBaseline';
import Typography from '@material-ui/core/Typography';
// import { withStyle... |
import * as types from './mutation-types'
export const state = {
categories: [],
editCategory: {},
dialogEditCategory: false,
}
export const mutations = {
// [types.SET_CATEGORY] (state, payload) {
// state.category = payload
// },
[types.SET_CATEGORIES] (state, payload) {
stat... |
//# sourceMappingURL=vue.js.map |
import React from 'react';
class ItemForm extends React.Component {
constructor(props) {
super(props);
this.state = {
formValue:''
};
this.createItem = this.createItem.bind(this);
this.changeHandler = this.changeHandler.bind(this);
}
createItem(event){
event.preventDefault(... |
const extract = require("extract-zip");
const fs = require("fs");
const path = require("path");
const createCsvWriter = require("csv-writer").createObjectCsvWriter;
const OUTPUT_DIR = process.argv[3] || process.cwd() + "/output";
const CSV_FILE = process.cwd() + "/file.csv";
const csvWriter = createCsvWriter({
path... |
/**
* @author Timo Hausmann
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2014 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* A QuadTree implementation. The original code was a conversion of the Java code po... |
'use strict'
const pino = require('pino')()
const log = require('pino-http')({logger: pino})
const http = require('http')
const https = require('https')
const fs = require('fs')
const mkdirp = require('mkdirp')
const path = require('path')
const port = process.env.PORT || 3000
const server = http.createServer(handle... |
// import * as mars3d from "mars3d"
var map // mars3d.Map三维地图对象
// 需要覆盖config.json中地图属性参数(当前示例框架中自动处理合并)
var mapOptions = {
control: {
homeButton: true, // 回到默认视域按钮
navigationHelpButton: false, // 是否显示帮助信息控件
fullscreenButton: false, // 右下角全屏按钮
geocoder: false,
sceneModePicker: false,
vrButto... |
// Interface main script
window.addEventListener('DOMContentLoaded', () => {
// Declare main component
waitForEditorReady(function () {
Vue.component("main-container", {
data: function () {
return {
};
},
methods: {
on... |
/*
* Copyright 2022 Apollo 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 applicable law or agreed to i... |
import PropTypes from 'prop-types';
import React, {Component} from 'react';
import {parse} from 'react-docgen';
import CodeBlock from './CodeBlock';
import ClearFix from 'material-ui/internal/ClearFix';
import Paper from 'material-ui/Paper';
class CodeExample extends Component {
static propTypes = {
children: Pr... |
define(function (require) {
var PI2 = Math.PI * 2;
return {
normalizeRadian: function (angle) {
angle %= PI2;
if (angle < 0) {
angle += PI2;
}
return angle;
}
};
}); |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const path = require("path");
const util = require("util");
const Module = require("./Module");
const OriginalSource = require("webpack-sources").OriginalSource;
const RawSource = require("webpack-sources")... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _core = require("@emo... |
// import PropTypes from 'prop-types';
import './MovieDetails.scss';
import placeholder from '../placeholder.png';
const MovieInfo = data => {
const {
genres,
title,
release_date,
vote_average,
overview,
poster_path,
name,
} = data.data;
const picture = poster_path
? `https://ima... |
employees = [{
name: 'ABC',
age: 35,
salary: 500,
dob: '01.01.1980'
},
{
name: 'DEF',
age: 20,
salary: 10000,
dob: '02.02.1995'
},
{
name: 'GHI',
age: 30,
salary: 100,
dob: '03.03.1985'
},
{
name: 'JKL',
age: 25,
salary: 6000,
dob: '04.04.1990'
}]
cons... |
import React, {Component, Fragment} from 'react';
import TopNavigation from "../components/TopNavigation/TopNavigation";
import PageTopSection from "../components/PageTopSection/PageTopSection";
import AllProjects from "../components/AllProjects/AllProjects";
import Footer from "../components/Footer/Footer";
class Po... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.maxConcurrency = void 0;
const debug_1 = __importDefault(require("debug"));
const debug = debug_... |
/*
* 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 { validateAutoFollowPattern } from './auto_follow_pattern_validators'... |
const Database = require('./db')
const createProffy = require('./createProffy')
Database.then(async (db) => {
// inserir dados
proffyValue = {
name:"Guilherme Camara",
avatar: "https://avatars2.githubusercontent.com/u/2254731?s=460&u=0ba16a79456c2f250e7579cb388fa18c5c2d7d65&v=4",
whatsapp:"9898989... |
import React from 'react';
import LinksList from './LinksList';
import PrivateHeader from './PrivateHeader';
import AddLink from './AddLink';
import LinksListFilters from './LinksListFilters';
export default () => {
return (
<div>
<PrivateHeader title="Your Links"/>
<div className="page-content">
... |
import Logger from 'bet-logger';
import Bet from 'bet-bg';
import ping from 'bet-ping';
import wp from './wp/wp';
import v from './wp/v';
ping();
const log = new Logger('BET:wp:drive2');
const name = 'd2w';
if(chrome.runtime.onMessage) {
log('bg script start');
var plugin = new Bet({
timeout: 120000,
e... |
import PropTypes from 'prop-types';
import React, {
useState
} from 'react';
import {
Tag,
TagGrid,
tagIcons,
TagsIcon,
Toggle
} from './styles';
export default function TagList({
tags,
activeTag = `All`,
setActiveTag
}) {
const [open, setOpen] = useState(false);
return ( <
... |
/*!
* jQuery Validation Plugin v1.17.0
*
* https://jqueryvalidation.org/
*
* Copyright (c) 2017 Devesh Kumar
* Released under the MIT license
*/
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ["jquery", "./jquery.validate"], factory );
} else if (typeof module === "object"... |
"use strict";
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.13.9
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... |
/* eslint-disable */
import React from 'react';
import { Svg, Path } from 'react-native-svg';
import { getIconColor } from './helper';
let IconQuestion = ({ size, color, ...rest }) => {
return (
<Svg viewBox="0 0 1024 1024" width={size} height={size} {...rest}>
<Path
d="M512 64q190.016 4.992 316.5... |
'use strict';
var request = require('request');
function CurrencyController(options) {
this.node = options.node;
var refresh = options.currencyRefresh || CurrencyController.DEFAULT_CURRENCY_DELAY;
this.currencyDelay = refresh * 60000;
this.bitstampRate = 0;
this.timestamp = Date.now();
}
CurrencyController... |
/*!
* Copyright 2014 Apereo Foundation (AF) Licensed under the
* Educational Community 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://opensource.org/licenses/ECL-2.0
*
* Unless required by applicab... |
/* eslint-env mocha */
import { expect } from 'chai'
import Preprocessor from '../../../lib/Preprocessor.js'
describe('Preprocessor', () => {
it('Should be a function', () => {
expect(Preprocessor).to.be.a('function')
})
describe('Preprocessor instance', () => {
it('Should be instantiated without "new"... |
import styled from "styled-components";
export const CollectionQuantityAdderWrapper = styled.div`
margin-top: 35px;
> strong {
font-family: "Lato", sans-serif;
color: #c800cf;
}
> form {
display: flex;
align-items: flex-start;
margin-top: 8px;
}
`; |
import * as Plot from "@observablehq/plot";
import * as d3 from "d3";
export default async function() {
const data = await d3.csv("data/learning-poverty.csv", d3.autoType);
const values = data.flatMap(d => [
{...d, type: "ok", share: 100 - d["Learning Poverty"]},
{...d, type: "poor", share: d["Learning Pov... |
import test from 'ava'
import sinon from 'sinon'
import * as inBrowser from '../../src/utils/in-browser'
test('should return true in browser', (t) => {
const inBrowserStub = sinon.replace(inBrowser, 'default', true)
t.is(inBrowserStub, true)
sinon.restore()
})
test('should return false in node', (t) => {
con... |
/**
* Copyright 2017 Google Inc. 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 required by applic... |
export default async ctx => {
if (process.browser) {
await ctx.store.dispatch('nuxtClientInit', ctx)
}
} |
import ReplayProvider from "../providers/replayProvider";
export default class ReplayService {
constructor() {
this.provider = new ReplayProvider();
}
async playerExists(player) {
return await this.provider.playerExists(player);
}
async getPlayer(filter) {
return await this.provider.getPlayer(f... |
/**
* @fileOverview
*
* 用 FUI.Tabs 实现的多级的创建
*
* @author: techird
* @copyright: Baidu FEX, 2014
*/
KM.registerUI('widget/menutab', function(minder) {
function generate(parent, name, asDefault) {
var index = parent.getButtons().length;
var tab = parent.appendTab({
buttons: [{
... |
/*
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
//como pegar a hora atual do sistema e inserir no código? Criar uma variável
var agora = new Date()
var hora = agora.getHours()
console.log(`Agora são exatamente ${hora} horas.`)
if (hora < 12){
console.log("Bom dia!")
} else if(hora <= 18){
console.log("Boa tarde!")
} else {
console.log("Boa noite!")
} |
//# sourceMappingURL=chunk-3c6bd0c2.74383c45.js.map |
import React from 'react'
import { render } from 'react-testing-library'
import Fixture from './dialog.fixture'
import customIdTest from '../helpers/custom-id'
test('Accepts custom id prop', () => {
customIdTest(Fixture, 'dialog')
})
test('Calls actions handler', () => {
const dialog = render(<Fixture />)
con... |
/**
* @license Angular v11.2.5
* (c) 2010-2021 Google LLC. https://angular.io/
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/compiler')) :
typeof define === 'function' && define.amd ? define('@angular/compil... |
import React from "react";
import PropTypes from "prop-types";
import { Link } from "gatsby";
const TopNav = ({siteName, navItems}) => {
return (
<div className="container__desktop-nav">
<div className="desktop-header">
<div className="desktop-nav__logo logo-text">
<... |
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var handleErrors = require('../util/handleErrors');
var config = require('../config').sass;
var autoprefixer = require('gulp-autoprefixer');
gulp.task('sass', function () {
return gulp.sr... |
const router = require('express').Router();
const dotenv = require('dotenv');
const axios = require('axios');
const Chiller = require('../models/Chiller');
const SensorData = require('../models/SensorData');
const RefLoadPred = require('../models/RefLoadPred');
dotenv.config();
// REFRESH REFLOAD PREDICTIONS
router.p... |
const assert = require('assert')
module.exports = function (actual, expect) {
assert.deepStrictEqual(actual, expect)
} |
/**
* Use this file to configure your truffle project. It's seeded with some
* common settings for different networks and features like migrations,
* compilation and testing. Uncomment the ones you need or modify
* them to suit your project as necessary.
*
* More information about configuration can be found at:
... |
const db = require('../../data/db-config');
module.exports = {
addIncidents,
addSources,
findIncidentById,
getIncidents,
getDummy,
};
/*
Inserts array of incidents (without links/sources) to table
*/
function addIncidents(arr) {
return db('incidents').insert(arr);
}
/*
Inserts array of sources to tab... |
import mutations from './mutations';
export default {
namespaced: true,
state() {
return {
score: 0,
};
},
mutations,
}; |
/**
* 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.
*/
import React from 'react';
import { black } from '../styles';
var closeButtonStyle = {
color: black,
lineHeight: '1rem',
fontSize... |
var classoperations__research_1_1sat_1_1_no_overlap2_d_constraint =
[
[ "AddRectangle", "classoperations__research_1_1sat_1_1_no_overlap2_d_constraint.html#ac9f005471a4a54c288d4dc259d25fbc3", null ],
[ "MutableProto", "classoperations__research_1_1sat_1_1_no_overlap2_d_constraint.html#ab24547e367af774c764d4fbf7... |
import React, {Component} from 'react';
import {TouchableOpacity} from 'react-native';
import { Container, Content, Form, Item, Input, Label, Button, Text, Header, Left, Body, Right, Icon } from 'native-base';
import RNContacts from 'react-native-contacts';
export default class NewContact extends Component{
constru... |
/**
* Promise with deferred rejection.
* @module
*/
/** Private data repository. */
const privr = new WeakMap;
/**
* Internal promise was rejected.
* If deferral has already ended, deliver immediately.
* Otherwise, save rejection reason and defer for later delivery.
*/
function onRejected (reason) {
co... |
import { createMemoryHistory } from 'react-router';
/* eslint-disable import/no-extraneous-dependencies */
import middlewares from '__app_modules__redux_middlewares__';
// used require instead of import, because optional default with import cause warnings
const reducers = require('__app_modules__redux_reducers__');
/*... |
/* global bard, $compile, $rootScope, stateManager */
describe('rvState', () => {
let scope;
let directiveElement;
const mockState = {
filters: {
active: true,
morph: 'full'
}
};
function mockFocusService($provide) {
$provide.factory('focusService',... |
console.info("Looks like the Middleman + Gulp asset pipeline is working!");
window.onload=function(){
const menu = document.querySelector('.menu');
const x = document.querySelector('.x');
const sidebar = document.querySelector('.sidebar');
menu.addEventListener('click', () => {
sidebar.classList.add('-tra... |
/*
Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 4
Version: 4.4.0
Author: Sean Ngu
Website: http://www.seantheme.com/color-admin/admin/
*/var handleDataTableSelect=function(){"use strict";0!==$("#data-table-select").length&&$("#data-table-select").DataTable({select:!0,res... |
const net = require('net');
const mergeOptions = require('merge-options');
const EffectInterface = require('./EffectInterface');
const CustomMode = require('./CustomMode');
const { AsyncEffectInterface } = require("./AsyncEffectInterface");
const PORT = 5577;
// some controllers send their responses in multiple chun... |
var _obj;
function _defineProperty(obj, key, value) {
return key in obj ? Object.defineProperty(obj, key, {
value: value,
enumerable: !0,
configurable: !0,
writable: !0
}) : obj[key] = value, obj;
}
_defineProperty(_obj = {
}, e, 1), _defineProperty(_obj, e + e, 2); |
/*! abcjs_midi v5.6.11 Copyright © 2009-2018 Paul Rosen and Gregory Dyke (http://abcjs.net) */
/*! midi.js Copyright © Michael Deal (http://mudcu.be) */
/*! For license information please see abcjs_midi_5.6.11-min.js.LICENSE */ |
const fs = require('fs');
const path = require('path');
const commander = require('commander');
const {yellow, magenta, red} = require('kleur');
const {sub_domain} = require('./references.js');
const {get_request, handle_error, render_spinner, green_bg, cyan_bg, safe_name, stream_download, path_exists} = require('./u... |
var winston = require('winston'); //logger module
var path = require('path');
var logger = new (winston.Logger)({
level: 'debug',
transports: [
new (winston.transports.Console)({ colorize: true }),
]
});
// --- Set Details Here --- //
var config_file = 'config_local.json'; //set config file name
var ch... |
const Router = require('koa-router');
const router = new Router();
const {find,create,createMore} = require('./controllers');
module.exports = (app) => {
router.get('/',find);
router.post('/',create);
router.post('/createMore',createMore);
app.use(router.routes()).use(router.allowedMethods());
} |
import { OAuth2Client } from 'google-auth-library';
import User from '../models/User.js';
import * as Utils from '../utils/utils.js';
const CLIENT_ID = process.env.GOOGLE_DRIVE_CLIENT_ID;
const client = new OAuth2Client(CLIENT_ID);
export const getUsers = (req, res) => {
User.find()
.then((users) => {
res... |
// ===============================================================
//
// "SPX" SmartPX Graphics Controller
//
// (c) 2020-2021 tuomo@smartpx.fi
// https://github.com/TuomoKu
//
// No front-end frameworks.
// Core functionality: NodeJS, Express, Handlebars -templating.
//
// Most serverside code is in /routes and /ut... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.