text stringlengths 2 1.05M |
|---|
import React from 'react';
import {Form, Input, Modal, Col, Row} from 'antd';
import Utils from '@/Common/Utils';
import moment from "moment";
const TextArea = Input.TextArea;
const FormItem = Form.Item;
const Util = new Utils();
class MessageModal {
//消息内容
MessageCoutent = Form.create()(props => {
... |
import React, { Component, Fragment } from 'react'
import { connect } from 'react-redux'
import axios from 'axios'
import PropTypes from 'prop-types'
import GridRow from '@govuk-react/grid-row'
import GridCol from '@govuk-react/grid-col'
import moment from 'moment'
import ReactRouterPropTypes from 'react-router-prop-t... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Container from '@material-ui/core/Container';
import Grid from '@material-ui/core/Grid';
import Paper from '@material-ui/core/Paper';
const useStyles = makeStyles((theme) => ({
paper: {
padding: theme.spacing(2),
d... |
(function() {var implementors = {};
implementors["rust_info"] = [{text:"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Send.html\" title=\"trait core::marker::Send\">Send</a> for <a class=\"struct\" href=\"rust_info/types/struct.RustInfo.html\" title=\"struct rust_info::types::RustIn... |
/*! vue-ydui v1.2.6 by YDCSS (c) 2018 Licensed MIT */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ydui=t():e.ydui=t()}(this,function(){return function(e){function t(i){if(r[i])return r[i].exports;... |
import difference from "./../src/difference.js";
import chai from "./../node_modules/chai/chai.js";
import { assert } from "chai";
describe('Difference function', function(){
it('difference([2,1],[2,3]) should be equal to 1',function(){
assert.equal(difference([2,1]))
})
}) |
// COPYRIGHT © 2021 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
import { ToastAndroid } from 'react-native';
import {
LOADING_NOVEL,
GET_NOVEL,
GET_CHAPTERS,
FETCHING_NOVEL,
SET_NOVEL,
UPDATE_IN_LIBRARY,
CHAPTER_READ,
CHAPTER_DOWNLOADED,
CHAPTER_DELETED,
UPDATE_NOVEL,
SET_NOVEL_SETTINGS,
BOOKMARK_CHAPTER,
MARK_PREVIOUS_CHAPTERS_READ,
MARK_PREVIOUS_CHAPT... |
search_result['443']=["topic_000000000000012F.html","Import.GetClipBox Method",""]; |
const getters = {
isMobile: state => state.app.isMobile,
lang: state => state.app.lang,
theme: state => state.app.theme,
color: state => state.app.color,
token: state => state.user.token,
avatar: state => state.user.avatar,
nickname: state => state.user.name,
welcome: state => state.user.welcome,
role... |
class FilterCell{
constructor(value, x, y, filler){
this.text = value;
this.filler = filler;
this.col = color(255);
this.x = x;
this.y = y;
this.checked = false;
}
selected(){
this.checked = !this.checked;
}
show(opac){
if(this.checked){
this.col = color(12, 1... |
import React from 'react'
import PT from 'prop-types'
import { flatten } from 'flat'
import { removeValuesOfHiddenNodes, getWizardProgress } from '../../../helpers/wizardHelper'
import { getProductEstimate } from '../../../config/projectWizard'
import './HeaderWithProgress.scss'
const numberWithCommas = (n) => n.toS... |
const creteBookingDao = require('../dao/create-booking-dao');
const sendEmailBL = require('../bl/send-email-bl');
const PropertyRequiedError = require('../errors/property-required-error');
const createBooking = async (req, res, next) => {
try {
const { checkin, checkout, email, name, id_room } = req.body;
... |
/* jshint strict: false, unused: false */
var router = require('express').Router();
var tokenCheck = require('../auth/tokencheck.js');
var DbController = require('./databasecontroller.js');
// require token for all database operations
router.use(tokenCheck);
// foreign keys
router.route('/:database/fk/:refTable/:refC... |
import "../styles/main.scss";
import "babel-polyfill";
const modal = document.getElementById("myModal");
function promiseOfModal() {
return new Promise(function (resolve) {
window.setTimeout(function () {
resolve(modal)
}, (1000 * 60));
});
}
const runModal = async () => {
aw... |
JSON.__proto__[1] = Uint8ClampedArray().buffer
f = (function() {
function g(c) {
Object.freeze(c).__proto__ = c
}
for each(b in []) {
try {
g(b)
} catch (e) {}
}
})
f()
f()
|
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View
} from 'react-native';
class dvdpila_remote extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styl... |
import data from './data.json';
export default {
title: 'Components/Icons/SAP Icons',
parameters: {
description: `Icons are used to provide visual clarity, save screen space, and help guide users as they navigate an application. They are often used as visual elements within other components, although t... |
angular.module('job')
.factory('ThingService', ['$resource', 'cmsConfig', function ($resource, cmsConfig) {
/*eslint-disable */
// serverUrl
var ThingResource = $resource(cmsConfig.serverApi + '/thing/edit/:id', {}, {
edit: {method: 'POST', url: cmsConfig.serverApi + '/thing/edit/:id', headers: {'Co... |
/**
* Created by s.cosma on 29/07/2016.
*/
var webdriverio = require('webdriverio');
var webdrivercss = require('webdrivercss');
var browsers = ['internet explorer', 'chrome', 'firefox','MicrosoftEdge'];
browsers.forEach(function (element) {
var client = webdriverio.remote({
desiredCapabilities: {
... |
import Phaser from 'phaser';
class Menu extends Phaser.State {
init() {
// set game config variable data from game cache
this.Config = this.game.cache.getJSON('config');
}
create() {
let startInstructions = 'Click to Start Game :\n\nUP arrow key for thrust.\n\nLEFT and RIGHT arrow keys... |
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Body = Matter.Body;
let engine;
let world;
var ball;
var ground;
var wall,rock;
function setup() {
createCanvas(400,400);
engine = Engine.create();
world = engine.world;
var ball_options = {
restitution: 0.... |
import privateProps from '../privateProps.js'
import { warnAboutDepreation } from '../utils/utils.js';
function setButtonsDisabled (instance, buttons, disabled) {
const domCache = privateProps.domCache.get(instance)
buttons.forEach(button => {
domCache[button].disabled = disabled
})
}
function set... |
import { deleteRiwayatSK } from "./deleteRiwayatSK";
import { editRiwayatSK } from "./editRiwayatSK";
import { getRiwayatSK } from "./getRiwayatSK";
import { getRiwayatSKById } from "./getRiwayatSKById";
import { insertRiwayatSK } from "./insertRiwayatSK";
export {
deleteRiwayatSK,
editRiwayatSK,
getRiwayatSK,
... |
/**
* @fileoverview Enforce no naming of AMD modules
* @author Adam Davies
*/
'use strict';
// ------------------------------------------------------------------------------
// Requirements
// ------------------------------------------------------------------------------
const RuleTester = require('eslint').RuleT... |
/**
* @typedef {object} Phaser.GameObjects.RenderTexture.Types.RenderTextureConfig
* @since 3.2.0
*
* @property {number} [x=0] - The x coordinate of the RenderTextures position.
* @property {number} [y=0] - The y coordinate of the RenderTextures position.
* @property {number} [width=32] - The width of the RenderT... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM9.88 4h4.24l1.83 2H20v12H4V6h4.05" /><path d="M15 11H9V8.5L5.5 12 9 15.5V13h6v2.5l3.5-3... |
import { __spreadArrays } from "tslib";
import { merge as mergeStatic } from '../observable/merge';
export function merge() {
var observables = [];
for (var _i = 0; _i < arguments.length; _i++) {
observables[_i] = arguments[_i];
}
return function (source) { return source.lift.call(mergeStatic.ap... |
/*************************************************************
*
* MathJax/localization/ko/HTML-CSS.js
*
* Copyright (c) 2009-2019 The MathJax Consortium
*
* 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... |
import isEmpty from 'lodash/isEmpty';
import initialState from './initialState';
import types from '../actions/actionTypes';
export default (state = initialState, action = {}) => {
switch (action.type) {
case types.SET_CURRENT_USER:
return {
isAuthenticated: !isEmpty(action.user),
user: action.user... |
import Vue from 'vue';
import App from '@front/views/App'; // Корневой компонент
import store from '@front/store/index.js'; // store нужен для хранения состояния приложения
import router from '@front/router/index.js'; // конфгурация маршрутизатора
import axios from 'axios'; // необходимо для использования ajax запросов... |
jQuery(function(e){var t;"function"==typeof e.fn.owlCarousel&&(t={rtl:!!wenTravelOptions.rtl,autoHeight:!0,margin:40,items:5,nav:!1,dots:!1,autoplay:!0,autoplayTimeout:4e3,loop:!0,responsive:{0:{items:1},640:{items:2},1024:{items:4},1120:{items:5}},navText:[wenTravelOptions.iconNavPrev,wenTravelOptions.iconNavNext]},e(... |
/* JS #7 */
if (!this.BOOTGETJSTEST) {
this.BOOTGETJSTEST = { scriptCounter: 0 };
}
this.BOOTGETJSTEST.js7 = true;
this.BOOTGETJSTEST.currentScript = 7;
this.BOOTGETJSTEST.scriptCounter += 1;
if (this.console) {
this.console.log("Executed js7.js.");
}
|
import render from "./render";
// rudimentary state management
const state = [{}];
export const getState = () => {
return state[state.length - 1];
};
export const setState = (nextState) => {
const currentState = state[state.length - 1];
state.push({
...currentState,
...nextState,
})
render(getStat... |
////@ts-check
//I HAVE TO REVIEW THE Inheritance and the prototype chain
const typedef = require('./typedef')
const WOQLQuery = require('./query/woqlBuilder')
/**
* @license Apache Version 2
* @module WOQL
* @constructor WOQL
* @description The WOQL object is a wrapper around the WOQLQuery object
* Syntactic suga... |
var getMonthName=function(t){var e=[];return e[0]="JAN",e[1]="FEB",e[2]="MAR",e[3]="APR",e[4]="MAY",e[5]="JUN",e[6]="JUL",e[7]="AUG",e[8]="SEP",e[9]="OCT",e[10]="NOV",e[11]="DEC",e[t]},getDate=function(t){var e=new Date(t),r=e.getDate(),n=e.getMonth()+1,o=e.getFullYear();return r<10&&(r="0"+r),n<10&&(n="0"+n),e=o+"-"+n... |
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose } from 'redux';
import { createStructuredSelector } from 'reselect';
import { Spin, Alert } from 'antd';
import Progress from 'fetcher/Progress';
import Message from 'fetcher/Message';
i... |
var fs = require('fs');
var j;
var list;
var use;
var toS = function(str) {
//return str;
return '";\n' + str + '\nstr += "';
};
var patterns = [
// use
/{use\s'([^']*)'}\n/g, function(str, path) {
// Переводим строку в массив
path = path.split('/');
// Получаем имя файла
... |
/*
* Duplicate Safari Window in Google Chrome
*
* Opens a new Chrome window containing the same tabs that are open in
* the frontmost Safari window (excluding Safari-specific tabs like
* Bookmarks, Favorites, History, and Top Sites).
*
* Last updated 2018-10-18.
*
* Copyright 2018 Lawrence Andrew Velázquez
* ... |
module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
author: `@emmzytech`,
},
pathPrefix: "/Construct-Site",
plugin... |
import { parseUrl } from './parser';
export function modelToViewUrlAttributeConverter( registry, options, domain ) {
return dispatcher => {
dispatcher.on( 'attribute:url:preview', converter );
};
function converter( evt, data, conversionApi ) {
if ( !conversionApi.consumable.consume( data.item, evt.name ) ) {
... |
/*globals describe it expect */
import UriRecognizer from '../src/uri-recognizer'
describe('uri-recognizer', () => {
it('default', () => {
const recognizer = new UriRecognizer()
const handler = function () {}
recognizer.add('localhost/products/:id', handler)
recognizer.add('localhost/products/1', ha... |
import Taro from "@tarojs/taro";
import { tokenValidate } from "@actions/api";
/**
* 特殊转跳,用于检测token并跳转,token不存在时转跳login界面
* @param {callback} iteratee 当TOKEN验证正确时发起回调
* @return {callback} itreratee(token,arguments)
*/
let reLaunch = iteratee => {
const token = Taro.getStorageSync("token");
if (!!token) {
t... |
const initialState = {
fetched: false,
fetching: false,
data: [
{
id: 0,
name: "Osiągnięcie #1",
img: "/badges/1.png",
},
{
id: 1,
name: "Rozwiąż 5 zadań",
img: "/badges/2.png",
},
{
id: 2,
name: "Osiągnięcie #3",
img: "/badges/3.png",
... |
class ListapizzasController {
constructor($log, menuService, LoginService, $uibModal, $http, $state) {
this._log = $log;
this.showList = true;
this._menuService = menuService;
this._loginService = LoginService;
this.$uibModal = $uibModal;
this._http = $http;
this._state = $state;
}
buyPizza = (pizza)... |
const path = require('path');
const {buildExternal, packer} = require('lerna-packer');
const apps = {
demo: {
root: path.resolve(__dirname, 'packages', 'demo'),
template: path.resolve(__dirname, 'packages', 'demo/public/index.html'),
publicPath: path.resolve(__dirname, 'packages', 'demo/pub... |
import * as Yup from "yup";
import { Formik } from "formik";
import { useTranslation } from "react-i18next";
import React, { memo } from "react";
import DataModal from "./DataModal";
// import DatabaseContext from "contexts/database/database.provider";
import FormikControl from "containers/FormikContainer/FormikControl... |
define(function(require) {
require('plugins/es5-array');
var Config = require('config');
var Core = require('core/core');
var Filter = require('core/filter/filter');
var Cache = require('core/cache.dictionary');
var Mustache = require('plugins/mustache.min');
/**
* 数据字典过滤器
*/
var FilterDictionary = Filte... |
var searchData=
[
['uart_2ec_838',['uart.c',['../uart_8c.html',1,'']]],
['uart_2eh_839',['uart.h',['../uart_8h.html',1,'']]]
];
|
// Arguments passed into this controller can be accessed via the `$.args` object directly or:
var args = $.args;
Alloy.Collections.instance("NodesTilmeldte");
Alloy.Collections.instance("NodesTilmeldte").fetch();
function transform(model) {
//convert the model to a JSON object
var nodeObject = model.toJSON();
var ... |
// register NC SP83
var sp = gmaps.ags.Util.registerSR(2264, 'PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_C... |
Date.prototype.getDayOfWeek = function() {
var days = [
"Sonntag",
"Montag",
"Dienstag",
"Mittwoch",
"Donnerstag",
"Freitag",
"Samstag"
];
return days[this.getDay()];
};
Date.prototype.getMonthString = function() {
var months = [
"Januar",
"Februar",
"März",
"April",
"Mai",
"Juni",
"Jul... |
import React from 'react';
import './App.css';
import ProductListContainer from './Containers/ProductListContainer/ProductListContainer';
import {BrowserRouter as Router, Switch, Route} from 'react-router-dom';
import ProductDetailsContainer from './Containers/ProductDetailsContainer/ProductDetailsContainer';
import Sh... |
(function () {
'use strict';
angular
.module('flairbiApp')
.factory('JhiMetricsService', JhiMetricsService);
JhiMetricsService.$inject = ['$rootScope', '$http'];
function JhiMetricsService($rootScope, $http) {
var service = {
getMetrics: getMetrics,
thr... |
import controller from './models.controller';
import template from './models.html';
export default {
bindings: {
addModel: '<',
namespaces: '<',
deleteModel: '<',
generateToken: '<',
updateModel: '<',
namespaceId: '<',
models: '<',
projectId: '<',
project: '<',
},
template,
... |
"use strict";
var aName = 'lisi';
var dAge = 18;
dAge = 18.13;
dAge = 17;
var isSingleDog = true;
isSingleDog = false;
var undef = undefined;
var nul = null;
//5.数组
//let arrJS = [1,'a',true,[],{}]
var arrHero = ['test1', 'test2'];
var arrHeroAge = [18, 21];
//7元组
var tup1 = ['test1', 18, true];
console.log(tup1[0]);
c... |
const {Usuario} = require('../models');
const Sequelize = require('sequelize');
const Op = Sequelize.Op
const IndexController = {
async index(req,res){
let {page = 1} = req.query
let {count:total, rows:users} = await Usuario.findAndCountAll({
limit:5,
offset:(page - 1)* 5
... |
var CMsg=function()
{
}
CMsg.E=function(_msg)
{
alert(_msg);
}
|
// ==================
// MediaRecorder.js
/**
* Implementation of https://dvcs.w3.org/hg/dap/raw-file/default/media-stream-capture/MediaRecorder.html
* The MediaRecorder accepts a mediaStream as input source passed from UA. When recorder starts,
* a MediaEncoder will be created and accept the mediaStream as input s... |
/* Copyright 2012 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... |
//place the URL of the showdown server you are aiming to connect to
exports.url = 'play.pokemonshowdown.com';
// The nick and password to log in with
var nick = exports.nick = 'Lord Haji's Butler
exports.pass = 'navanalanda';
// A list of private rooms that the bot will not leak through the seen command
exports.priva... |
import { toNumber } from '../../utils/helpers'
import { Song, validateSong } from './model'
export const getSongs = async (req, res) => {
try {
const docs = await Song.find()
.populate('artist', 'name')
.select('name artist')
.limit(toNumber(req.query.limit || 40))
.skip(toNumber(req.quer... |
/*!
* Ext JS Library 3.3.0
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
*/
/*
* Calendar sample code originally written by Brian Moeskau (brian@ext-calendar.com)
* See additional calendar examples at http://ext-calendar.com
*/
App = function() {
return {
... |
const app = require('../index');
const fs = require('fs');
const path = require('path');
// eslint-disable-next-line no-console
const testPath = path.resolve(__dirname,'./cases/split-with-bom/');
process.chdir(testPath)
app.split(
fs.createReadStream('input.csv'), {
lineLimit: ... |
'use strict';
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const resolve = require('resolve');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const InlineChunkHtmlPlugin = require(... |
/**
* Welcome to Pebble.js!
*
* This is where you write your app.
*/
var UI = require('ui');
var Vector2 = require('vector2');
var Feature = require('platform/feature');
var wind = new UI.Window({
backgroundColor: 'white'
});
var cupolan = [];
var x = Feature.resolution().x;
var y = Feature.resolution().y;
for(... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../../addon/mode/simple"));
else if (typeof d... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const weekSchema = new Schema({
name: {
type: String,
required: true,
},
description: {
type: String,
},
creator: {
type: Schema.Types.ObjectId,
ref: 'User',
required: true
},
creator: {
type: Schema.Types.O... |
import React from 'react'
import {Trans} from '@lingui/react'
import {Interrupts} from 'parser/core/modules/Interrupts'
import ACTIONS from 'data/ACTIONS'
import {ActionLink} from 'components/ui/DbLink'
export default class SchInterrupts extends Interrupts {
suggestionContent = <Trans id="sch.interrupts.suggestion.c... |
const express = require('express');
const path = require('path');
const { ApolloServer } = require('apollo-server-express');
const { authMiddleware } = require('./utils/auth');
const db = require('./config/connection');
const { typeDefs, resolvers } = require('./schemas');
const app = express();
const PORT = process.e... |
var Test = require('../config/testConfig.js');
contract('Flight Surety Tests', async (accounts) => {
var config;
before('setup contract', async () => {
config = await Test.Config(accounts);
});
const fundingFee = web3.utils.toWei("10", "ether");
/******************************************... |
/**
*SMOOTH SCROLLING LIBRARY
* Copyright (c) 2007-2015 Ariel Flesler - aflesler ○ gmail • com | http://flesler.blogspot.com
* Licensed under MIT
* @author Ariel Flesler
* @version 2.1.3
*/
;(function(f){"use strict";"function"===typeof define&&define.amd?define(["jquery"],f):"undefined"!==typeof module&&m... |
import {Link} from "react-router-dom";
export default function Footer() {
return (
<div className="footer-container">
<div className="footer-controls">
<Link to="/privacy">Privacy</Link>
<Link to="/contact">Contact</Link>
</div>
</div>
);
}
|
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var BookSchema = new Schema({
title: {type: String, required: true},
author: {type: Schema.ObjectId, ref: 'Author', required: true},
summary: {type: String, required: true},
isbn: {type: String, required: true},
genre: [{type: Schema.ObjectId... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.pms');
goog.require('Blockly.Msg');
Blockly.Msg.ABOUT = "about"; // untranslated
Blockly.Msg.ACCELERATION_TOOLTIP = "Get the acceleration value in milli-gravities."; // untranslated
Blockly.Msg.ACCELEROMETER_ROTATION... |
import React from 'react';
import { connect } from 'react-redux';
import { firebase } from '../firebase';
const withAuthentication = (Component) => {
class WithAuthentication extends React.Component {
constructor(props) {
super(props);
this.state = {
authUser: null,
};
}
comp... |
/******************************
* Applied To | Yashas Shah *
* Role | Software Dev *
* --------------------------- *
* Replit | @YashasShah *
* GitHub | @YashasTheDev *
* --------------------------- *
* Badge Type | Headmaster *
******************************/
/******************************... |
var TableDatatablesAjax=function(){var a=function(){$(".date-picker").datepicker({rtl:App.isRTL(),autoclose:!0})},e=function(){var a=new Datatable;a.init({src:$("#datatable_ajax"),onSuccess:function(a,e){},onError:function(a){},onDataLoad:function(a){},loadingMessage:"Loading...",dataTable:{bStateSave:!0,fnStateSavePar... |
webpackJsonpmavon_editor([132],{347:function(e,a){e.exports=function(e){var a=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",built_in:"prn nul lpt3 lpt2 ... |
export function eventOn(eventTarget, successEvent, errorEvent = "error") {
let $resolve, $reject;
const promise = new Promise((resolve, reject) => {
$resolve = resolve;
$reject = reject;
});
eventTarget.addEventListener(successEvent, $resolve);
eventTarget.addEventListener(errorEvent, $reject);
... |
// Grunt Configuration
'use strict';
module.exports = function(grunt) {
// Task Configuration
grunt.initConfig({
// Package info and environment variables
pkg: grunt.file.readJSON('package.json'),
env: {
src: 'src', // Source
dev: 'dev', // Development
dist: 'dist' // Production / Distribution
}... |
import $ from '@zhennann/dom7';
export default {
render() {
return `
<div class="color-picker-module color-picker-module-sb-spectrum">
<div class="color-picker-sb-spectrum" style="background-color: hsl(0, 100%, 50%)">
<div class="color-picker-sb-spectrum-handle"></div>
</div>
... |
angular.module('weightapp.controllers', ['weightapp.factory'])
.controller('AppCtrl', function ($rootScope, $scope, $ionicModal, $ionicHistory, $ionicPopup, $timeout, $state, AppFactory, $ionicPlatform) {
/**
* initApp :: function
* description: Main function that initializes the app
*/
$scop... |
import React from 'react'
import Grid from '@material-ui/core/Grid'
import Typography from '@material-ui/core/Typography'
import { withTheme } from '@material-ui/core/styles'
import { Translation } from 'react-i18next'
import distanceIcon from './img/keep-distance.png'
import stayHomeIcon from './img/stay-home.png'
co... |
$(document).ready(function(){$('.chkClickable').live('click',function(){$(this).next('.hdnStatus').val($(this).is(':checked'));});$('#btnAdd').click(function(){var text=$('#txtCat').val().trim();var regex=/\<[\S* ]*\>/;var alphaRegex=/[a-zA-Z]{1,}/;if(text.match(regex)!=null){showMessage('Category name entered is ... |
module.exports = handler
module.exports.$config = {
category : 'controller'
, route : '/npm(?:-dl)?/:pkg/?'
}
const validName = require('../valid-name')
function handler (context, callback) {
var pkg = context.params.pkg.replace(/\/$/, '')
if (!validName(pkg)) {
context.model.message = 'Invalid npm p... |
import axios from 'axios'
import {CART_ADD_ITEM, CART_REMOVE_ITEM} from '../constants/cartConstants'
export const addToCart = (id, qty) => async (dispatch, getState) => {
const { data } = await axios.get(`/api/products/${id}`)
dispatch({
type: CART_ADD_ITEM,
payload: {
product: dat... |
// @flow
import Action from './lib/Action';
// ======= WALLET BACKUP ACTIONS =======
export default class WalletBackupActions {
startWalletBackup: Action<any> = new Action();
initiateWalletBackup: Action<{
recoveryPhrase: Array<string>,
}> = new Action();
acceptPrivacyNoticeForWalletBackup: Action<any> = ... |
/*!
* Copyright 2017 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
const mongoose = require('mongoose');
const AtmSchema = new mongoose.Schema({
STREET_ADDRESS: String,
LOCATION: {
X: Number,
Y: Number,
},
ZIP: Number,
ATM_DEPOSIT: {
type: Boolean,
},
TRANSACTIONS: {},
CURRENCY: {
}
});
module.exports = mongoose.model('Atm', AtmSchema); |
"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... |
module.exports = {
'twitter-login': {
'provider': 'twitter',
'module': 'passport-twitter',
'consumerKey': process.env.CONSUMER_KEY,
'consumerSecret': process.env.CONSUMER_SECRET,
'callbackURL': `${process.env.BASE_URL}/api/auth/twitter/callback`,
'authPath': '/api/auth/twitter',
'callbackP... |
import React from 'react'
import "./index.css";
import { Link } from 'react-router-dom';
const Todo = ({title, id, completed, showCompleted}) => {
return (
<li className={completed && showCompleted ? "checked" : ""}><Link to={`/todos/${id}`}>{title} <span className="close"></span></Link></li>
)
}
exp... |
module.exports = class Cover {
constructor(plugin) {
// create element structure
//#region I am sorry... I know... I am lazy
this.muted = plugin.settings.get('muted', false);
this.plugin = plugin;
this.container = document.createElement('div');
this.container.setAttribute("id", 'pradio-moda... |
H5.merge(new System.Globalization.CultureInfo("eo-001", true), {
englishName: "Esperanto (World)",
nativeName: "esperanto (World)",
numberFormat: H5.merge(new System.Globalization.NumberFormatInfo(), {
nanSymbol: "NaN",
negativeSign: "-",
positiveSign: "+",
negativeInfinityS... |
import { createView, createRoute } from '../frame/index';
import { formatFilename } from '../../utils/formatFilename';
import { createElement } from '../../utils/createElement';
import { text } from '../../utils/text';
import { file } from './file';
import { applyFilters } from '../../filter';
/**
* Creates the file ... |
import { matcherHint, printExpected, printReceived } from 'jest-matcher-utils';
import predicate from './predicate';
const passMessage = received => () =>
matcherHint('.not.toBeDidCoreDatetime', 'received', '') +
'\n\n' +
'Expected value to not be of a valid DID Core Datetime received:\n' +
` ${printR... |
// Copyright (c) 2009-2017 SAP SE, All Rights Reserved
/**
* @fileOverview QUnit tests for sap.ushell.components.HeaderManager
*/
sap.ui.require([
"jquery.sap.global",
"sap/ui/core/IconPool",
"sap/ushell/ui/ShellHeader",
"sap/ushell/ui/shell/ShellAppTitle",
"sap/ushell/ui/shell/ShellHeadItem"
], f... |
import { csv } from 'd3-fetch';
import { group, groups } from 'd3-array';
import countyDict from '../data/county_dict.json';
import fipsExceptions from '../util/fipsExceptions';
//this function calculates the number of new cases/deaths for each place
//d is datum, is index of datum in values array, measure is either ... |
import React from 'react';
import { Spinner } from 'reactstrap';
export default () => <div className="py-5 my-1 text-center">
<Spinner color="yellow" style={{ width: '15rem', height: '15rem' }} type="grow" className="my-2" />
</div>; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.