text stringlengths 2 1.04M |
|---|
const path = require('path')
const clone = require('clone')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
var mugunghwaConfig = {
entry: './mugunghwa.js',
mode: 'production',
devtool: 'none',
target: 'web',
output: {
filename: 'mugunghwa.js',
path: path.resolve(__dirname, 'build'),
publicPath: '... |
export function propertiesToAnnotationFeature({
geometry,
label = '',
description = '',
organizationId
}) {
return {
type: 'Feature',
geometry,
properties: {
label,
organizationId,
description
}
};
}
export function wrapFeature... |
import $ from 'jquery';
import * as Site from 'Site';
$(document).ready(function($) {
Site.run();
});
// Example File Upload
// -------------------
$('#projectUploadForm').fileupload({
url: '../../server/fileupload/',
dropzone: $('#projectUploadForm'),
filesContainer: $('.file-list'),
uploadTemplateId: fals... |
import { ArrayCamera } from '../../cameras/ArrayCamera.js';
import { EventDispatcher } from '../../core/EventDispatcher.js';
import { PerspectiveCamera } from '../../cameras/PerspectiveCamera.js';
import { Vector3 } from '../../math/Vector3.js';
import { Vector4 } from '../../math/Vector4.js';
import { WebGLAnimation }... |
module.exports.generateRandomString = function(length) {
var string = '';
var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
for (var i = 0; i < length; i++) {
string += possible.charAt(Math.floor(Math.random() * possible.length));
}
return string;
}; |
/**
* Created by Florin Chelaru ( florin [dot] chelaru [at] gmail [dot] com )
* Date: 11/2/2015
* Time: 2:46 PM
*/
var tp = null;
function start(njobs, n) {
tp = tp || new parallel.ThreadPool(16, WORKER);
var count = njobs;
var startTime = new Date();
for (var i = 0; i < njobs; ++i) {
tp.queue(functi... |
/*
* Copyright 2017 Palantir Technologies, 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 req... |
import Controller from '@ember/controller';
import { mapBy } from '@ember/object/computed';
import { A as emberArray } from '@ember/array';
export default Controller.extend({
properties: mapBy('selectedProperties', 'value'),
selectedProperties: emberArray(),
availableProperties: emberArray([
{
value: ... |
/**
* @author marcd 2019
*/
(function(exports) {
/**
* @param
* @return
*/
function createObjects_IO(JXG, brd_InOut, r) {
var in_out = brd_InOut.create('point',
[0.0, 0.0 ],
{
name:'',
face:'o',
size:4,
/*fillOpacity:0,*/
color:'black',
fixed:true,
// trace: true,
... |
var win = Ti.UI.currentWindow;
var v1 = Ti.UI.createView({
top:10,
left:10,
width:300,
height:30
});
var l1 = Ti.UI.createLabel({
text:'First:',
top:0,
left:0,
});
var f1 = Ti.UI.createTextField({
text:'',
borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
top:0,
right:0,
width:200,
});
v1.add(l1);
v1.add(... |
AOS.init({
duration: 800,
easing: 'slide',
once: true
});
jQuery(document).ready(function ($) {
"use strict";
$(".loader").delay(1000).fadeOut("slow");
$("#overlayer").delay(1000).fadeOut("slow");
var siteMenuClone = function () {
$('.js-clone-nav').each(function () {
var $this = $(this);
$this.cl... |
/* global MockImageLoader */
/* global MocksHelper */
/* global loadBodyHTML */
/* global ICEData */
'use strict';
//require('/shared/js/lazy_loader.js');
require('/shared/test/unit/mocks/mock_lazy_loader.js');
require('/shared/js/contacts/utilities/ice_store.js');
requireApp('communications/contacts/test/unit/mock_n... |
import get from 'lodash/get';
import groupBy from 'lodash/groupBy';
import isEmpty from 'lodash/isEmpty';
import isEqual from 'lodash/isEqual';
import keys from 'lodash/keys';
import round from 'lodash/round';
import set from 'lodash/set';
import sortBy from 'lodash/sortBy';
import sumBy from 'lodash/sumBy';
import uni... |
require('../Connections/ConnectionDb');
const mongoose = require('mongoose');
const TempSchema = new mongoose.Schema({
temperature: {type:Number},
date_received:{type: Date}
})
const TempModel = mongoose.model('Temp', TempSchema, 'temps');
module.exports = TempModel; |
/**
* Draw a circular outline as the user is drawing on
* top of the canvas
*/
define(function(require) {
var asOutlineShape = require('./asOutlineShape');
function getCircularPoint(iter, point, radius) {
if (iter === 0) {
return {x: point.x, y: point.y - radius};
} else if (iter === 90) {
... |
import React from 'react'
import { kebabCase } from 'lodash'
import Helmet from 'react-helmet'
import { Link, graphql } from 'gatsby'
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles({
root: {
margin: '40px auto',
maxWidth: 1200,
height: '100%',
},
taglist: {
li... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Regional VP Operations", "CONTRIBUTION AMOUNT (F3L Bundled)": "115.40", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Corinthian Colleges", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "144 La Mesa Dr.", "CONTRIBUTOR MIDDLE NAME": "Chris", "DONOR CANDIDAT... |
import React from 'react';
import styled from 'styled-components';
const Wrapper = styled.div`
display: flex;
align-items: center;
justify-content: center;
padding: 8px 10px;
flex: 1;
cursor: pointer;
border-bottom: 2px solid transparent;
font-size: 14px;
${({ activeTab }) => activeTab && 'font-weigh... |
import { MODULE_NAME } from "./const";
import { DATA_MODE, DATA_GETTERS, PACKAGE_CONFIG } from "./package-config";
import { refreshPackageConfig } from "./field-registration";
const API = {
CONST: {
DATA_MODE,
DATA_GETTERS,
},
PACKAGE_CONFIG,
refreshPackageConfig,
};
export function de... |
const debug = require('../helpers/debug');
module.exports = function passTarget() {
return function passTargetSubware(req, res, next, targetReq, targetRes) {
Object.keys(targetRes.headers).forEach(headerName => {
res.setHeader(headerName, targetRes.headers[headerName]);
});
tar... |
var v0 = function () {
let f6 = arguments;
for (var v1 = 0; v1 < 1000000; ++v1)
v0 = String.fromCharCode(1000);
return v0;
}();
if (v0 != 'Ϩ')
throw 'Error: bad result: ' + v0; |
var aardvark = {
isBookmarklet: true,
loadObject: function (obj) {
for (var x in obj) {
if (aardvark[x] == undefined) {
aardvark[x] = obj[x];
}
}
},
}; |
// RU UTF-8 lang variables
tinyMCE.addToLang('table',{
general_tab : 'Основные',
advanced_tab : 'Расширенные',
general_props : 'Основные свойства',
advanced_props : 'Расширенные свойства',
desc : 'Вставить новую таблицу',
row_before_desc : 'Вставить строку перед',
row_after_desc : 'Вставить строку после',
delete_row_d... |
const db = firebase.firestore();
const auth = firebase.auth();
const storage = firebase.storage();
// ////////////////////////////////////////////
let USER = false;
let USER_REF = false;
let USER_ID = false;
var userDetails;
auth.onAuthStateChanged((user) => {
USER_ID = user.uid;
userDetails = user
console.log(... |
// Do not edit this file; automatically generated by build.py.
'use strict';
var $jscomp=$jscomp||{};$jscomp.scope={};var COMPILED=!0,goog=goog||{};goog.global=this;goog.isDef=function(a){return void 0!==a};goog.isString=function(a){return"string"==typeof a};goog.isBoolean=function(a){return"boolean"==typeof a};goog.i... |
(function () {
var sammyApp = Sammy('#content', function () {
this.get('#/', function () {
this.redirect('#/home');
});
this.get('#/login', navigation.login);
this.get('#/logout', navigation.logout);
this.get('#/register', navigation.register);
this.g... |
'use strict';
/**
* Nitro gulp config
*/
const config = {
gulp: {
dumpViews: {
// filter corrupt, incomplete or irrelevant views
// example:
// viewFilter: (url) => url !== 'incomplete',
},
copyAssets: [
// copies all source files to dest folder
{
src: '',
dest: '',
},
],
minify... |
const chainMaker = {
// chain: '()',
result: [],
getLength() {
return this.result.length;
},
addLink(value) {
if(Object.is(value, null)) {
value = 'null';
} else if(Object.is(value, NaN)) {
value = 'NaN';
}
this.result.push(value);
return this;
... |
/**
* cat.js
*/
//고양이 분양 헤더 이미지 변경
$(function (){
// .attr()은 속성값(property)을 설정할 수 있다.
$('#header').attr('style', 'background: url(/resources/img/cat/cat_wallpaper05.jpg); background-position:center; background-size:cover;');
});
//고양이 분양 게시판 삭제 관련
$(document).ready(function del_check() {
$('#del... |
/**
* Mostrar la raiz cuadrada de
* solo los numeros pares de los siguiente numeros
* [1, 4, 9, 16]
*/
const values = [1, 4, 9, 16]
// Numero par num % 2 === 0
values
.filter(num => num % 2 === 0)
.map(num => Math.sqrt(num))
// values.filter(num => num % 2 === 0 ? Math.sqrt(num) : false ) |
import axios from 'axios';
import { GET_ROOMS } from './types';
import returnErrors from './messages';
import setupTokenConfig from './setupTokenConfig';
// GET USER'S ROOMS
export const getRooms = (pageNumber = 1) => (dispatch, getState) => {
axios.get(`/api/rooms/?page=${pageNumber}`, setupTokenConfig(getState))
... |
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/gatsby-config/
*/
module.exports = {
/* Your site config here */
// [GitHub Pages](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/how-gatsby-works-with-github-pages/)
// pathPrefix: `/gatsby-blog-typescript... |
import BaseEvent from '@interactjs/core/BaseEvent';
import * as arr from '@interactjs/utils/arr';
class DropEvent extends BaseEvent {
/**
* Class of events fired on dropzones during drags with acceptable targets.
*/
constructor(dropState, dragEvent, type) {
super(dragEvent._interaction);
... |
import React, {useState, useEffect, useContext} from 'react';
import {Link} from 'react-router-dom';
import '../../css/app.css';
import ReactDOM from 'react-dom';
import {Table} from 'reactstrap'; import {AppContext} from '../AppContext';
function TodoList() {
const {
user, setUser,
setCompletion... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {connect} from 'react-redux';
import {getStatusForUserId} from 'matterfoss-redux/selectors/entities/users';
import UserListRow from './user_list_row.jsx';
function mapStateToProps(state, ownProps) ... |
import meta from './labels.json'
import template from './labels.html'
import snippet from './snippet.html'
import vsBadge from 'src/components/badge'
import docsDemo from 'vuestrap-docs/src/components/demo'
import {variants} from 'src/utils'
export default {
route: {
url: '/labels',
name: 'labels',
title... |
import User from "./user";
import Article from "./article";
export { User, Article }; |
'use strict';
const _ = require('lodash');
const AWS = require('aws-sdk');
class Plugin {
constructor(serverless, options) {
this.hooks = {
'after:deploy:deploy': putTemplate.bind(null, serverless, options)
};
}
}
module.exports = Plugin;
const putTemplate = (serverless, options) => {
const es =... |
// @ts-check
'use strict'
const { addError, forEachInlineChild, unescapeMarkdown } =
require('../helpers')
const reversedLinkRe = /\(([^)]+)\)\[([^\]^][^\]]*)]/g
module.exports = {
names: ['MD011', 'no-reversed-links'],
description: 'Reversed link syntax',
tags: ['links'],
function: function MD011 (params... |
const express = require("express");
const router = express.Router();
const auth = require("../../middleware/auth");
const Profile = require("../../models/Profile");
const User = require("../../models/User");
const User = require("../../models/Post");
const request = require("request");
const config = require("config");... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
'use strict';
const path = require('path');
jest.mock('fb-watchman', () => {
const normalizePathSep = ... |
//META{"name":"MessageUtilities","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/MessageUtilities","source":"https://raw.githubusercontent.c... |
$(window).on('load',function(){$('.preloader').fadeOut(100);});jQuery(function($){"use strict";$('.navbar-collapse a').click(function(){$(".navbar-collapse").collapse('hide');});const observer=lozad();observer.observe();$('.image-popup').magnificPopup({type:'image',removalDelay:160,callbacks:{beforeOpen:function(){this... |
'use strict';
const { toString } = require('./types');
const assert = require('assert');
class CompoundExpression {
constructor(name, type, evaluate, args) {
this.name = name;
this.type = type;
this._evaluate = evaluate;
this.args = args;
}
evaluate(ctx) {
return... |
import { css } from "styled-components"
const sizes = {
xLarge: 1200,
large: 992,
medium: 768,
small: 576,
}
// Iterate through the sizes and create a media template
const mq = Object.keys(sizes).reduce((acc, label) => {
acc[label] = (...args) => css`
@media (min-width: ${sizes[label] / 16}em) {
$... |
const express = require('express');
const exphbs = require('express-handlebars');
const weatherService = require('./app/services/weatherService');
const CronJob = require('cron').CronJob;
const session = require('express-session');
const RedisStore = require('connect-redis')(session);
const bodyParser = require('body-p... |
import { StyleSheet } from 'react-native';
export default StyleSheet.create({
container: {
flexDirection: 'row',
},
dot: {
borderRadius: 5,
marginRight: 5,
},
messages: {
flex: 1,
},
message: {
flexWrap: 'wrap',
},
}); |
/**
* [localFunctionHookSample.js]
* encoding=utf-8
*/
var calledApi = require("./calledApi.js");
var hookProperty = require("hook-test-helper").hookProperty;
exports.method1 = function () {
calledApi.doSomething("hoge!");
};
exports.method2 = function () {
var hook = calledApi.hook;
var hookedInsta... |
// In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on the 'N+1' visit to a page, since previously... |
window.bookSummaryJSON = "<p><b>Gavin's powers are fading and his end draws near as war rages across the satrapies in the second novel of the </b><b><i>New York Times </i></b><b>best-selling Lightbringer series by Brent Week.</b></p> <p>Gavin Guile is dying. He'd thought he had five years left - now he has less than on... |
import concat from 'concat-stream'
import Promise from 'promise'
const merge = (dest, src) => {
for (let name in src) dest[name] = src[name]
return dest
}
const defer = () => {
const deferred = {}
deferred.promise = new Promise((resolve, reject) => {
deferred.resolve = resolve
deferred.reject = rejec... |
'use strict';
const expect = require('chai').expect;
let pinoProfiler = require('../index');
describe('#pinoProfiler', () => {
it('should print logger message with start and end date', () => {
// let result = numFormatter(1);
// expect(result).to.equal('1');
});
}); |
import { render, screen } from '@testing-library/react';
import { rest } from 'msw';
import { setupServer } from 'msw/node';
import App from './App';
// test('renders learn react link', () => {
// render(<App />);
// const linkElement = screen.getByText(/learn react/i);
// expect(linkElement).toBeInTheDocument()... |
// Copyright (c) 2019 Uber Technologies, Inc.
//
// 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, modify, merge... |
import expect from 'expect';
import extendedMatchers from 'jest-extended/dist/matchers'
import $ from 'jquery';
const domMatches = require('@testing-library/jest-dom/matchers')
expect.extend(domMatches);
expect.extend(extendedMatchers);
window.expect = expect;
window.$ = $;
const context = require.context(
'.',
... |
export const layers16 = "M14.376 9.573l1.647.927-8 4.5-8-4.5 1.648-.927 1.02.574-.628.353 5.96 3.353 5.96-3.353-.627-.353zm-.999-2.414l.606.341-5.96 3.353L2.063 7.5l.607-.341-1.02-.574L.023 7.5l8 4.5 8-4.5-1.626-.915zM8.023.023l-8 4.5 8 4.5 8-4.5zm-5.96 4.5l5.96-3.352 5.96 3.352-5.96 3.353z"; |
let appConfig = {};
appConfig.port = 3000;
appConfig.allowedCorsOrigin = "*";
appConfig.env = "dev";
appConfig.db = {
uri: "mongodb://127.0.0.1:27017/shopDB"
}
appConfig.apiVersion = "/api/v1";
module.exports = {
port: appConfig.port,
allowedCorsOrigin: appConfig.allowedCorsOrigin,
enviornment: app... |
var merge = require('webpack-merge')
var prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
BASE_API: '"http://localhost:8000"'
}) |
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/mast... |
module.exports = {
extends: 'stylelint-config-recommended',
plugins: [
/**
* add plugins
* docs: https://stylelint.io/user-guide/configure#plugins
*/
// 'stylelint-scss' // stylelint by itself supports SCSS syntax very well
],
ignoreFiles: [
/**
* ignore certain files
* docs... |
import GA from './GA.vue'
export default ({ Vue }) => {
Vue.component('GA', GA)
} |
/* */
"format cjs";
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.1-master-491d139
*/
!function(e,t,n){"use strict";t.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rA... |
/*!
* VisualEditor DataModel Document class.
*
* @copyright 2011-2020 VisualEditor Team and others; see http://ve.mit-license.org
*/
/**
* DataModel document.
*
* WARNING: The data parameter is passed by reference. Do not modify a data array after passing
* it to this constructor, and do not construct multiple... |
export const pickKeys = keys => obj =>
keys.reduce(
(acc, key) => ({
...acc,
...(key && keys.indexOf(key) !== -1
? {
[key]: obj[key],
}
: {}),
}),
{}
);
export const omitKeys = keys => obj =>
pickKeys(Object.keys(obj).filter(key => keys.indexOf(key) =... |
'use strict';
const
mongoose = require('mongoose'),
Router = require('koa-router'),
oauthServer = require('../../oauth/oauthServer'),
User = require('../../models/userModel').User,
UserService = require('../../services/userService'),
sg = require('../../services/emailService');
let oauthRouter... |
module.exports={A:{A:{"2":"O D G E A B lB"},B:{"2":"C I F P J","164":"M KB N R S T YB","3138":"K","12292":"L"},C:{"1":"7 8 9 AB BB CB DB EB OB GB HB IB JB Q LB MB FB W V QB RB SB TB UB VB WB M KB N sB R S","2":"vB PB","260":"0 1 2 3 4 5 6 H Y O D G E A B C I F P J K L Z a b c d e f g h i j k l m n o p q r s t u v w x y... |
import Vue from 'vue'
import router from '@/router'
import store from '@/store'
/**
* 获取uuid
*/
export function getUUID () {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
return (c === 'x' ? (Math.random() * 16 | 0) : ('r&0x3' | '0x8')).toString(16)
})
}
/**
* 是否有权限
* @param {*} ke... |
import axios from 'axios'
export function request(config) {
//创建axios的实例
const instance = axios.create({
baseURL: 'http://localhost:3000',
timeout: 5000
})
//axios的拦截器
instance.interceptors.request.use(config => {
//1.比如config中的一些信息不符合服务器的要求
//2.比如每次发送网络请求时,都希望在界面中显示一个请求的图标
//3.某些网络请求(... |
/*!
* jQuery Validation Plugin v1.17.0
*
* https://jqueryvalidation.org/
*
* Copyright (c) 2017 Jörn Zaefferer
* Released under the MIT license
*/
(function (factory) {
if (typeof define === "function" && define.amd) {
define(["jquery", "./jquery.validate"], factory);
} else if (typeof module ===... |
import { createStackNavigator } from "react-navigation";
import ProfileScreen from "../screens/ProfileScreen";
import sharedRoutes, { sharedOptions } from "./sharedRoutes";
const ProfileRoute = createStackNavigator(
{
Profile: {
screen: ProfileScreen,
navigationOptions: ({ screenProps }) => ({
... |
'use strict'
const { isVPlusDottedVersionAtLeastOne } = require('../test-validators')
const t = (module.exports = require('../tester').createServiceTester())
t.create('version (valid)').get('/adios2.json').expectBadge({
label: 'spack',
message: isVPlusDottedVersionAtLeastOne,
})
t.create('version (not found)')
... |
/* @flow strict-local */
import React from 'react';
import type { Node } from 'react';
import { View } from 'react-native';
import { createStyleSheet, HALF_COLOR } from '../styles';
import { useSelector } from '../react-redux';
import { getSession } from '../selectors';
import Label from './Label';
const styles = cr... |
function Spy(target, method) {
var original = target[method];
var self = this;
self.count = 0;
target[method] = function() {
self.count++;
return original.apply(this, arguments);
};
return self;
}
module.exports = Spy; |
import React from 'react';
import PropTypes from 'prop-types';
import Link from 'next/link';
import Button from '@material-ui/core/Button';
import notify from '../../lib/notifier';
import withLayout from '../../lib/withLayout';
import withAuth from '../../lib/withAuth';
import { getBookList } from '../../lib/api/adm... |
// This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: '2c224e7e-3ef5-431d-a57b-e71f4662e3a6',
name: 'Node CLI Test',
user: {
... |
/*
Copyright 2021 Jerome DE LUCCHI
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 ... |
const getValueByPosition = require("./getValueByPosition");
const compare = require("./compare");
const DIRECTIONS = require("./directions.const");
const DEFAULT_PATH = {length: 0, slope: 0, lowestHeight: 0};
/**
* findBestPath - Find best Path at given position
* criteria: longest path, highest slope
*
* @param {O... |
/*global $, _, define*/
define(['backbone', 'dataset'], function (Backbone, dataset) {
"use strict";
// Use a Backbone data set?
var backboneset = true;
// Replicates a server's database filter
var remote_filter = function (options, item) {
var result = true;
if (!options.filters) return result;
var f, va... |
/* global process.env */
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../redux/configureStore';
// Container Elements
import Navigation from './Navigation';
// Less for CSS Modules
import AppStyles from './App.less';
import NavigationStyles from './Navigation.less';
// ... |
/**
* @file SymbolicLink
* @author Cuttle Cong
* @date 2018/3/16
* @description
*/
import Root from './Root'
import symbolicLink from '../utils/symbolicLink'
/**
* 用于创建链接对象
* @see {SymbolicLink}
* @public
* @param ref {Object}
* @param path {String}
* @return {Symbolic}
* @constructor
*/
export function S... |
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
r... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.0.11 (2019-07-04)
*/ |
import buble from 'rollup-plugin-buble';
import builtins from 'rollup-plugin-node-builtins';
import commonjs from 'rollup-plugin-commonjs';
import globals from 'rollup-plugin-node-globals';
import resolve from 'rollup-plugin-node-resolve';
const name = process.argv.indexOf('-w') === -1 ?
'api' :
'api.min';
export... |
define([
"dojo/_base/array", // array.forEach
"dojo/_base/declare", // declare
"dojo/dom", // dom.setSelectable
"dojo/dom-attr", // domAttr.set or get domAttr.remove
"dojo/dom-class", // domClass.replace
"dojo/dom-geometry", // domGeometry.setMarginBox domGeometry.getMarginBox
"dojo/_base/event", // event.stop
... |
/*! For license information please see 2.e026f887.chunk.js.LICENSE.txt */
//# sourceMappingURL=2.e026f887.chunk.js.map |
/**
* @param {number[]} nums
* @param {number} k
* @param {number} t
* @return {boolean}
*/
var hasDup = function (nums, first, k, t) {
const l = nums.length - 1;
const start = first + 1;
const end = Math.min(first + k, l);
const val = nums[first];
if (start > l) {
return false;
}
for (let i = Ma... |
(function(nacl) {
'use strict';
// Ported in 2014 by Dmitry Chestnykh and Devi Mandiri.
// Public domain.
//
// Implementation derived from TweetNaCl version 20140427.
// See for details: http://tweetnacl.cr.yp.to/
var u64 = function(h, l) { this.hi = h|0 >>> 0; this.lo = l|0 >>> 0; };
var gf = function(init) {
var... |
/**
* Created by Jackey Li on 2015/12/3.
*/
(function (angular) {
'use strict';
angular.module('desktop').factory('desktopWindowHttpService',
['$http',
function ($http) {
var service = {};
service.getData = function () {
return $http.get('desktop/content/data/window.json');
};
return se... |
import React from 'react';
import 'antd/dist/antd.css';
import './index.css';
import { Modal, Button } from 'antd';
import Contents from './Constents';
export default class Modals extends React.Component {
state = {
loading: false,
visible: false,
}
handleOk = () => {
this.setState({ loading: true })... |
import React from "react";
import {Prompt} from "react-router";
import PreventExitDialog from "./modals/PreventExitDialog";
export class RouteLeavingGuard extends React.Component {
state = {
modalVisible: false,
lastLocation: null,
confirmedNavigation: false,
}
showModal = (location) => this.setSta... |
import { Component, Directive, Input, Output, TemplateRef, ViewContainerRef, ContentChild, ElementRef, Renderer2, EventEmitter, NgModule } from '@angular/core';
import { TemplatePortalDirective, PortalModule } from '@angular/cdk/portal';
import { coerceBooleanProperty } from '@angular/cdk/coercion';
import { TdCollapse... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
const apiKey = "d685b7587c7c3a2cdab61107aff768ba";
var cities = [];
cities.reverse();
function loadFromStore() {
cities = JSON.parse(localStorage.getItem("cities")) || [];
}
function saveToStore() {
localStorage.setItem("cities", JSON.stringify(cities));
}
$(document).ready(function () {
loadFromStore();
if (... |
//// [asyncAwaitNestedClasses_es5.ts]
// https://github.com/Microsoft/TypeScript/issues/20744
class A {
static B = class B {
static func2(): Promise<void> {
return new Promise((resolve) => { resolve(null); });
}
static C = class C {
static async func() {
... |
/* eslint-disable */
/* jshint ignore:start */
'use strict';
var faker = require('faker');
function _getArray(getData) {
var out = [],
len = faker.random.number(10) + 1,
i;
for (i = 0; i < len; i += 1) {
out.push(getData());
}
return out;
}
function _getRes(name, loopArr) {
try {
return JSON.parse(re... |
'use strict';
var _chai = require('chai');
var _templateParser = require('../source/template parser');
var _templateParser2 = _interopRequireDefault(_templateParser);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
describe('template parser', function () {
it('shoul... |
define(['backbone'], function(Backbone) {
return Backbone.Model.extend({
idAttribute: 'DEWARREGISTRYHASPROPOSALID',
urlRoot: '/shipment/dewars/registry/proposals',
validation: {
PROPOSALID: {
required: true,
pattern: 'number',
... |
import { assert, expect } from 'chai';
import Builder, { mode } from '../../src/Query/Builder';
import WhereStatement from '../../src/Query/WhereStatement';
import Integer from 'neo4j-driver/lib/v1/integer';
import RelationshipType from '../../src/RelationshipType';
describe('Query/Builder.js', () => {
let instanc... |
import { createReadStream, createWriteStream, readFileSync } from "fs";
import { mainTestFn, test } from "@compas/cli";
import { uuid } from "@compas/stdlib";
import {
copyFile,
createOrUpdateFile,
getFileStream,
syncDeletedFiles,
} from "./files.js";
import { queries } from "./generated.js";
import {
ensureB... |
var Lang = A.Lang,
isString = Lang.isString,
getClassName = A.getClassName,
NAME = 'editormenu',
NAME_PLUGIN = 'editormenuplugin',
NS_EDITORMENU = 'menu',
CONTENT = 'content',
CSS_MENU_CONTENT_LIST = getClassName(NAME, CONTENT, 'list'),
CSS_MENU_CONTENT_TEXT = getClassName(NAME, CONTENT, 'text'),
CSS_MENU... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.