text stringlengths 2 1.04M |
|---|
const COLOUR = {
ENABLE: {
FLAGS: '--colour',
DESCRIPTION: 'enable coloured output',
},
DISABLE: {
FLAGS: '--no-colour',
DESCRIPTION: 'disable coloured output',
},
};
export { COLOUR }; |
import { NextResponse } from 'next/server';
const middleware = (req) => {
const { host } = new URL(process.env.APP_URL);
const url = req.nextUrl.clone();
const { pathname } = req.nextUrl;
const hostname = req.headers.get('host');
const currentHost = hostname.replace(`.${host}`, '');
if (pathname.startsWit... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><circle cx="15.5" cy="9.5" r="1.5" /><circle cx="8.5" cy="9.5" r="1.5" /><path d="M12 18c2.28 0 4.22-1.66 5-4H7c.78 2.34 2.72 4 5 4z" /><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10... |
import colors from 'vuetify/es5/util/colors'
export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
ssr: false,
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
titleTemplate: 'My Kanban Board... |
import Fbjs from '../../Class';
/**
* Custom events - standard events pairs
*/
const methodAttribute = [
["fbjs-click", "click"],
["fbjs-hoverOn", "mouseover"],
["fbjs-hoverOff", "mouseout"],
["fbjs-change", "change"]
];
/**
* Add events with corresponding method to all html nodes tags with custom attribut... |
import {Void} from './util.js'
export default function createDatabaseCreator(){
let addIndex = (store) => (objOrName) => {
objOrName = 'string' === typeof objOrName ? {name: objOrName} : objOrName
objOrName.options = objOrName.options || {}
store.createIndex(objOrName.name, objOrName.name,... |
import filter from 'lodash/filter';
import find from 'lodash/find';
import get from 'lodash/get';
import map from 'lodash/map';
import set from 'lodash/set';
import 'moment';
import Backup from '../../../../components/project/storages/databases/backup.class';
import Database from '../../../../components/project/storag... |
import chai from 'chai';
import sinon from 'sinon';
import chaiAsPromised from 'chai-as-promised';
import InvertedDriver from '../../../lib/drivers/inverted';
const expect = chai.expect;
chai.use(chaiAsPromised);
describe('Driver::Inverted', function() {
describe('#write', function() {
it('sends inverted value ... |
test("getHealth", done => {
const Health = require("../index");
const health = new Health({
compatibleWith: {
foo: "^1.0.0",
bar: "^2.0.0"
}
});
health.getHealth().then(result => {
expect(result.status).toBe("UP");
expect(result.uptime).toBeGreaterThan(0);
expect(typeof result.d... |
var ws;
var localip = "";
var connectionChecker = false;
function startConnectionToServer(ip) {
localip = ip;
ws = new WebSocket("ws://" + ip + ":600");
var sendResetterInterval;
ws.onopen = function() {
clearInterval(connectionChecker);
toastr.success("Connected to backend!");
setTimeout(ws.send("CurrentD... |
import { baseURL, streamingURL } from '../config/urls';
import { addMosaicToObject } from '../services/utils';
import { prepareAudioList } from '../actions/player';
export const updatePlaylistApi = async (playlistInfo) => {
const accessToken = playlistInfo.accessToken;
const playlistId = playlistInfo.id;
c... |
function CooperTest() {
};
CooperTest.prototype.cooper_calc = function (obj) {
var gender = obj.gender;
var age = obj.age;
var distance = obj.distance;
if(obj.gender === 'male'){
resultMale(obj);
}else {
resultFemale(obj);
}
};
function resultMale (obj) {
if(obj.age >= 13 &&... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const rule_1 = require("../rule");
class NoTrailingWhitespace extends rule_1.Rule {
documentation() {
return {
description: "Lines with trailing whitespace cause unnessecary diff when using version control and usually s... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _tsUtils = require("./tsUtils");
var _default = (0, _tsUtils.createRule)({
name: __filename,
meta: {
docs: {
category: 'Best Practices',
description: 'Use `.only` and `.skip` over `f` and ... |
const asyncHandler = require("./async");
const ErrorResponse = require("../utils/errorResponse");
const jwt = require("jsonwebtoken");
const User = require("../models/User");
// @desc: Protect routes
exports.protect = asyncHandler(async (req, res, next) => {
let token;
const { authorization } = req.headers;
if (... |
import Vue from 'vue';
import mrWidgetOptions from '~/vue_merge_request_widget/mr_widget_options.vue';
import eventHub from '~/vue_merge_request_widget/event_hub';
import notify from '~/lib/utils/notify';
import { stateKey } from '~/vue_merge_request_widget/stores/state_maps';
import mountComponent from 'spec/helpers/v... |
/*!
* @pixi/loaders - v5.3.4
* Compiled Mon, 14 Dec 2020 19:48:09 UTC
*
* @pixi/loaders is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/
import { Resource, Loader as Loader$1, middleware } from 'resource-loader';
import { Texture } from '@pixi/core';
/**
* Reference to **{@l... |
/**
* Created by Exper1ence on 2016/12/30.
*/
// import Loading from './gakk1/Loading';
// import Page from './gakk1/Page';
// import gakk1, {render, V,} from './gakk1';
// window.V = V;
// render(<Page>
// <div style.scss={{
// width: V.width,
// height: V.height,
// backgroundColor:'red'... |
/*
PLUGIN BY: Krammy
Trovo Link: https://trovo.live/krammy
Discord: Krammy#0001
Description: Function to toggle on and off visibility of a source.
Date: 07/07/2020
*/
var settings = require('../events/obs.Settings.json');
var isVisible = false;
module.exports = {
name: 'toggle', //CHANGE COMMAND HERE (ie: !toggle... |
function subSets(nums) {
const subSets = [];
generateSubsets(0, nums, [], subSets);
return subSets;
}
function generateSubsets(index, nums, current, subSets) {
console.log(index, nums, current, subSets);
subSets.push([...current]);
for (let i = index; i < nums.length; i++) {
current.pu... |
import { TemplateLite } from '@littleq/element-lite/template-lite.js';
import { render, html } from 'lit-html';
import { template } from './template.js';
import style from './style.styl';
import '../../components/footer-section/index.js';
import '../../smart-components/redirect-on-unauthenticated/index.js';
import '../... |
/**
* Swiper 3.4.1
* Most modern mobile touch slider and framework with hardware accelerated transitions
*
* http://www.idangero.us/swiper/
*
* Copyright 2016, Vladimir Kharlampidi
* The iDangero.us
* http://www.idangero.us/
*
* Licensed under MIT
*
* Released on: December 13, 2016
*/
}return this}),"o... |
import Prism from "prismjs";
import "prismjs/components/prism-elm";
import "./native-shim.js";
customElements.define(
"code-editor",
class extends HTMLElement {
constructor() {
super();
this._editorValue =
"-- If you see this, the Elm code didn't set the value.";
}
get editorValue(... |
(function(window) {
var SCRIPT = "self.onmessage = function(e) {\n var message = e.data;\n if (message.event === \"start\") {\n var files = message.data.files;\n files.forEach(function(file){\n importScripts(file);\n });\n }\n}\n"
function handleMessage(tc, e) {
var message = e.data;
switch (mes... |
export const UploadOutline = {
name: 'upload',
theme: 'outline',
icon: '<svg viewBox="64 64 896 896" focusable="false"><path d="M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v15... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'las';
var iconName = 'grin-wink';
var width = 512;
var height = 512;
var ligatures = [];
var unicode = null;
var svgPathData = 'M 256 64 C 150.12501 64 64 150.12501 64 256 C 64 361.87501 150.12501 448 256 448 C 361.87501 448 448 ... |
load("fcfbc86708bc3a4062c2091a062e13b6.js");
load("5df59863d90268eb6e10a53e77fee656.js");
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at h... |
import * as d from "../../source/dom99.js";
let globalNumber = 0;
// increment local does not update the list, how to make the data flow
const setAllGlobalCopyInside = function (value) {
const changeDescriptor = {
globalCopy: String(value),
};
d.feed(d.contextFromArray(["outerList", 0]), changeDe... |
/**
* Occitan translation for bootstrap-datepicker
*/
;(function($){
$.fn.datepicker.dates['oc'] = {
days: ["Dimenge", "Diluns", "Dimars", "Dimècres", "Dijòus", "Divendres", "Dissabte"],
daysShort: ["Dim", "Dil", "Dmr", "Dmc", "Dij", "Div", "Dis"],
daysMin: ["dg", "dl", "dr", "dc", "dj", "dv", "ds"],
months... |
"use strict";
import {
paths
} from "../gulpfile.babel";
import gulp from "gulp";
import browsersync from "browser-sync";
gulp.task("serve", () => {
browsersync.init({
server: "./dist/",
port: 4000,
notify: true,
browser: 'firefox'
});
gulp.watch(paths.views.watch, gul... |
/*
*
* 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... |
import { __rest } from "tslib";
import { toSet } from 'vega-util';
import * as CHANNEL from './channel';
import { CHANNELS, isColorChannel } from './channel';
import * as log from './log';
import * as TYPE from './type';
import { TYPE_INDEX } from './type';
import { contains, keys } from './util';
export var ScaleType;... |
(function() {
'use strict';
angular.module('survey')
.service('InputService', InputService);
InputService.inject = ['$http'];
function InputService($http){
//var url = '/api/input/';
var url = '../survey/client/form-builder/json/inputs.json';
var input = {};
var... |
const { inProduction } = require('laravel-mix');
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining s... |
/** @license React v16.9.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';(function(t,q){"object"===typeof exports&&"undefined"!==typeof mo... |
class Square {
constructor() {
this.value = null;
this.isHighlighted = false;
}
} |
define([
"dojo/_base/lang",
"./_base",
"dojox/string/tokenize",
"./Context",
"dojo/dom",
"dojo/dom-construct",
"dojo/_base/html",
"dojo/_base/array",
"dojo/_base/connect",
"dojo/_base/sniff"
], function(lang,dd,Tokenize,context,dom,domconstruct,html,array,connect,has){
dd.BOOLS = {checked: 1, disabled: 1, r... |
(function(doc, win) {
var docEl = doc.documentElement,
resizeEvt = "orientationchange" in window ? "orientationchange" : "resize",
recalc = function() {
var clientWidth = docEl.clientWidth;
if (clientWidth > 750) {
clientWidth = 750;
}
if (!clientWidth) return;
docEl.styl... |
const describe = require('../').describe
const it = require('../').it
describe('slow example', () => {
it('passes slowly', done => {
setTimeout(() => done(), 200)
})
it('passes medium slowly', done => {
setTimeout(() => done(), 60)
})
}) |
import fs from 'fs';
require('dotenv').config();
const getManifest = () => {
try {
if (process.env.NODE_ENV !== 'development') {
return JSON.parse(
fs.readFileSync(`${__dirname}/public/manifest.json`, 'utf8')
);
}
} catch (err) {
console.log(err);
}
};
export default getManifest... |
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function BsOctagonFill (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 16 16","fill":"currentColor"},"child":[{"tag":"path","attr":{"d":"M11.107 0a.5.5 0 01.353.146l4.394 4.394a.5.5 0 01.146.353v6.214a.5.5 0 01-.146.353l-4.394 4.394a... |
export const PICK_CARD = "PICK_CARD";
export const EMPTY_CARD = "empty"; |
// LICENSE : MIT
"use strict";
import assert from "power-assert";
import { TextlintKernel } from "@textlint/kernel";
import fs from "fs";
import path from "path";
const MarkdownPlugin = require("../src/index");
const lintFile = (filePath, options = true) => {
const kernel = new TextlintKernel();
const text = ... |
'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var SocialDomain = React.createClass({
displayName: 'SocialDomain',
mixins: [PureRenderMixin],
render: function render() {
return React.createElement(
... |
import {ADD_COUNTER, ADD_TO_CART} from './mutation-types'
export default {
// mutations唯一的目的就是修改state中的状态
// mutations中的每个方法尽可能完成的比较单一一点
// mutations最主要的作用就是做一些跟踪
[ADD_COUNTER](state, payload) {
payload.count++
},
[ADD_TO_CART](state, payload) {
payload.checked = true
state.cartList.push(payloa... |
/**
* Map legend panel creation
* lot of manual HTML and JS, don't know how to use Svelte template here a.t.m.
*/
import { spreadLevels, spreadLevelsHuman, spreadColor } from '../levels';
const getButton = () => {
const button = L.DomUtil.create('span', 'icon');
button.innerHTML += '<span class="do-open"><i cla... |
/**
* THIS FILE IS AUTO-GENERATED
* DON'T MAKE CHANGES HERE
*/
import { config } from './configReadonly.js';
import { createResultSet, createComplexClass, createRangeClass, createFalse, createNull, createTrue, createBigNumberClass, createMatrixClass, createReplacer, createI, createLN10, createLOG10E, createNaN, crea... |
'use strict';
const sc = require('/state-conductor/state-conductor.sjs');
const test = require('/test/test-helper.xqy');
const assertions = [];
const testFlow = sc.getFlowDocument('test-flow').toObject();
const branchingFlow = sc.getFlowDocument('branching-flow').toObject();
const noContextFlow = sc.getFlowDocument(... |
#!/usr/bin/env node
'use strict';
const meow = require('meow');
const updateNotifier = require('update-notifier');
const help = require('./src/help');
const pkg = require('./package.json');
const taskbook = require('.');
const cli = meow(help, {
flags: {
help: {
type: 'boolean',
alias: 'h'
},
... |
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/aui-widget-trigger/aui-widget-trigger.js']) {
}
var __cov_r8K8HeYGqKO397ZHtHRG_Q = __coverage__['build/aui-widget-trigger/aui-widget-trigger.js']; |
// HOW MUCH DO YOU KNOW ABOUT BEETHOVEN ?
const title = `How much <br> do you know <br> about Beethoven?`;
const items = [
{
question: 'Beethoven was born in 1770',
answers: [
['Yes', 2],
['No', 0],
['I don\'t know', 1],
],
},
{
question: 'Beethoven was a musical prodigy',
... |
import React, { PureComponent } from 'react';
import {
LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend,
} from 'recharts';
import Axios from 'axios'
const data = [
{
year: '2010', total: 4000, crime: 2400, amt: 2400,
},
{
year: '2011', total: 3000, crime: 1398, amt: 2210,
},
{
yea... |
require('./includes/configs.html');
require('./includes/constraints.html');
require('./includes/container-specs.html');
require('./includes/containerlabels.html');
require('./includes/environmentvariables.html');
require('./includes/hosts.html');
require('./includes/image.html');
require('./includes/logging.html');
req... |
define(['cannon'], function(CANNON) {
// Constants
var timestep = 1 / 60;
// Create world
var world = new CANNON.World();
world.gravity.set(0, -9800, 0); // Half gravity
world.broadphase = new CANNON.NaiveBroadphase();
world.solver.iterations = 10;
var ground = new CANNON.Body({ mass: ... |
const DecimalDefault = require('decimal.js');
const Decimal = DecimalDefault.clone({ precision: 15 });
function inverseAndFormat (amount, decimals) {
return Number(1/amount).toFixed(decimals)
}
const $get_turnover = (reserve_payout, tokens1, tokens2, p2, reserve_asset_decimals, decimals2) => {
const reserve_tu... |
const BaseTextAsserter = require('./BaseTextAsserter')
const MatchFunctions = require('../../MatchFunctions')
module.exports = class TextEqualsAnyAsserter extends BaseTextAsserter {
constructor (context, caps = {}) {
super(context, caps, MatchFunctions.equals(true), 'any')
}
} |
'use strict'
module.exports = require('smooth-progress/lib/progress') |
const assert = require('assert')
const path = require('path')
const ensurePath = require('../../src/ensure-path')
const context = require('../context/WroteContext')
const ensurePathTestSuite = {
context,
'should create a path to the file': (ctx) => {
const tempPath = path.join(ctx.TEMP_TEST_DIR, 'path/... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));
var _StepperStyled = require("./Stepper-styled");
function _interopRequireDefault(obj) { re... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function assign(target) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
var to = Object(target);
for (var index = 1; index < arguments.length; index++) {
var ... |
'use strict'
// Note that to use the websocket server, you also need the web server enabled
exports['default'] = {
servers: {
websocket: (api) => {
return {
enabled: true,
// you can pass a FQDN (string) here or 'window.location.origin'
clientUrl: 'window.location.origin',
... |
import { persistCrystallizeOrder } from 'lib/crystallize-order-handler';
import { orderQueryNormalizer } from 'lib/order-normalizer';
import { emailOrderConfirmation } from 'lib/emails';
import klarnaOrderAcknowledger from 'lib/util/klarna-order-acknowledger';
// TODO: Remove body parsing once zeit has updated error h... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { logoutUser } from "../store/actions/authActions";
import { FiUser } from "react-icons/fi";
class DropDown extends Component {
constructor() {
super();
this.state = {
showMenu: false
};
this.showMenu = th... |
import React from "react";
import { withStyles } from "@material-ui/styles";
import { useSelector } from "react-redux";
import { useStyles } from "../styles";
import CodeSnippet from "../../../common/CodeSnippet";
import StyledButton from "../../../common/StyledButton";
import DownloadMedia from "../../../../utility/Me... |
const hamburger = document.querySelector('.hamburger');
const menuContainer = document.querySelector('.menu-container');
const menuClose = document.querySelector('.close-menu');
const menuLinks = document.querySelector('.menu-links');
function showMenu() {
menuContainer.style.display = 'flex';
menuContainer.style.... |
// Regular expression that matches all symbols in the Bassa Vah block as per Unicode v9.0.0:
/\uD81A[\uDED0-\uDEFF]/; |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
/**
* @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/almond for details
*/
|
import { createStore, compose, applyMiddleware } from 'redux'
import rootReducer from '../reducers'
const enhancers = compose(
typeof window !== 'undefined' && process.env.NODE_ENV !== 'production'
? window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
: f => f
)
const createStoreWithMid... |
import * as ActionTypes from '../ActionTypes/ActionTypes';
export default function counter(state = {apiKey: null,isRegistered:false, notify_error: null, notify_success: null, isLoggedIn: false, user: null, isLoadingAuthInfo: true}, action) {
switch (action.type) {
case "tick":
return {...state, tic... |
import { TransactionGridFeature } from '../feature';
import { isCurrentRouteAccountsPage } from 'toolkit/extension/utils/ynab';
const TOOLKIT_RECONCILED_CLASS = 'toolkit-is-reconciled';
const YNAB_IS_CHECKED_CLASS = 'is-checked';
const YNAB_GRID_BODY_ROW_CLASS = 'ynab-grid-body-row';
const YNAB_GRID_BODY_SUB_CLASS = '... |
//
// Vivado(TM)
// rundef.js: a Vivado-generated Runs Script for WSH 5.1/5.6
// Copyright 1986-2015 Xilinx, Inc. All Rights Reserved.
//
var WshShell = new ActiveXObject( "WScript.Shell" );
var ProcEnv = WshShell.Environment( "Process" );
var PathVal = ProcEnv("PATH");
if ( PathVal.length == 0 ) {
PathVal = "E:/Xil... |
/* ===================================================
* artovamodel-vis timeline.js
* artovamodel.fi/visual-eng
* ===================================================
* FourCoffees 2013
*
* Licensed under the MIT License
* using d3.js, tabletop.js, jquery.js
* ===================================================... |
const path = require('path');
module.exports = {
entry: ['./src/index.js'],
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
library: 'ecqm-module-generator',
libraryTarget: 'umd',
},
module: {
rules: [
{
test: /\.m?js$/,
use: {
loader: ... |
/*
* web: scriptEditor.js
* XNAT http://www.xnat.org
* Copyright (c) 2005-2017, Washington University School of Medicine and Howard Hughes Medical Institute
* All Rights Reserved
*
* Released under the Simplified BSD.
*/
/**
* functions for XNAT script editor
* xnat-templates/screens/Scripts.vm
*/
var XNAT ... |
const crypto = require('crypto');
module.exports = function generateUniqueId() {
return crypto.randomBytes(4).toString('HEX');
}; |
import { auth, GoogleAuthProvider } from './firebaseApi';
const login = async () => {
try {
const result = await auth.signInWithPopup(GoogleAuthProvider);
return result.user;
} catch (ex) {
return null;
}
};
const logout = async () => {
await auth.signOut();
};
export default {
auth,
login,
... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Lint = require("tslint/lib/lint");
var sprin... |
export { default as Home } from '_screens/Home';
export { default as Login } from '_screens/Login';
export { default as Profile } from '_screens/Profile';
export { default as ForgotPassword } from '_screens/ForgotPassword'; |
$(document).ready(function () {
Chart.defaults.global.defaultFontFamily = '-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif';
Chart.defaults.global.defaultFontColor = '#292b2c';
$(".kaffy-editor").each(function () {
var textareaId = "#" + $(this).attr('id');
... |
'use strict';
/**
* This module configures Raven for reporting crashes
* to Sentry.
*
* Logging requires the Sentry DSN and Hypothesis
* version to be provided via the app's settings object.
*/
require('core-js/fn/object/assign');
var Raven = require('raven-js');
function init(config) {
Raven.config(config.... |
import React, {
Component
} from "react";
import {
connect
} from "react-redux";
import axios from "axios";
import {
withRouter
} from "react-router";
import {
LoginFailure
} from "./LoginFailure";
import {
RegisterSuccess
} from "./RegisterSuccess";
import LoginForm from "./LoginForm";
import * as actions from "... |
import Icon from '../components/Icon.vue'
Icon.register({"edit":{"width":1792,"height":1792,"paths":[{"d":"M888 1184l116-116-152-152-116 116v56h96v96h56zM1328 464q-16-16-33 1l-350 350q-17 17-1 33t33-1l350-350q17-17 1-33zM1408 1058v190q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.... |
const Employee = require("./Employee");
class Intern extends Employee {
constructor(name, id, email, school) {
super(name, id, email);
this.school = school;
}
getSchool() {
return this.school;
}
getRole() {
return 'Intern';
}
}
module.exports = Intern; |
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '@styled-icons/styled-icon';
export var FiberDvr = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.createEle... |
const Model = require('exser').Model;
const {errors, stringUtils} = require('exser').utils;
const moment = require('moment');
const ObjectID = require('exser').ObjectID;
class User extends Model {
constructor() {
super();
this.status = {
REJECT: 'reject',
NEW: 'new',
CONFIRM: 'confirm',
... |
/*!
FullCalendar Core Package v4.4.2
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
// Creating
// ----------------------------------------------------------------------------------------------------------------
var elementPropHash = {
className: true,
colSpan: true,
rowSpan: true
};
var co... |
import { solve } from "nidoran";
// const result = solve([1,2,3]);
const result = solve([[0, 0, 1, 0, 0, 4, 0, 0, 2], [0, 5, 0, 0, 0, 3, 0, 1, 9], [4, 7, 0, 0, 0, 0, 0, 0, 5], [0, 0, 0, 0, 8, 0, 2, 0, 7], [0, 0, 4, 0, 9, 0, 8, 0, 0], [8, 0, 6, 0, 3, 0, 0, 0, 0], [2, 0, 0, 0, 0, 0, 0, 6, 8], [1, 8, 0, 2, 0, 0, 0, 4, 0]... |
import React from 'react';
import Alert from './Alert';
import Navbar from './Navbar';
export default class Login extends React.Component {
constructor(props){
super(props);
this.render = this.render.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
this.state = {
r... |
//! moment-holiday.js
//! version : 1.5.1
//! author : Kodie Grantham
//! license : MIT
//! https://github.com/kodie/moment-holiday
(function() {
var moment = require('moment')
var parserExtensions = [];
var parseHoliday = function(self, date, adjust) {
var days = [], pd;
for (var i = 0; i < parserExt... |
import {Meteor} from 'meteor/meteor';
import Styles from './Styles';
const initialCode = `{
backgroundColor: new Color('blue').alpha(0.5)
borderRadius: 5
}`;
Meteor.methods({
newStyle(prototypeId) {
return Styles.insert({
createdAt: Date.now(),
prototype: prototypeId,
code: initialCode,
... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'font', 'pt', {
fontSize: {
label: 'Tamanho',
voiceLabel: 'Tamanho da letra',
panelTitle: 'Tamanho da letra'
},
label: 'Fonte',
panelTitle: ... |
import React from 'react'
import { Snackbar, IconButton, SnackbarContent } from '@material-ui/core'
import CloseIcon from '@material-ui/icons/Close'
import theme from '../theme'
//eslint-disable-next-line
export default function PlainSnackbar ({ message, duration = 3000, value, onClose }) {
return (
<Snac... |
import { default as cx } from "classnames"
import { Link } from "gatsby"
import React from "react"
import styles from "./button.module.scss"
const Button = ({
text,
to,
className,
...rest
}) => {
const Root = to ? Link : 'button';
return (
<Root className={ cx(styles.root, className) } to={ to ? to ... |
/* jshint esversion: 6,-W097, -W040, node: true, expr: true, undef: true */
module.exports= function({app, $gulp_folder, gulp, error, $g, $o, $run}){
const /* params */
root_folder_name= app.name, //used in gulp_place
docs_folder= "docs/",
docs_modifications= "src_docs/modifications/",
... |
import React from "react";
import {
BrowserRouter as Router,
Switch,
Route,
Link
} from "react-router-dom";
import Home from './components/Home'
import UserPage from './components/UserPage'
import NotFound from "./components/NotFound";
import CommentPage from "./components/CommentPage"
export default function... |
import React, { Component } from 'react';
import { Button, Modal, ModalBody, ModalFooter, ModalHeader } from 'reactstrap';
/*
Created by Luan on 2018-08-07
A Common Modal to be used in whole project.
*/
class CommonModal extends Component{
constructor(props) {
super(props);
... |
const electron = require('electron');
const url = require('url');
const path = require('path');
const fs = require('fs');
const Tray = electron.Tray;
const {app, BrowserView, BrowserWindow, Menu, Notification} = electron;
const { net } = require('electron');
const requestlib = require('request');
const shell = require(... |
// 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... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'iframe', 'fi', {
border: 'Näytä kehyksen reunat',
noUrl: 'Anna IFrame-kehykselle lähdeosoite (src)',
scrolling: 'Näytä vierityspalkit',
title: 'I... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.