text stringlengths 2 1.04M |
|---|
/*!
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
*/
import {assert} from '@webex/test-helper-chai';
import lolex from 'lolex';
import Metrics, {config} from '@webex/internal-plugin-metrics';
import MockWebex from '@webex/test-helper-mock-webex';
import sinon from 'sinon';
import {WebexHttpError} f... |
const gulp = require('gulp');
const ts = require('gulp-typescript');
const JSON_FILES = ['src/*.json', 'src/**/*.json'];
const tsProject = ts.createProject('tsconfig.json');
gulp.task('scripts', () => {
const tsResult = tsProject.src()
.pipe(tsProject());
return tsResult.js.pipe(gulp.dest('dist'));
});
... |
/*!
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
* v4.0.44.5 - 2021-11-18
*
*/ |
const FIREBASE_DOMAIN = 'https://react-http-c7523-default-rtdb.firebaseio.com';
export async function getAllQuotes() {
const response = await fetch(`${FIREBASE_DOMAIN}/quotes.json`);
const data = await response.json();
if (!response.ok) {
throw new Error(data.message || 'Could not fetch quotes.');
}
co... |
module.exports={A:{A:{"1":"E A B","2":"H D G mB"},B:{"1":"C L q M O I J K"},C:{"2":"5 jB AB F H D G E A B C L q M O I J P Q R dB cB","132":"0 1 2 3 4 6 8 9 S T U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w x y z LB BB CB DB EB FB HB IB JB KB"},D:{"1":"0 1 2 3 4 6 8 9 C L q M O I J P Q R S T U V W X Y Z a b c ... |
var should = require('should');
var fs = require('fs');
var parser = require('../../lib/lifts/parser');
var parse = require('../../lib/lifts/parse')('mthood');
/*global describe, it */
describe('parse mthood', function() {
it('should return lift status', function(done) {
var stream = fs.createReadStream(__dirna... |
//imported dependencies
import React, { useState } from "react" //React && use state
import Validator from "validator" //validator
//imported components
import Layout from "../components/Layout" //layout
import SEO from "../components/SEO"
const Contact = () => {
//setting name & name error's initial state to "empty... |
/*eslint no-console:0 */
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const config = require('./webpack.config');
new WebpackDevServer(webpack(config), config.devServer).listen(config.devServer.port, 'localhost', err => {
if (err) {
console.log(err);
}
console.l... |
import merge from 'lodash/merge';
import pick from 'lodash/pick';
import uniqueId from 'lodash/uniqueId';
import upperFirst from 'lodash/upperFirst';
export {
merge,
pick,
uniqueId,
upperFirst
}; |
/*
This file is based on the tests for SimpleBank.sol from the ConsenSys Blockchain Developer Bootcamp
---
The public version of the file used for testing can be found here: https://gist.github.com/ConsenSys-Academy/ce47850a8e2cba6ef366625b665c7fba
This test file has been updated for Truffle version 5.0. If your tes... |
import G6 from '@antv/g6';
import insertCss from 'insert-css';
// define the CSS with the id of your menu
insertCss(`
#contextMenu {
position: absolute;
list-style-type: none;
padding: 10px 8px;
left: -150px;
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid #e2e2e2;
border-r... |
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,
// Indicates whether the coverage information should be collected while executing th... |
import React from 'react';
import { connect } from 'react-redux';
import {
find as lodashFind,
get as lodashGet,
cloneDeep as lodashCloneDeep,
} from 'lodash';
import googleTagManager from 'googleTagManager';
import PropTypes from 'prop-types';
import Slider, { Handle } from 'rc-slider';
import { Tooltip } from '... |
import {StyleSheet} from 'react-native';
export default {
type_a_container : {
backgroundColor: '#fff',
margin: 10,
flexDirection: 'column',
borderColor: '#ddd',
borderWidth: 1,
borderRadius: 5,
},
type_a_info : {
flexDirection: 'row',
backgroundColor: '#ddd',
minHeight: 15,
... |
window.onload=() =>{
const transelem=document.querySelector(".transition");
const anchors=document.querySelectorAll("a");
setTimeout(() => {
transelem.classList.remove('is-active')
},500);
for (let i=0;i<anchors.length;i++)
{
const anchor=anchors[i];
anchor.addEventListe... |
const { DefaultTaxCalculator } = require("./default-tax-calculator");
const { Vehicle } = require("../vehicle");
const { FuelType } = require("../fuel-type");
const { featureSwitches } = require("./feature-switches");
beforeAll(() => {
featureSwitches.story5 = true;
});
describe("Tax calculator on expensive vehicle... |
console.log(4 == '4')
// o igual a, é comparado o mesmo valor
// ou seja, independente se vc colocar aspas
// é um number - ou seja, do mesmo valor//
console.log(4 === '4')
// o igual e do mesmo tipo, vai comparar que
// além de ser igual (valor) tem que ser do
// MESMO TIPO - ou seja, se é num... |
/*!
* AnchorJS - v4.0.0 - 2017-06-02
* https://github.com/bryanbraun/anchorjs
* Copyright (c) 2017 Bryan Braun; Licensed MIT
*/
/* eslint-env amd, node */
// https://github.com/umdjs/umd/blob/master/templates/returnExports.js
(function(root, factory) {
'use strict';
if (typeof define === 'function' && define.a... |
/*global $, _, PageData, Chart, Utils */
function PageController () {
this.DARK = 'dark'
this.LIGHT = 'light'
this.chartObjects = []
// default values are first
this.OPTIONS = {
type: ['column', 'line'],
rounding: ['on', 'off']
}
this.EDITABLES = ['title', 'note']
this.$body = $('body')
thi... |
/*
Copyright 2020 NEC Solution Innovators, Ltd.
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 in writin... |
/* jshint esnext:true */
export function foo() {
return 121;
}
assert.equal(foo(), 121); |
const axios = require("axios");
const ms = require("millisecond");
const Observable = require("rxjs/Observable").Observable;
require("rxjs/add/observable/interval");
require("rxjs/add/operator/startWith");
require("rxjs/add/operator/mergeMap");
const parse = require("@cryptolw/money-parse");
const CryptowlError = req... |
import React from 'react';
import classNames from 'classnames';
import { findDOMNode } from "react-dom";
import PropTypes from 'prop-types';
import {withStyles} from 'material-ui/styles';
import Grid from 'material-ui/Grid';
import Button from 'material-ui/Button';
import AddIcon from 'material-ui-icons/Add';
import Se... |
/**
* Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/ssr-apis/
*/
// You can delete this file if you're not using it
import React from "react"
import NavContextProvider from "./src/context/NavContextProvider"
import Layout from './src/components/layout';
... |
import { gql } from '@apollo/client';
export const LOGIN = gql`
mutation login($username: String!, $password: String!) {
login(username: $username, password: $password) {
token
user {
_id
}
}
}
`;
export const ADD_ORDER = gql`
mutation addOrder($products: [ID]!) {
addOrder(... |
/**
* Copyright (c) 2006-2012, JGraph Ltd
*/
/**
* Constructs a new graph editor
*/
EditorUi = function(editor, container, lightbox)
{
mxEventSource.call(this);
this.destroyFunctions = [];
this.editor = editor || new Editor();
this.container = container || document.body;
var graph = this.editor.graph;
gra... |
"use strict";
class Counter {
static $getCounter (board, state) {
const $wrpPanel = $(`<div class="w-100 h-100 dm-cnt__root dm__panel-bg dm__data-anchor"/>`) // root class used to identify for saving
.data("getState", () => counters.getSaveableState());
const counters = new CounterRoot(board, $wrpPanel);
cou... |
const express = require('express');
const router = express.Router();
var Disturbance = require('../models/disturbance');
const keywords = require('../etc/suggestions-keywords');
const helpers = require('../etc/helpers');
let convert_to_days ={
0 : "Sun",
1 : "Mon",
2 : "Tue",
3: "Wed",
4: "Thu",
... |
import Strategy from './base'
import Decimal from 'decimal.js'
class VMWALong extends Strategy {
filter() {
return this.vwmaHigherThanLow()
&& this.newTradesWithPricesAboveTheLastFractal()
}
/**
* The last candle's low price must be lower than VMWA
*
* @return {boolean}
*/
vwmaHigherTha... |
/* eslint-disable */
import React from 'react';
import { Svg, Path } from 'react-native-svg';
import { getIconColor } from './helper';
const IconUser = ({ size, color, ...rest }) => {
return (
<Svg viewBox="0 0 1024 1024" width={size} height={size} {...rest}>
<Path
d="M518.07603918 6.737455c-174.9... |
// NPM
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Label as SemanticLabel, Icon } from 'semantic-ui-react';
import Truncate from 'react-truncate';
import { Popup } from 'semantic-ui-react';
import { Link } from 'react-router-dom';
// CO... |
/*
Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.4
Version: 1.7.0
Author: Sean Ngu
Website: http://www.seantheme.com/color-admin-v1.7/admin/
*/
var blue = '#348fe2',
blueLight = '#5da5e8',
blueDark = '#1993E4',
aqua = '#49b6d6',
aquaLight = '#6dc... |
// Copyright 2017, Google, Inc.
//
// 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 in ... |
import debugLevels from 'resolve-debug-levels'
import bootstrap from '../common/bootstrap'
import shutdown from '../common/shutdown'
const log = debugLevels('resolve:resolve-runtime:deploy-service-event-handler')
const getReadModelNames = (resolve) =>
resolve.readModels.map(({ name }) => name)
const getSagaNames =... |
module.exports = {
theme: {
extend: {
colors: {
light : {
background: '#fff0f3',
nav: '#fff0f3',
p: '#000000',
h1: '#6a65d8',
h2: '#1d2786',
table: '#afa7e3',
},
dark: {
background: '#353941',
nav: '#35394... |
const { expect } = require('chai');
const nLenNum = require('../index');
describe('Validates random number generator', () => {
it('should generate 3 length ', () => {
expect(nLenNum().length).to.equal(3);
expect(nLenNum(3).length).to.equal(3);
});
it('should generate 4 length ', () => {
expect(nLen... |
import {
REGEX_VAR,
classes
} from 'app-x/spec/classes.js'
// type: react/effect (~statement)
// body: # code block (:array<:string>|:array<:statement>)
// states: # state expressions (:array<:expression>)
// - s1
// - s2
expor... |
import React from 'react'
import { Form, Text, Select, Option } from 'informed'
const FitOptions = [
<Option key="auto" value="auto">Auto</Option>,
<Option key="cover" value="cover">Cover</Option>,
<Option key="contain" value="contain">Contain</Option>,
<Option key="initial" value="initial">Initial</Option>,
... |
import React from "react"
import PropTypes from "prop-types"
import Helmet from "react-helmet"
import { useStaticQuery, graphql } from "gatsby"
import OGImage from '../images/og.png'
function SEO({ description, title, pathname, image }) {
const { site } = useStaticQuery(
graphql`
query {
site {
... |
define(["skylark-jquery","../timeago"],function (jQuery) {
// Danish
jQuery.timeago.settings.strings = {
prefixAgo: "for",
prefixFromNow: "om",
suffixAgo: "siden",
suffixFromNow: "",
seconds: "mindre end et minut",
minute: "ca. et minut",
minutes: "%d minutter",
hour: "ca. en time",
... |
import React, { Component } from 'react';
import Loader from '../../Loader';
import Button from '@material-ui/core/Button';
export default class LoaderShowcase2 extends Component {
constructor (props) {
super(props);
this.handleClose = this.handleClose.bind(this);
this.handleToggle = this.handleToggle.bi... |
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ["jquery", "../jquery.validate"], factory );
} else if (typeof module === "object" && module.exports) {
module.exports = factory( require( "jquery" ) );
} else {
factory( jQuery );
}
}(function( $ ) {
/*
* Translated default m... |
define( [
'dojo/_base/declare',
'dojo/_base/array',
'dojo/_base/lang',
'dojo/_base/event',
'dojo/dom-construct',
'dojo/on',
'dojo/mouse',
'JBrowse/View/Track/BlockBased',
'JBrowse/View/Track/_ExportMixin',
... |
// Theme color settings
$(document).ready(function () {
var URLactual = window.location.hostname+"";
function store(name, val) {
if (typeof (Storage) !== "undefined") {
localStorage.setItem(name, val);
} else {
window.alert('Please use a modern browser to properly view th... |
/* global test expect */
import { runAction } from '../src/runAction';
// import { sum } from '../src/sum';
// runAction(rules, ctx);
const action = {
criteria: {
userId: 1227280,
chatId: -368345831,
},
action: {
type: 'return',
value: 123,
},
};
// нам пишет хер - ignore
// нам пишет игорь н... |
module.exports = (catalog, options) => {
const items = JSON.parse(options.items)
for (const id of items) {
const pin = catalog.getObject(id)
if (!pin) {
throw new Error('invalid-id')
}
catalog.favorites.splice(catalog.favorites.indexOf(pin), 1)
}
catalog.writeSupplementalData()
} |
/**
* Copyright (c) 2019 GraphQL Contributors
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import { expect } from 'chai';
import { before, describe, it } from 'mocha';
import { Range, Position,... |
import Version, * as version from '../index';
import LRU from '../lru';
describe('LRU', () => {
it('should not grow past max size', () => {
const lru = new LRU(3);
expect(lru.size).to.equal(0);
lru.set('a', 1);
expect(lru.size).to.equal(1);
lru.set('b', 2);
expect(lru.size).to.equal(2);
lru.set('c', 3);... |
__report = {"info":{"file":"minify.json.js","fileShort":"minify.json.js","fileSafe":"minify_json_js","link":"files/minify_json_js/index.html"},"complexity":{"aggregate":{"line":14,"complexity":{"sloc":{"physical":81,"logical":55},"cyclomatic":17,"halstead":{"operators":{"distinct":20,"total":154,"identifiers":["__strip... |
const express = require("express");
const fs = require("fs");
const { ApolloServer, gql } = require("apollo-server-express");
const bodyParser = require("body-parser");
const cors = require("cors");
const expressJwt = require("express-jwt");
const jwt = require("jsonwebtoken");
const db = require("./db");
const port =... |
import React from 'react'
import PropTypes from 'prop-types'
const Header = (props) => (
<header id="header" style={props.timeout ? { display: 'none' } : {}}>
<div className="logo">
<span className="icon fa-diamond"></span>
</div>
<div className="content">
<div class... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------------------------------------------... |
/**
* Add custom settings to Jasmine.
*/
/*globals jasmine*/
jasmine.VERBOSE = false;
require('jasmine-expect');
require('jasmine-expect-moment');
var reporters = require('jasmine-reporters');
var reporter = new reporters.JUnitXmlReporter({
savePath: __dirname + '/log/',
consolidateAll: false
});
jasmine... |
import React from 'react';
import Icon from 'react-native-vector-icons/FontAwesome';
import { Container, Name, Description, Stats, Stat, StatCount, Refresh, RefreshText } from './styles';
export default function Repository({ data, onRefresh }) {
return (
<Container>
<Name>{data.name}</Name>
<Descrip... |
// LACUNA LAZY LOAD FALLBACK
function lacuna_lazy_load(id, callback){
fetch("http://127.0.0.1:8125/lazyload/", {
method: "POST",
headers: { "Accept": "application/json", "Content-Type": "application/json" },
body: JSON.stringify({id})
}).then(response => {
return response.text();... |
import {queryList ,save,remove,edit,SubSystemInfo,getProxyType} from '../services/subsystemes';
export default {
namespace: 'subsystem',
state: {
data: {
list: [],
pagination: {},
},
currentItem: {},
modalVisible: false,
systemInfo: {},
modalType : 'create',
proxyType:[],
... |
$(document).ready(function () {
$('#dataTable').DataTable({
"searching": true,
"pagesType": "full_numbers",
"language": {
//国际化
"url": "/js/Chinese.json"
},
"serverSide": true,//开启服务器模式,使用服务器端处理配置datatable
"processing": true,//开启读取服务器数据时显示正在加载中... |
(this["webpackJsonpkagiweb-ui-core-a"]=this["webpackJsonpkagiweb-ui-core-a"]||[]).push([[29],{338:function(e,s,t){"use strict";function n(e){e.languages.css.selector={pattern:e.languages.css.selector,inside:{"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/... |
const Post = require('../models/post.js');
const axios = require('axios');
const addNewPost = (data, callback) => {
let entry = new Post({
date: data.date,
name: data.name,
location: data.location || null,
latitude: data.latidute || 0,
longitude: data.longitude || 0,
image: data.image,
bo... |
var Backbone = require('backbone-cdb-v3');
var UploadConfig = require('./upload_config');
var Utils = require('cdb.Utils');
var moment = require('moment-v3');
var _ = require('underscore-cdb-v3');
/**
* Model that let user upload files to our endpoints.
*
* NOTE: this model extends Backbone.Model instead of cdb.cor... |
import { GeoPackageAPI } from '../../../..'
import { default as testSetup } from '../../../fixtures/testSetup'
import {RelatedTablesExtension} from '../../../../lib/extension/relatedTables'
var Verification = require('../../../fixtures/verification')
, UserMappingTable = require('../../../../lib/extension/relatedTab... |
'use strict';
var util = require('../../../util/index');
var string = util.string,
isString = string.isString;
function factory (type, config, load, typed) {
var DenseMatrix = type.DenseMatrix;
/**
* Iterates over SparseMatrix S nonzero items and invokes the callback function f(Sij, b).
* Callback f... |
// Importando os módulos sqlite3 e sqlite (apenas a função open)
const sqlite3 = require("sqlite3");
const { open } = require("sqlite");
module.exports = () =>
// Configurando o database
open({
filename: "./src/db/rocketq.sqlite",
driver: sqlite3.Database, // Driver é quem comanda o Database
}); |
/*
Copyright 2019 The Matrix.org Foundation C.I.C.
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 in ... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import 'bootstrap/dist/css/bootstrap.min.css';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// ... |
const { difference } = require('../../utils/objectUtils');
const { isTempColumn } = require('../../utils/tmpColumnUtils');
const BelongsToOneRelation = require('../../relations/belongsToOne/BelongsToOneRelation');
const UpsertNodeType = Object.freeze({
Insert: 'Insert',
Delete: 'Delete',
Update: 'Update',
Patc... |
// @author jaysunxiao
// @version 1.0
// @since 2020-04-23 14:20
const DeleteGroupNotice = function(groupId, groupName) {
this.groupId = groupId; // long
this.groupName = groupName; // java.lang.String
};
DeleteGroupNotice.prototype.protocolId = function() {
return 19000;
};
DeleteGroupNotice.write = func... |
exports.findNumberSums = (numbers) => {
for (let i = 0; i < numbers.length; i += 1) {
for (let j = i + 1; j < numbers.length; j += 1) {
const base = numbers[i] + numbers[j];
if (base < 2020) {
for (let k = j + 1; k < numbers.length; k += 1) {
if (base + numbers[k] === 2020) {
... |
async function newFormSubmit(event) {
event.preventDefault();
const title = document.querySelector('input[name="post-title"]').value;
const content = document.querySelector('input[name="content"]').value;
const response = await fetch(`/api/posts`, {
method: "POST",
body: JSON.stringify({
title,
... |
module.exports={A:{A:{"2":"M D H F A B mB"},B:{"2":"C E q L O I J","164":"K"},C:{"2":"5 jB AB G M D H F A B C E q L O I J P Q R dB cB","322":"0 1 2 3 4 6 8 9 S T U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w x y z LB BB CB DB EB FB HB IB JB"},D:{"2":"5 G M D H F A B C E q L O I J P Q R S T U","164":"0 1 2 3 4... |
/*jslint browser: true, node: true */
/*global daikon */
"use strict";
/*** Imports ***/
var papaya = papaya || {};
papaya.volume = papaya.volume || {};
papaya.volume.dicom = papaya.volume.dicom || {};
/*** Constructor ***/
papaya.volume.dicom.HeaderDICOM = papaya.volume.dicom.HeaderDICOM || function () {
this.... |
/*!
* drbg.js - hmac-drbg implementation for bcrypto
* Copyright (c) 2017-2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bcrypto
*
* Parts of this software are based on indutny/hmac-drbg:
* Copyright Fedor Indutny, 2017.
* https://github.com/indutny/hmac-drbg
*
* Resources:
* ht... |
/**
* Copyright 2017 Intel Corporation
*
* 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 agr... |
const path = require('path')
const {
normalizePath
} = require('@dcloudio/uni-cli-shared')
const {
getPageSet,
getJsonFileMap,
getChangedJsonFileMap
} = require('@dcloudio/uni-cli-shared/lib/cache')
// 主要解决 extends 且未实际引用的组件
const EMPTY_COMPONENT = `Component({})`
const usingComponentsMap = {}
function ana... |
import React from "react";
// reactstrap components
import {GET} from '../../components/http'
// core components
import DemoNavbar from "components/Navbars/DemoNavbar.js";
import CardsFooter from "components/Footers/CardsFooter.js";
// index page sections
import Download from "../IndexSections/Download.js";
import... |
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: `@gatsbyjs`,
},
plugins: [
`gatsby-plugin-react-helm... |
import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter } from 'react-router-dom';
import App from './routes/app';
ReactDOM.render((
<BrowserRouter>
<App/>
</BrowserRouter>
), document.getElementById('app')); |
const { expect } = require('@jest/globals');
const {stringLength, reverseString} = require('./app');
test('Takes the string "Wuletaw" and returns 7', () => {
expect(stringLength('Wuletaw')).toBe(7);
})
test('Takes a string longer than 10 or shorter than 1 and throws error', () => {
expect(() => stringLength('Wule... |
'use strict';
let $simpleLock = (function() {
const CHECK_EVERY_K_MS = 100;
let token = null;
let modeCheckValidate = false;
function updateToken() {
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
token = Math.random().toString(36).substring(2, 15) + Math.random().toStri... |
const comment = {};
// CRUD basics
comment.create = (req, res) => { }
comment.read = (req, res) => { }
comment.update = (req, res) => { }
comment.delete = (req, res) => { }
// Page or recent comments
comment.pageComments = (req, res) => { }
comment.recentComments = (req, res) => { }
// Webhook
comment.replyFromEmail... |
// Regular expressions are special strings that represent a search pattern. Also known as "regex" or "regexp", they help programmers match, search, and replace text. Regular expressions can appear cryptic because a few characters have special meaning. The goal is to combine the symbols and text into a pattern that matc... |
import React, { useState } from "react";
import { connect } from "react-redux";
import { useHistory } from "react-router-dom";
import { Delete, Update } from "../../actions/index";
import styled from "styled-components";
import ReactStars from "react-stars";
const Button = styled.button`
background: transparent;
bo... |
/*
Copyright 2020 Ruse Utilities Group
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 in writing, sof... |
/**
* @author: 卓文理
* @email : 531840344@qq.com
* @desc : 版本比对
*/
'use strict';
/**
* 语义化的版本号比对
* 语义化版本号相关信息:https://docs.npmjs.com/misc/semver
* @param {string} v1 版本号1
* @param {string} v2 版本号2
* 例如: Version('1.9.1', '2.1.0')
*/
const Version = function (v1, v2) {
if(!v1){return -1;}
v1 = String(v... |
/* Source Themes Academic v4.7.0 | https://sourcethemes.com/academic/ */
;
/*!
* Bootstrap v4.4.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
function scrollT... |
class EvervaultError extends Error {
constructor(message) {
super(message);
this.type = this.constructor.name;
}
}
class InitializationError extends EvervaultError {}
class AccountError extends EvervaultError {}
class ApiKeyError extends EvervaultError {}
class CageKeyError extends EvervaultError {}
cl... |
var GrovePi = require('grovepi').GrovePi
var PirMotionSensor = require('./motionSensor')
var Board = GrovePi.board
let Service, Characteristic;
module.exports = function(homebridge) {
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Characteristic;
homebridge.registerAccessory('homebridge-pir-m... |
'use strict';
console.log('Loading function');
let moment = require('moment');
let uuid = require('node-uuid');
let _ = require('underscore');
let AWS = require('aws-sdk');
let creds = new AWS.EnvironmentCredentials('AWS'); // Lambda provided credentials
const dynamoConfig = {
credentials: creds,
region: proces... |
const {Schema, model} = require("mongoose");
const UserSchema = new Schema(
{
username: {
type: String,
unique: true,
required: true,
trim: true
},
email: {
type: String,
required: true,
unique: true,
... |
// COPYRIGHT © 201 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 ... |
/**
* Definition for singly-linked list.
* function ListNode(val) {
* this.val = val;
* this.next = null;
* }
*/
/**
* @param {ListNode} head
* @return {ListNode}
*/
const swapPairs = function(head) {
if (!head || !head.next) {
return head;
}
const newHead = head.next;
let curr = head.next... |
//# sourceMappingURL=pages.projects.artifacts.browse.fd0649b3.chunk.js.map |
/*
AngularJS v1.3.12
(c) 2010-2014 Google, Inc. http://angularjs.org
License: MIT
*/
(function(M,Y,t){'use strict';function S(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.3.12/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=en... |
"use strict";
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var botframework_directlinejs_1 = require("botframework-directlinejs");
var Strings_1 = require("./Strings");
var SpeechModule_1 = require("./SpeechModule");
var adaptivecards_1 = require("adap... |
import * as asn1js from "../asn1.js";
import { getParametersValue, clearProps } from "../utils.js";
import GeneralNames from "./GeneralNames.js";
import AlgorithmIdentifier from "./AlgorithmIdentifier.js";
import Attribute from "./Attribute.js";
import Extensions from "./Extensions.js";
//******************************... |
var app = getApp();
Page({
//弹窗
popSuccessTest: function () {
wx.showToast({
title: '不可修改',
image: '/images/error.png',
duration: 1000, //停留时间
})
},
popSuccessTest2: function () {
wx.showToast({
title: '此处无法修改!请返回信息主页修改!',
icon: 'none',
duration: 2000, //停留时间
... |
macDetailCallback("1065a3000000/24",[{"d":"2009-10-10","t":"add","a":"1690 Corporate Circle\nPetaluma CA 94954\n\n","c":"UNITED STATES","o":"Panamax Inc."},{"d":"2013-06-28","t":"change","a":"1880 South McDowell Blvd\n2nd Floor\nPetaluma CA 94954\n","c":"UNITED STATES","o":"Core Brands LLC"},{"d":"2015-08-27","t":"chan... |
const success = require('../../services/response').success
const notFound = require('../../services/response').notFound
const authorOrAdmin = require('../../services/response').authorOrAdmin
const RoomMessage = require('./model').model
exports.create = ({ user, bodymen: { body } }, res, next) =>
RoomMessage.create({... |
import App from './App.svelte';
import { googleAnalytics } from './analytics.js';
import CookiesEuBanner from '../node_modules/cookies-eu-banner/dist/cookies-eu-banner.min.js';
const app = new App({
target: document.body
});
new CookiesEuBanner(function () {
googleAnalytics('UA-156964030-1');
}, true);
export de... |
import * as React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Layout from "../components/layout.js"
import SEO from "../components/seo"
import { Heading, Box } from "grommet"
import { MaxWidth } from "../components/util"
const Kontakt = () => {
// const data = useStaticQuery(graphql`
// `... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.