text stringlengths 2 1.04M |
|---|
import React, { useState } from 'react';
import InputMask from 'react-input-mask';
import { Link, useHistory } from 'react-router-dom';
import { FiArrowLeft } from 'react-icons/fi'
import api from '../../services/api';
import Logo from '../../assets/logo.svg';
import './styles.css';
export default function Register(... |
module.exports = (sequelize, DataTypes) => {
const Consejo = sequelize.define('Consejo', {
consecutivo: { type: DataTypes.STRING, primaryKey: true, allowNull: false },
id_tipo_sesion: {
type: DataTypes.INTEGER, allowNull: false, references: {
model: {
tableName: 'Tipo_Sesion'
}... |
import telComb from "../../code/array/lesson1";
test('telComb:""', () => {
expect(telComb("")).toEqual([]);
});
test("telComb:2", () => {
expect(telComb("2")).toEqual(["a", "b", "c"]);
});
test("telComb:23", () => {
expect(telComb("23")).toEqual([
"ad",
"ae",
"af",
"bd",
"be",
"bf",
"cd",
"ce",
... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[584],{"7KJl":function(c,h,e){"use strict";e.r(h);var v=e("q1tI"),t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8z... |
import ActionConstant from './ActionConstants';
import copyState from "../Helpers/copyStateHelper";
var initialState = {
loadingMessageTypes: true,
loadingWargames: true,
};
export const loadingDbReducer = (state = initialState, action) => {
var newState = copyState(state);
switch (action.type) {
case ... |
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark... |
(function() {
var fn = function() {
(function(root) {
function now() {
return new Date();
}
var force = false;
if (typeof (root._bokeh_onload_callbacks) === "undefined" || force === true) {
root._bokeh_onload_callbacks = [];
root._bokeh_is_loading = u... |
import React, {useContext} from 'react';
import { authContext } from './ContextAPI/Authentication';
import $ from 'jquery';
import loader from './assets/icecream_8.gif';
const showloader = () => {
$(".overlay_loader").show();
}
function LoginPage() {
const username = "fox";
const pass = "123";
$(docu... |
async function test() {
return $http.get({
url: "https://www.baidu.com?t=" + new Date().getTime()
})
}
async function main() {
let start = new Date().getTime()
let loop = 20
for (var i = 0; i < loop; i++) {
await test()
}
console.log(`${loop}个请求共计耗时:${(new Date().getTime() - start) / 1000}s`)
}
... |
const mongoose = require("mongoose");
const TransactionSchema = new mongoose.Schema({
text: {
type: String,
trim: true,
required: [true, "Please add some text!"],
},
amount: {
type: Number,
required: [true, "Please add a positive or negative number!"],
},
createdAt: {
type: Date,
... |
//DEPRECATED
// import { useState } from "react";
// import { Center, Box, Grid, GridItem, Spinner } from "@chakra-ui/react";
// import Search from "../components/Search";
// import { useQuery } from "@apollo/react-hooks";
// import { QUERY_APPOINTMENTS } from "../../database/queries";
// function Calendar() {
// /... |
var tap = require('tap');
var path = require('path');
var spawn = require('child_process').spawn;
var concat = require('concat-stream');
var stripFullStack = require('./common').stripFullStack;
tap.test('callback returning rejected promise should cause that test (and only that test) to fail', function (tt) {
tt.p... |
import React from 'react';
import { regexType } from '@/utils/utils';
import AreaCascader from '@/components/Cascader/areaCascader';
import API from '@/services/api';
import PosMap from '@/components/Map/posMap';
import {
Form,
Input,
Button,
Row,
Col,
message
} from 'antd';
const FormItem = For... |
jQuery (function ($) {
EBANX.errors.summary.pt_BR['BP-DR-57'] = 'A data do cartão de crédito deve estar no formato MM/AA';
EBANX.errors.summary.es['BP-DR-57'] = 'Por favor, escribe la fecha en el formato MM/AA';
EBANX.errors.summary.pt_BR['BP-DR-101'] = 'Ops! Esse cartão não está liberado para fazer compras na int... |
const express = require("express")
const helmet = require("helmet")
const cors = require("cors")
const sessions = require("express-session")
const KnexSessionStore = require("connect-session-knex")(sessions) //store sessions in database
const authRouter = require("./auth/auth-router")
const usersRouter = require("./us... |
import React from 'react';
import Container from '@mui/material/Container';
import DepartureListItem from '../DepartureListItem/DepartureListItem';
const DeparturesList = ({ departures, lines, services, transportType, includeStopName = false, includeDestinationName = true, includeServiceName = false }) => {
con... |
import PlotlyFold from './PlotlyFold';
import PlotlyPanel from './PlotlyPanel';
import PropTypes from 'prop-types';
import React, {Component} from 'react';
import {connectTransformToTrace} from 'lib';
import {PanelMessage} from './PanelEmpty';
import {EditorControlsContext} from '../../context';
// import {recursiveMap... |
const express = require('express');
const isAdmin = require('../util/isAdmin');
const { body } = require('express-validator/check');
const router = express.Router();
const Product = require('../models/product');
const adminController = require('../controllers/admin');
router.get('/products', isAdmin, adminController.ge... |
var Plugin_8h =
[
[ "Plugin", "classSimTK_1_1Plugin.html", "classSimTK_1_1Plugin" ],
[ "SimTK_PLUGIN_XXX_MAKE_HOLDER", "Plugin_8h.html#ac172341527a4e3d847dfbb7d8d4d20aa", null ],
[ "SimTK_PLUGIN_XXX_MAKE_BODY", "Plugin_8h.html#ad76891fab1443a6ac997bca31c9e9aa2", null ],
[ "SimTK_PLUGIN_XXX_MAKE_SYMTEST"... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("form",function(t){var e={action:1,id:1,method:1,enctype:1,target:1};return{title:t.lang.forms.form.title,minWidth:350,minHeight:200,onShow:function(){dele... |
var cloneObject = require("clone");
function clone(nodes) {
var newNodes = [];
for (var i=0; i<nodes.length; i++) {
var clone = cloneObject(nodes[i]);
if (clone.hasListeners)
for (var event in clone.listeners) {
for (var i = 0; i < clone.listeners[event].length; i++) ... |
import { createSelector } from 'reselect';
const registerSelector = state => state.register;
// prettier-ignore
export const makeGetLoading = () => createSelector(
registerSelector,
registerState => registerState.loading
);
// prettier-ignore
export const makeGetError = () => createSelector(
registerSelector,
... |
/*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 */
/**
* @author Solution Builders
*/
'use strict';
angular.module('serverlessVideoTranscode.factory.cart', ['ngResource', 'serverlessVideoTranscode.utils', 'serverlessVideoTranscode.service.auth'])
.factory... |
const { ME_USER_NAME_PLACEHOLDER } = require('apify-shared/consts');
const { APIFY_API_ENDPOINTS } = require('./consts');
const { wrapRequestWithRetries } = require('./request_helpers');
// This method can return any truthy value to indicate the credentials are valid.
const testAuth = async (z) => {
const response... |
var searchData=
[
['getaxis',['getAxis',['../classsc_1_1_quat.html#ad15c2e3d7af05d622e14b8f3bb0ea1db',1,'sc::Quat']]],
['getcolumn',['getColumn',['../classsc_1_1_mat3.html#a78a8e8d193b35c136e52f36698ece536',1,'sc::Mat3']]],
['getconna',['getConnA',['../classsc_1_1_constraint.html#a3db64440222aa216c8e72d262372971f... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof2 = require('babel-runtime/helpers/typeof');
var _typeof3 = _interopRequireDefault(_typeof2);
var _keys = require('babel-runtime/core-js/object/keys');
var _keys2 = _interopRequireDefault(_keys);
var _create = require('babel... |
import { GPUIndexFormat, GPUTextureFormat, GPUStoreOp } from './constants.js';
import WebGPUObjects from './WebGPUObjects.js';
import WebGPUAttributes from './WebGPUAttributes.js';
import WebGPUGeometries from './WebGPUGeometries.js';
import WebGPUInfo from './WebGPUInfo.js';
import WebGPUProperties from './WebGPUPrope... |
import TodoTitle from './TodoTitle.js';
import TodoApp from '../../container/TodoApp.js';
import CreateElement from '../../../lib/CreateElement.js';
import { useState } from '../../../lib/state.js';
const UserTodo = ({ getMember }) => {
const { _id } = getMember();
const [todoClass, setTodoClass] = useState('all')... |
import * as jqxcore from '../../jqwidgets-scripts/jqwidgets/jqxcore';
import * as jqxmaskedinput from '../../jqwidgets-scripts/jqwidgets/jqxmaskedinput';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import ... |
export default (state = '', action) => {
switch (action.type){
case "CHANGE_SEARCH_TEXT":
return action.value
default:
return state
}
} |
var module = angular.module('octopus-library');
module.factory('library', function(stepTemplates) {
var makeSlug = function(name) {
return name.replace(/ \- /g, '-').replace(/ /g, '-').toLowerCase();
};
var makeId = function(type, name) {
var slug = makeSlug(name);
return type.toLowerCase() + '-' + ... |
/*
Import the ip-cidr npm package.
See https://www.npmjs.com/package/ip-cidr
The ip-cidr package exports a class.
Assign the class definition to variable IPCIDR.
*/
const IPCIDR = require('ip-cidr');
/**
* @class Ipv4Ipv6
* @type {Object}
* @property {string} ipv4
* @property {string} ipv6 -the IPv6 mapped... |
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
var engine, world;
var canvas,baseimage,playerimage;
var palyer, playerBase, playerArcher;
var playerArrows = [];
var board1, board2;
var numberOfArrows = 10;
function preload() {
background... |
import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import { createStore } from "redux";
import App from "./App";
import { permaURLAppReducers } from "./reducers/";
import * as serviceWorker from "./serviceWorker";
import { initialState } from "./types/index";
import "... |
const {WorkerTypes} = require("../util/worker");
module.exports = async function () {
console.log(`${__filename} | Connected as ${this.user.username}#${this.user.discriminator}`);
global.connected = true;
global.cmdWrap = require("../cmdwrapper");
if (!this.workers.workersRan) {
for (let i ... |
/**
* I attempt to create a version of the classic one-line Commodore 64 BASIC program in JavaScript using p5.js. This coding challenge is inspired by the book 10 PRINT
*
* 10 PRINT CHR$(205.5+RND(1)); : GOTO 10
* Fun Fact: The C64 character set is called PETSCII, from the prior Commodore Pet. It’s interesting beca... |
import * as types from './actionTypes';
import initialState from './initialState';
export default function reducer(state = initialState, action) {
switch (action.type) {
case types.SET_ETA_VIEW:
return {
...state,
etaView: action.etaView
};
ca... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[542],{861:function(t,e,o){"use strict";o.r(e);var n=o(33),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h1",{attrs:{id:"setglobalsoundvolume-iid-volume"}},[o("a... |
'use strict';
/**@type {{[k: string]: ModdedTemplateFormatsData}} */
let BattleFormatsData = {
bulbasaur: {
inherit: true,
randomBattleMoves: ["sleeppowder", "gigadrain", "hiddenpowerfire", "hiddenpowerice", "sludgebomb", "powerwhip", "leechseed", "synthesis"],
randomDoubleBattleMoves: ["sleeppowder", "gigadrai... |
webpackJsonp([108],{
/***/ 2016:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddonModFeedbackNonRespondentsPageModule", function()... |
/*****************************************************************************
* Open MCT, Copyright (c) 2014-2020, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version ... |
// @flow
const util = require('../util/util');
import type CollisionBoxArray from '../symbol/collision_box';
import type Style from '../style/style';
import type StyleLayer from '../style/style_layer';
import type FeatureIndex from './feature_index';
export type BucketParameters = {
index: number,
layers: Ar... |
import React from 'react';
const SvgPlr = props => (
<svg width={props.width || 64} height={props.height || 64} {...props}>
<path
d="M16 32C7.163 32 0 24.837 0 16S7.163 0 16 0s16 7.163 16 16-7.163 16-16 16zM8.41 20.902c.496.507 1.246.738 2.257.735 2.16 0 3.954-1.866 3.954-4.997v-.39c0-3.01-1.55-5.262-3.914... |
'use strict';
import {defaultValue} from "../utils/stuff";
import {
getFieldConfig, getWidgetForFieldOp, getOperatorConfig, getFieldWidgetConfig, getFieldPath, getFieldPathLabels, getFuncConfig
} from '../utils/configUtils';
import {defaultConjunction} from '../utils/defaultUtils';
import {completeValue} from '../u... |
dojo.provide("plugins.cloud.UserRow");
dojo.declare( "plugins.cloud.UserRow",
[ dijit._Widget, dijit._Templated ],
{
//Path to the template of this widget.
templatePath: dojo.moduleUrl("plugins", "cloud/templates/userrow.html"),
// Calls dijit._Templated.widgetsInTemplate
widgetsInTemplate : true,
// PARENT plugi... |
import createStorageMiddleware, {
uuid,
syncViaLocalStorage,
matchesAnyRegExp,
} from '../src/storageMiddleware';
import {
ACTION_STORAGE_KEY,
SYNC_MESSAGE_KEY,
IS_REMOTE,
} from '../src/constants';
const setItem = jest.fn();
const next = jest.fn();
const syncAction = jest.fn();
global.localStorage = {
... |
/* Copyright 2017 Mozilla Foundation
*
* 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... |
module.exports = {
rules: {
/**
* 一元操作符附近,关键字需要空格,符号不需要空格
* @category Base
* @fixable
*/
'space-unary-ops': [
'error',
{
words: true,
nonwords: false,
},
],
},
} |
import React from 'react';
const Nav = () => ( <nav className = "naavbar" ><div className="project-title"><span>Welcome to Movie Mania</span> </div></nav>);
export default Nav; |
/*! UIkit 2.27.5 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ |
const AWS = require('aws-sdk');
const _ = require('lodash');
function lower(obj) {
let key, keys = Object.keys(obj);
let n = keys.length;
const newobj={};
while (n--) {
key = keys[n];
newobj[key.toLowerCase()] = obj[key];
}
return newobj;
}
module.exports = function(config) {
let firehose;
if ... |
var DATA = {
"stops": [{
"stop_id": "999",
"stop_name": "CHEVERLY METRO STATION",
"stop_lat": 38.916552,
"stop_lon": -76.915104
}, {
"stop_id": "1305",
"stop_name": "CAPITOL HEIGHTS METRO STATION",
"stop_lat": 38.889571,
"stop_lon": -76.913313
}, {
"stop_id": "2124",
"stop_... |
const chai = require('chai')
const expect = chai.expect
const should = chai.should()
describe('Class JsonsToCnab', function() {
const { JsonsToCnab, CnabFromCsv } = require("../../index")
const registryLength = 240
let jsonToCnab = {}
let layout = {}
describe('Method constructor', function() {
... |
const m = require('mithril');
const App = require('../app');
const AdminModel = require('../models/admin');
const mz = require('../utils/mzInit');
const Login = module.exports = {
controller: function () {
let ctrl = this;
ctrl.admin = new AdminModel();
ctrl.loginError = m.prop();
ctrl.login = fun... |
module.exports = {
parser: "babel-eslint",
env: {
browser: true,
es6: true,
},
extends: ["eslint:recommended", "standard", "standard-react"],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018... |
import isInViewport from "../isInViewport";
import DataLayer from "./plugins/dataLayer";
export default class Tracker {
constructor(options) {
this.datalayer = new DataLayer();
}
PageLinkTrack() {
}
ElementViewTrack(elements) {
for (let i = 0, length = elements.length; i < length; ... |
$(() => {
let iPage = 1; // 当前页面页数
let iTotalPage = 1; // 总页数
let bIsLoadData =false; // 是否正在加载
fn_load_docs(); // 加载文件列表
// 页面滚动加载
$(window).scroll(function () {
// 浏览器窗口高度
let showHeigtht = $(window).height();
// 整个网页高度
let pageHeight = $(doc... |
const multer = require("multer");
const storage = multer.diskStorage({
destination: (req, file, cb) => {
cb(null, "./public/images");
},
filename: (req, file, cb) => {
cb(
null,
`${Date.now().toString()}-${file.originalname.split(" ").join("_")}`
);
},
});
const fileFilter = (req, fil... |
import React from "react"
import { NavLink } from "theme-ui"
import { Header } from "../components/header"
import { Offer } from "../components/offer"
import SEO from "../components/seo"
import { TobBar } from "../components/toolBar"
import Layout from "../layouts"
import about from "../components/about";
export defau... |
//= require jquery
//= require jquery_ujs
//= require tether
//= require bootstrap
//= require perfect-scrollbar
//= require dragula
//= require modal-responder
//= require pace/pace
//= require unobtrusive_flash
//= require unobtrusive_flash_bootstrap
//= require chosen-jquery
//= require_tree ./boards
//= require_tr... |
"use strict";
require("core-js/modules/es.array.iterator");
require("core-js/modules/es.promise");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createPreviewEntry = createPreviewEntry;
var _path = _interopRequireDefault(require("path"));
var _nodeLogger = require("@storybook/node-logger... |
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var button_common_1 = require("./button-common");
var profiling_1 = require("../../profiling");
var gestures_1 = require("../gestures");
__export(require("./but... |
module.exports = {
productionSourceMap: false,
devServer: {
watchOptions: {
ignored: /node_modules/
}
}
} |
// ==UserScript==
// @id iitc-plugin-portals-list@teo96
// @name IITC plugin: show list of portals
// @category Info
// @version 0.2.1.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* The length property of the apply method is 2
*
* @path ch15/15.3/15.3.4/15.3.4.3/S15.3.4.3_A2_T2.js
* @description Checking f.apply.length, where f is new Function
*/
var f=ne... |
const FILES_TO_CACHE = [
"/", "/index.html", "index.js", "/db.js", "/style.css", "/manifest.webmanifest", "/icons/icon-192x192.png", "/icons/icon-512x512.png"
];
const CACHE_NAME = "static-cache-v2";
const DATA_CACHE_NAME = "data-cache-v1";
self.addEventListener("install", function (evt) {
//transaction pre c... |
const BaseCommand = require('../../utils/structures/BaseCommand');
module.exports = class FacepalmCommand extends BaseCommand {
constructor() {
super('facepalm', 'reddit', []);
}
run(client, message, args) {
const meme = new Discord.MessageEmbed()
got('https://www.reddit.com/r/Faceplam/random/.js... |
import React from 'react';
import Iconos from './iconos';
import styled from '@emotion/styled';
import Image from 'gatsby-image';
import {Link} from 'gatsby';
import urlSlug from 'url-slug';
const Boton = styled(Link)`
margin-top: 2rem;
padding: 1rem;
background-color: #75ab00;
width: 100%;
color: ... |
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
b.exports=function(a){return null!=a... |
/**
* Cesium - https://github.com/AnalyticalGraphicsInc/cesium
*
* Copyright 2011-2017 Cesium 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/l... |
/*!
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com
Version 1.8.2
Full source at https://github.com/harvesthq/chosen
Copyright (c) 2011-2017 Harvest http://getharvest.com
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
This file is g... |
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
const { generateKeyPairFromSeed } = require("@stablelib/ed25519");
const { randomBytes } = require("@stablelib/random");
const { encode } = require("@stablelib/hex");
const { secretKey, publicKey } = generateKeyPairFromSeed(randomBytes(32));
console.log(encode(secretKey,true));
console.log(encode(publicKey,true));
//... |
/**
* @fileoverview added by tsickle
* Generated from: packages/platform-browser/src/browser/browser_adapter.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* ... |
$(function() {
var $dialog = $("#dlg-wsdl-list");
var dialogClose = function() {
$dialog.children().remove();
$("#dlg-wsdl-info").dialog("open");
};
var dialogOpen = function() {
var ajaxSuccess = function(data) {
$("#dlg-wsdl-list").empty();
for(var i = 0; i < data.length; i ++ )
{
var _... |
"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... |
// Used for model class names
const camel_case_headcount_model_names = [
"EmployeeType",
"EmployeeRegion",
"EmployeeAgeGroup",
"EmployeeExLvl",
"EmployeeGender",
"EmployeeFol",
];
const camel_case_to_snake_case = (camel_case_string) => camel_case_string.replace(/([a-zA-Z])(?=[A-Z])/g, '$1_').toLowerCase()... |
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero Genera... |
/**
* Class TrasladoProductosItemView of Backbone Router
* @author KOI || @dropecamargo
* @link http://koi-ti.com
*/
//Global App Backbone
app || (app = {});
(function ($, window, document, undefined) {
app.TrasladoProductosItemView = Backbone.View.extend({
tagName: 'tr',
template: _.template( ... |
let Home = {
render: async () => {
document.getElementById('pagename').innerHTML = '<a href="/#/">Business Card</a>'
let view = /*html*/`
<div class="w3-panel w3-white w3-card w3-display-container">
<div class="w3-cell-row">
<div class="w3-cell w3-cel... |
/**
* @license Angular v6.1.2
* (c) 2010-2018 Google, Inc. https://angular.io/
* License: MIT
*/
import { ɵBrowserDomAdapter, ɵsetRootDomAdapter, DOCUMENT, ɵgetDOM, EventManager, ɵNAMESPACE_URIS, ɵSharedStylesHost, ɵflattenStyles, ɵshimContentAttribute, ɵshimHostAttribute, ɵTRANSITION_ID, BrowserModule, EVENT_MANA... |
import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import router from './router'
import store from './store'
import axios from "axios"
import header from "./components/header"
import footer from "./components/footer"
Vue.use(ElementUI)
Vu... |
const Mrhid6Utils = require("../Mrhid6Utils");
const Cleanup = new Mrhid6Utils.Cleanup();
module.exports = Cleanup; |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import numeral from '@elastic/numeral';
export function formatnumber() {
r... |
/**
* @license
* Copyright (c) 2018 amCharts (Antanas Marcelionis, Martynas Majeris)
*
* This sofware is provided under multiple licenses. Please see below for
* links to appropriate usage.
*
* Free amCharts linkware license. Details and conditions:
* https://github.com/amcharts/amcharts4/blob/master/LICENSE
*... |
import React from 'react'
import { Text, View, StyleSheet } from 'react-native'
const DisplayWeather = (props) => {
if (props.data === null) {
return <Text>Loading...</Text>
}
if (props.data.cod !== 200) {
return <Text>An Error has occurred</Text>
}
const { temp } = props.data.mai... |
describe('Data类Api', () => {
describe('deepCopy()', () => {
it('deepCopy should work fine', () => {
const person = {name: 'ryan', age: 24};
expect(MuseUtils.deepCopy(person)).to.eql(person);
});
});
describe('mergeObject()', () => {
it('mergeObject should work... |
/**
* Created by apache on 15-12-13.
*/
var webpack = require('webpack');
var path = require('path');
var commonsPlugin = webpack.optimize.CommonsChunkPlugin;
var ignoreFiles = new webpack.IgnorePlugin(/\.\/jquery.min.js$/);
var node_modules = path.resolve(__dirname, 'node_modules');
var pathToReact = path.resolve(n... |
QUnit.module('JSHint - routes/question.js');
QUnit.test('should pass jshint', function(assert) {
assert.expect(1);
assert.ok(false, 'routes/question.js should pass jshint.\nroutes/question.js: line 1, col 1, \'import\' is only available in ES6 (use \'esversion: 6\').\nroutes/question.js: line 3, col 1, \'export\' i... |
describe( 'CLIMachs Core Namespaces', () => {
describe( 'collections', () => {
describe( 'Callback', () => {
describe( 'constructor', () => {
it( 'throws an ArgumentError when fn is not a function', () => {
expect( true ).toBe( true );
} );
it( 'throws an ArgumentError... |
// pm2-htop
// Library who interacts with PM2 to display processes resources in htop way
// by Strzelewicz Alexandre
var multimeter = require('pm2-multimeter');
var os = require('os');
var p = require('path');
var chalk = require('chalk');
var CliUx = require('./CliUx');
var debug = requir... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
/**
* Next, we will create a fresh Vue application instance and attach ... |
const { embed, mostSimilarModule } = require("../utils.js")
const main = require('../main.js')
const Emojis = {
"Twitch":"<:Twitch:702495822281048129>",
"GitHub":"<:GitHub:821728071207485470>",
"Reddit":"<:Reddit:821729004100911104>",
"Steam":"<:Steam:821729400021712946>",
"Discord":"<:Discord:821731910866436116>... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[31],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/donation/edit.vue?vue&type=script&lang=js&":
/*!********************************************************************************************... |
import $ from 'jquery';
import _ from 'underscore';
import PluginConfigBreadcrumbWidget from 'girder/views/widgets/PluginConfigBreadcrumbWidget';
import View from 'girder/views/View';
import { getApiRoot, restRequest } from 'girder/rest';
import events from 'girder/events';
import ConfigViewTemplate from '../template... |
export { attention } from "./lib/attention.js";
export { autolink } from "./lib/autolink.js";
export { blankLine } from "./lib/blank-line.js";
export { blockQuote } from "./lib/block-quote.js";
export { characterEscape } from "./lib/character-escape.js";
export { characterReference } from "./lib/character-reference.js"... |
pn.ui.createApplicationWindow = function(_args) {
if (osname == 'android') {
var applicationWindow = pn.ui.createLocationWindow();
var navigationVC = new pn.ui.NavigationVC();
applicationWindow.navigationVC = navigationVC;
return applicationWindow;
} else {
var applicationWindow = pn.util.createWindow({});
... |
/* @flow */
'use strict';
const _ = require('lodash');
const keywordSets = require('../reference/keywordSets');
/**
* Check value is a custom ident
*/
module.exports = function(value /*: string*/) /*: boolean*/ {
const valueLowerCase = value.toLowerCase();
if (
keywordSets.counterResetKeywords.has(valueLowerC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.