text stringlengths 2 1.04M |
|---|
importScripts('./brfv5__init__worker.js')
let _width = 0 // will be set by main thread
let _height = 0
const sentTrackFaces = function() { self.postMessage("trackFaces"); }
self.addEventListener('message', function(e) {
let dataBuffer = new Int32Array(e.data);
if(dataBuffer.length === 2) {
setSize(dataBu... |
/**
* Created by qhyang on 2017/9/4.
*/
const formidable = require('formidable');
module.exports = {
registerRoutes: function(app) {
app.post('/upload/files', this.uploadFiles);
app.post('/upload/base64', this.uploadBase64Encoded);
},
uploadFiles: (req, res) => {
const form = ne... |
import styles from './template.css';
import template from './template';
import AoflElement from '@aofl/web-components/aofl-element';
/**
* @summary IconSharpBatteryCharging80Element
* @class IconSharpBatteryCharging80Element
* @extends {AoflElement}
*/
class IconSharpBatteryCharging80Element extends AoflElement {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.runeToAsset = exports.chainToFeeAsset = void 0;
var xchain_util_1 = require("@xchainjs/xchain-util");
var entities_1 = require("../entities");
/**
* return a ticker of asset that represents the network fee
* @param chain
*/
var chai... |
"use strict";(self.webpackChunkporto=self.webpackChunkporto||[]).push([[475],{475:function(e,t,p){e.exports=p.p+"static/media/leg-left.503d3b88c858fd0b52ed.jpg"}}]); |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("specialchar","sl",{euro:"Znak za evro",lsquo:"Levi enojni narekovaj",rsquo:"Desni enojni narekovaj",ldquo:"Levi dvojni narekovaj... |
/**
* LifecycleActionController
*
* @description :: Server-side logic for managing Lifecycleactions
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
module.exports = {
}; |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'iframe', 'et', {
border: 'Raami äärise näitamine',
noUrl: 'Vali iframe URLi liik',
scrolling: 'Kerimisribade lubamine',
title... |
const Base = require("./Base");
module.exports = class User extends Base {
constructor (env, data) {
super(env, data);
this.env = env;
this.status = data.UserStatus;
this.blurb = data.description || data.blurb || data.Blurb;
this.joinDate = data.created && new Date(data.created);
this.accountAge = Math.ro... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Mgr, Site - RMS International", "CONTRIBUTION AMOUNT (F3L Bundled)": "75.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Readiness Management Support", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "1918 Windy Ridge Dr", "CONTRIBUTOR MIDDLE NAME": "F", ... |
/*
Instalar express
npm install express --save
Instalar nodemoon (para no estar ejecutando a cada rato)
npm install nodemon --save (Esto NO es necesario si ya esta instalado a nivel de sistema)
Ejecutar aplicacion con nodemon
nodemon ./app.js
npx nodemon ./app.js ... |
async function solution() {
const main = document.querySelector('#main');
const response = await fetch('http://localhost:3030/jsonstore/advanced/articles/list');
const articles = await response.json();
articles
.map(createArticle)
.forEach(a => main.appendChild(a));
}
solution();
func... |
/*
let fiber = {
tag: HOST_COMPONENT,
type: "div",
parent: parentFiber,
child: childFiber,
sibling: null,
alternate: currentFiber,
stateNode: document.createElement("div"),
props: { children: [], className: "foo"},
partialState: null,
effectTag: PLACEMENT,
effects: []
};
*/
var {Component,renderD... |
/*
* Kendo UI Complete v2012.3.1114 (http://kendoui.com)
* Copyright 2012 Telerik AD. All rights reserved.
*
* Kendo UI Complete commercial licenses may be obtained at
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx
* If you do not own a commercial license, this file shall be gove... |
export { default as Login } from './Login';
export { default as Register } from './Register';
export { default as Dashboard } from './Dashboard';
export { default as Squads } from './Squads';
export { default as Employees } from './Employees';
export { default as Projects } from './Projects';
export { default as SquadR... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Nested = exports.Default = exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _OrderedList = _interopRequireDefault(require("../OrderedList"));
var _ListItem = _interopRequireDefault(require("../... |
import { selected } from "../selectors"
import { submissionCloneFunc } from "./submission-clone"
import { cloneDestination } from "../../settings/selectors"
import { name } from "../../assignment/selectors"
import { clone } from "../../../lib/cloneutils"
import { getAssignmentFolder } from "../../../lib/pathutils"
im... |
import __fs from 'fs';
import __path from 'path';
import __util from 'util';
import __readline from 'readline';
const readDir = __util.promisify(__fs.readdir);
const unlink = __util.promisify(__fs.unlink);
const rmdir = __util.promisify(__fs.rmdir);
const pathJoin = __path.join;
const args = [];
const options = {};
... |
if(!AmCharts)var AmCharts={themes:{},maps:{},inheriting:{},charts:[],onReadyArray:[],useUTC:!1,updateRate:40,uid:0,lang:{},translations:{},mapTranslations:{},windows:{},initHandlers:[]};
AmCharts.Class=function(a){var b=function(){arguments[0]!==AmCharts.inheriting&&(this.events={},this.construct.apply(this,arguments))... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCal... |
import { SET_MEDIA_PLAYER_DATA, SET_SYNC_ENABLED } from './actionTypes';
export const setMpcHcInfo = (value) => {
return {
type: SET_MEDIA_PLAYER_DATA,
value,
};
};
export const setSyncEnabled = (value) => {
return {
type: SET_SYNC_ENABLED,
value,
};
}; |
"use strict";
import React from 'react';
import './hello.less';
class Hello extends React.Component {
render() {
return (
<div className = "hello-component">
Hello world, React By Hand.
</div>
)
}
}
export default Hello; |
import { useSelector } from 'react-redux'
import { selectCode } from 'redux/db/selectors'
import { Text, VStack, HStack } from '@chakra-ui/react'
import { getTableActions } from 'app/SBE/utils/get-actions'
import Action from 'app/BE/action'
import Card from 'app/layouts/components/card'
const DashboardSearch = ({ sbeC... |
const purgecss = require('@fullhuman/postcss-purgecss')({
content: ['./**/*.erb', './**/*.rb'],
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [],
whitelist: ['blockquote', 'li', 'pre', 'code', 'figcaption'],
whitelistPatterns: [/hljs/, /formkit/],
})
module.exports = {
plugins: [
req... |
class NewCase extends eVENT {
constructor({ occTime, delay}) {
super({occTime, delay});
}
onEvent() {
var followupEvents=[];
return followupEvents;
}
createNextEvent() {
return new NewCase({delay: NewCase.recurrence()});
}
static recurrence() {
return rand.exponential( 0.3);
}
}
// E... |
import fetch from 'isomorphic-fetch';
export const checkStatus = response => {
return (
response.status === 200
? Promise.resolve(response)
: Promise.reject(new Error(response.statusText))
);
};
export const getJSON = response => response.json();
// Takes a relative API endpoint and returns a Promise... |
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* global console:false */
import AssertionError from 'assertion-error';
import { html_beautify as beautify } from 'js-beautify/js/lib/bea... |
"use strict";
const express = require("express");
const http = require('http');
const socketio = require('socket.io');
const bodyParser = require('body-parser');
const cors = require('cors');
const socketEvents = require('./utils/socket');
const routes = require("./utils/routes");
const redisDB = require("./utils/d... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
"use strict";
class TileNode {
constructor(x, y) {
this.walkable = true;
this.costMultiplier = 1.0;
this.x = x;
this.y = y;
}
} |
class Player {
constructor(fullName, age, gender, hairColor) {
this.fullName = fullName
this.age = age
this.gender = gender
this.hairColor = hairColor
}
toString() {
return `Name: ${this.fullName}, Age: ${this.age}`
}
}
const player1 = new Player('p1', 16, 'girl', 'pink')
console.log(playe... |
// @flow
import * as React from "react";
import type { FormSettingsPluginType } from "@webiny/app-forms/types";
import GeneralSettings from "./components/GeneralSettings";
import TermsOfServiceSettings from "./components/TermsOfServiceSettings";
import ReCaptchaSettings from "./components/ReCaptchaSettings";
import { R... |
const { Command } = require("klasa");
module.exports = class extends Command {
constructor(...args) {
super(...args, {
cooldown: 8,
aliases: ["slapme"],
requiredPermissions: ["ATTACH_FILES", "USE_EXTERNAL_EMOJIS", "EMBED_LINKS"],
description: language => lan... |
var comEnvURL, aldta = {}, envData = {};
$(document).ready(function () {
displayAllEnvironmentUrls();
$.ajax({
url: base_url + "/application/allByCompany",
method: "get",
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', "Bearer " + readCookie("TAaccess"));
},
success: function (da... |
const generateHTML = require('./src/GenerateHTML');
const Manager = require('./lib/Manager');
const Engineer = require('./lib/Engineer');
const Intern = require('./lib/Intern');
const fs = require('fs');
const inquirer = require('inquirer');
const { validate } = require('@babel/types');
const teamArray = [];
const ... |
'use strict';
import { createNode } from 'helper';
import toast, { ToastOptions } from 'toast-me.js';
import styles from './style.scss';
createNode('h1')
.html('ToastMe')
.putIntoDoc();
createNode('button')
.html('Do not press me')
.on('click', () => toast('Why you pressing me? :"(', 'error'))
.putInto(cre... |
const util = zrequire('util');
set_global('$', global.make_zjquery());
zrequire('narrow_state');
zrequire('stream_data');
zrequire('Filter', 'js/filter');
zrequire('MessageListData', 'js/message_list_data');
zrequire('unread');
zrequire('narrow');
zrequire('search_pill');
set_global('blueslip', {});
set_global('chann... |
const axios = require('axios');
const {Datastore} = require('@google-cloud/datastore');
const Slack = require('./Slack');
const datastore = new Datastore();
const config = {
"list": {
"incoming": "",
"approved": "",
"rejected": ""
},
"key": process.env.TRELLO_KEY,
"token": proc... |
import useAppContext from 'hooks/useAppContext.hook'
import useInput from 'hooks/useInput.hook'
import useLoader from 'hooks/useLoader.hook'
export { useAppContext, useInput, useLoader } |
import React from 'react'
import ReactDOM from 'react-dom'
import { MainView } from './ui/mainview'
ReactDOM.render(<MainView />, document.getElementById('app')) |
const knex = require("knex");
const config = {
client: "sqlite3",
useNullAsDefault: true,
connection: {
filename: "./database/database.sqlite",
},
};
const db = knex(config);
module.exports = db; |
/** @jsx h */
import { Editor } from '@slate-fork/slate'
const plugins = [
{
commands: {
customCommand: () => {},
},
},
]
export const input = new Editor({ plugins })
export default function(editor) {
return editor.hasCommand('otherCommand')
}
export const output = false |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvg... |
/*
* Copyright (c) 2015 by Greg Reimer <gregreimer@gmail.com>
* MIT License. See mit-license.txt for more info.
*/
import send from './lib/send'
import { finish, values } from './lib/expect'
function roundTrip(opts) {
let s = send(opts.request || {})
if (opts.response) { s.to(opts.response) }
if (opts.client... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
/*************************************************************************
**
** Filename: EmulationCode.js
**
** File Description: This file provides emulation code to overload the IE specific
** procedures "insertAdjacentHTML()" and "scrollIntoView()"
** so that they can be ... |
// @flow
import { BigNumber } from "bignumber.js";
import type {
Account,
AccountRaw,
TokenAccount,
TokenAccountRaw,
ChildAccount,
ChildAccountRaw,
Operation,
OperationRaw,
SubAccount,
SubAccountRaw
} from "../types";
import {
getCryptoCurrencyById,
getTokenById,
findTokenById
} from "../curre... |
//# sourceMappingURL=55.a50088a7.chunk.js.map |
$.ajax({
url:"http://api.selfassest.localhost/assessment/custom-report?id=19&user_id=28"
,
method: "GET",
"headers": {
"Content-Type": "application/json",
Authorization: "Bearer AznfX2FrCq3WQZ3wMDBmGIw7eVJ2LJzBGvtOQgkI"
},
// data: JSON.stringify({ 'invoice_id': this.CurrentInvoiceI... |
import DICTIONARY from "../../dictionary.js";
import logger from "../../logger.js";
import utils from "../../utils.js";
import parseTemplateString from "../templateStrings.js";
import { fixFeatures, stripHtml, addFeatEffects } from "./special.js";
// get actions from ddb.character.customActions
function getCustomActio... |
import React, { Component } from 'react';
import Footer from './Footer';
import HeaderContainer from '../containers/Header';
const mainStyle= {
padding: '10px 0',
flexGrow: '1',
flexShrink: '0',
}
const mainContainerStyle = {
display: 'flex',
flexDirection: 'column',
alignItems: 'stretch',
... |
(function() {
'use strict';
var mesosApp = angular.module('mesos');
function hasSelectedText() {
if (window.getSelection) { // All browsers except IE before version 9.
var range = window.getSelection();
return range.toString().length > 0;
}
return false;
}
// Invokes the pailer for... |
//// [functionOverloads40.ts]
function foo(bar:{a:number;}[]):string;
function foo(bar:{a:boolean;}[]):number;
function foo(bar:{a:any;}[]):any{ return bar }
var x = foo([{a:'bar'}]);
//// [functionOverloads40.js]
function foo(bar) {
return bar;
}
var x = foo([{ a: 'bar' }]); |
export default from "./lab1"; |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... |
"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... |
const fetch = require("../../handlers/request")
const execute = require("../../handlers/MusicPlayer.js")
const msp = require("ms-parser")
const pms = require("parse-ms")
module.exports = async d => {
const code = d.command.code
const inside = d.unpack()
const err = d.inside(inside);
if (err) return d.error(err);... |
import './style.css'
import Slider from './lib/slider'
Slider({ container: '#slider' }) |
import { setShowModalFactoryAction } from '../actions/setShowModalFactoryAction';
import { unsetBatchDownloadsZipInProgessAction } from '../actions/unsetBatchDownloadsZipInProgessAction';
export const batchDownloadErrorSequence = [
unsetBatchDownloadsZipInProgessAction,
setShowModalFactoryAction('FileCompressionEr... |
(function () {
function QueryResultError(errorMessage) {
this.errorMessage = errorMessage;
}
QueryResultError.prototype.getError = function() {
return this.errorMessage;
};
QueryResultError.prototype.getStatus = function() {
return 'failed';
};
QueryResultError.prototype.getData = function(... |
import disabled from './demo/disabled';
import errors from './demo/errors';
import placeholder from './demo/placeholder';
import required from './demo/required';
import sizes from './demo/sizes';
export default {
title: 'form.TimeField',
};
export {
disabled,
errors,
placeholder,
required,
sizes... |
const path = require('path'),
paths = {
entry: path.resolve('client', 'index.js'),
build: path.resolve('public'),
output: 'bundle.js',
};
module.exports = {
mode: 'development',
entry: [
// 'webpack-hot-middleware/client?reload=true', - have to add hot middleware to expr... |
import React, { Component } from "react";
import { Mutation, Query } from "react-apollo";
import gql from "graphql-tag";
import { Input, Button } from "reactstrap";
import { InputField } from "../../generic/core";
const ARMORY_QUERY = gql`
query Crew($simulatorId: ID!) {
teams(simulatorId: $simulatorId) {
... |
'use strict';
const orderForm = document.getElementById( 'order-form' );
const ordersList = document.getElementById( 'orders' );
function Order(name, size, milk, isHot, drinkType) {
this.name = name;
this.size = size;
this.milk = milk;
this.isHot = isHot;
this.drinkType = drinkType;
Order.all.... |
/* eslint-env jest, jasmine */
import {SearchParameters} from 'algoliasearch-helper';
import connect from './connectMultiRange';
jest.mock('../core/createConnector');
const {
getProvidedProps,
refine,
getSearchParameters: getSP,
getMetadata,
cleanUp,
} = connect;
let props;
let params;
describe('connectM... |
import { createSlice } from '@reduxjs/toolkit'
/**
* Helper object for handling the sessionStorage cart
*/
const cartStorage = {
get: () => {
const storage = sessionStorage.getItem('whee-cart');
if (storage) {
return JSON.parse(storage);
} else {
cartStorage.set({});
return {};
}... |
module.exports = {
siteMetadata: {
title: 'KSV Bochum',
author: 'Thomas Frütel',
description:
'Der KSV Bochum ist der Verein für Kraftsport in Bochum. Bei uns wird Powerlifting, Gewichtheben und Fitness trainiert.',
siteUrl: 'http://ksv-bochum.de',
},
pathPrefix: '/gatsby-starter-blog',
pl... |
let _id = 1;
export function uniqueId() {
return _id++;
}
export function createTask({ title, description }) {
return {
type: 'CREATE_TASK',
payload: {
id: uniqueId(),
title,
description,
status: 'Unstarted'
},
};
}
export function editTask(id, params = {}) {
return {
t... |
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"
Ą˘Ł¤ĽŚ§¨ŠŞŤŹŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},cp28592:"iso885... |
$JSView.controller = {
viewMenuA: function(e){
$JSView.dataView({
'title': 'Welcome'
},e)
},
viewMenuB: function(e){
$JSView.dataView({
'title': 'Templates'
},e)
},
viewMenuC: function(e){
$JSView.dataView({
'title': 'E... |
angular.module('app').controller('HeaderController', ['$scope', '$timeout', '$http', '$location', '$rootScope','BASE_URL', '$state',
function($scope, $timeout, $http, $location, $rootScope, BASE_URL, $state){
$scope.po_code_header= 'abc';
$scope.po_create= false;
$scope.po_update= false;
$scope.purchase_orders= []... |
'use strict';
let color,
background,
size;
const rate = 65.9,
markup = 0.1; |
// TODO: Write code to define and export the Intern class. HINT: This class should inherit from Employee.
const Employee = require("./Employee");
class Intern extends Employee {
constructor(name, id, email, school) {
super(name, id, email);
this.school = school;
};
getRole() {
re... |
module.exports = {
siteMetadata: {
title: "Brian's posts"
},
plugins: [
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
{
resolve: "gatsby-remark-prismjs",
options: {
classPrefix: "language-... |
import React from "react"
import SEO from "../components/seo"
import Layout from "../components/layout"
import { Formik, Form, useField } from "formik"
import * as Yup from "yup"
const MyTextInput = ({ label, ...props }) => {
const [field, meta] = useField(props)
return (
<div className="flex items-center just... |
import { suppressionTypes } from '../utilities';
const schema = [
{
type: 'string',
},
];
const message = (suppression = '') => `${suppression} is missing a suppression error code. Please update this suppression to use an error code: ${suppression}[…]`;
const create = (context) => {
const isMissingSuppress... |
import District from './src/main';
/* istanbul ignore next */
District.install = function(Vue) {
Vue.component(District.name, District);
};
export default District; |
// eslint-disable-next-line no-unused-vars
import { CommonFieldTypes, SitecoreIcon, Manifest } from '@sitecore-jss/sitecore-jss-dev-tools';
import packageJson from '../../../package.json';
/**
* Adds the Styleguide-FieldUsage-ItemLink component to the disconnected manifest.
* This function is invoked by convention (... |
var styleprint = {classes:
[{class:"background{fill: none}"},
{class:"chartholder{fill: #fff1e0}"},
{class:"title{font-size:12px; fill: #000000; font-weight: 600;}"},
{class:"subtitle{fill:#000000; font-size: 9.6px; font-weight: 400;}"},
{class:"labels{font-size:10px; fill: #ffffff; font-weight: 300;}"},
{class:"source... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
let Products = new Schema({
product_id: {
type: Number
},
product_name: {
type: String
},
product_gtin: {
type: String
},
product_price: {
type: Number
},
product_sell_price: {
... |
import React from 'react'
import List from '@material-ui/core/List'
import BlogListItem from './BlogListItem'
export default function BlogList({blogs, onSelect}) {
return (
<div className="blog_list">
<List>
{blogs.sort((a,b) =>
a.primary? -1 : b.primary? 1 : 0
).map(blog =>
... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('controller:category', 'Unit | Controller | category', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
// Replace this with your real tests.
test('it exists', function(assert) {
let controller = this.subject(... |
import React, { Component } from 'react';
/**
* Abstract (base) class for container of React Component children with a style.
*
* @extends Component
*/
export default class AbstractContainer extends Component {
/**
* AbstractContainer component's property types.
*
* @static
*/
static pr... |
Ext.define('PO.model.Hour', {
extend: 'Ext.data.Model',
fields: [
'id', // Same as hour_id
'hour_id', // Unique ID taken from im_hours_seq
'user_id', // Who logged the hours?
'project_id', // On which project or task?
'day', // Which day (format: date, not timestamptz)
'hours', /... |
module.exports = app => {
const mongoose = app.mongoose;
const Schema = mongoose.Schema;
const ObjectId = Schema.Types.ObjectId;
const OrderSchema = new mongoose.Schema({
id: ObjectId,
demandId: ObjectId,
creatorId: ObjectId,
receiveDate: String,
finishDate: String,
status: String,
i... |
$(function () {
$('.js-sweetalert button').on('click', function () {
var type = $(this).data('type');
if (type === 'basic') {
showBasicMessage();
}
else if (type === 'with-title') {
showWithTitleMessage();
}
else if (type === 'success') {
... |
'use strict';
const { messages, ruleName } = require('..');
testRule({
ruleName,
config: ['always'],
fix: true,
accept: [
{
code: '@import url(x.css)',
},
{
code: 'a\n{ color: pink; }',
},
{
code: 'a\r\n{ color: pink; }',
description: 'CRLF',
},
{
code: 'a\n\n{ color: pink; }',
},
... |
d3=function(){var d3={version:"3.1.5"};if(!Date.now)Date.now=function(){return+new Date();};var d3_document=document,d3_window=window;try{d3_document.createElement("div").style.setProperty("opacity",0,"");}catch(error){var d3_style_prototype=d3_window.CSSStyleDeclaration.prototype,d3_style_setProperty=d3_style_prototyp... |
var fs = require("fs");
var chroma = require("@v3rse/chroma");
var moment = require("moment");
//Path to task json file
var TASK_JSON_PATH = "./.database.json";
/*
Tasks to be done:
Add serial no relatd to each note book
Show notes from selected notebook
show all notes
filter and add tags without duplicity in tags arr... |
var Main = /** @class */ (function() {
function Main() {}
Main.wypisz = function(listaA, listaB) {
var n = listaA.length < listaB.length ? listaA.length : listaB.length;
for (var i = 0; i < n; i++) {
{
process.stdout.write(listaA[i] + ", ");
process.st... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
import {Autocomplete} from '@material-ui/lab';
import I18n from '@iobroker/adapter-react/i18n';
import ConfigGeneric from './ConfigGeneric';
cons... |
"use strict";
const { dfn } = require('./JS');
const {
encodeParameters,
etherBalance,
etherMantissa,
etherUnsigned,
mergeInterface
} = require('./Ethereum');
async function makeComptroller(opts = {}) {
const {
root = saddle.account,
kind = 'unitroller'
} = opts || {};
if (kind == 'bool') {
... |
/*
* File: app/view/Dow2012Cont.js
*
* This file was generated by Sencha Architect version 3.2.0.
* http://www.sencha.com/products/architect/
*
* This file requires use of the Sencha Touch 2.4.x library, under independent license.
* License of Sencha Architect does not include license for Sencha Touch 2.4.x. For... |
const Rental = require('../models/rental');
const Booking = require('../models/booking');
exports.getRentals = async (req, res) => {
const { city } = req.query;
const query = city ? {city: city.toLowerCase()} : {};
try {
const rentals = await Rental.find(query).populate('image');
return res.json(ren... |
const expect = require('expect');
const request = require('supertest');
const { ObjectID } = require('mongodb');
const jwt = require('jsonwebtoken');
const { app } = require('./../server');
const { Todo } = require('./../db/models/Todo');
const { User } = require('./../db/models/User');
const {
initTodos,
populat... |
import React from 'react'
import styled from 'styled-components'
import { Container, Headline3, Text } from './defaultComponents'
import { StaticImage } from 'gatsby-plugin-image'
import {Link} from 'gatsby'
const Wrap = styled(Container)`
text-align: center;
@media screen and (max-width: 977px){
mar... |
// During production and testing, replace with your own key please :)
const STREAMING_INFO_KEY = "daa11a7f40msh6e1ece24c7b095dp1df636jsn01c0d63b2684";
const YOUTUBE_API_KEY = "AIzaSyDfqFtp0qlTg8E5PQqIj7nGkMOupJ5ZyD0";
const OMBD_API_KEY = "f3ecd794";
// Start her up!
init();
// Starts up the page - sets up event hand... |
var searchData=
[
['unsub_344',['unsub',['../struct_m_q_t_t_async__success_data5.html#a46b20b320d6951e567ebf678ea4ac1a3',1,'MQTTAsync_successData5']]],
['username_345',['username',['../struct_m_q_t_t_async__connect_data.html#aba2dfcdfda80edcb531a5a7115d3e043',1,'MQTTAsync_connectData::username()'],['../struct_m_q_t... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('v... |
import Joi from '../../../utils/joi.js'
export const chmodResource = {
options: {
validate: {
options: {
allowUnknown: true,
stripUnknown: true
},
query: Joi.object().keys({
path: Joi.string(),
mode: Joi.string(),
recursive: Joi.boolean().default(false),
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.