text stringlengths 2 1.04M |
|---|
/**
* @author oldj
* @blog https://oldj.net
*/
'use strict'
const makeId = require('../../libs/make-id')
const getUrl = require('./getUrl')
const isExpired = require('../checkIsExpired')
const lineBreakTransform = require('../../libs/lineBreakTransform')
const moment = require('moment')
const crypto = require('cry... |
/**
* the slide effects wrapper
*
* Copyright (C) 2008-2011 Nikolay V. Nemshilov
*/
Fx.Slide = new Class(Fx.Twin, {
extend: {
Options: Object.merge(Fx.Options, {
direction: 'top'
})
},
// protected
prepare: function(how) {
this.setHow(how);
// calling 'prototype' to prevent circular ca... |
/*!
* jQuery JavaScript Library v1.6.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
import _ from 'lodash';
const INIT = 'standardsEditor/INIT';
const ADD_STANDARD = 'standardsEditor/ADD_STANDARD';
const REMOVE_STANDARD = 'standardsEditor/REMOVE_STANDARD';
export const initStandards = (standardType, standards) => ({
type: INIT,
standardType,
standards
});
export const addStandard = (standardT... |
( function ( $ ) {
"use strict";
// const brandPrimary = '#20a8d8'
const brandSuccess = '#4dbd74';
const brandInfo = '#63c2de';
const brandDanger = '#f86c6b';
function convertHex (hex, opacity) {
hex = hex.replace('#', '');
const r = parseInt(hex.substring(0, 2), 16);
const g = parseInt(hex.substring(2, 4)... |
describe('ionRefresher directive', function() {
beforeEach(module('ionic'));
function setup(attrs, scopeProps) {
var el;
inject(function($compile, $rootScope) {
var scope = $rootScope.$new();
var ionicScrollCtrl = {
_setRefresher: jasmine.createSpy('setRefresher'),
scrollView: {
... |
export default `
<h2>Name</h2>
<p>The Surah has been so designated after the word <em>ash-shams</em> with which it opens.</p>
<h2>Period of Revelation</h2>
<p>The subject matter and the style show that this Surah too was revealed in the earliest period at Makkah at a stage when opposition to the Holy Prophet (upon who... |
/*
1.7~1.26 集“年味卡”,享年货盛宴 [jd_opencardLH40.js]
新增开卡脚本
一次性脚本
1.邀请一人10豆
2.开10张卡 成功开1张 获得5豆
3.关注5豆
4.抽奖
5.集卡
每次执行脚本集到可以合成1张卡不再集卡
当第2次执行时会再集卡
6.大于1张福卡时 1月27号会通知瓜分
第一个账号助力作者 其他依次助力CK1
第一个CK失效会退出脚本
————————————————
入口:[ 1.7~1.26 集“年味卡”,享年货盛宴 (https://lzdz1-isv.isvjcloud.com/dingzhi/customized/common/activity?activityI... |
import React from "react"
import { chakra, Code, useColorMode } from "@chakra-ui/react"
import PropTypes from 'prop-types';
export const MakeOwnCodeBlock = (props) => {
const { colorMode } = useColorMode();
return (
<Code backgroundColor={colorMode === "dark" ? "#2b213a" : "#f5f5f5"} px={4} py={2} borderRadiu... |
module.exports = new Date(1987, 8, 21) |
//# sourceMappingURL=final-form.umd.min.js.map |
mycallback( {"CONTRIBUTOR OCCUPATION": "Director of Strategic Resources", "CONTRIBUTION AMOUNT (F3L Bundled)": "123.08", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "INT'L ASSOC. OF MACHINISTS", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "516 ASHFORD ROAD", "CONTRIBUTOR MIDDLE NAME": "S", "D... |
import styled from "styled-components";
import { Button } from "@material-ui/core";
import { Flex, Box } from "rebass";
import { space, layout, typography } from "styled-system";
import Head from "next/head";
const Page = styled.div`
max-width: 1280px;
margin: 0 auto;
`;
const PageContent = styled.div`
max-widt... |
const ent = require('ent')
const moment = require('moment')
const { err } = require('./util')
// List private messages (paginated).
export const list = ({ request }) =>
async ({ page = 1 } = {}) => {
const response = await request({
uri: 'messages-prives/boite-reception_ws.php',
qs: { page }
})
... |
const webpackLoaders = require("./../webpack/loaders.js");
module.exports = function (config) {
config.set({
basePath: "../",
frameworks: ["jasmine"],
browsers: ["PhantomJS"],
plugins: [
"karma-webpack",
"karma-babel-preprocessor",
"karma-phantomj... |
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define('three.MMDPhysics', ['three'], factory);
}
else if ('undefined' !== typeof exports && 'undefined' !== typeof module) {
module.exports = factory(require('three'));
}
else {
factory(root.THREE);... |
$(document).ready(function() {
$(".fixTable").tableHeadFixer({"left" : 1});
var modal = $("#myModal");
var selectedCell = null;
$(".fixTable td").click(function() {
if( $(".fixTable thead th").length > 2 ) {
return;
}
modal.find("textarea").val($(this).text());
... |
const fs = require('fs')
const cp = require('child_process')
const execSync = cp.execSync
function start(config, options) {
const filename = options.destPath
if (fs.existsSync(filename) || (fs.existsSync(filename + '.xz'))) {
console.log(filename, '(or ' + filename + '.xz) already exists please delete or spe... |
// Для работы с событиями, необходимо подключить модуль 'events'
var fileReader = require('./readFile.js');
// Создаем объект ридера
var reader = new fileReader.Reader();
// функция readDataFromFile подключается к файлу, считывает данные и передает в нашу callback функцию
reader.readDataFromFile('file.js', function(res... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import { Basic, Advanced, Managers } from 'czechidm-core';
import { SynchronizationLogManager } from '../../redux';
const manager = new SynchronizationLogManager();
/**
* Sync log basic information (info card).
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const wrapIcon_1 = require("../utils/wrapIcon");
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const bson_1 = require("bson");
const type_1 = require("./type");
exports.sleep = (ms = 0) => new Promise(r => setTimeout(r, ms));
const counters = {};
exports.autoCount = (domain = 'any') => {
if (!counters[domain]) {
counters[dom... |
'use strict';
function initCreate() {
document.getElementById('create_docreate').addEventListener('click', onDoCreate);
document.getElementById('create_doabort').addEventListener('click', onDoAbort);
document.getElementById('create_generate').addEventListener('change', onGenerateCheckboxChange);
}
functio... |
/**
* @component
*/
import dynamic from 'next/dynamic'
import {motion} from 'framer-motion'
/*
import Global from '../../packages/package.core.ui/web/global/Global'
import Document from '../../packages/package.core.ui/web/documents/Document'
import RenderLayout from '../../packages/package.core.ui/web/layouts/Rende... |
/**
* @Author: Caven
* @Date: 2020-01-07 20:51:56
*/
import { Cesium } from '@dc-modules/namespace'
import State from '@dc-modules/state/State'
import Parse from '@dc-modules/parse/Parse'
import Overlay from '../Overlay'
class Tileset extends Overlay {
constructor(url, options = {}) {
super()
this._deleg... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /></React.Fragment>
, 'PanoramaFishEye'); |
#!/usr/bin/env node
var spawn = require('child_process').spawn;
const path = require("path")
const extension = ["win32", "cygwin"].includes(process.platform) ? ".exe" : ""
const exePath = path.join(__dirname, `commitlint${extension}`)
var command_args = process.argv.slice(2);
var child = spawn(
exePath,
comma... |
$(document).ready(function(event){
$('.link-clickable').mousedown(function(event) {
var hyperlink = $(this).find('a');
var url = hyperlink.attr('href');
switch(event.which)
{
case 1:
console.log("BT:1!");
window.location.href = url;
break;
case 2:
console.log("BT:!");
window.open... |
/**
* @license Apache-2.0
*
* Copyright (c) 2019 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... |
// Turn on Simplifier Led
document.addEventListener("click", function(){
document.getElementById("simplifier__guitar--on").style.opacity = '1';
});
// Switchs
window.onload = function(){
let images = []
function preload() {
for (i = 0; i < preload.arguments.length; i++) {
images[i] = new Image()
... |
// Underscore.js 1.9.1
// http://underscorejs.org
// (c) 2009-2018 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Underscore may be freely distributed under the MIT license.
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'removeformat', 'en-gb', {
toolbar: 'Remove Format'
} ); |
import { ignoreSubCalls as _ignoreSubCalls } from '../trace.js';
// Workaround webpack adding Object() references which break tracking.
const ignoreSubCalls = _ignoreSubCalls;
/**
* Make `RegExp.prototype.test` consistent by ignoring sub-calls to `exec`.
* Both Chrome and Firefox make these sub-calls. Edge does not... |
const randomExt = require('random-ext');
const config = {
stratName: 'neuralnet',
gekkoConfig: {
watch: {
exchange: 'bitfinex',
currency: 'USD',
asset: 'BTC'
},
daterange: 'scan',
// daterange: {
// from: '2019-01-01 00:00',
// to: '2020-02-01 00:00'
// },
simula... |
import Layout from "components/Layout"
import Title from "components/Title"
import Breadcrumb from "components/Breadcrumb"
import Skema from "components/Skema"
import { data } from "lib/data-skema"
export default function SkemaLSP() {
return (
<Layout title="Skema LSP">
<div className="max-w-5xl m-auto pt-... |
'use strict';
module.exports = function () {
return {
allow: false, // TODO fix hanging and enable // stamp.p !== 'win32',
note: 'requires MongoDB installed',
};
}; |
/**
* @fileoverview Rule to enforce var declarations are only at the top of a function.
* @author Danny Fritz
* @author Gyandeep Singh
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//-------------------------------------------------------------... |
define({_widgetLabel:"tablica",_widgetDescription:"Ovo je interaktivan widget tablice",showAllRecords:"Prikaži sve zapise",refresh:"Osvježi",showHideCols:"Prikaži/skrij stupce",toggleSelect:"Prikaži odabir/sve",_action_viewInTable_label:"Prikaži u tablici",tableDataActionLable:"{layer} odabir tablice"}); |
import { searchMixins } from "components/shared/mixins/search_mixins";
describe("search_mixins", () => {
describe("#flattenCurrentFilters", () => {
const subject = searchMixins.methods.flattenCurrentFilters;
it("merges values from multiple arrays into one array", () => {
const filters = { a: ["a1", "a... |
/* global XMLHttpRequest */
var utils = {}
utils.defaultRequest = function (method, requestUrl, headers, content, callback, options) {
options = options || {}
var withCredentials = true
if ('withCredentials' in options) {
withCredentials = options.withCredentials
}
// support require module compatible... |
/* Copyright 2013 BlackBerry Limited
* @author: Anzor Bashkhaz
* @author: Isaac Gordezky
*
* 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... |
/**
* Kendo UI v2019.2.619 (http://www.telerik.com/kendo-ui)
* Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
'use strict'
var request = require('request');
var config = require('../config');
var h = require('../helper');
var log = require('../log');
var Plugin = require('../plugin');
var session = require('../session');
//
// [Usage]
//
// https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/leetcode.cn.md
//
... |
import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { Link } from 'gatsby'
/*
⚠️ This is an example of a contact form powered with Netlify form handling.
Be sure to review the Netlify documentation for more information:
https://www.netlify.com/docs/form-hand... |
'use babel';
import url from 'url';
import ConfigModel from './models/config';
import {createView} from './views/config';
import {
disposeAll
} from './atom-ternjs-helper';
import manager from './atom-ternjs-manager';
class Config {
constructor() {
this.disposables = [];
}
init() {
this.disposa... |
export * from './auth.actions'
export * from './user.actions'
export * from './init.actions'
export * from './memo.actions'
export * from './memo-modal.actions'
export * from './user-profile.actions' |
const router = require('express').Router();
const { Site, User, Location } = require('../../models');
const sequelize = require('../../config/connection');
const withAuth = require('../../utils/auth');
router.get('/Site', withAuth, (req, res) => {
Site.findAll({
where: {
user_id: req.session.us... |
const multer = require('multer');
const config = require('../../configs');
module.exports = function exceptionMiddleware() {
return async (ctx, next) => {
try {
await next();
} catch (error) {
ctx.ctxLogger.error(error);
if (error.status === 401) {
... |
import { EntityMixinLit } from 'siren-sdk/src/mixin/entity-mixin-lit.js';
import { OutcomeActivityCollectionEntity } from '../entities/OutcomeActivityCollectionEntity.js';
import { SkeletonMixin } from '@brightspace-ui/core/components/skeleton/skeleton-mixin.js';
export const TrendMixin = (superclass) => class extends... |
const path = require('path')
const crypto = require('crypto')
const multer = require('multer')
module.exports = {
storage: multer.diskStorage({
destination: path.resolve(__dirname, '..', '..', 'tmp', 'uploads'),
filename: (req, file, cb) => {
crypto.randomBytes(16, (err, raw) => {
if (err) retu... |
// eslint-disable-next-line @typescript-eslint/no-var-requires
const CopyPlugin = require("copy-webpack-plugin");
// eslint-disable-next-line @typescript-eslint/no-var-requires
const FilterWarningsPlugin = require("webpack-filter-warnings-plugin");
// eslint-disable-next-line @typescript-eslint/no-var-requires
const Te... |
/**
* get starred repos
*
**/
"use strict";
/**
* Definition
*
* global variable
* block variable
* constant
*
* check config file is exist
*
**/
const path = require('path')
, fs = require('fs')
, colors = require('colors')
, Q = require('q')
, initialize = require(path.join(LIBS_PATH, ... |
var request = require('request');
module.exports = {
getCities: function(req, res, next) {
var options = {
method: 'GET',
url: 'https://www.fromatob.com/api/v1/stops?name=ber'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
res.end(body)... |
var common = require('../common');
var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
process.exit();
}
var tls = require('tls');
var fs = require('fs');
var path = require('path');
// https://github.com/joyent/node/issues/1218
// uncatchable exception on TLS ... |
const bunyan = require('bunyan');
const { expect } = require('code');
const { afterEach, after, beforeEach, before, describe, it } = exports.lab = require('lab').script();
const mockery = require('mockery');
const nock = require('nock');
const sinon = require('sinon');
const mockArango = require('./mockArango');
const... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Cascader/Menu.vue?vue&type=script&lang=js&":
/*!****************************************************************************************... |
module.exports = class extends think.Model {
get pk() {
return 'spaceid';
}
/**
* 更新广告
*
* @param spaceid 广告位id
* @returns {Promise.<void>}
*/
async upad(spaceid) {
// 获取广告模板
let json, replace = [], adtemp = '', info, setting;
const space = await this.find({where: {spac... |
import {Dialog} from "../dialogs/Dialog.js";
export class FormNewPredictionProperty extends React.Component {
constructor(props) {
// onClose(newTitle)
super(props);
this.state = {title: ""};
this.onChange = this.onChange.bind(this);
this.onClose = this.onClose.bind(this);
... |
//! moment.js locale configuration
//! locale : Estonian [et]
//! author : Henry Kehlmann : https://github.com/madhenry
//! improvements : Illimar Tambek : https://github.com/ragulka
import moment from '../moment';
function processRelativeTime(number, withoutSuffix, key, isFuture) {
var format = {
's' : ... |
import Intersect from './IntersectionObserver'
import Mutation from './MutationObserver'
import Resize from './ResizeObserver'
function plugin(Vue) {
Vue.component('intersect', Intersect)
Vue.component('mutate', Mutation)
Vue.component('resize', Resize)
}
// Install by default if using the script tag
if (typeof... |
import "@babel/polyfill";
import chai from 'chai';
import { createBuilder, createTempDir } from 'broccoli-test-helper';
import Favicon from '../';
import path from 'path';
import fs from 'fs';
import Mocks from './fixtures/mocks';
const { expect } = chai;
chai.config.truncateThreshold = 1000;
describe('Favicon',... |
import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions/index';
import _ from 'lodash';
class Signup extends Component {
onSubmit({ email, password }) {
this.props.signupUser({ email, password });
}
renderAlert() {
if (this.props.errorMessage){... |
export {default} from "./adminVehical"; |
set_global("$", global.make_zjquery());
zrequire("people");
const settings_config = zrequire("settings_config");
zrequire("user_events");
set_global("activity", {
redraw() {},
});
set_global("settings_linkifiers", {
maybe_disable_widgets() {},
});
set_global("settings_org", {
maybe_disable_widgets() {},
... |
import Stops from './defaults.js';
import * as C from '../../common/StopSearch.js';
const StopSearchHandler = C.StopSearchHandlerBase.extend({
Stops: Stops,
major_type: Stops.ethnicities,
types: [Stops.ethnicities],
_pprint: (d) => d
});
const StopSearchTimeSeries = C.StopSearchTimeSeriesBase.extend({
de... |
/* @flow */
/**
* A better abstraction over CSS.
*
* @copyright Oleg Slobodskoi 2014-present
* @website https://github.com/cssinjs/jss
* @license MIT
*/
import Jss from './Jss'
import type {JssOptions} from './types'
/**
* Extracts a styles object with only rules that contain function values.
*/
export {defaul... |
// NOTES:
// - the errors actually still need to be reviewed to check that they
// are fully correct interpretations of the IDLs
"use strict";
const { collect } = require("./util/collect");
const expect = require("expect");
describe("Parses all of the invalid IDLs to check that they blow up correctly", () => {
... |
/*global $, Morris, gettext*/
$(function () {
// Question view
if (!$("#question-stats").length) {
return;
}
$(".chart").css("height", "250px");
var data_type = $("#question_chart").attr("data-type"),
data = JSON.parse($("#question-chart-data").html()),
others_sum = 0,
... |
'use strict';
/********************************************************************************************
* *
* Plese read the following tutorial before implementing tasks: *
* https://developer.mo... |
"use strict";
//Import.
//----------------------
//Configuration file.
const gSystemConfig = require("../config-application.js"); //System configuration.
//Node functions.
const FunctionsGeneric = require("../" + gSystemConfig.configDirectoryComponents + "/functions-generic.js");
const FunctionsCrypto = require("../"... |
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
/* Layout */
import Layout from '@/views/layout/Layout'
import LayoutHome from '@/views/layout/LayoutHome'
/* Router Modules */
import componentsRouter from './modules/components'
import chartsRouter from './modules/charts'
import tableRouter from ... |
'use strict';
const account = require('../sdk/account');
describe('account', () => {
test('GetUserAuthInfo', async () => {
const getUserAuthInfo = new account.GetUserAuthInfo();
const res = await getUserAuthInfo.isAuth(process.env.TENCENT_UIN);
expect(res).toEqual({
RequestId: expect.any(String),... |
define(
({
"widgets": {
"AboutDialog": {
"title": "Info",
"itemInfo": "Vaata objekti",
"itemInfoLink": "ArcGIS Online keskkonnas.",
"licenseHeader":"Litsents",
"dateCreated":"Loodud:",
"dateModified... |
// Copyright 2015-2016 Stephen Vickers <stephen.vickers.sv@gmail.com>
var dgram = require("dgram");
var events = require("events");
var net = require("net");
var os = require("os");
var util = require("util");
function _expandConstantObject(object) {
var keys = [];
for (var key in object)
keys.push(key);
for (va... |
import path from 'path';
import webdriver from 'selenium-webdriver';
import expect from 'expect';
import { doBefore, doAfter } from '../shared/functions';
import * as Test from '../shared/tests';
import { extensionName, appTitle, injectClassName } from '../config';
let extensionId;
describe('Chrome extension', functi... |
const express = require('express')
const Profession = require('../models/Profession')
const router = express.Router({mergeParams:true})
router.get('/', async (req, res)=> {
try {
const list = await Profession.find()
res.status(200).send(list)
} catch (e) {
res.status(500).json({
message: 'На сервер... |
var bsurl = require('../../../utils-music/bsurl.js');
var typelist = require('../../../utils-music/searchtypelist.js');
var nt = require("../../../utils-music/nt.js")
var app = getApp();
Page({
data: {
tab: { tab: typelist[0].type, index: 0 },
value: "",
tabs: typelist,
recent: wx.getStorageSync("rece... |
'use strict';
var _32 = {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 32,
height: 32,
},
content: [
{
elem: 'path',
attrs: {
d:
'M2 28h28v2H2zm25-17a1 1 0 0 0 1-1V7a1 1 0 0 0-.66-.94l-11-4a1 1 0 0 0-.68 0l-11 4A1 1 0 ... |
const Story = require("./../Models/storyModel");
const catchAsyncError = require("./../Utils/catchAsyncError");
exports.overview = catchAsyncError(async (req, res, next) => {
const stories = await Story.find();
res.status(200).render("overview", {
title: "A Website For Travel Lovers",
stories: stories,
}... |
var callbackArguments = [];
var argument1 = function callback(){callbackArguments.push(arguments)};
var argument2 = 618;
var argument3 = [5e-324,49];
var argument4 = function callback(){callbackArguments.push(arguments)};
var argument5 = function callback(){callbackArguments.push(arguments)};
var argument6 = true;
var ... |
import React from "react";
import { graphql, StaticQuery } from "gatsby";
import { BigPlayButton, Player } from "video-react";
import "video-react/dist/video-react.css";
const Videos = () => {
return (
<StaticQuery
query={graphql`
query VideosQuery {
allFile(sort: {fields: modifiedTi... |
var roleSpecializedUpgrader = {
run: function(creep) {
var result = creep.upgradeController(creep.room.controller);
if(result == ERR_NOT_IN_RANGE || result == ERR_NOT_ENOUGH_RESOURCES) {
creep.moveTo(creep.room.controller);
}
}
};
module.exports = roleSpecializedUpgrader; |
import browser from 'webextension-polyfill'
import { reaction } from 'mobx'
import UiState from '../stores/view/UiState'
reaction(
() => UiState.isRecording,
isRecording => {
isRecording ? createContextMenus() : destroyContextMenus()
}
)
function createContextMenus() {
/*browser.contextMenus.create({
... |
import React, { Component } from 'react';
import './App.css';
import { Route, Switch } from 'react-router-dom';
import Results from './Results';
import Navbar from './Navbar';
class App extends Component {
render() {
return (
<div className="App">
<Navbar />
<Switch>
<Route exact ... |
// Generated by ReScript, PLEASE EDIT WITH CARE
import * as Curry from "rescript/lib/es6/curry.js";
var UNSAFE_INTERNAL = {};
function getAsString(theme, breakpoint) {
var bpGet = breakpoint.NAME === "up" ? (function (v) {
return v.up;
}) : (function (v) {
return v.down;
});
var tmp;
... |
const express = require('express');
const bodyParser = require('body-parser');
const helmet = require('helmet');
const cors = require('cors');
const domainsRouter = require('../domains/domains-router');
const server = express();
//middleware
server.use(bodyParser.json());
server.use(helmet());
server.use(cors());
se... |
define([
"dojo/_base/declare",
"epi-cms/contentediting/command/Publish",
"episerver-labs-block-enhancements/inline-editing/commands/inline-command-mixin",
"epi-cms/contentediting/ContentActionSupport",
"epi/i18n!epi/cms/nls/episerverlabs.blockenhancements.inlinecommands.inlinepublish"
], function (
... |
/**
* Kendo UI v2017.1.223 (http://www.telerik.com/kendo-ui)
* Copyright 2017 Telerik AD. All rights reserved. ... |
var SESSION_STATUS = Flashphoner.constants.SESSION_STATUS;
var STREAM_STATUS = Flashphoner.constants.STREAM_STATUS;
var ROOM_EVENT = Flashphoner.roomApi.events;
var connection;
//initialize interface
function init_page() {
//init api
try {
Flashphoner.init({flashMediaProviderSwfLocation: '../../../../m... |
require("babel-polyfill");
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import PageForDesk from './PageForDesk.js';
require('../../src/assets/index.js');
import initStore from '../../src/redux/store.js';
ReactDOM.render(
<Provider store={initStore()}>
... |
import difference from 'lodash/difference';
import intersection from 'lodash/intersection';
window.difference = difference
window.intersection = intersection
export function updateAll(currentKeys, nextKeys) {
return (dispatch, getState) => {
const keysToEnter = difference(nextKeys, currentKeys);
const key... |
/**
* Auto-generated action file for "Update Management (automation-softwareUpdateConfigurationRun)" API.
*
* Generated at: 2019-06-11T15:13:29.134Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / azure-com-automation-software-update-configuration-run-connector
* Copyright © 2019, Deutsche Tele... |
//# sourceMappingURL=7.c9448f89b23af64d25f6.js.map |
/**
* Layui图标选择器
* @author wujiawei0926@yeah.net
* @version 1.1
*/
layui.define(['laypage', 'form'], function (exports) {
"use strict";
var IconPicker =function () {
this.v = '1.1';
}, _MOD = 'iconPicker',
_this = this,
$ = layui.jquery,
laypage = layui.laypage,
... |
"use strict";
const fs = require("fs");
const path = require("path");
const childProcess = require("child_process");
const expect = require("chai").expect;
const api = require("../src/api.js");
const packageJson = require(path.join(__dirname, "../package.json"));
module.exports = function () {
this.setDefaultTimeou... |
// helper functions
function randomInt(n) {
return Math.floor(Math.random() * n);
};
/**var brain = new AgentBrain(gameManager) */
function AgentBrain(gameEngine) {
this.size = 4;
this.previousState = gameEngine.grid.serialize();
this.reset();
this.score = 0;
};
AgentBrain.prototype.reset = functi... |
const fetch = require("node-fetch");
module.exports = (app, client) => {
app.get("/api/v1/user/:userID", (req, res, next) => {
if (!req.params.userID) {
return res.json({
code: 1,
message: "Invaild user ID!",
});
}
if (isNaN(req.params.userID)) {
return res.json({
code: 1,
message: "Inva... |
"use strict";
/*
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* ... |
"use strict"
import produce, {
setUseProxies,
applyPatches,
produceWithPatches
} from "../src/index"
jest.setTimeout(1000)
function runPatchTest(base, producer, patches, inversePathes) {
let resultProxies, resultEs5
function runPatchTestHelper() {
let recordedPatches
let recordedInversePatches
const res =... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assignment-operators-static-semantics-early-errors
info: |
It is an early Syntax Error if AssignmentTargetType of
LeftHandSideExpression is invalid or strict.
desc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.