text stringlengths 2 1.04M |
|---|
#!/usr/bin/env node
process.stdin.resume();
process.stdin.on('data', function(data) {
try {
json = JSON.parse(data.toString());
console.log(JSON.stringify(json, null, 2));
} catch(err) {
console.log(data.toString());
}
});
process.stdin.on('end', function() { process.exit(0) }); |
/**
* skylark-vvveb - A version of Vvveb.js that ported to running on skylarkjs
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylark-integration/skylark-vvveb/
* @license MIT
*/
define(["../Vvveb","skylark-codemirror/CodeMirror","skylark-codemirror/mode/xml/xml"],function(e,i){return e.C... |
$( document ).ready(function() {
$(function () {
})
}); |
Bridge.define("System.Text.RegularExpressions.Regex"); |
// Call the dataTables jQuery plugin
$(document).ready(function () {
$('#Table1').DataTable();
});
$(document).ready(function () {
$('#Table2').DataTable();
});
$(document).ready(function () {
$('#Table3').DataTable();
});
$(document).ready(function () {
$('#Table4').DataTable();
}); |
module.exports = {
env: {
commonjs: true,
es6: true,
node: true
},
extends: 'standard-with-typescript',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaVersion: 2020,
project: './tsconfig.json'
},
rules: {
"@typescript-eslint/no-float... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import promise from 'redux-promise';
import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThe... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @fileOverview
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDIT... |
var group__group__trigmux__functions =
[
[ "Cy_TrigMux_Connect", "group__group__trigmux__functions.html#ga9a10a91df7c51ba3b61fdedbcc2d0cfe", null ],
[ "Cy_TrigMux_SwTrigger", "group__group__trigmux__functions.html#gad3c1d26d25a47bc4beca499bf0407c80", null ]
]; |
/*
ListJS Beta 0.2.0
By Jonny Strömberg (www.jonnystromberg.com, www.listjs.com)
OBS. The API is not frozen. It MAY change!
License (MIT)
Copyright (c) 2011 Jonny Strömberg http://jonnystromberg.com
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated document... |
/*
Copyright 2019 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
const { getClient, saveUsers, users } = require('../shared/db')
const { prodMongoDbUri, prodDatabaseName } = require('../shared/vars')
const client = getClient(prodMongoDbUri, prodDatabaseName)
client.connect()
.then(conn => conn.db())
.then(db => saveUsers(db, users))
.finally(() => client.close()) |
import view from './app/views/user'
view.render().then(console.log) |
'use strict';
angular.module('gymCompetitionApp')
.controller('HeaderController', ['$scope', '$state', '$rootScope', 'authFactory', function ($scope, $state, $rootScope, authFactory) {
$scope.loggedIn = false;
$scope.clubid = "-1";
$scope.sponsorid = "-1";
$sco... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import ReactRouterPropTypes from 'react-router-prop-types';
import { withRouter } from 'react-router';
import {
Modal,
ModalFooter,
Button,
} from '@folio/stripes-components';
const histo... |
export default {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/dist/'],
collectCoverageFrom: ['src/*.ts'],
globals: {
'ts-jest': {
useESM: true,
},
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
}
}; |
const Easings = {
Linear: function (t) { return t; },
InQuad: function (t) { return t * t; },
OutQuad: function (t) { return t * (2 - t); },
InOutQuad: function (t) {
if ((t *= 2) < 1) {
return 0.5 * t * t;
}
return -0.5 * (--t * (t - 2) - 1);
},
InCubic: function (t) { return t * t * t; }... |
/*
Copyright 2020 Amazon.com, Inc. or its affiliates. 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
without restriction, including without limitation the rights to us... |
webpackHotUpdate_N_E("pages/index",{
/***/ "./pages/index.js":
/*!************************!*\
!*** ./pages/index.js ***!
\************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/***/ })
}) |
import Ember from 'ember';
import config from 'diesel/config/environment';
export var STEPS = [
{ key: 'organization', name: 'Organization', description: 'Basic information about your organization' },
{ key: 'locations', name: 'Locations', description: 'Manage your workforce locations' },
{ key: 'te... |
export default '--None--'; |
// Get the modal
var modal = document.getElementById('uploadModal');
// Get the button that opens the modal
var btn = document.getElementById("upload");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks the button, open the modal
btn.oncl... |
const bootstrap = require('../../test_helper');
const sinon = require('sinon');
const { expect } = require('chai');
const route = '/auth';
describe('IMPLICIT id_token', () => {
before(bootstrap(__dirname)); // provider, agent, AuthorizationRequest, wrap
['get', 'post'].forEach((verb) => {
describe(`IMPLICIT ... |
var NAVTREEINDEX91 =
{
"rtbsd_8c.html#a6da3b6a9026b15be879d803ce8bacf12":[36,0,0,3,226,4],
"rtbsd_8c.html#a79ebdb7519c76cb13578426cef8c1aa1":[36,0,0,3,226,5],
"rtbsd_8c.html#a9bee57fa275d830a734d06ada85d958e":[36,0,0,3,226,2],
"rtbsd_8c.html#abbbe6f87facb7b9e510a431cfb584331":[36,0,0,3,226,8],
"rtbsd_8c.html#adf681f586... |
/*
TimelineJS - ver. 2.35.1 - 2014-11-19
Copyright (c) 2012-2013 Northwestern University
a project of the Northwestern University Knight Lab, originally created by Zach Wise
https://github.com/NUKnightLab/TimelineJS
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.... |
// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.1
description: >
const declarations without initialisers in statement positions:
while ( Expression ) Statement
negative:
phase: early
type: SyntaxError
... |
/**
* Copyright (c) 2014, 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
"use strict";
define(["ojs/ojcore","jquery","hammerjs"],function(a,g,c){c?(g.fn.wi=function(a){switch(a){case "instance":return this.data("ojHammer");case "destroy":return this.each(function(){var a... |
import d3 from 'd3';
import _ from 'lodash';
import $ from 'jquery';
import numeral from 'numeral';
import { PieContainsAllZeros, ContainerTooSmall } from 'ui/errors';
import { VislibVisualizationsChartProvider } from './_chart';
import { truncateLabel } from '../components/labels/truncate_labels';
export function Vis... |
/*
## Autocoder takes care of making random variations to the code. It lexes the input,
## collects the tokens that can be mutated, picks one at random, invokes a mutation on it,
## and then re-builds a string pritout from the tokens so to obtain the mutated program.
*/
var Autocoder, TOKEN_ARGDLIM, TOKEN_COLOUR, TOKE... |
const path = require('path');
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
plugins: [
'@typescript-eslint',
'react'
],
env: {
browser: true,
jest: true
},
extends: [
'plugin:@typescript-eslint/recommended', // Uses... |
/**
* @module Schemas/Curves/CatmullRomCurve3
* @desc Export the ThreeJs CatmullRomCurve3 Model and Schema for Mongoose.
*
* @requires {@link module:Schemas/Curves/Curve Schemas/Curves/Curve}
*
* @author [Tristan Valcke]{@link https://github.com/Itee}
* @license [BSD-3-Clause]{@link https://opensource.org/licens... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Route, Link, BrowserRouter as Router, Switch } from 'react-router-dom';
import './stylesheets/index.css';
import LoginRegister from './components/authentication/LoginRegister';
import Dashboard from './components/dashboard/Dashboard';
import Analyt... |
const { Command } = require('klasa');
const { MessageAttachment } = require('discord.js');
const { createCanvas, Image, registerFont } = require('canvas');
const fs = require('fs');
const bg = fs.readFileSync('./resources/images/tob-bg.png');
const canvas = createCanvas(399, 100);
const ctx = canvas.getContext('2d');
... |
import React from "react";
import { CourseInfoPage } from "../../components/CourseInfoPage";
import { shallow } from "enzyme";
import courses from "../fixtures/courses";
test("should render the CourseList correctly", () => {
const match = {params: {id: 3}};
const wrapper = shallow(<CourseInfoPage match={match}... |
/**
* Resize function without multiple trigger
*
* Usage:
* $(window).smartresize(function(){
* // code here
* });
*/
(function ($, sr) {
// debouncing function from John Hann
// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
var debounce = function (func, threshol... |
/**
* CTimer class<br>
*
* How to use:
* var timer = new CTimer();
* var value = 0;
*
* timer.setCallback(function (timerObj) {
* value++;
* console.log(value);
* if (value == 100) {
* timerObj.stopTimer();
* }
* });
* timer.setIntervalMillis(100);
* ... |
$(function () {
console.log('asdasd');
$('#image').change((event) => {
var file = event.target.files[0];
var reader = new FileReader();
console.log('chanfe');
if (file) {
reader.readAsDataURL(file);
}
setTimeout(function () {
$('#preview')... |
/* [Odd Even Linked List] from LeetCode's explore section
Prompt:
Given the head of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list.
The first node is considered odd, and the second node is even, and so on.
Note that the relat... |
import React from 'react'
import '@testing-library/jest-dom/extend-expect'
import { render, fireEvent, screen } from '@testing-library/react'
import Toggable from '../components/utils/Togglable'
test('renders Toggable component', () => {
const message = 'Test message'
const component = render(
<Toggab... |
$(document).ready(function() {
$('#photo_modal').on('hidden.bs.modal', function () {
$("#photo_modal .modal-body").html("");
$("#photo_modal .modal-title").html("");
});
$('.lightBoxGallery').masonry({
// options
itemSelector: '.galleryItem'
});
$(document).on("click", ".btn-like", function(e) {
... |
define(["intern!object",
"intern/chai!assert",
"require"
], function (registerSuite, assert, require) {
registerSuite({
name: "tabIndex functional tests",
"setup": function () {
return this.remote
.get(require.toUrl("./TabIndex.html"))
.waitForCondition("ready", 40000);
},
"default tab indices"... |
"use strict";
var __haste_prog_id = '32bf27eb647579dbfb4daad14558522302cd52dcf508e9f2a3cff66c15910acb';
var __haste_script_elem = typeof document == 'object' ? document.currentScript : null;
// This object will hold all exports.
var Haste = {};
if(typeof window === 'undefined' && typeof global !== 'undefined') window =... |
import axios from 'axios'
import history from '../history'
/**
* ACTION TYPES
*/
const SET_USER_LAT = 'SET_USER_LAT'
/**
* INITIAL STATE
*/
const defaultUserLat = ''
/**
* ACTION CREATORS
*/
const setLat = (lat) => ({type: SET_USER_LAT, lat})
/**
* THUNK CREATORS
*/
export const assignUserLat = lat =>
... |
import { module, test } from 'qunit';
import { visit, currentURL, click } from '@ember/test-helpers';
import { setupApplicationTest } from 'ember-qunit';
import { bounds, setupAnimationTest, time, animationsSettled } from 'ember-animated/test-support';
module('Acceptance | beacon demo', function(hooks) {
setupApplic... |
import React from 'react'
export default function NationalityList(props) {
return (
<select id={props.id} name="nationality" defaultValue={props.nationality} required>
<option value="">-- select one --</option>
<option value="afghan">Afghan</option>
<option value="albani... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Img from "gatsby-image"
const FuhlenImg = () => {
const data = useStaticQuery(graphql`
query {
placeholderImage: file(relativePath: { eq: "fuhlen.jpg" }) {
childImageSharp {
fluid(maxWidth: 1360, quality: 90... |
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var router = require('./routeHelpers.js');
var rankPlayers = require('./ranker.js');
app.use(bodyParser.json());
// app.get('/', router.getMatchesAll);
app.get('/matches', router.getMatchesAll);
app.get('/matches/:name', r... |
import React, { useState, useEffect, Fragment } from "react";
// nodejs library that concatenates classes
import classNames from "classnames";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
// @material-ui/icons
// core components
import Header from "components/Header/Header.js... |
"use strict";
/*!
* @author electricessence / https://github.com/electricessence/
* @license MIT
*/
Object.defineProperty(exports, "__esModule", { value: true });
class ObjectDisposedException extends Error {
constructor(objectName, message) {
super(message);
this.objectName = objectName;
}
... |
import React from 'react';
import PropTypes from 'prop-types';
function SvgCookIslands({ className, style }) {
return (
<svg width={32} height={32} viewBox="0 0 32 32" className={className} style={style}>
<g fill="none" fillRule="evenodd">
<path
d="M32 16c0 8... |
var searchData=
[
['last_5ferr_5fnum_1266',['last_err_num',['../ex__err_8c.html#a6f0854983303eaa2c002253ecdfa9c96',1,'ex_err.c']]],
['last_5ferrmsg_1267',['last_errmsg',['../ex__err_8c.html#a880c8369cce3e921b336dba3a3bdfac9',1,'ex_err.c']]],
['last_5fpname_1268',['last_pname',['../ex__err_8c.html#a416eb50a7427c45... |
module.exports = {
replicas: 1,
imageTag: "latest"
}; |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 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... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'magicline', 'el', {
title: 'Εισάγετε παράγραφο εδώ'
} ); |
"use strict";
module.exports = { "default": require("core-js/library/fn/math/log2"), __esModule: true }; |
import clear_night from '../icons/clear_night.png';
import cloudy from '../icons/cloudy.png';
import fog from '../icons/fog.png';
import lightning from '../icons/lightning.png';
import storm from '../icons/storm.png';
import storm_night from '../icons/storm_night.png';
import mostly_cloudy from '../icons/mostly_cloudy.... |
/*
* Copyright © 2016-2020 The Thingsboard 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 applicabl... |
import React from "react";
const CharacterItem = ({ item }) => {
const { img, name, portrayed, nickname, birthday, status } = item;
return (
<div className='card'>
<div className='card-inner'>
<div className='card-front'>
<img src={img} alt='' />
</div>
<div className='c... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 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... |
import React from 'react';
import PropTypes from 'prop-types';
import { ActivityIndicator, View, ScrollView } from 'react-native';
import { BlueSpacing20, SafeBlueArea, BlueText } from '../../BlueComponents';
import navigationStyle from '../../components/navigationStyle';
import { HDSegwitBech32Transaction, HDSegwitBec... |
/*! angular-google-plus - v0.1.1 2014-04-27 */
var options={};angular.module("googleplus",[]).provider("GooglePlus",[function(){options.clientId=null,this.setClientId=function(a){return options.clientId=a,this},this.getClientId=function(){return options.clientId},options.apiKey=null,this.setApiKey=function(a){return op... |
tinyMCE.addI18n('tw.template_dlg',{
title:"\u7BC4\u672Ctitle",
label:"\u7BC4\u672C",
desc_label:"\u63CF\u8FF0",
desc:"\u63D2\u5165\u9810\u5B9A\u7684\u7BC4\u672C\u5167\u5BB9",
select:"\u9078\u64C7\u7BC4\u672C",
preview:"\u9810\u89BD",
warning:"\u8B66\u544A:\u66F4\u65B0\u7BC4\u672C\u6709\u53EF\u80FD\u5C0E\u81F4\u8CC7\u65... |
const axios = require('axios')
const Discord = require("discord.js")
const { MessageEmbed } = require('discord.js');
const dotenv = require('dotenv')
const Tenor = require("tenorjs").client({
"Key": "21LZCVTMTC7I", // https://tenor.com/developer/keyregistration
"Filter": "off", // "off", "low", "medium", "high", no... |
import { combineReducers } from "redux";
import { routerReducer as routing } from "react-router-redux";
import { problem } from "../Problem/reducers";
const rootReducer = combineReducers({
problem,
routing
});
export default rootReducer; |
var Tracklist = function ()
{
this.element = null;
this.trackMenu = null;
};
Tracklist.prototype.initialize = function()
{
var self = this;
// Create track list element.
this.element = $('<ul>');
this.element.addClass('hidden');
// Handle dropped files on track list.
this.element.... |
var _c_l_2_gaussian5x5_8cpp =
[
[ "CLGaussian5x5Fixture", "_c_l_2_gaussian5x5_8cpp.xhtml#aea53a09faa8521bc42baeee9f3bc81ac", null ],
[ "DATA_TEST_CASE", "_c_l_2_gaussian5x5_8cpp.xhtml#af654ad5ee4e9af35cd82a2a0f3f8e1aa", null ],
[ "FIXTURE_DATA_TEST_CASE", "_c_l_2_gaussian5x5_8cpp.xhtml#a0e3f60b8736377c40480... |
/**
* Gets the repositories of the user from Github
*/
import { call, put, select, takeLatest, takeEvery } from 'redux-saga/effects';
import { LOAD_REPOS, LOAD_MOVIES } from 'containers/App/constants';
import {
reposLoaded,
repoLoadingError,
moviesLoaded,
moviesLoadingError,
} from 'containers/App/actions';
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.configs = exports.groupMap = void 0;
function _react() {
const data = _interopRequireDefault(require("react"));
_react = function _react() {
return data;
};
return data;
}
function _interopRequireDefault(obj) { retur... |
import React from 'react'
import Header from 'grommet/components/Header';
import Title from 'grommet/components/Title';
import Box from 'grommet/components/Box';
import Search from 'grommet/components/Search';
import Menu from 'grommet/components/Menu';
import Anchor from 'grommet/components/Anchor';
import HomeIcon fr... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... |
import _find from 'lodash-es/find';
import {
event as d3_event,
select as d3_select
} from 'd3-selection';
import { d3keybinding as d3_keybinding } from '../lib/d3.keybinding.js';
import { t } from '../util/locale';
import {
actionAddMidpoint,
actionConnect,
actionMoveNode,
actionNoop
} from... |
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn('Cases', 'managingAdjustorId', {
type: Sequelize.INTEGER
}).then(() => {
return queryInterface.addConstraint('Cases', ['managingAdjustorId'], {
type: 'foreign key',
name: 'fkey_ma... |
'use strict';
const test = require('tape'),
gcd = require('../lib/great-circle-distance');
const DUBLIN = {lat: "53.3381985", lon: "-6.2592576"},
PT1 = {lat: "52.986375", lon: "-6.043701"},
PT2 = {lat: "51.92893", lon: "-10.27699"};
test('deg2rad is a function', function(test) {
test.ok(ty... |
//防抖函数
export function debounce(func,delay) {
//为什么timer没有被销毁,因为return作为一个闭包,对外层函数进行引用,所以不销毁
let timer = null
return function (...args) {
if (timer) clearTimeout(timer)
timer = setTimeout(() => {
func.apply(this,args)
},delay)
}
}
//时间格式化
export function formatDate(date, fmt) {
//获取年份
/... |
'use strict';
/**
* Module dependencies.
*/
const mongoose = require('mongoose');
const wrap = require('co-express');
const User = mongoose.model('User');
/**
* Load
*/
exports.load = wrap(function* (req, res, next, _id) {
const criteria = { _id };
req.profile = yield User.load({ criteria });
if (!req.pro... |
const CopyWebpackPlugin = require('copy-webpack-plugin')
const CompressionPlugin = require('compression-webpack-plugin')
const path = require('path')
const webpack = require('webpack')
const thisPath = path.resolve(__dirname)
const root = path.resolve(thisPath, '..', '..', '..', '..')
const distPath = path.resolve(roo... |
// 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... |
export const schema = gql`
type Workout {
id: Int!
exercises: [Exercise]!
title: String!
}
type Query {
workouts: [Workout!]!
workout(id: Int!): Workout
}
input CreateWorkoutInput {
title: String
}
input UpdateWorkoutInput {
title: String
}
type Mutation {
createWor... |
import * as React from "react";
import Svg, { Path } from "react-native-svg";
function SvgChatDeleteLine(props) {
return (
<Svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<Path fill="none" d="M0 0h24v24H0z" />
<Path d="M6.455 19L2 22.5V4a1 1 0 011-1h18a1 1 0 011 1v14a1 1 0 01-... |
module.exports = {
secret: '342c57f12dc1919acf4d795f272a1a527dbc7b208e343a11272dcce98c4dcb8af'
} |
/* global
Cookies
revision_endpoint
publish_endpoint
unpublish_endpoint
*/
var revisions = {};
$(function () {
$("a.article").click(function (e) {
var id = $(this).data("rid");
var published = $(this).data("published");
if (revisions[id]) {
... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = fac... |
module.exports = createTask;
var fs = require('fs');
var path = require('path');
var parseDocsFromRules = require('./parse-docs-from-rules');
function createTask(pliers) {
pliers('buildRuleDocs', function (done) {
var docs = parseDocsFromRules(pliers);
var concatenatedDocs = docs.map(function (doc) {
... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("specialchar", function (k) {
var e, n = k.lang.specialchar, m = function (c) {
var b;
c = c.data ? c.data.getTarget() : new CKEDITOR... |
import brotli from "gulp-brotli";
import del from "del";
import gulp from "gulp";
import gulpBatch from "gulp-batch";
import gulpCSSNano from "gulp-cssnano";
import gulpImage from "gulp-image";
import gulpSass from "gulp-sass";
import gulpSequence from "gulp-sequence";
import gulpUglify from "gulp-uglify/minifier";
im... |
/**
* 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.
*
* @flow
* @format
*/
'use strict';
import type {TransformResult} from '../DeltaBundler';
import type {TransformerConfig, Transf... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.2/15.2.3/15.2.3.5/15.2.3.5-4-295.js
* @description Object.create - 'set' property of one property in 'Properties' is a primitive number value (8.10.5 step 8.b)
*/
function testcase() {
try {
Object.create({},... |
// https://developers.google.com/maps/documentation/javascript/examples/
function initMap() {
var customMapType = new google.maps.StyledMapType([
{
stylers: [
{'gamma': 1},
{'weight': 1},
{'visibility': 'simplified'},
{'hue': '#8dab68'}
]
},
{
elementType: 'labels',
stylers... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import _ from 'lodash';
import BaseComponent from '../base/Base';
export default class RadioComponent extends BaseComponent {
static schema(...extend) {
return BaseComponent.schema({
type: 'radio',
inputType: 'radio',
label: 'zh'===localStorage.getItem('language')?'单选框':'Radio',
key: 'rad... |
const port = process.env.PORT || 9000;
const server = require("./api/server");
server.listen(port, () => console.log(`listening on port ${port}`)); |
import mongoose from 'mongoose';
import appearanceSchema from './appearance';
const Schema = mongoose.Schema;
const locationSchema = new Schema({
name: {
type: String,
required: true,
unique: true,
},
capacity: {
type: Number,
required: true,
},
address: {
type: String,
},
phone_number: {
type: S... |
//# sourceMappingURL=path---angels-of-mist-550ca476e2661a0d78b8.js.map |
import { Accordion, Card, Container } from "react-bootstrap";
const AccordionFaq = () => (
<Container className="faq">
<h2 className="text-center pt-5 pb-5">FAQ</h2>
<Accordion defaultActiveKey="0" id="accordionExample">
<Card>
<Accordion.Toggle
className="accordion-button"
... |
import React from 'react';
import {
Keyboard,
KeyboardAvoidingView,
StyleSheet,
TextInput,
TouchableOpacity,
View
} from 'react-native';
import { BigButton } from '../components/BigButton';
import { BoldText, RegularText, MediumText } from '../components/StyledText';
import { Ionicons } from '@e... |
'use strict';
var superagent = require('superagent'),
WebApiError = require('./webapi-error');
var HttpManager = {};
/* Create superagent options from the base request */
var _getParametersFromRequest = function(request) {
var options = {};
if (request.getQueryParameters()) {
options.query = request.getQu... |
import React from "react";
import Layout from "../components/layout";
import { getToken } from "../utils/auth";
// import { auth } from "next-authentication";
import { fetchData } from "../utils/api";
function Dashboard({ user }) {
return (
<Layout>
<h1>Hello, {user}.</h1>
<p>
We load data f... |
/**
* 作者: 戴荔春
* 创建时间: 2017/06/16
* 版本: [1.0, 2017/06/16 ]
* 版权: 江苏国泰新点软件有限公司
* 描述: 作为dataProcess的一个插拔式功能
* 通过指定路径(v6格式下),来获取对应的数据
*/
(function(exports) {
/**
* 通过指定路径,来获取对应的数据
* 如果不符合数据要求的,请返回null,这样就会进入下一个函数处理了
* @param {JSON} response 接口返回的数据
* @param {String} path 一个自定义路径,以点分割,用来找数据
... |
// Copyright (c) 2018 PROPHESSOR
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
'use strict';
module.exports = function (udmfarray, udmfobject) {
// Здесь будет код скрипта
return udmfarray;
}; |
/*!
* Vue.js v2.5.17
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.