text stringlengths 2 1.04M |
|---|
/**
* @fileoverview Rule to flag use of function declaration identifiers as variables.
* @author Ian Christian Myers
* @copyright 2013 Ian Christian Myers. All rights reserved.
*/
"use strict";
var astUtils = require("../ast-utils");
//-----------------------------------------------------------------------------... |
"use strict";
import fs from "fs";
import path from "path";
import { expect } from "chai";
import fileType from "file-type";
import PNG from "../src/cropng";
describe("Croppng", function () {
it("requires an image", function () {
expect(function () {
new PNG();
}).to.throw("Missing required image");... |
import { registerPostprocessor } from "@riotjs/compiler";
import babel from "@babel/core";
registerPostprocessor((code, { options }) => {
return babel.transform(code, {
sourceMaps: false,
// retainLines: true,
sourceFileName: options.file,
presets: [
[
"@babel/preset-env",
{
... |
/*
* Copyright 2015-2017 WorldWind Contributors
*
* 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 l... |
function calculateTimeToWalk(steps,footLength,speed){
let distance=steps*footLength;
let breakTimeInSeconds = Math.floor(distance/500)*60;
let timeInSeconds = Math.round(distance/speed*3.6 + breakTimeInSeconds);
let seconds= timeInSeconds%60;
let minutes= ((timeInSeconds-seconds)/60)%60;
let hours=((... |
import base from './base';
import api from './group';
import wepy from 'wepy';
import order from './order'
import Page from '../utils/Page';
export default class group extends base {
/***
* 根据拼团商品规则ID查找拼团信息(商品)
*/
static rule (ruleId) {
const url = `${this.baseUrl}/goods_bargain/rules/${ruleId}`;
ret... |
import Navbar from "../components/Navbar";
export default function Header() {
return (
<div className="container">
<Navbar />
</div>
);
} |
const passHash = require("../utils/bcrypt");
const insertUser = require("./insert-user");
const knex = require("../db/connection");
const validateUserEnrol = body => {
const [user] = body;
return Promise.all([
knex("users")
.select("*")
.where("username", user.username),
user
])
.then(([... |
/**
* @author Charlie Calvert
*/
/*jshint devel: true, jquery: true, strict: true, node: true */
var express = require('express');
var app = express();
var fs = require('fs');
var querystring = require('querystring');
// var nano = require('nano')('http://ccalvert:foobar@192.168.2.21:5984');
// var nano = require(... |
const {Router} = require('express');
const routes = Router();
const DevController = require('./controllers/DevController');
const SearchController = require('./controllers/SearchController');
routes.get('/', (req,res)=>{
return res.json({message:'ok'});
})
routes.get('/devs',DevController.index);
routes.post('/de... |
$(document).ready(function() {
$("#formOne").submit(function(event) {
event.preventDefault();
const answer = $("input#sentence").val();
const newAnswer = answer.split(" ");
const greaterThan = [];
newAnswer.forEach(function(element) {
if(element.length >= 3) {
greaterThan.push(... |
const fs = require('fs');
const { expect } = require('chai');
var sleep = require('sleep');
/**
* Constructor inherits VRFConsumerBase
*
* Network: Rinkeby
* Chainlink VRF Coordinator address: 0xb3dCcb4Cf7a26f6cf6B120Cf5A73875B7BBc655B
* LINK token address: 0x01be23585060835e02b77ef475b0cc51aa1e070... |
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/ |
import React from 'react'
class PerguntaFechada extends React.Component {
render() {
return (
<div>
<p>{this.props.pergunta}</p>
<select value={this.props.opcao}>
<option value="">{this.props.opcao1}</option>
<option value="">{this.props.opcao2}</option>
<optio... |
import React from 'react'
import SvgContainer from './SvgContainer'
const BluetoothOutline = ({ height = 22, width = 22, style = {}, color = '#000', cssClasses = '', className = '', onClick = () => null }) => {
return (
<SvgContainer
height={height}
width={width}
color={color}
onClick={on... |
import React from 'react';
import CardGroup from './CardGroup';
import cardType from './Constants';
const CardGroupRadio = (props) => {
const { children } = props;
return (
<CardGroup {...props} type={cardType.RADIO}>
{children}
</CardGroup>
);
};
const propTypes = {
...CardGroup.PropTypes,
};
d... |
/* eslint-disable camelcase */
const colors = require('colors/safe');
const exec = require('child_process').execSync;
const fs = require('fs');
// eslint-disable-next-line camelcase
const download_oc = require('./download');
const change = require('./change');
const ocpath = 'openshift-origin-client-tools-v';
// es... |
import React, { useEffect, useRef } from 'react';
import { Loading as AppBridgeLoading } from '@shopify/app-bridge/actions';
import { useFrame } from '../../utilities/frame';
import { useAppBridge } from '../../utilities/app-bridge';
export const Loading = React.memo(function Loading() {
const appBridgeLoading = us... |
/*
* @name Precedencia de operadores
* @description Si no defines explicitamente el orden en que una
* expresión es evaluada, son evaluadas basándose en la precedencia de operador.
* Por ejemplo, en la instrucción "4+2*8", el 2 será
* primero multiplicado por 8 y luego el resultado será sumado a 4.
* Esto ocurre ... |
/*
* Discord Monopoly Bot: 1/5/19
* By Ian Wasson & John Bernards
*
* This is intented to be a Discord Bot that allows users
* to play a game of Monopoly. This game is in no way endorsed by
* nor supported by Hasbro Games. It is intended as a parody game
* and for personal educational purposes only.
*/
const ... |
import React from 'react';
import ReactRecaptcha from 'react-recaptcha';
import styled from 'styled-components';
const StyledContainer = styled.div`
margin-bottom: ${({ theme }) => theme.spacing.standard};
`;
const Recaptcha = props => {
const siteKey =
process.env.NODE_ENV === 'development'
? '6LejUYgU... |
var calc = function add(x, y) {
return x + y;
};
calc(1, 2); |
draw = function() {
ellipse(pmouseX, pmouseY, 10, 10);
ellipse(mouseX, mouseY, 10, 10);
line(mouseX, mouseY, pmouseX, pmouseY);
}; |
import React from 'react';
import Promise from 'promise';
const RssiSignalStrength = (props) => {
// rssi: (int) is the signal strength with range -113dBm to -51dBm (in 2dBm steps).
// This variable also doubles as an error response for the entire struct; positive return values indicate an error with:
// 1: indi... |
require('dotenv').config();
const CubejsServerCore = require('@cubejs-backend/server-core');
class CubejsServer {
constructor(config) {
config = config || {};
this.core = CubejsServerCore.create(config);
}
async listen() {
try {
const express = require('express');
const app = express();
... |
define({
"error.0": "Се појави грешка при проверувањето на оваа адреса.",
"error.400": "Лошо барање. Барањето не можеше да биде извршено поради лоша синтакса.",
"error.401": "Неавторизиран. Автентикацијата не беше успешна или сеуште не е поднесена.",
"error.402": "Потребно е плаќање.",
"error.403": "Забрането. Бар... |
const {EPS, angleEPS} = require('../core/constants')
const Vertex = require('../core/math/Vertex3')
const Vector2D = require('../core/math/Vector2')
const Polygon = require('../core/math/Polygon3')
const {fnNumberSort, isCSG} = require('../core/utils')
const {fromPoints, fromPointsNoCheck} = require('../core/CAGFactori... |
"use strict"
const webpack = require("webpack")
const baseConfig = require("./base")
const defaultSettings = require("./defaults")
const ExtractTextPlugin = require("extract-text-webpack-plugin");
let config = Object.assign({}, baseConfig, {
entry: [
"./client/app.js"
],
devtool: "eval-source-map",
plugin... |
// @flow
import WithPost from '../../components/WithPost';
export default WithPost({
"attributes": {
"timestamp": 1402842853000,
"title": "Čteme Data Matrix bez čtečky",
"slug": "cteme-data-matrix-bez-ctecky"
},
}); |
const livros = require('./database')
//pegar o input usando a dependencia readline sync
const readline = require('readline-sync')///consigo usar tudo o que a biblioteca disponibiliza a traves da palavra readline
const entradaInicial = readline.question('Deseja buscar um livro? S/N')
//Se sim a gente mostra as cate... |
const Span = require('./Span')
function split (span, f) {
// A span is used to record a slice of s of the form s[start:end].
// The start index is inclusive and the end index is exclusive.
let spans = []
// Find the field start and end indices.
let wasField = false
let fromIndex = 0
// Iterate unicode ... |
/*
Refactor the code from the previous exercise to use explicit coercion, so it logs 15 instead.
*/
console.log(Number('5') + 10);
console.log(Number.parseInt('5', 10) + 10); |
import React from 'react';
const NotificationIcon = ({fill = 'red', width = 40, height = 40}) => {
return (
<svg version="1.1" width={width} height={height} id="Capa_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
viewBox="0 0 231.233 231.233" style={{enableBackground: "new 0 0 231.2... |
// main.js
/**
* @license twitch-desktop-app
* (c) 2016 idietmoran <idietmoran@gmail.com>
* License: MIT
*/
/**
* @description : main file for the app
*/
const electron = require('electron');
const ipcMain = electron.ipcMain;
const app = electron.app; // module to control the application life
const BrowserWindow... |
function rememberMe() {
$cookie = isset($_COOKIE['rememberme']) ? $_COOKIE['rememberme'] : '';
if ($cookie) {
list ($user, $token, $mac) = explode(':', $cookie);
if (timingSafeCompare(hash_hmac('sha256', $user . ':' . $token, SECRET_KEY), $mac)) {
return false;
}
$use... |
module.exports = function reverse (n) {
if(n < 0) {
n = -n;
};
let res = n.toString().split('').reverse().join('');
//console.log(res);
res = +res;
//console.log(res);
//console.log(typeof res);
return res;
} |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var genreSchema = new Schema(
{
name: { type: String, required: true, min: 3, max: 100}
}
);
// Virtual for bookinstance's URL
genreSchema
.virtual('url')
.get(function () {
return '/catalog/genre/' + this._id;
});
//Export model
module.exp... |
/* line 1 "./ragel/tsdp_parser_header_Str.jrl" */
/*
* Copyright (C) 2012-2018 Doubango Telecom <http://www.doubango.org>
* License: BSD
* This file is part of Open Source sipML5 solution <http://www.sipml5.org>
*/
// Parse headers: B, E, I, K, P, R, S, T, U, Z, Dummy
tsdp_header_Str.prototype = Object.create(tsdp_hea... |
load("0d8683db8b3792521a65ad1edba9cf82.js");
load("dada5190587903f93a3604016a6099ce.js");
load("53234245c682115e8e9d606e8a018647.js");
load("f97f812a5ab64ea9690cec2137bfb84a.js");
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2... |
'use strict';
angular.module('crdsAuth', [])
.factory('Auth', function($http, $rootScope, $q) {
return {
getCurrentUser: function() {
var deferred;
deferred = $q.defer();
$http.get(
'/api/ministryplatformapi/PlatformService.svc/GetCurrentUserInfo')
.then(function(response) {
... |
const daysEl = document.getElementById("days");
const hoursEl = document.getElementById("hours");
const minsEl = document.getElementById("mins");
const secondsEl = document.getElementById("seconds");
const newYears = "1 Jan 2021";
function countdown() {
const newYearsDate = new Date(newYears);
const currentDa... |
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}var _isObject=require("lodash/isObject"),_isObject2=_interopRequireDefault(_isObject),_checkClassStructure=require("./check-class-structure"),_checkClassStructure2=_interopRequireDefault(_checkClassStructure),_combine=require("./comb... |
/**
* This file contains all necessary Angular controller definitions for 'frontend.admin.login-history' module.
*
* Note that this file should only contain controllers and nothing else.
*/
(function() {
'use strict';
angular.module('frontend.users')
.controller('UsersController', [
'_','$scope', '$q... |
import Book from "../../citations/Book.svelte";
import { render } from "@testing-library/svelte";
describe("Book (citation type)", () => {
test("Data with DOI creates link", () => {
const { queryByRole } = render(Book, { data: data.withDoi });
expect(queryByRole("link")).toBeTruthy();
});
test("Data wit... |
queue()
.defer(d3.json, 'data/accounts.json')
.await(makeGraphs);
function makeGraphs(error, apiData) {
var dataSet = apiData;
// force value to be numeric
dataSet.forEach(function (d) {
d.value = +d.value;
d.designator = d.year + ' ' + d.qualifier + ' (' + d.source + ')';
});... |
import * as keyPairsStore from '../models/key-pairs/KeyPairsStore';
function registerAppContextItems(appContext) {
keyPairsStore.registerContextItems(appContext);
}
// // eslint-disable-next-line no-unused-vars
// function postRegisterAppContextItems(appContext) {
// // No impl at this level
// }
const plugin = ... |
import React from 'react';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
import Home from '../pages/Home';
import Reports from '../pages/Reports';
const appStyle = {
border: "1px solid lightgray"
};
const notFound = () => {
return (<div>Not Found</div>);
};
const App = () => {
re... |
import React from "react";
import { graphql } from "gatsby";
import Layout from "../components/layout";
export const query = graphql`
query($slug: String!) {
markdownRemark(fields: { slug: { eq: $slug } }) {
frontmatter {
title
date
... |
/**
* @file Test case for setup.
* Runs with mocha.
*/
'use strict'
const setup = require('../lib/setup.js')
const assert = require('assert')
const ponContext = require('pon-context')
const theDB = require('@the-/db')
describe('setup', function () {
this.timeout(3000)
before(async () => {
})
after(asyn... |
ZRF = {
JUMP: 0,
IF: 1,
FORK: 2,
FUNCTION: 3,
IN_ZONE: 4,
FLAG: 5,
SET_FLAG: 6,
POS_FLAG: 7,
SET_POS_FLAG: 8,
ATTR: 9,
SET_ATTR: 10,
PROMOTE: 11,
MODE: 12,
ON_BOARD_DIR: 13,
... |
/**
* Delete set of documents based on a range
*/
// Use `var solr = require('solr-client')` in your code
var solr = require('./../lib/solr');
var client = solr.createClient();
var startOffset = new Date();
start.setDate(start.getDate() -1);
var stopOffset = new Date();
client.deleteByRange('last_update',startOffs... |
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
import axios from 'axios'
import QS from 'QS'
import ElementUI from 'element-ui'
import 'element-ui... |
import React, { useState } from "react"
import { SelectStars } from "../styles/components"
const Stars = () => {
const [stars, setStars] = useState(5)
return (
<SelectStars selected={stars}>
<span
role="img"
aria-label="emoji"
onClick={() => {
setStars(1)
}}
... |
// urlscan-api.js
// Copyright (C) 2018 Rob Colbert <rob.colbert@openplatform.us>
// License: MIT
'use strict';
const request = require('request-promise-native');
class UrlScanner {
constructor (options) {
var scanner = this;
scanner.options = options;
}
scanUrl (url) {
var scanner = this;
va... |
"use strict";
module.exports = {
options: {},
defaults: {
lang: "en",
debug: true,
debug_prefix: "<lang='",
debug_suffix: "'/>",
dictionary: {
en: {
module_language: ["Txty language set to "],
module_thislang: ["English"],
module_debug_start: ["###Txty debug mode is... |
const passport = require('passport');
const LocalStrategy = require('passport-local').Strategy;
const User = require('../models/users');
module.exports = function() {
console.log('====> LocalStrategy function')
passport.use(new LocalStrategy(authLocal));
};
function authLocal(username, password, done){
... |
const fs = require('fs')
const url = require('url')
const path = require('path')
const fetch = require('node-fetch').default
const uri2path = require('file-uri-to-path')
const data2buf = require('data-uri-to-buffer')
const mime = require('mime-types')
const {expandEnvironmentVariables} = require('../h... |
$(document).ready(function() {
$("form").on('submit', function(e){
if($(this).attr("data-ajax") == "true")
e.preventDefault();
form = $(this).serializeArray();
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': '{{ csrf_token() }}'
}
});
... |
import {doneValue, getIterator, iteratorResultCreator} from "../../utils";
export default class ArrayLikeIterable {
constructor(source) {
this.source = source;
}
get() {
return Array.isArray(this.source) ? this.source : this;
}
[Symbol.iterator]() {
if (Array.isArray(this.... |
import { shallow } from "enzyme"
import React from "react"
import { GifGrid } from "../../components/GifGrid"
import { useFetchGifs } from "../../hooks/useFetchGifs";
jest.mock("../../hooks/useFetchGifs");
describe('Pruebas en GifGrid', () => {
const category = 'One punch';
const wrapper = shallow( <GifG... |
import Cartesian3 from "./Cartesian3.js";
import Check from "./Check.js";
import defaultValue from "./defaultValue.js";
import defined from "./defined.js";
import DeveloperError from "./DeveloperError.js";
import CesiumMath from "./Math.js";
/**
* A 3x3 matrix, indexable as a column-major order array.
* Constructor ... |
import createSuperheroTipAction from './tipButton';
let timeout = null;
const getTweetId = tweet => {
const status = tweet.querySelector("a[href*='/status/']");
if (!status || !status.href) {
return null;
}
return status.href.match('.*/status/[0-9]+')[0];
};
const configureSuperheroTipAction = async () ... |
var example = require("example");
a = new example.Complex(2,3);
b = new example.Complex(-5,10);
console.log ("a =" + a);
console.log ("b =" + b);
c = a.plus(b);
console.log("c =" + c);
console.log("a*b =" + a.times(b));
console.log("a-c =" + a.minus(c));
e = example.Complex.copy(a.minus(c));
console.log("e =... |
module.exports = {
assets: ["./src/assets/"], // stays the same run react native after changes
}; |
var ServerProxy = function () {
this.handler = {
'REPLICA': gMessageBroker.handleReplica,
'POSSESS': gMessageBroker.handlePossess,
'GAME_OVER': gMessageBroker.handleGameOver
};
};
ServerProxy.prototype.setupMessaging = function() {
var self = this;
gInputEngine.subscribe('up', f... |
import React from 'react'
import {shallow} from 'enzyme'
import Coin from './'
import { CashData, PercentageData } from './ColumnData';
describe('Coin', () => {
const props = {
dataset: {
data1: 8123.45,
data2: 12.2,
data3: 1.5,
data4: -3.5
},
... |
const config = require('../../../config');
let store;
let cache;
if (config.remoteDB === true) {
store = require('../../../store/remote-mssql');
cache = require('../../../store/remote-cache');
} else {
store = require('../../../store/mssql');
cache = require('../../../store/redis');
}
const controlle... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
import request from '@/utils/request'
// 用户列表
export function userList (params) {
return request({
url: '/user/user/page',
method: 'get',
params: params
})
}
// 批量删除用户
export function deleteByIds (ids) {
return request({
url: '/user/user/page',
method: 'delete',
params: { ids: ids }
})... |
import {BadgeService, BadgeServiceReceiver} from '/gen/third_party/blink/public/mojom/badging/badging.mojom.m.js';
class MockBadgeService {
constructor() {
this.receiver_ = new BadgeServiceReceiver(this);
this.interceptor_ =
new MojoInterfaceInterceptor(BadgeService.$interfaceName);
this.intercep... |
/**
* @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 './index.scss';
const IconButton = (props) => {
const { iconSrc, value, width, animated, fontSize, fontWeight, onClickHandler } = props;
let valueStyle = {
fontSize,
fontWeight
}
return (
<div onClick={onClickHandler} className="icon-button">
... |
import React from 'react';
import { View, StyleSheet, Text, Linking } from 'react-native';
export const Header = ({ subheading }) => (
<View style={s.header}>
<Text style={s.header__heading}>Modalize</Text>
<Text style={s.header__subheading}>{subheading}</Text>
<Text style={s.header__copy}>
Create... |
AOS.init({
duration: 800,
easing: 'slide'
});
(function ($) {
"use strict";
var isMobile = {
Android: function () {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function () {
return navigator.userAgent.match(/BlackBerry/i);
... |
export default {
fieldSet: (theme) => ({
root: {
display: 'flex',
flexDirection: 'column',
},
listItem: {
border: `1px dotted ${theme.palette.primary.main}`,
margin: theme.spacing(1),
padding: theme.spacing(1),
},
}),
fieldSetObject: {
root: {
display: 'flex',
flexDirection: 'column',
... |
import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types'
import styles from './styles'
import { withStyles } from '@material-ui/core/styles'
import withWidth from '@material-ui/core/withWidth'
import Grid from '@material-ui/core/Grid';
import TablePagination from '@material-ui/core/TableP... |
/**
* Created by kylejohnson on 28/01/2017.
*/
import React, { Component } from 'react';
import propTypes from 'prop-types';
import Button from "../../components/base/forms/Button";
const TermsScreen = class extends Component {
static propTypes = {
componentId: propTypes.string,
};
static displa... |
//Popup Layout
// --------- |
// Copyright 2020 Breakside Inc.
//
// Licensed under the Breakside Public License, Version 1.0 (the "License");
// you may not use this file except in compliance with the License.
// If a copy of the License was not distributed with this file, you may
// obtain a copy at
//
// http://breakside.io/licenses/LICENSE-... |
import replace from '@rollup/plugin-replace';
import { build } from 'vite';
import { resolveFile } from '../../../scripts/helper.js';
const artifacts = [
{ name: 'csv', entry: resolveFile('./packages/csv-parser/src/csv.ts') },
{ name: 'main', entry: resolveFile('./packages/csv-parser/src/worker/main/worker.ts... |
import React from 'react';
import dva from 'dva';
import createLoading from 'dva-loading';
import createHistory from 'history/createHashHistory';
import 'moment/locale/zh-cn';
import { message } from 'antd';
import models from './models';
import router from './router';
import './theme/skin.less';
const app = dva({
h... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createSelfSignedCert = createSelfSignedCert;
function _bluebirdLst() {
const data = require("bluebird-lst");
_bluebirdLst = function () {
return data;
};
return data;
}
function _builderUtil() {
const data = requir... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{595:function(o,e,t){"use strict";t.r(e);var s=t(3),n=Object(s.a)({},(function(){var o=this,e=o.$createElement,t=o._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":o.$parent.slotKey}},[t("h1",{attrs:{id:"common-js-和-es6-中模块引入的区别?"}},[t("a",{stati... |
// Node Modules
var express = require("express"),
_ = require("underscore"),
when = require("when"),
log4js = require("log4js");
// Local vars
var app = express(),
http = require("http").createServer(app),
configs = {}, log;
// io = require("socket.io").listen(http);
log4js.configure({
appenders: [
... |
const fs = require('fs');
const Discord = require('discord.js');
const client = new Discord.Client();
const config = require('./config.json');
client.config = config;
const { GiveawaysManager } = require('discord-giveaways');
client.giveawaysManager = new GiveawaysManager(client, {
storage: "./giveaways.json",
... |
/**
* Created by guillaume lebedel on 18/12/15.
* ConfigManager is a simple interface on top of localStorage to handle expiry of data
* and easy storing of javascript objects.
*/
/*global localStorage: false, console: false, $: false */
export default class ConfigManager {
static get EXPIRY_SUFFIX() {
... |
import {request} from './request'
export function getHomeMultidata() {
return request({
url: 'http://123.207.32.32:8000/home/multidata'
})
}
export function getHomeGoods(type, page) {
return request({
url: '/home/data',
params: {
type,
page
}
})
} |
/*
* Copyright (C) 1998-2020 by Northwoods Software Corporation. All Rights Reserved.
*/
/*
* This is an extension and not part of the main GoJS library.
* Note that the API for this class may change with any version, even point releases.
* If you intend to use an extension in production, you should copy the code to y... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"3TxT":function(t,n,r){"use strict";r.d(n,"a",function(){return u});var e=r("7PuO"),o=r("26FU"),u=function(){function t(t){this.emptyColor=t,this._colors=new o.a([])}return t.prototype.addColor=function(t){if(t&&Object(e.c)(t)){t=Object(e.b)(t)||this.emptyColor;v... |
/*
* Copyright (C) 2015-2016 Actor LLC. <https://actor.im>
*/
import { dispatch, dispatchAsync } from '../dispatcher/ActorAppDispatcher';
import { ActionTypes, CallTypes } from '../constants/ActorAppConstants';
import ActorClient from '../utils/ActorClient';
import CallStore from '../stores/CallStore';
const HIDE_M... |
!function(e){"function"==typeof define&&define.amd?define(["kendo.core"],e):e()}(function(){kendo.cultures["id-ID"]={name:"id-ID",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{name:"Indonesian Rupiah",ab... |
const consts = require('../consts.js')
const helpers = require('../helpers')
const senseHelpers = require("./helpers");
const deviceHelper = require("../deviceHelper");
module.exports = class RoccatSense {
ledDevice;
constructor(options) {
options = options ? options : {};
console.log("Initia... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./xml"), exports);
(0, tslib_1.__exportStar)(require("./types"), exports);
(0, tslib_1.__exportStar)(require("./decorators"), exports);
(0, tslib_1.__exportStar)(require("./con... |
!(function($){
$(document).ready(function(){
$('#block1').previewer({
trigger: 'hover',
type: 'image',
src: 'img/USA.gif'
});
$('#block2').previewer({
trigger: 'click',
type: 'image',
src: 'img/China.jpg'
... |
module.exports = {
name: "duck",
description: "Gives you a duck!",
category: "sfw"
}
module.exports.run = async (bot, msg) => {
require('.\\functions\\img')('duck', msg);
} |
/**
* Author: CodeLai
* Email: codelai@dotdotbuy.com
* DateTime: 2016/7/14 16:45
*/
import React from 'react';
export default class ProductCategoryRow extends React.Component {
render() {
return (<tr>
<th colSpan="2">{this.props.category}</th>
</tr>);
}
} |
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
// Node module: loopback-swagger
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
'use strict';
var ejs = require('ejs');
var util = require('util');
var _cloneDeep = require('lodash').cloneDeep;
va... |
const yaml = require('yaml-loader')
const fetch = require('node-fetch')
const fs = require('fs')
const accountId = process.env.CF_ACCOUNT_ID
const namespaceId = process.env.KV_NAMESPACE_ID
const apiToken = process.env.CF_API_TOKEN
const kvMonitorsKey = 'monitors_data_v1_1'
if (!accountId || !namespaceId || !apiToken... |
require('source-map-support').install();
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _libMjsonwp = require('./lib/mjsonwp');
var _libRoutes = require('./lib/routes');
var _libErrors = require('./lib/errors');
exports.MobileJsonWireProtocol = _libMjsonwp.MJSONWP;
expor... |
var __pageFrameStartTime__ = Date.now();
var __webviewId__;
var __wxAppCode__ = {};
var __WXML_GLOBAL__ = {
entrys: {},
defines: {},
modules: {},
ops: [],
wxs_nf_init: undefined,
total_ops: 0
};
var $gwx;
/*v0.5vv_20190312_syb_scopedata*/window.__wcc_version__='v0.5vv_20190312_syb_scopedata';window.__wcc_v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.