text stringlengths 2 1.04M |
|---|
/**
* @adobe/react-spectrum-workflow (c) by Adobe
*
* @adobe/react-spectrum-workflow is licensed under a
* Creative Commons Attribution-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this
* work. If not, see <http://creativecommons.org/licenses/by-nd/4.0/>.
**/
... |
'use strict';
function getSiteInfo() {
var done = this.async();
var prompts = [
{
name: 'siteName',
message: 'What will your site be called?',
default: 'The WordPress Genius'
},
{
name: 'siteUrl',
message: 'What would you like your domain to be?',
default: 'ge... |
(function($) {
'use strict';
var $body = $('body'),
$doc = $(document);
$doc.on('click', '[data-toggle="nav"], .nav-opened .site-main', function(e) {
e.preventDefault();
$body.toggleClass('nav-opened');
});
$doc.on('click', '[data-toggle="search"]', function(e) {
e.preventDefault();
... |
/*eslint-disable*/
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { NavLink, useLocation } from 'react-router-dom';
// @material-ui/core components
import { makeStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
import Hid... |
import React from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { Link } from 'react-router-dom';
import { Form, Input } from '@rocketseat/unform';
import * as Yup from 'yup';
import { signInRequest } from '~/store/modules/auth/actions';
import logo from '~/assets/logo.svg';
const schema = ... |
module.exports = function(grunt) {
grunt.initConfig({
'shell': {
'options': {
'stdout': true,
'stderr': true,
'failOnError': true
},
'cover-html': {
'command': 'istanbul cover --report "html" --verbose --dir "coverage" "tests/tests.js"'
},
'cover-coveralls': {
'command': 'istanbul... |
/**
* @author OA Wu <comdan66@gmail.com>
* @copyright Copyright (c) 2015 - 2019, Ginkgo
* @license http://opensource.org/licenses/MIT MIT License
* @link https://www.ioa.tw/
*/
const Display = require('./Display')
const Xterm = require('./Xterm')
let testRequire = () => {
try {
Object.... |
import React from 'react'
import PropTypes from 'prop-types'
import { objectUtilization as objectUtilizationShape } from './dataShapes'
import { searchPrefixes, searchFields, webadminPlaces } from '_/constants'
import { msg } from '_/intl-messages'
import { applySearch } from '_/utils/webadmin-search'
import { Title }... |
//npm install discord.js-menu
const { MessageEmbed } = require('discord.js')
const { Menu } = require('discord.js-menu');
module.exports.run =(client, message, args) => {
let totalSeconds = (client.uptime / 1000);
let days = Math.floor(totalSeconds / 86400);
totalSeconds %= 86400;
let hours = Math.floor(totalSeco... |
/* eslint-disable no-undef */
init()
async function init () {
if (location.search.split('=')[1] === undefined) {
const workout = await API.getLastWorkout()
if (workout) {
location.search = '?id=' + workout._id
} else {
document.querySelector('#continue-btn').classList.add('d-none')
}
}
... |
amis.define('docs/components/form/options.md', function(require, exports, module, define) {
module.exports = {
"title": "Options 选择器表单项",
"description": null,
"type": 0,
"group": null,
"menuName": "Options 选择器表单项",
"icon": null,
"order": 2,
"toc": {
"label": "目录",
"type": ... |
macDetailCallback("2462ab000000/24",[{"d":"2019-02-26","t":"add","s":"ieee-oui.csv","a":"Room 204, Building 2, 690 Bibo Rd, Pudong New Area Shanghai Shanghai CN 201203","c":"CN","o":"Espressif Inc."}]); |
let pageName = JSON.parse(sessionStorage.getItem('pt_history_last_nui')).pageName;
let analytics = document.createElement('script');
analytics.defer = true;
analytics.src = 'https://static.cloudflareinsights.com/beacon.min.js';
analytics.dataset.cfBeacon = '{"token": "b71f213f5fe64bc2a37ed73ba5eed81c"}';
document.hea... |
import React, { Component } from 'react'
import { connect } from 'dva'
import { Table, Modal } from 'antd'
import { hashHistory } from 'dva/router'
const confirm = Modal.confirm
const RoleList = ({
dispatch,
roleManagement,
}) => {
const handleModify = (id) => {
dispatch({
type: 'roleManagement/getRole... |
import React, { useEffect, useState } from "react";
import { useSelector, useDispatch } from "react-redux";
import { bindActionCreators } from "redux";
import { actionCreators } from "../../store/index";
const FormValidation = (profile, page) => {
//const dispatch = useDispatch();
const { updateErrorMessage... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useSessionStorageString = void 0;
var useSessionStorageItem_1 = require("./useSessionStorageItem");
/**
* See documentation: [useSessionStorageString](https://justinmahar.github.io/react-use-window-sessionstorage/useSessionStorageStri... |
import React, {Component} from 'react';
import App from "./App";
import LoginForm from './views/LoginForm';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from "material-ui/styles/getMuiTheme";
import specialTheme from "./themes/specialTheme";
import proximusTheme from "./themes/... |
import styled from 'styled-components'
export const Container = styled.div`
width: 100%;
display: flex;
flex-direction: row;
margin-top: 10px;
justify-content: space-between;
flex-wrap: wrap;
@media screen and (max-width: 990px) {
justify-content: space-around;
}
`
export const Cell = styled.div`
... |
async function register () {
if (!"serviceWorker" in navigator) {
throw new Error("serviceWorker is not supported in current browser!");
}
const {Workbox} = await import('workbox-cdn/workbox/workbox-window.<%= options.dev ? 'dev' : 'prod' %>.es5.mjs');
const workbox = new Workbox(
'... |
/*eslint-disable consistent-this */
/**
* @this Client
*
* @param {Network} network
* @param {Channel} chan
* @param {string} cmd
* @param {Array<string>} args
*
* @return {void}
*/
export default function(network, chan, cmd, args) {
if (cmd !== 'connect' && cmd !== 'server') {
... |
/*{{{
*
* todo:
* - check for standards and conventions (expecially for functions)
* - '==' vs '==='
* - simplify
*
*/ //}}}
//gameStatus(){{{
/*{{{
* board[0] is true only when the human is playing as 'x'
*
* board[0] ? 'x' : 'o' gets the human's shape
* and
* board[0] ? 'o' : 'x' gets the ... |
'use strict'
const {ArgumentGuard} = require('../..')
const {Trigger} = require('./Trigger')
/**
* Encapsulates a text input by the user.
*/
class TextTrigger extends Trigger {
/**
*
* @param {Region} control
* @param {string} text
*/
constructor(control, text) {
super()
ArgumentGuard.notN... |
'use strict';
var getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject;
var elementHelper = require('../../../../helper/ElementHelper'),
extensionElementsHelper = require('../../../../helper/ExtensionElementsHelper'),
inputOutputHelper = require('../../../../helper/InputOutputHelper'),
... |
/**
*
* ToggleOption
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{typeof message === 'string' ? message : intl.formatMessage(message).toUpperCase()}
</option>... |
define(function(require, exports, module) {
"use strict";
exports.snippetText = require("../requirejs/text!./snippets.snippets");
exports.scope = "snippets";
}); |
!function(){"use strict";var e,t=window.analytics,o=document.getElementById("coveo-script").dataset,n=document.querySelector(".js-coveo");Coveo.SearchEndpoint.endpoints.default=new Coveo.SearchEndpoint({restUri:"https://platform.cloud.coveo.com/rest/search",accessToken:o.accessToken}),n.addEventListener("buildingQuery"... |
export const FETCH_REVIEWS_QUERY =
`
MATCH (b:Business {id: $businessId}), (me:User {id: $userId})
MATCH (b)<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)
OPTIONAL MATCH (u)<-[t:TRUSTS]-(me)
WITH r {.text, stars: toFloat(r.stars), name: u.name, date: toString(r.date)} AS review
ORDER BY coalesce(t.score, 0.0) DESC, r.date... |
var searchData=
[
['referencecount',['referenceCount',['../class_kayac_1_1_loader_1_1_handle.html#a2820f8530fa31de00458df483688d8e0',1,'Kayac.Loader.Handle.referenceCount()'],['../class_kayac_1_1_loader_1_1_asset_bundle_handle.html#a8333e1e818d23e98d286798fd0d0031c',1,'Kayac.Loader.AssetBundleHandle.referenceCount()'... |
function DoInputPointToolTipFun(ent) {
var sHyperlinks = ent.Hyperlinks;
if(sHyperlinks.length != 0)
{
var sClassName = ent.ObjectName;
var tip = "<b><ct=0x0000FF><al_c>"+sClassName+
"</b><br><ct=0x00AA00><hr=100%></ct><br><a=\"link\">" + sHyperlinks + "</a>";
//设置用户自定义事... |
import { createRequire } from "module";
import { fileURLToPath } from "url";
import { dirname } from "path";
import { isObject, isArray, isString } from "./typeValidators";
import validateType from "./validateType";
import isArrayPath from "./isArrayPath";
const require = createRequire(import.meta.url);
const __filena... |
/*!
* jQuery Scrollify
* Version 1.0.20
*
* Requires:
* - jQuery 1.7 or higher
*
* https://github.com/lukehaas/Scrollify
*
* Copyright 2016, Luke Haas
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal... |
// Karma configuration
// Generated on Wed Oct 18 2017 23:18:56 GMT+0200 (Środkowoeuropejski czas letni)
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available fra... |
import { NativeModules } from 'react-native';
import App from '../modules/core/app';
import INTERNALS from './internals';
import { isAndroid, isObject, isString } from './';
const FirebaseCoreModule = NativeModules.RNFirebase;
const APPS = {};
const APP_MODULES = {};
const DEFAULT_APP_NAME = '[DEFAULT]';
export defa... |
import React from "react"
import {Link, graphql, useStaticQuery} from "gatsby"
//import Footer from "../components/footer"
//import Header from "../components/header"
import Layout from "../components/layout"
import blogStyles from './blog.module.scss'
import Head from '../components/head'
const BlogPageContentful =... |
require('dotenv').config();
const router = require('express').Router();
const multer = require('multer');
const AWS = require('aws-sdk');
const { v4: uuidv4 } = require('uuid');
// Import models
const { Class } = require('../../db');
// s3 key
const s3 = new AWS.S3({
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
... |
import React, { Component } from 'react';
import Project from '../project';
export default class Tournament extends Component {
render() {
const images = [
'../../static/images/web/tournament1.png',
'../../static/images/web/tournament2.png',
'../../static/images/web/tournament3.png'
];
... |
var CurrentUser;
var paginationIndex = 1;
var currentPagesIds = 1;
function getCurrentPagesIds() {
let db = getArtBase();
var arr = [];
for (let i = paginationIndex - 1; i < paginationIndex + 4; i++) {
arr.push(db.arts[i]);
}
return arr;
}
function getArtBase() {
return JSON.parse... |
import React from 'react';
import PropTypes from 'prop-types';
import { ClassManager } from '@axa-fr/react-toolkit-core';
const propTypes = {
file: PropTypes.object.isRequired,
onClick: PropTypes.func.isRequired,
id: PropTypes.string.isRequired,
disabled: PropTypes.bool,
className: PropTypes.string,
classM... |
Feature('Sign In Page - @smoke')
BeforeSuite(async loginPage => {
await loginPage.deleteUser('syst_one')
await loginPage.addUser('syst_one', '123456', ['collection:cloud_articles'])
})
AfterSuite(async loginPage => {
await loginPage.deleteUser('syst_one')
})
Before(async loginPage => {
await loginPage.valida... |
'use strict';
/**@type {{[k: string]: TypeData}} */
let BattleTypeChart = {
Bug: {
damageTaken: {
Bug: 0,
Dark: 0,
Dragon: 0,
Electric: 0,
Fairy: 0,
Fighting: 2,
Fire: 1,
Flying: 1,
Ghost: 0,
Grass: 2,
Ground: 2,
Ice: 0,
Normal: 0,
Poison: 0,
Psychic: 0,
Rock: 1,
S... |
var Path = require('path'),
utils = require('../lib/utils'),
Session = require('../dep/sesh').magicSession(),
DbPipe = require('../lib/dbpipe'),
mymod = require('module')
require('./inflector')
var Router = require('./router')
require('./controller')
// Wrapper for launch modules to export
root.LaunchExport = functio... |
import PropTypes from "prop-types";
import React from "react";
import Swiper from "react-id-swiper";
import testimonialData from "../../data/testimonial/testimonial-one.json";
import TestimonialOneSingle from "../../components/testimonial/TestimonialOneSingle.js";
const TestimonialOne = ({
spaceTopClass,
spaceBott... |
load("8b38e12cab5de21ec5393724c0d9b7dd.js");
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------... |
/**
*
* @author chenyi
* @email 228112142@qq.com
* @date 2019-06-27 22:18:33
*/
/**数据渲染对象*/
var Render = {
/**
* 渲染状态列
* @param rowdata 行数据
* @param renderData 渲染后的列
* @param index
* @param value 当前对象值
*/
customState: function (rowdata,renderData, index, value) {
... |
import { addFormatToken } from '../format/format';
import { addRegexToken, matchTimestamp, matchSigned } from '../parse/regex';
import { addParseToken } from '../parse/token';
import toInt from '../utils/to-int';
// FORMATTING
addFormatToken('X', 0, 0, 'unix');
addFormatToken('x', 0, 0, 'valueOf');
// PARSING
addRe... |
"use strict";
(function() {
var BaseController = require("BaseController");
new BaseController({
siteName: "Qobuz",
play: ".pct-player-play",
pause: ".pct-player-pause",
playNext: ".pct-player-next",
playPrev: ".pct-player-prev",
buttonSwitch: true,
playState: ".pct-player-pause",
... |
var default_per_page = typeof default_per_page !== 'undefined' ? default_per_page : 25;
var oTable = null;
var oTableArray = [];
var oTableMapping = [];
// HTML5 Storage. You can ignore this.
function supports_html5_storage()
{
try {
JSON.parse("{}");
return 'localStorage' in window && window['localStorage'] !== ... |
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot... |
import { debounce } from "common/utils";
import BackTop from "components/content/backTop/BackTop"
import {BACKTOP_DISTANCE} from "common/const"
export const itemListenerMixin = {
data(){
return {
itemImgListener:null
}
},
mounted(){
let refresh = debounce(this.$refs.scroll.refresh, 50);
this... |
const mod = new Creep.Behaviour('claimer');
module.exports = mod;
mod.run = function(creep) {
// Assign next Action
let oldTargetId = creep.data.targetId;
if( creep.action == null || creep.action.name == 'idle') {
if( creep.data.destiny && creep.data.destiny.task && Task[creep.data.destiny.task] && ... |
const createResolvePath = require('babel-plugin-tsconfig-paths-module-resolver').createResolvePath;
const defaultResolvePath = createResolvePath();
function customResolvePath(sourceFile, currentFile, opts) {
// Do not transform handlebars-inline-precompile
if (sourceFile === 'handlebars-inline-precompile') {
re... |
"use strict";
/**
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.2
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* h... |
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: tr... |
// Reference Number: PDC-055
// Query Title: Most commonly prescribed medication classes
function map(patient) {
var atcLevel = 2; // Level definition based on definition found on Wikipedia
var atcCutoff = getATCCodeLength(atcLevel);
var drugList = patient.medications();
var now = new Date(2013, 10, ... |
/*
* https://github.com/5orenso
*
* Copyright (c) 2016 Øistein Sørensen
* Licensed under the MIT license.
*/
'use strict';
let buster = require('buster'),
assert = buster.assert,
path = require('path'),
appPath = path.normalize(__dirname + '/../../');
buster.testCase('lib/geo-lib', {
setUp: () =>... |
mycallback( {"CONTRIBUTOR OCCUPATION": "", "CONTRIBUTION AMOUNT (F3L Bundled)": "1.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "4249 40th Ave. S.", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NA... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM13 18h-2v-2h2v2zm0-4h-2V9h2v5z" /></g>
, 'BatteryAlert'); |
webpackHotUpdate_N_E("pages/index",{
/***/ "./pages/index.js":
/*!************************!*\
!*** ./pages/index.js ***!
\************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/***/ })
}) |
/*
created by huda0209
config.js
ran by node.js
2022-1-28
*/
const fs = require("fs");
const log = require("./logFile");
function loadConfig(configName){
let resource = require("../../resource/resource");
if(!resource[configName]){
log.error(`can't find that file({red}${configName}{reset}).`);
... |
var socket = io.connect();
socket.on('refresh',
function () {
location.reload();
console.log('test');
}
); |
module.exports = {
consumer_key: "",
consumer_secret: "",
access_token_key: "",
access_token_secret: ""
}; |
/* *********************************************************************************************
* *
* Please read the following tutorial before implementing tasks: *
* https://developer.mozilla... |
/*
* Copyright (c) 2017, Two Sigma Open Source
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of... |
module.exports = {
enabled: true,
host: "localhost",
openBrowser: true,
port: 8000
}; |
export const CHANGE_TAB = 'CHANGE_TAB'
export const GET_FILTER_DATA = 'GET_FILTER_DATA'
export const CHANGE_FILTER = 'CHANGE_FILTER'
export const GET_LIST_DATA = 'GET_LIST_DATA'; |
/** File: strophe.js
* A JavaScript library for writing XMPP clients.
*
* This library uses either Bidirectional-streams Over Synchronous HTTP (BOSH)
* to emulate a persistent, stateful, two-way connection to an XMPP server or
* alternatively WebSockets.
*
* More information on BOSH can be found in XEP 124.... |
const { Sequelize } = require('../../src/psql/models');
const { lastPage, itemsOnLastPage } = require('../../src/helper');
const { server: repository } = require('../../src/repository');
const {
server: ENTITY,
sequelize: { error: { keys: SEQUELIZE_ERROR_KEYS } }
} = require('../entities.json');
describe('Server r... |
import React, { Component } from "react";
import { connect } from "react-redux";
import Message from "./Message";
import MessageForm from "./MessageForm";
import Loading from "./Loading";
// Actions
import * as actionCreators from "../store/actions";
class Channel extends Component {
componentDidMount() {
this.... |
const DrawCard = require('../../drawcard.js');
class ShinjoTatsuo extends DrawCard {
setupCardAbilities(ability) {
this.action({
title: 'Move this and another character to the conflict',
target: {
cardType: 'character',
controller: 'self',
... |
/**
* 107. 二叉树的层次遍历 II
*
* https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii/
*
*
* Easy
*
* 64ms 100%
* 35mb 11.80%
*/
const levelOrderBottom = root => {
const ans = []
if (!root) {
return ans
}
const queue = [root]
while (queue.length) {
const temp = []
const ma... |
const {sendError, createError} = require('micro');
const {API_SECRET} = process.env;
const checkAuth = (fn) => (request, response) => {
if (!API_SECRET) {
return fn(request, response);
}
if (
request.headers.authorization &&
request.headers.authorization.endsWith(API_SECRET)
) {
return fn(req... |
import React from 'react';
const Loading = () => {
return <img alt='' src='https://media.giphy.com/media/3o7TKtbdY5oZuiyucg/giphy.gif' />;
};
export default Loading; |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... |
'use strict'
const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { addv: versionText } = require('../../lib/text-formatters')
const {
checkErrorResponse: githubCheckErrorResponse,
} = require('./github-helpers')
mod... |
// @flow
import React from 'react';
import PlayerInfo from './player-info';
import styles from './panel.scss';
const GamePanel = () => (
<div className={styles.container}>
<PlayerInfo/>
</div>
);
export default GamePanel; |
/*eslint no-magic-numbers: ["error", { "ignore": [0,1,-1,2] }]*/
import {join, dirname} from 'path'
import getLicences from './get-licences'
import format from './format'
/**
* @param {Object} options options
* @param {boolean} options.devDependencies if devDependencies should be processed
* @param {Array|RegExp} ... |
import React from "react";
import { CDataTable, CPagination } from "@coreui/react";
import { makeStyles } from "@material-ui/core/styles";
import Loading from "./Loading.component";
import NoItem from "./NoItem.component";
const useStyles = makeStyles((theme) => ({
root: {
flexGrow: 1,
display: "grid",
... |
// Custom scripts
$(document).ready(function () {
dsdmy.init();
console.log("device.status.dummy js initialized");
});
var dsdmy = {
init: function() {
_ucc.setResourceHandler("dsdmy", [], dsdmy.refresh);
},
refresh: function(type) {
console.log("dsdmy.refresh("+type+") called");
}
} |
// operations on matrix
// game parameters
var matrixSizeX = 32;
var matrixSizeY = 32;
var startPercent = 50;
var shouldArgue = false;
// currnetly processed cell
var chosenX = matrixSizeX+1;
var chosenY = matrixSizeY+1;
// matrix
var matrix = new Array(matrixSizeX).fill(0).map(() => new Array(matrixSizeY).fill(0))... |
'use strict';
/**
* Module dependencies.
*/
var init = require('./config/init')(),
config = require('./config/config'),
http = require('http'),
mongoose = require('mongoose');
var util = require('util'),
twitter = require('twitter');
var twit = new twitter({
consumer_key: 'pi8xEgc4qp9WFZQFWF4gg',
cons... |
// Styles
import './VStepper.sass';
// Mixins
import { provide as RegistrableProvide } from '../../mixins/registrable';
import Proxyable from '../../mixins/proxyable';
import Themeable from '../../mixins/themeable';
// Utilities
import mixins from '../../util/mixins';
import { breaking } from '../../util/console';
cons... |
/**
*
* This is a sample unit test for services.
* For services making http calls, use the mock $httpBackend (see Angular docs)
*
*/
describe('SampleService', function () {
'use strict';
beforeEach(module('sample'));
/*
Inject the needed services into the s object
*/
var s = {}, toInject = ['Sa... |
'use strict';
var __decorate = void 0 && (void 0).__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 === "functi... |
const { Model, DataTypes } = require('sequelize');
const bcrypt = require('bcrypt');
const sequelize = require('../config/connection');
class User extends Model {
checkPassword(loginPw) {
return bcrypt.compareSync(loginPw, this.password);
}
}
User.init(
{
id: {
type: DataTypes.... |
/* API Version - 2.3.1 */
/**
* A bank provides access to a range of items in Bitwig Studio. Instances of a bank are configured with a
* fixed number of items and represent an excerpt of a larger list of items. Various methods are provided for
* scrolling to different sections of the item list. It basically acts li... |
// flow-typed signature: 31514c489465a3d6809de3175dc7c9d9
// flow-typed version: <<STUB>>/eslint-plugin-prettier_v^3.1.1/flow_v0.109.0
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-plugin-prettier'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to ... |
const EmailRegex =
/^(([^<>()[\],;:\s@]+(\.[^<>()[\],;:\s@]+)*)|(.+))@(([^<>()[\],;:\s@]+\.)+[^<>()[\],;:\s@]{2,})$/i;
export default EmailRegex; |
const SUPPORTED_FORMATS = {
png: true
}
export default function formatValidator () {
return async function formatValidatorMiddleware (ctx, next) {
const { format } = ctx.params
ctx.assert(SUPPORTED_FORMATS[ctx.params.format], 422, `Unsupported format ${format}`)
await next()
}
} |
import React from "react";
import debug from "debug";
import { ApolloConsumer } from "react-apollo";
import MainLayout from "../layouts/MainLayout";
import IndexView from "./index_.jsx";
const log = debug("app:index");
class IndexPage extends React.Component {
handleClick(event, client) {
log("event: ", event.... |
import * as THREE from 'three'
import { PlaygroundObject } from 'Scripts/Core'
// Shaders
import vertexShader from 'Shaders/Shadow/vertex.glsl'
import fragmentShader from 'Shaders/Shadow/fragment.glsl'
export default class Shadow extends PlaygroundObject {
initialize() {
// Render target
this.renderTarge... |
const { slugify } = require('./src/util/utilityFunctions')
const path = require('path')
const authors = require('./src/util/authors')
const _ = require('lodash')
exports.onCreateNode = ({ node, actions }) => {
const { createNodeField } = actions
if (node.internal.type === 'MarkdownRemark') {
const slug... |
/* eslint-disable quotes */
import express from "express";
import auth from "../../middleware/auth";
import ShoppingCartController from "../../controllers/shoppingCartController";
const router = express.Router();
// shoppingCart endpoints
router.post("/cart", auth, ShoppingCartController.addItemToCart);
router.get("/... |
/**
* jquery.flips.js
*
* Original work Copyright 2011, Pedro Botelho / Codrops
* Modified work Copyright 2015 Thang Bui - thang.buinguyen at gmail.com, - All Rights Reserved
* Free to use under the MIT license.
*
* Date: Fri Sep 2 2015
*/
/**
* Note: This is highly experimental and just a proof-of-concept!
... |
/**
* Check if the given URL was opened in a new window
* @param {String} expectedUrl The URL to check for
* @param {String} obsolete Indicator for the type (window or tab) unused
*/
/* eslint-disable no-unused-vars */
module.exports = (expectedUrl, obsolete) => {
/* eslint-enable no-unused-vars */
/**... |
var searchData=
[
['setpixel_19',['setPixel',['../classSimpleCanvas.html#a4c07b46df920ef9786e5b120dd2c037c',1,'SimpleCanvas']]],
['simplecanvas_20',['SimpleCanvas',['../classSimpleCanvas.html#a3f874e440d0c3e01fe842f18ad3449e0',1,'SimpleCanvas::SimpleCanvas(std::string fname)'],['../classSimpleCanvas.html#a27dc9da89... |
"use strict";
var explode = require("./explode-assignable-expression");
var t = require("../../types");
module.exports = function (exports, opts) {
var buildAssignment = function (left, right) {
return t.assignmentExpression("=", left, right);
};
exports.ExpressionStatement = function (node, parent, ... |
/*
* GoJS v2.1.45 JavaScript Library for HTML Diagrams, https://gojs.net
* GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation, https://www.nwoods.com.
* Copyright (C) 1998-2021 by Northwoods Software Corporation. All Rights Reserved.
* THIS SOFTWARE IS LICENSED. THE LICENSE ... |
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, {useState, useCallback} from 'react';
import classnames from 'classnames';
import useDocusaurusContext from '@docusaurus/u... |
/* Deliberatly exposing all of them in global name space */
// Create an alias for React.createElement to save some typing
var h = React.createElement;
class MyList extends React.Component {
render() {
var lis = this.props.data.map(function(text, idx){
return h('li', {key:idx }, text)
})
return (
... |
window.onload = function() {
var mensaje = "Nuestro sitio utiliza cookies. ¿Estás de acuerdo con el uso de las mismas?";
var resultado = confirm(mensaje);
if (resultado == true) {
resultado.innerHTML == '';
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.