text stringlengths 2 1.05M |
|---|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["3ebb06e0"],{"8c6c":function(n,o,e){"use strict";e.r(o);var t=function(){var n=this,o=n.$createElement,e=n._self._c||o;return e("div",{staticClass:"q-pa-md q-gutter-sm"},[e("show-markdown",{attrs:{label:"Marked"},scopedSlots:n._u([{key:"markdown",fn:function(){... |
export const AND = 'AND'
export const OR = 'OR'
|
!function(){var e=["Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program.","I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones.","My name is Linus Torvalds and I am your go... |
const { NotImplementedError } = require('../extensions/index.js');
/**
* Given matrix where you have to find cats by ears "^^"
*
* @param {Array<Array>} matrix
* @return {Number} count of cats found
*
* @example
* countCats([
* [0, 1, '^^'],
* [0, '^^', 2],
* ['^^', 1, 2]
* ]) => 3`
*
*/
function coun... |
module.exports = /*
* Generated by PEG.js 0.10.0.
*
* http://pegjs.org/
*/
(function() {
"use strict";
function peg$subclass(child, parent) {
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor();
}
function peg$SyntaxError(message, expec... |
const { dbURL } = require('../../config.json');
const Logger = require('../util/Logger');
const path = require('path');
const readdir = require('util').promisify(require('fs').readdir);
const Sequelize = require('sequelize');
const db = new Sequelize(dbURL, { logging: false });
class Database {
static get db() {
r... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'indent', 'id', {
indent: 'Tingkatkan Lekuk',
outdent: 'Kurangi Lekuk'
});
|
"use strict";
const Hapi = require('hapi');
const Wreck = require('wreck');
const server = new Hapi.Server({
port: 3000
});
const handler = (request, h) => {
return "Order API";
};
server.route({
method: 'GET',
path: '/',
handler
});
server
.start()
.then(() => {
console.log(`Ser... |
define(
"dijit/_editor/nls/zh/FontChoice", //begin v1.x content
({
fontSize: "大小",
fontName: "字体",
formatBlock: "格式",
serif: "有衬线",
"sans-serif": "无衬线",
monospace: "等宽字体",
cursive: "草书",
fantasy: "虚线",
noFormat: "无",
p: "段落",
h1: "标题",
h2: "子标题",
h3: "二级子标题",
pre: "预设有格式的",
1: "XXS 号",
2: "XS 号",
3:... |
'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
BASE_API: '"http://devapi.isouth.com:8080/"',
})
|
define({main:{pl:{identity:{version:{_cldrVersion:"38"},language:"pl"},dates:{timeZoneNames:{hourFormat:"+HH:mm;-HH:mm",gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",regionFormat:"czas: {0}","regionFormat-type-daylight":"{0} (czas letni)","regionFormat-type-standard":"{0} (czas standardowy)",fallbackFormat:"{1} ({0})",zone:{A... |
var BijeloPolje =
"POLYGON((19.557618 43.242219,19.558128 43.23954,19.556673 43.2352,19.554281 43.231857,19.552466 43.228506,19.551039 43.225291,19.548875 43.223351,19.544428 43.222428,19.540971 43.222615,19.538681 43.22335,19.536576 43.2238,19.529256 43.223337,19.526547 43.22267,19.524607 43.221993,19.525922 43.22... |
'use strict';
function D3_RadialTidyTree(selector, aProps)
{
var svg = d3.select(selector);
if (svg.empty() == true)
{
console.log('D3RadialTidyTree: Could not identify element based on selector: '+selector);
return;
}
svg.style("height","auto");
var nSvgWidth = svg.node().getBoundingClientRect().width;
... |
import { Link } from "react-router-dom";
import Listing from "../components/Listing";
import './homePage.css';
import data from "../Data.json";
export default function HomePage() {
return (
<div className="listingList">
{data.listings.map(({ id, image, name, price, stocked }) => {
return (
... |
import MockAdapter from 'axios-mock-adapter';
import Api from '~/api';
import axios from '~/lib/utils/axios_utils';
import httpStatus from '~/lib/utils/http_status';
describe('Api', () => {
const dummyApiVersion = 'v3000';
const dummyUrlRoot = '/gitlab';
const dummyGon = {
api_version: dummyApiVersion,
r... |
module.exports = {
entry: [
'./src/index.js'
],
output: {
path: __dirname,
publicPath: '/',
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader'
}
}]
}
};
|
/*global define*/
define([
'../Core/Color',
'../Core/defined',
'../Core/defineProperties',
'../Core/DeveloperError',
'../Scene/Material'
], function(
Color,
defined,
defineProperties,
DeveloperError,
Material) {
'use st... |
ace.config.setModuleUrl('ace/ext/beautify', require('file-loader!./src-noconflict/ext-beautify.js'))
ace.config.setModuleUrl('ace/ext/elastic_tabstops_lite', require('file-loader!./src-noconflict/ext-elastic_tabstops_lite.js'))
ace.config.setModuleUrl('ace/ext/emmet', require('file-loader!./src-noconflict/ext-emmet.js... |
/*!
* ${copyright}
*/
/**
* Helper functionality for table, list and tree controls for the Support Tool infrastructure.
*/
sap.ui.define(["sap/ui/support/library", "sap/base/Log"],
function(SupportLib, Log) {
"use strict";
// shortcuts
var Audiences = SupportLib.Audiences, // Control, Internal, Application
C... |
/**
* NOTE: This file must be run with babel-node as Node is not yet compatible
* with all of ES6 and we also use JSX.
*/
import url from 'url';
import React from 'react';
import express from 'express';
import webpack from 'webpack';
import { renderToStaticMarkup } from 'react-dom/server';
import config from './web... |
export default (state = {
lastRefKey: null,
total: 0,
items: []
}, action) => {
switch (action.type) {
case 'GET_PRODUCTS_SUCCESS':
return {
...state,
lastRefKey: action.payload.lastKey,
total: action.payload.total,
items: [...sta... |
(function() {
var EventEmitter = Faye.EventEmitter = function() {};
/*
Copyright Joyent, Inc. and other Node contributors. All rights reserved.
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 with... |
import realm from '../models/index';
export const setSettings = (settings) => new Promise((resolve, reject) => {
try{
realm.write(() => resolve(realm.create('Settings', settings, true)));
} catch (error) {
reject(error);
}
});
export const getSettings = () => realm.objects('Settings'); |
'use strict'
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.bulkInsert('Categories', [
{
id: '775d58e1-22f8-424f-9d2b-b56a389b82ec',
name: 'Category3',
description: 'lorem ipsum dolor sit amet'
},
{
id: '92199f93-155a-4573-a2c... |
import Raw from '#/base/Raw';
export default class Markdown extends Raw {
static type = 'Markdown';
toMarkdown() {
const rexp = /^#{1,}/;
return (
'\n' +
this.raw
.split('\n')
.map((line) => {
const res = rexp.exec(line);
return res
? line.replac... |
import TheMovieThumb from './components/TheMovieThumbnailComponent.js';
import HomePage from './components/TheHomePageComponent.js';
import HeaderComponent from './components/HeaderComponent.js';
import HomeComponent from './components/TheHomeComponent.js';
import FooterComponent from './components/FooterComponent.js'... |
import service from '@/utils/request'
export function SelectAnswerPaper(data) {
return service({
url: 'KS_AnswerPaper/SelectAnswerPaper',
method: 'post',
data
})
}
export function SelectAnswerPaperDetailById(data) {
return service({
url: 'KS_AnswerPaper/SelectAnswerPaperDet... |
#!/usr/bin/env node
const Sema = require('async-sema')
const redis = require('promise-redis')
async function f () {
const red = new Sema(3, { initFn: () => redis().createClient(process.env.REDIS_URL) })
const db = await red.acquire()
console.log(await db.get('id'))
red.release(db)
const dbs = await red.dr... |
/**
* Tests for the Graph#findCycle() method.
*/
(function() {
'use strict';
load('jstests/libs/cycle_detection.js'); // for Graph
(function testLinearChainHasNoCycle() {
const graph = new Graph();
graph.addEdge('A', 'B');
graph.addEdge('B', 'C');
graph.addEdge('C', 'D')... |
/*
* The MIT License (MIT)
* Copyright (c) 2016 Jim Liu
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi... |
import React, { useEffect, useState } from 'react'
import composerService from '../services/composers'
const Composer = ({composer: {id, lastname, firstname}}) => {
const [songs, setSongs] = useState([])
useEffect( () => {
composerService.getSongs(id).then(
s => setSongs(s)
)
}... |
import JSBI from 'jsbi';
export { default as JSBI } from 'jsbi';
import invariant from 'tiny-invariant';
import warning from 'tiny-warning';
import { getAddress, getCreate2Address } from '@ethersproject/address';
import _Big from 'big.js';
import toFormat from 'toformat';
import _Decimal from 'decimal.js-light';
import... |
'use strict';
var path = require('path');
var write = require('write-json');
var exclude = ['grunt', 'JSONStream', 'jsonstream', 'consolidate', 'dateformat', 'grunt-cli'];
function isValid(repo, stats) {
if (repo.private === true || repo.fork === true) {
return true;
}
if (/grunt-contrib/.test(repo.name)) ... |
/**
* Title Drawing Book
* URL https://www.hackerrank.com/challenges/drawing-book
*
* Author Norman Gamage <norman.gamage@gmail.com>
* Version 1.0
* Last Update 2017 May 15
*/
function solve(n, p) {
const front = Math.floor(p / 2);
const back = Math.floor(n / 2) - front... |
// requires local modules: websock, util
// requires test modules: fake.websocket, assertions
/* jshint expr: true */
var assert = chai.assert;
var expect = chai.expect;
describe('Websock', function() {
"use strict";
describe('Queue methods', function () {
var sock;
var RQ_TEMPLATE = new Uint8... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module node-opcua-certificate-manager
*/
// tslint:disable:no-empty
const chalk_1 = require("chalk");
const fs = require("fs");
const mkdirp = require("mkdirp");
const env_paths_1 = require("env-paths");
const node_opcua_debug_1 = req... |
/*!
* Chart.js
* http://chartjs.org/
* Version: 2.4.0
*
* Copyright 2016 Nick Downie
* Released under the MIT license
* https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
*/
(function (f) {
if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = f()
} else if... |
var {FiniteAutomaton} = require('../machines');
class DFA extends FiniteAutomaton {
nextState(from, on) {
let next = null;
// console.log("from:", from, "on:", on.codePointAt(0));
for (let {to, transition} of this.transitionsFrom(from)) {
// console.log(" - to:", to, "on:", transition);
if ... |
/**
* Storage and control for undo information within a CodeMirror
* editor. 'Why on earth is such a complicated mess required for
* that?', I hear you ask. The goal, in implementing this, was to make
* the complexity of storing and reverting undo information depend
* only on the size of the edited or restore... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../../utils/Class');
var Vector2 = require('../../math/Vector2');
function GetLength (x1, y1, x2, y2)
{
var x = x1 - x... |
/* global window: false */
'use strict';
var defaults = require('./core.defaults');
var Element = require('./core.element');
var helpers = require('../helpers/index');
defaults._set('global', {
animation: {
duration: 0,
easing: 'easeOutQuart',
onProgress: helpers.noop,
onComplete: helpers.noop
}
});
module... |
module.exports = {
verbose: false,
testEnvironment: 'node',
moduleFileExtensions: [
'js',
'json',
'node',
],
testRegex: '(/__tests__/.*|\\.test)\\.js$',
testPathIgnorePatterns: [
'node_modules',
'dist',
],
coverageDirectory: 'coverage',
collect... |
import styled from 'styled-components';
export const Main = styled.div`
width: 100%;
background: var(--green);
`;
export const Container = styled.nav`
width: 100%;
max-width: 1200px;
display: flex;
flex-wrap: wrap;
margin: 0 auto;
padding: 1rem;
div {
padding: 1rem;
width: 50%;
}
p {
... |
import template from './sw-settings-tax-list.html.twig';
const { Component, Mixin } = Shopware;
const { Criteria } = Shopware.Data;
Component.register('sw-settings-tax-list', {
template,
inject: ['repositoryFactory'],
mixins: [
Mixin.getByName('listing')
],
data() {
return {
... |
// This file contains methods that convert the path node into another node or some other type of data.
import * as t from "@babel/types";
import nameFunction from "@babel/helper-function-name";
export function toComputedKey(): Object {
const node = this.node;
let key;
if (this.isMemberExpression()) {
key =... |
//防抖函数debounce()
export function debounce(func, delay) {
let timer = null
return function (...args) {
if (timer) clearTimeout(timer)
timer = setTimeout(() => {
func.apply(this, args)
},delay)
}
}
export function formatDate(date, fmt) {
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, ... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from 'Components/app';
ReactDOM.render(<App />, document.getElementById('root'));
|
/**-----------------------------------------------------------------------------------------
* Copyright © 2020 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*--------------------------------------------------------------... |
const Book = require('../models/Book');
const Order = require('../models/Order');
const errors = require('restify-errors');
const strings = require('../strings');
exports.decrementBooksByOrderId = async (req,res,next,id) => {
try{
let confirmed = false, error = false, erorrMessage = strings.NO_COUNT_OF_BOOKS, de... |
!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){functio... |
define(["require", "exports"], function(require, exports) {
var t2;
});
|
import Vue from 'vue'
import App from '@/App'
import router from '@/router'
import store from '@/store'
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')
|
"use strict";
/**
* @author Piotr Witek <piotrek.witek@gmail.com> (http://piotrwitek.github.io)
* @copyright Copyright (c) 2016 Piotr Witek
* @license MIT
*/
Object.defineProperty(exports, "__esModule", { value: true });
// deprecated
var functional_helpers_1 = require("./functional-helpers");
exports.getReturnOfEx... |
/*
* @Description: 全局Js
* @Date: 2020-09-12 17:42:34
*/
// 确保在文档完全加载后,运行Js函数
function addLoadEvent(func) {
let oldonload = window.onload;
if (typeof window.onload != "function")
window.onload = func;
else {
window.onload = () => {
oldonload();
func();
}
}
}
// 与insertBefore对应,在目标元素的前... |
/******/ (() => { // webpackBootstrap
var __webpack_exports__ = {};
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable insta... |
import * as React from "react";
import {
Text,
Button,
Icon,
Left,
Body,
Right,
Card,
CardItem
} from "native-base";
import {WorkItemTypes} from "../../../models";
const capitalize = require("underscore.string/capitalize");
import styles from "./WorkItemCountCard.styles";
import workItemStyles from ... |
if(!this.JSON){this.JSON={};}
(function(){function f(n){return n<10?'0'+n:n;}
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinut... |
/* 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 http://mozilla.org/MPL/2.0/. */
'use strict';
var GaiaApps = {
normalizeName: function(name) {
return name.replace(/[- ]+/g, '').toLowerCa... |
import React from "react";
import s from "./Loader.module.scss";
const Loader = () => {
return (
<div className={s.modalLoader}>
<div className={s.loader}></div>
</div>
);
};
export default Loader;
|
function showFiles(input, filenames, filesizes) {
var input = document.getElementById(input)
var filenames = document.getElementById(filenames)
var filesizes = document.getElementById(filesizes)
filenames.innerHTML = ''
filesizes.innerHTML = ''
for (var x = 0; x < input.files.length; x++) {
var file... |
const Discord = require('discord.js');
const backup = require('discord-backup');
exports.run = async (client, message, args) => {
// If the member doesn't have enough permissions
if(!message.member.hasPermission('MANAGE_MESSAGES')){
return message.channel.send(':x: You need to have the manage messages... |
"use strict";
/*
This file is part of web3x.
web3x is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3x is distributed ... |
// Copyright 2014 The Oppia 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 required by ap... |
ApplicationKernel.namespace('Vaultier.dal.mixin');
var decryptedField = Vaultier.dal.mixin.EncryptedModel.decryptedField;
/**
* @module vaultier-dal-mixin
* @class Vaultier.dal.mixin.NodeNoteMixin
*/
Vaultier.dal.mixin.NodeNoteMixin = Ember.Mixin.create({
note: decryptedField('data', 'note')
});
|
import axios from 'axios';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './../reducers/main.js';
var store = {};
function initializeStore(id, callback) {
return axios
.get(`/catwalk/${id}`)
.then((response) => {
var data = response.data... |
import React from 'react';
import { Card } from 'react-bootstrap';
import './style.css'
function HugLifeCard({ huglifeEp, loading }) {
if (loading) return <h3>Loading...</h3>;
return (
<div>
{huglifeEp.map((result, index) => (
<Card className="mt-2 p-2 episodeCard">
... |
// Modified from angular-quickstart-lib
// https://github.com/filipesilva/angular-quickstart-lib/blob/master/build.js
'use strict';
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const camelCase = require('camelcase');
const ngc = require('@angular/compiler-cli/src/main').main;
... |
/**
* GA Event tracking
*/
/**
* Helpers
*/
/**
* isLink helper
* @param {DOMNode} node
* @return {Boolean}
*/
const isLink = (node) => node.nodeName === "A";
/**
* isInternalLink helper
*
* Does this anchor link to a URL inside the current page's domain?
*
* @param {DOMNode} node
* @return {Boolean}... |
import React from "react"
import ArrowRight from "../../assets/images/arrow-right.inline.svg"
import { classNames } from "../../util/functions"
import "./button.scss"
import { PulseLoader } from "react-spinners"
import Link from "gatsby-link"
const getElevationClass = ({ hasWhiteBackground, isDisabled }) => {
if (is... |
const fs = require('fs')
const useRoutes = function() {
fs.readdirSync(__dirname).forEach(file => {
if(file === 'index.js') return
const router = require(`./${file}`)
this.use(router.routes())
this.use(router.allowedMethods())
})
}
module.exports = useRoutes |
import React from 'react';
import axios from "axios";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import { withRouter } from "react-router";
import { NavLink } from "react-router-dom";
const NavigationComponent = (props) => {
const dynamicLink = (route, linkText) => {
return (
... |
class ALink extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: "open"});
this.shadowRoot.innerHTML = `
<style>
div{ color: blue; }
</style>
<slot></slot>
`;
this._slot = this.shadowRoot.children[1];
this.addEventListener("click", e => e.setDefault(this._onClick.bind(t... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../.... |
import { withErrorMiddleware } from "../middleware";
/**
* Get trip duration (accounting for traffic) for helping to calculate basePrice
*/
const getTripDuration = async (req, res) => {
const mapBoxUrl = `${process.env.MAPBOX_DIRECTIONS_API_URL}/${req.body.pickupCoordinates};${req.body.dropoffCoordinates}.json?acc... |
import { NotImplementedError } from '../extensions/index.js';
/**
* Given a string, return its encoding version.
*
* @param {String} str
* @return {String}
*
* @example
* For aabbbc should return 2a3bc
*
*/
export default function encodeLine(str) {
//throw new NotImplementedError('Not implemented');
let a... |
describe('Specialized Defenses', function() {
integration(function() {
describe('Specialized Defenses\'s ability', function() {
beforeEach(function() {
this.setupTest({
phase: 'conflict',
player1: {
inPlay: ['matsu-b... |
import React from 'react';
import './styles.css';
export default function Account() {
return (
<div className='account-page'>
<h1>Account</h1>
</div>
);
}
|
var c4 = require('./c4Api/c4Api.js');
var nitro = require('bbcparse/nitroSdk.js');
var xml2j = require('jgexml/xml2json.js');
var query = nitro.newQuery();
query.add(c4.commonPlatformC4,'',false);
var options = {};
options.headers = {
Accept: 'application/xml'
};
options.api_key_name = 'apikey';
var cat = process.a... |
// Webpack config for creating the production bundle.
var path = require('path');
var webpack = require('webpack');
var writeStats = require('./utils/writeStats');
var CleanPlugin = require('clean-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var strip = require('strip-loader');
va... |
import React from 'react'
import { PageContent } from '../components/layout'
import { Title, Heading, Paragraph } from '../components/typography'
import { SEO } from '../components/seo'
import { TitleCard, Card, CardHeader, CardBody } from '../components/card'
import { BulletedList, ListItem } from '../components/list'... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M22 8l-4-4v3H3v2h15v3l4-4zM2 16l4 4v-3h15v-2H6v-3l-4 4z"
}), 'SyncAltOutlined'); |
const CACHE_NAME = "my-site-cache-v1";
const DATA_CACHE_NAME = "data-cache-v1";
const urlsToCache = [
"/",
"/db.js",
"/index.js",
"/manifest.json",
"/styles.css",
"/icons/icon-192x192.png",
"/icons/icon-512x512.png"
];
self.addEventListener("install", function(event) {
event.waitUntil(
caches.open... |
'use strict';
var View = require('views/base/view');
var context = require('models/context');
module.exports = View.extend({
el: '#wait-container',
template: 'wait',
initialize: function (options) {
//first and last render
this.render();
//listen for state change
this.listenTo(context, 'change... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
function Square(props){ // Doesn't have state. So we can re-write this class as a function.
return (
<button
className="square"
onClick={props.onClick}
>
{props.value}
</button>
);
}
... |
// npm version <newver>
module.exports = version
var exec = require("child_process").execFile
, semver = require("semver")
, path = require("path")
, fs = require("graceful-fs")
, chain = require("slide").chain
, log = require("npmlog")
, which = require("which")
, npm = require("./npm.js")
version.usa... |
window.onload = function () {
var headTwo = (function () {
headTwo = document.querySelectorAll("h2");
var headTwo_array = [].slice.call(headTwo);
headTwo_array.forEach(function(element, index){
element.setAttribute("id", "heading" + index)
});
... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'uicolor', 'mk', {
title: 'Палета со бои',
options: 'Color Options', // MISSING
highlight: 'Highlight', // MISSING
selected: 'Se... |
module.exports = (app) => {
const routes = app.get('routes');
const auth = app.get('auth');
const { mongoose, User, Story } = app.get('dbInterface');
app.route(routes.API_READERS)
.all(auth)
.post((req, res) => {
const { storyId } = req.params;
const user_id = re... |
define('bitbucket/internal/util/region-scroll-forwarder', ['module', 'exports', 'baconjs', 'jquery', 'lodash', 'bitbucket/internal/util/bacon', 'bitbucket/internal/util/function'], function (module, exports, _baconjs, _jquery, _lodash, _bacon, _function) {
'use strict';
Object.defineProperty(exports, "__esModu... |
/* */
"format cjs";
import baseSortedIndex from './_baseSortedIndex';
import eq from './eq';
/**
* This method is like `_.indexOf` except that it performs a binary
* search on a sorted `array`.
*
* @static
* @memberOf _
* @category Array
* @param {Array} array The array to search.
* @param {*} value The value... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BezierCurve = exports.BezierCurvepPoints = void 0;
const Point_1 = require("./Point");
const Polygon_1 = require("./Polygon");
var BezierCurvepPoints;
(function (BezierCurvepPoints) {
BezierCurvepPoints[BezierCurvepPoints["SOURCE"]... |
/** @jsx jsx */
import {jsx, css} from '@emotion/core'
const QuizMap = () => (
<p>
<img
src="/static/images/quiz/map-a.png"
css={css`
height: 180px;
`}
/>
</p>
)
export default QuizMap
|
// GLOBAL VARIABLES
// ==============================================================
var wordBank = [
'alpha',
'bravo',
'charlie',
'delta',
'echo',
'foxtrot',
'golf',
'hotel',
'india',
'juliett',
'kilo',
'lima',
'mike',
'november',
'oscar',
'papa',
'quebec',
'romeo',
'sierra',
'tango',
'uniform',... |
import io from 'socket.io-client';
import { config } from './config'
const socket = io(config.apiRoot + '/cam');
export { socket }
|
(function(angular) {
"use strict";
controller.$inject = ["widgets", "$state"];
function controller(widgets, $state) {
var vm = this;
vm.$onInit = function() {
widgets.getAll().then(function(results) {
vm.widgets = results.data;
});
};
vm.editWidget = function(widgetId) {
$state.go("edi... |
import React, { Component } from 'react'
import Box from '@material-ui/core/Box'
import Container from '@material-ui/core/Container'
import Input from '../Components/Input'
import TimerDisplay from '../Components/TimerDisplay'
export default class CountdownTimer extends Component {
state = {
minute: 0,
... |
'use strict';
// package references
import * as axios from 'axios';
// db options
const baseApiUrl = 'http://localhost:1710';
// add author
const addAuthor = (firstName, lastName, country) => {
return new Promise((resolve, reject) => {
axios
.post(`${baseApiUrl}/persons`, {
... |
import React from 'react'
import ScaleLoader from "react-spinners/ScaleLoader";
function Spinner (){
return(
<div style={{textAlign: "center", marginTop: "20px"}}>
<ScaleLoader
height={35}
width={4}
radius={2}
margin={2}
... |
var path = require('path'),
fs = require('fs'),
url = require('url'),
http = require('http'),
https = require('https'),
express = require('express'),
open = require('open'),
Mustache = require('mustache'),
glob = require('glob'),
md = require('../node_modules/reveal.js/plugin/markdow... |
var renderers = (function () {
var drawSnake = function (ctx, snake) {
for (var i = 0; i < snake.parts.length; i++) {
drawSnakePart(ctx, snake.parts[i]);
}
};
var drawSnakePart = function (ctx, part) {
ctx.fillStyle = 'orange';
var position = part.getPosition();... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.