text stringlengths 2 1.05M |
|---|
var DateTime = artifacts.require("./DateTime.sol");
var ProofOfExistence = artifacts.require("./ProofOfExistence.sol");
module.exports = function(deployer) {
deployer.deploy(DateTime);
deployer.link(DateTime, ProofOfExistence);
deployer.deploy(ProofOfExistence);
};
|
import axios from 'axios';
export const FETCH_POSTS = "fetch_posts";
export const CREATE_POST = "create_post";
const ROOT_URL='http://reduxblog.herokuapp.com/api';
const API_KEY='?key=agparadiso';
export function fetchPosts() {
const request = axios.get(`${ROOT_URL}/posts${API_KEY}`);
return {
type: ... |
define(["exports"],(function(e){"use strict";let t,l;const s=e=>{let t=e.target.parentElement.querySelector(".hoo-mdldialog-outer");t.classList.remove("is-hidden"),t.classList.add("is-visible")},o=e=>{let t=e.target.closest(".hoo-mdldialog-outer");t.classList.remove("is-visible"),t.classList.add("is-hidden")};e.registe... |
const path = require('path');
const merge = require('webpack-merge').merge;
const scssTask = require('./webpack.scss');
const es5Task = require('./webpack.es5');
let BundleAnalyzerPlugin;
if (process.env.APOS_BUNDLE_ANALYZER) {
BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
}
modul... |
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello Express JS');
});
app.post('/home', (req, res) => {
res.send('Hello Home');
});
app.put('/about', (req, res) => {
res.send('Hello About');
});
app.delete('/contact', (req, res) => {
res.send('Hello Contact')... |
"use strict";
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = require("../models/com... |
export { AlpacaClient } from './client.js';
export { AlpacaStream } from './stream.js';
import { AlpacaClient } from './client.js';
import { AlpacaStream } from './stream.js';
export default {
AlpacaClient: AlpacaClient,
AlpacaStream: AlpacaStream,
};
|
import React, { useState, useLayoutEffect } from "react";
// Components
import Layout from "../components/layout";
import SEO from "../components/seo";
// Images
import Astronaut from '../images/404/Astronaut-big.png'
import BalloonLost from '../images/404/Balloon Lost-big.png'
import BrokenClock from '../images/404/... |
/*
* Copyright © 2020 VMware, Inc. All Rights Reserved.
* SPDX-License-Identifier: BSD-2-Clause
*/
'use strict'
const connectorExplang = require('connector-explang')
const btoa = require('btoa')
const service = require('../services/zendesk-tasks-service')
const mfCommons = require('@vmw/mobile-flows-connector-commons... |
var app = angular.module('mybuilder', []);
app.controller('mybuildercontroller', function ($scope, $http) {
$http.get("/files/user_data.json").then(function (dados) {
$scope.list = dados.data;
}, function (err) {
console.log("ERRO GET: " + err);
});
}); |
// (C) Copyright 2016 Hewlett Packard Enterprise Development LP
import AnnotatedMeter from './components/AnnotatedMeter';
import FilterControl from './components/FilterControl';
import ListPlaceholder from './components/ListPlaceholder';
import Query from './utils/Query';
import SideSplit from './components/SideSplit'... |
import React from "react";
const Container = (props) => {
return (
<div className={props.hideXOverflow ? "overflow-x-hidden" : ""}
{...(props.dataCy ? {'data-cy': props.dataCy} : {})}>
<div className="mx-auto px-4 md:px-6 lg:px-8 max-w-[90rem]">
{props.children}
</div>
</div>
);
}... |
/**
*
* create by ligx
*
* @flow
*/
import { unZip, unZipCopyData, zip, zipCopyData } from '../src';
import LayoutFile from './LayoutFile';
import LayoutFileZip from './LayoutFileZip';
import CopyDataZip from './copydata_zip';
import CopyData from './copydata';
import LugiaDFile from './lugiaDFile';
import LugiaD... |
const express = require('express')
const router = express.Router()
const {
signup
} = require('../../../controllers/signup')
// Tutte le routes definite in questo file saranno di tipo /api/v1/signup/*
router.post('/', signup) // POST /api/v1/signup/
module.exports = router
|
const express = require("express");
const app = express();
let PORT = 3000;
let alunos = [
{
id: 0,
nome: "Jose",
},
{
id: 1,
nome: "Paulo",
},
{
id: 2,
nome: "Maria",
},
{
id: 3,
nome: "Pedro",
},
];
// urlencoded são dados vindos por form
// P... |
var __extends=this.__extends||function(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);r.prototype=t.prototype,e.prototype=new r},wijmo;(function(e){(function(t){"use strict";var n=jQuery,r="wijexpander",i="ui-expander-content",s=function(t){function r(){t.apply(this,arguments)}retu... |
var c = document.getElementById("c");
// set up size to fill the page
c.height = 0.96*window.innerHeight;
c.width = 0.96*window.innerWidth;
var newx = c.width/2,
newy = c.height/2;
var ctx = c.getContext("2d");
var snowflake = {
x:Math.random()*c.width,
y:Math.random()*c.height,
radius:30
};
// a function to u... |
/*!
* remark (http://getbootstrapadmin.com/remark)
* Copyright 2017 amazingsurge
* Licensed under the Themeforest Standard Licenses
*/
!function(document,window,$){"use strict";var Site=window.Site;$(document).ready(function($){Site.run()}),function(){var cssAnimationData={labels:["Jan","Feb","Mar","Apr","May","Ju... |
Clazz.declarePackage ("J.g3d");
Clazz.load (["J.api.JmolRendererInterface", "JU.GData", "JU.P3i", "$.V3"], "J.g3d.Graphics3D", ["java.lang.NullPointerException", "java.util.Arrays", "javajs.awt.Font", "JU.AU", "J.api.Interface", "J.c.STER", "J.g3d.CylinderRenderer", "$.LineRenderer", "$.Pixelator", "$.PixelatorScreened... |
/**
* Index Component Spec Test
*/
'use strict';
var React = require('react');
var IndexComponent = React.createFactory(require('../../../client/scripts/components/index<% if (useJsx) { %>.jsx<% } %>'));
describe('Index Component', function() {
var ReactTestUtils;
var reactRender;
beforeEach(function() {
... |
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
ABOUT THIS NODE.JS EXAMPLE: This example works with the AWS SDK for JavaScript version 3 (v3),
which is available at https://github.com/aws/aws-sdk-js-v3. This example is in the 'AWS SDK for JavaScript v3 Develope... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
'use strict';
const path = require('path');
const rimraf = require('rimraf');
const webpack = require('webpack');
const H... |
'use strict';
// MODULES //
var betaincinv = require( 'compute-betaincinv/lib/ibeta_inv_imp.js' );
// QUANTILE //
/**
* FUNCTION: quantile( p, alpha, beta )
* Evaluates the quantile function for a Beta distribution with first shape parameter `alpha` and second shape parameter `beta` at a probability `p`.
*
* @para... |
var crypto = require("crypto");
var transParams = (data) => {
let params = new URLSearchParams();
for (let item in data) {
params.append(item, data["" + item + ""]);
}
return params;
};
//data 是准备加密的字符串,key是你的密钥
function encryption(data, key) {
var iv = "";
var cipherEncoding = "base64";
var cipher ... |
// Required: Initialize bugsplat with database name, app name, and version
const BugSplat = require("bugsplat-node");
const bugsplat = new BugSplat("fred", "my-node-crasher", "1.0.0.0");
bugsplat.setDefaultAppKey("AppKey");
bugsplat.setDefaultUser("Fred");
bugsplat.setDefaultEmail("fred@bedrock.com");
bugsplat.setDefau... |
const User = require('./user')
const Products = require('./products')
const Type = require('./type')
const Bussines = require('./bussines')
/**
* If we had any associations to make, this would be a great place to put them!
* ex. if we had another model called BlogPost, we might say:
*
* BlogPost.belongsTo(User)... |
import express from 'express';
import agentRoutes from './agent/agent.route';
import authRoutes from './auth/auth.route';
import pusherRoutes from './pusher/pusher.route';
import organizationRoutes from './organization/organization.route';
import taskRoutes from './task/task.route';
import teamRoutes from './team/team.... |
module.exports = {
len: function (obj) {
return obj.length;
},
when: function (operand_1, operator, operand_2, options) {
switch (operator) {
case 'eq':
case '=':
case '==':
case '===':
return operand_1 == operand_2;
case 'neq':
case 'noteq':
case '!=':
... |
const given = require('../../steps/given')
const when = require('../../steps/when')
const then = require('../../steps/then')
describe('When a user signs up', () => {
it("The user's profile should be saved in DynamoDB", async () => {
const { password, name, email } = given.a_random_user()
const user = await ... |
webpackJsonp([69,73],{202:function(t,s,i){var n=i(1)(null,i(320),null,null);t.exports=n.exports},320:function(t,s){t.exports={render:function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"container"},[i("topComponent",{attrs:{title:"如何注册账号"}}),t._v(" "),i("div",{staticClass:"reportRegStep... |
// @flow
import * as React from 'react';
import { withRouter } from 'react-router';
import styles from './style.scss';
const BackTabbar = props => (
<div className={styles.tabbar}>
<button
onClick={() => {
props.history.goBack();
}}
className={`${styles.navLink}`}
>
Back
<... |
/*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
import AppBar from '@material-ui/core/AppBar';
import Button from '@material-ui/core/Button';
import Hidden from '@material-ui/core/Hidden';
import Backdrop from '@material-ui/core/Backdrop';
import CircularProgress from '@material-ui/core/CircularProgress';
import Grid from '@material-ui/core/Grid';
import React, { Su... |
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-04-28
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
import logger from './util/logger'
import parseString from './parseString'
import denormalise from './denormalise'
import toSVG from './toSVG'
import toPolylines from './toPolylines'
import groupEntitiesByLayer from './groupEntitiesByLayer'
export default class Helper {
constructor (contents) {
if (!(typeof cont... |
const { Schema, model } = require("mongoose");
const OperationSchema = new Schema(
{
balance_last: {
type: Number,
required: true
},
balance_now: {
type: Number,
required: true
},
rollback: Date,
credit_id: {
type: Schema.Types.ObjectId,
ref: "Credi... |
"no use strict";(function(e){function t(e,t){var n=e,r="";while(n){var i=t[n];if(typeof i=="string")return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(i===!1)return"";var s=n.lastIndexOf("/");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!="undefined"&&e.document)re... |
const path = require('path');
const webpack = require('webpack');
module.exports = function override(config, env) {
config.resolve.alias = {
...config.resolve.alias,
CodeMirror: path.join(__dirname, 'node_modules', 'codemirror'),
jQuery: path.join(__dirname, 'node_modules', 'jquery'),
... |
import React, { Component } from 'react';
import '../../semantic/dist/semantic.min.css';
import { Button, Card } from 'semantic-ui-react';
class YupikNounPossessor extends Component {
render() {
return (
<Card>
<Card.Content>
<Card.Header>
It is owned by someone?
</Car... |
import sanityClient from "@sanity/client";
export default sanityClient({
projectId: "dbi6o2or",
dataset: "production",
apiVersion: "2021-05-18",
useCdn: false
});
|
/*
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("devtools","sq",{title:"Të dhënat e elementit",dialogName:"Emri i dritares së dialogut",tabName:"Emri i fletës",elementId:"ID e elementit",element... |
module.exports = Object.freeze({
PATH_TO_LIBS_DIR: './e2e/config/apps/libs/',
PATH_TO_KARMA_CONFIG: './e2e/config/karma.conf.js',
PATH_TO_TEST_DIR: './e2e/tests/',
PATH_TO_TEST_COLLECTION_DIR: './e2e/tests/temp-test-collection/',
PATH_TO_APPS_DIR: './e2e/config/apps/',
HTTP_SERVER_PORT: 4242,
... |
import { auth, initialState } from './auth'
import {
SAVE_AUTH,
DELETE_AUTH
} from '../../config/constants';
describe('auth reducer', () => {
it('SAVE_AUTH stores auth token', () => {
const action = {
type: SAVE_AUTH,
token: 'ABC123'
}
const expectedState = {
token: 'ABC123'
}
... |
function submitForm(){var e=$("#contactform"),t=document.getElementById("submsg"),n=document.getElementById("name").value,d=document.getElementById("email").value,a=document.getElementById("msg").value;""!=n||""!=d||""!=a?(e[0].submit(),e[0].reset(),t.textContent="Successfully submitted!",t.style.color="green",$(".fade... |
describe("Core", function () {
before(function () {
fixture.setBase("test/fixtures");
});
beforeEach(function () {
fixture.load('basic_elements.html');
});
afterEach(function () {
fixture.cleanup();
});
describe("Jamon", function () {
it("should exist", function () {
expect(Jamon).to.not.be.undefi... |
/* */
"format cjs";
(function(factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('../moment'));
} else {
factory((typeof global !== 'undefined' ? global : this).moment);
}
}(function(mo... |
/**
* ueditor完整配置项
* 可以在这里配置整个编辑器的特性
*/
/**************************提示********************************
* 所有被注释的配置项均为UEditor默认值。
* 修改默认配置请首先确保已经完全明确该参数的真实用途。
* 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。
* 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。
**************************提示***************... |
// Copyright 2012 Traceur Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import RawQRCode from 'qrcode.react';
import { currency } from 'components/Common/Ticker.js';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import { Event } from 'utils/GoogleAnalytics';
imp... |
// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the LICENSE
// file in the root directory of this source tree.
//
// RUN: echo continue | %hdb %s | %FileCheck --match-full-lines %s
// REQUIRES: debugger
print("continue")
// CHECK-LABEL: continue
fun... |
import _typeof from "@babel/runtime/helpers/esm/typeof";
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import toArray from "rc... |
import Message from './message';
import SSHHandle from './sshbus';
import ExecHandle from './execbus';
import Subscription from './subscription';
/**
* Drop in replacement for webos-service, but using SSH shell to call luna-send-pub instead.
*/
export default class Service {
/**
*
* @param {Service|null} ser... |
import React from 'react';
const Textarea = () => {
return (
<div className="flex-auto w-full mb-1 text-sm space-y-2">
<label className="font-semibold text-gray-600 py-2">Description</label>
<textarea
required=""
name="message"
id=""
className="w-full min-h-[100px] max... |
/* CELSIUS EM FAHRENHEIT (VICE VERSA)
* Crie uma função que receba uma string em celsius ou fahrenheit e faça a transformação de uma unidade para outra
C = (F - 32) * 5/8
F = C * 9/5 + 32
*/
function transformDegree(degree) {
const celsiusExists = degree.toUpperCase().includes('C')
co... |
layui.use('upload', function(){
var $ = layui.jquery,
upload = layui.upload;
var duotu = true;
upload.render({
elem: '#test2',
url: '/admin/upload/imgs',
multiple: duotu,
data: {'_csrf':'TlhROE5NRVB8HwdpFCIUfXsqKV0FAyoHHQkaaSEBHCAlNzUIOS4EPw=='},
done: function(res){
var imgName =... |
/*******************************************************************************
* Licensed Materials - Property of IBM
* © Copyright IBM Corporation 2017. All Rights Reserved.
*
* Note to U.S. Government Users Restricted Rights:
* Use, duplication or disclosure restricted by GSA ADP Schedule
* Contract with IBM ... |
var common = require("./editable-text-base-common");
var enums = require("ui/enums");
var EditableTextBase = (function (_super) {
__extends(EditableTextBase, _super);
function EditableTextBase(options) {
_super.call(this, options);
}
EditableTextBase.prototype.dismissSoftInput = function () {
... |
var ebml = require('../lib/ebml/index.js'),
assert = require('assert');
describe('embl', function() {
describe('Pipeline', function() {
it('should output input buffer', function(done) {
var decoder = new ebml.Decoder();
var encoder = new ebml.Encoder();
var buffer = ... |
// Copyright 2015 Joyent, Inc.
module.exports = {
read: read,
readPkcs1: readPkcs1,
write: write,
writePkcs1: writePkcs1
};
var assert = require('assert-plus');
var asn1 = require('asn1');
var algs = require('../algs');
var utils = require('../utils');
var Key = require('../key');
var PrivateKey =... |
5; |
/**
* Plugin.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
define(
'tinymce.plugins.code.Plugin',
[
'tinymce.core.PluginManager',
'tinymce.plugins.code.... |
import React from "react"
import PropTypes from "prop-types"
import reduxFormField from "./../../../utils/reduxFormField"
import { Select } from "antd"
const Option = Select.Option
const Select1 = props => {
return (
<div style={{ marginBottom: "25px" }}>
<p className="label">{props.label}</p>
<Sel... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
export { default as Button } from "./Button";
export { default as Container } from "./Container";
export { default as Icon } from "./Icon";
export { default as WombakLogo } from "./WombakLogo";
|
console.clear();
function updateInventory(arr1, arr2) {
// All inventory must be accounted for or you're fired!
/*
Reversing done!
console.log( reverser( reverser( arr1 ).sort() ) );
*/
arr2.map( function(i){
let reminder = 0;
arr1.map( function(j){
if( j[1]... |
'use strict'
/* global describe, it, beforeEach */
const checkUsage = require('./helpers/utils').checkOutput
const expect = require('chai').expect
const english = require('../locales/en.json')
let yargs = require('../')
require('chai').should()
describe('validation tests', () => {
beforeEach(() => {
yargs.rese... |
const fs = require('fs');
module.exports = function() {
this.addOccurrences = (stringTally, inputString) => {
for(let i = 0; i < inputString.length; ++i) {
if (stringTally[i] === undefined || stringTally[i] === null) {
stringTally[i] = {};
}
let positionTally = stringTally[i];
le... |
import { rollupTypescript } from "../../scripts/rollup";
export default rollupTypescript("node/index", {
external: ["@vuepress/utils", "vuepress-plugin-sass-palette"],
});
|
/*! kjua v0.6.0 - https://larsjung.de/kjua/ */
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("kjua",[],r):"object"==typeof exports?exports.kjua=r():t.kjua=r()}("undefined"!=typeof self?self:this,function(){return function(e){var n={};fun... |
/**
* @author arman
* @since 8/20/18
*
*/
'use strict';
import React from 'react';
import isUrl from 'is-url';
import styled from 'react-emotion';
import { Block, Value } from 'slate';
import initialValue from './value.json';
import App from './app.component';
import ListItemContainer from './list-item.container';... |
import React from 'react';
import { ProgressBarDefault } from './index';
export default class ProgressBarKitchenSink extends React.Component {
render() {
return (
<React.Fragment>
<ProgressBarDefault />
</React.Fragment>
);
}
}
|
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.34/esri/copyright.txt for details.
//>>built
define("esri/dijit/metadata/nls/et/i18nBase",{general:{cancel:"T\u00fchista",close:"Sulge",none:"Puudub",ok:"OK",other:"Muu",stamp:"Tempel",now:"Praegu",choose:"Val... |
module.exports = {
name: 'landing',
preset: '../../jest.preset.js',
globals: {
'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' },
},
transform: {
'^.+\\.(ts|html)$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'js', 'html'],
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
coverageD... |
/**
* Search Console Settings stories.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICEN... |
"use strict";
var NotificationService = require('../services/notification-service');
var token_auth = require('../../JWT_Checker/loginToken');
var express = require('express');
var router = express.Router();
var service = new NotificationService();
router.get('/list', token_auth, function (req, res) {
service.getLi... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | planning-event/panel', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (... |
describe('Hotel collection specs', () => {
it('should fetch 2 hotels and show it in screen when visit /hotels urls', () => {
// Arrange
const params = {
apiPath: '/hotels',
fixture: 'fixture:hotels',
fetchAlias: 'fetchHotels',
};
// Act
cy.loadData(params);
cy.visit('#/hotel... |
/*
@license
dhtmlxScheduler v.5.3.11 Standard
To use dhtmlxScheduler in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxScheduler/#licensing or contact us at sales@dhtmlx.com
(c) XB Software Ltd.
*/
Sch... |
function parseJson(s) {
var XSSI_PREFIX = ")]}'";
return JSON.parse(s.replace(XSSI_PREFIX, ""));
}
function onSubmitButtonClick(key, xsrfToken, button) {
var formData = $("#" + key).serializeArray();
var request = JSON.stringify({
"xsrf_token": xsrfToken,
"key": key,
"payload": {
"form_data":... |
const inquirer = require("inquirer");
const Employee = require("./models/Employee");
const Role = require("./models/Role");
const Department = require("./models/Department");
const cTable = require("console.table");
const { raw } = require("express");
// Sets up the information to be displayed in the table shown in th... |
import inquirer from 'inquirer';
import prettyjson from 'prettyjson';
import emoji from 'node-emoji';
import chalk from 'chalk';
import { validateNumber } from '../utils';
export default async sqs => {
const DEFAULT_MAX_NUMBER_OF_MESSAGES = 1;
const DEFAULT_WAIT_TIME_SECONDS = 10;
const DEFAULT_VISIBILITY_TIMEOU... |
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const UserSchema = new Schema({
email: {
type: String,
trim: true,
unique: true,
required: "Please enter an email",
},
password: { type: String, trim: true, required: "Please enter a password" },
firstName: { type: String, t... |
/**
* @ngdoc service
* @name refigureShared.services:errorInterceptor
* @description
* HttpProvider Error interceptor
*/
(function (angular) {
'use strict';
angular
.module('refigureShared')
.factory('errorInterceptor', errorInterceptor);
errorInterceptor.$inject = [
'$q',
... |
const dropContainer = document.getElementById('drop-zone');
const fileInput = document.getElementById('file-input');
fileInput.onchange = function (e) {
onFileChange(e);
};
dropContainer.ondragover = dropContainer.ondragenter = function (evt) {
evt.preventDefault();
};
function onDrop(evt) {
// pretty si... |
export const getApps = jest.fn().mockReturnValue([]);
export const initializeApp = jest.fn();
|
$(function() {
$('.post-item-card').click(function(e) {
window.location.href = $(this).attr('post-path');
});
})
|
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports", "../release/go", "./Polylin... |
module.exports = {
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
reactStrictMode: true,
trailingSlash: true,
productionBrowserSourceMaps: true,
webpack: (config, _options) => {
config.modul... |
Ext.gesture.Drag = Ext.extend(Ext.gesture.Touch, {
handles: ['dragstart', 'drag', 'dragend'],
dragThreshold: 5,
direction: 'both',
horizontal: false,
vertical: false,
constructor: function() {
Ext.gesture.Drag.superclass.constructor.apply(this, arguments);
if (this.direction... |
import { v4 as uuidv4 } from 'uuid'
const validEvents = {
identify: 'identify',
group: 'group',
session: 'session',
pageview: 'pageview',
screenview: 'screenview',
action: 'action',
}
export default class Event {
/**
*
* @param {string} event - Event type to create
* @param {Object} config - Ev... |
// 검색어 enter
$("#fullTextSearch").keyup(function(e) {
if(e.keyCode == 13) {
if(fullTextSearchCheck()) {
fullTextSearch();
}
}
});
// 검색 버튼을 눌렀을때
$("#fullTextSearchButton").click(function() {
if(fullTextSearchCheck()) {
fullTextSearch();
}
});
// 닫기 버튼 클릭
$('#districtSearchCloseButton').click(function() {
... |
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { includes } from 'lodash';
import { FormattedDate, FormattedMessage } from 'react-intl';
import expenseStatus from '../../lib/constants/expense-status';
import expenseTypes from '../../lib/constants/expenseTypes';
import { PayoutMetho... |
// LICENSE@@@
//
// Copyright (c) 2009-2013 LG Electronics, 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 require... |
import React, { Component } from "react"
import SEO from "components/seo"
import Header from "components/header"
import { StickyContainer } from "react-sticky"
import UnAuthResultWrapper from "../../../components/trip/unauth-result"
import { connect } from "react-redux"
import omit from "../../../../node_modules/loda... |
/** Source Code Line Manager Class
This class takes some Source Code Adapter to construct its indexed collection of source
code lines. This manager will command the Source Code Lines.
Rules:
- A Source Code Adapter must be passed in the constructor
- Assumes existence of SourceCode class
- Us... |
'use strict'
const nodemailer = require('nodemailer')
const store = require('../src/componentes/users/store')
const { config } = require('../config/config')
const { unauthorized } = require('@hapi/boom')
const jwt = require('jsonwebtoken')
const AdminEmail = config.AdminEmail
const emailpass = config.EmailPass
async ... |
(function() {
'use strict';
angular.module('todos')
.service('TodoResources', TodoResources);
TodoResources.$inject = ['TodoConsts'];
function TodoResources(TodoConsts) {
this.todosPath = TodoConsts.api.path.todos;
this.todosParamNoCache = TodoConsts.api.param.noCache;
}
})()... |
/* bubbleChart creation function. Returns a function that will
* instantiate a new bubble chart given a DOM element to display
* it in and a dataset to visualize.
*
* Organization and style inspired by:
* https://bost.ocks.org/mike/chart/
*
*/
// ==============================================================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.