text stringlengths 2 1.04M |
|---|
import React, { Component } from "react";
import "./searchRides.css";
import {
Container,
Row,
Col,
Form,
Button,
Card,
FormGroup,
Label,
Input
} from "reactstrap";
import moment from 'moment';
export default class SearchRides extends Component {
constructor(props) {
... |
// Copyright (c) 2016, Ben Glazier and contributors
// For license information, please see license.txt
/* eslint-disable */
frappe.query_reports["eBay Managed Payments Transactions"] = {
"filters": [
{
"fieldname": "start_date",
"label": "From Date",
"fieldtype": "Date",... |
import gulp from "gulp";
import del from "del";
import prod from "./gulp/prod";
import dev from "./gulp/dev";
import deploy from "./gulp/deploy";
const clean = () => del(["dist/"]);
const clearPublish = () => del([".publish"]);
// "dev:client": "webpack-dev-server --watch --progress --colors --env.env=dev",
exports.d... |
/**
* name : vue 的图片裁减压缩处理
* author : 陈威
* date : 2017/6/20
* dependence :
* cropper 第三方的一个裁剪库
* exif 获取图片源信息,解决ios图片旋转的问题
* */
import Cropper from 'cropperjs'
import Exif from 'exif-js'
export default {
install( Vue ){
//初始化方法
Vue.prototype.initilize = function( opt ){
let ... |
import { React, useState } from 'react';
import { useStaticQuery, graphql } from 'gatsby';
import styled from '@emotion/styled';
const Formulario = styled.form`
width: 100%;
display: flex;
border: 1px solid #75AB00;
margin: 2rem auto 0 auto;
max-width: 1200px;
@media(min-width: 200px) {
width: 100%;
... |
const db = require('../db')
class Message {
static async getChat(first, second){
return (await db.query(db.sql`
select * from "Message"
where
(sender=${first} and receiver=${second}) or
(sender=${second} and receiver=${first})
order by senton des... |
var searchData=
[
['d_474',['D',['../union_a_d_s1015_1_1conversion__register__map.html#ab57fcc01c4d81f034ab66688f3bde25c',1,'ADS1015::conversion_register_map']]],
['dacichg_475',['DACICHG',['../union_b_q24725_a_1_1charge__current__register__map.html#a1c3a48124e84e6905729108aa71c7ee3',1,'BQ24725A::charge_current_reg... |
/* @flow */
import type {Descriptor} from "../../types"
import type {RecordData} from "../../types/records"
import type {SearchStatus} from "../../types/searches"
export type ViewerStatus = "FETCHING" | "INCOMPLETE" | "COMPLETE" | "LIMIT"
export type ViewerColumns = {[string]: Descriptor}
export type ViewerStats = {... |
'use strict';
const os = require('os');
module.exports = {
getHostName() {
return os.hostname();
},
getIPAddress() {
let interfaces = require('os').networkInterfaces();
for (var devName in interfaces) {
var iface = interfaces[devName];
for (var i = 0; i < iface.length; i++) {
let... |
/**
* borrow-info.html的入口文件
*/ |
import path from 'path';
const rootPath = path.normalize(`${__dirname}/../../`);
const publicPath = path.join(rootPath, 'dist');
const serverPath = path.join(rootPath, 'server');
const indexHtmlPath = path.join(publicPath, 'index.html');
const certDirectory =
process.env.CERTIFICATE_LOCATION || path.join(serverPath... |
/******************************************************************************
*
* Copyright (c) 2017, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
const utils = requi... |
/*! elementor - v3.5.5 - 03-02-2022 */ |
/**
* Remote data binding sample.
*/
this.default = function () {
//Initialize Query to select required columns with defined record count.
var query = new ej.data.Query().select([
'OrderID', 'CustomerID', 'ShipName', 'ShipCity', 'ShipCountry', 'Freight'
]).take(200);
//Initialize DataManager... |
const Discord = require("discord.js");
const captchagen = require("captchagen");
module.exports = class {
constructor (client) {
this.client = client;
};
async run (member) {
// Guild
let guild = member.guild;
// Get le data de la guild
const guildData = await this.client.db.findOrCreateGuild(guild);
... |
import axios from 'axios';
export const STREAMS_REQUEST = 'STREAMS_REQUEST';
export const STREAMS_SUCCESS = 'STREAMS_SUCCESS';
export const STREAMS_FAILURE = 'STREAMS_FAILURE';
const request = () => {
return {
type: STREAMS_REQUEST
}
}
const receive = (type, data) => {
return {
type,
data
}
}
ex... |
import axios from "axios";
import dotenv from "dotenv";
dotenv.config();
const http = axios.create({
baseURL: "https://api-connect.starton.io/v1",
headers: {
"x-api-key": process.env.API_KEY
},
})
const getBlockchains = async () => {
const blockchains = await http.get('/blockchain');
cons... |
//>>built
define({loadingState:"\u00cenc\u0103rcare...",errorState:"Ne pare r\u0103u, a ap\u0103rut o eroare "}); |
'use strict';
angular.module('IssueTruck.UserTypeaheadLoader', [])
.factory('userTypeaheadLoader', [
'authentication',
function (authentication) {
function seedLoader($scope) {
$scope.loadingUsers = authentication.getAllUsers()
.then(function (respon... |
const axios = require('@/utils/axios');
module.exports = async (ctx) => {
const id = ctx.params.id;
const response = await axios({
method: 'get',
url: `http://open.douyucdn.cn/api/RoomApi/room/${id}`,
headers: {
Referer: `https://www.douyu.com/${id}`,
},
});
... |
// -----------Operações Bancárias
const user = {
name: "Mariana",
transactions:[],
balance: 0
}
// Adicionar transações
function createTransaction(transaction){
user.transactions.push(transaction)
if (transaction.type == 'credit') {
user.balance = user.balance + transaction.value
} e... |
import { router } from '@/router'
import store from '@/store'
import nprogress from 'nprogress'
import 'nprogress/nprogress.css'
import { getToken } from '@/utils/auth'
import * as tools from '@/utils/tools'
const hasPermission = (roles, permissionRoles) => {
if (roles === -1) return true
if (!permissionRoles) ret... |
import { Model } from 'src/model';
import { Schema } from 'src/schema';
import symbols from 'src/symbols';
const {
$instances,
$key,
$keyType,
$fields,
$properties,
$cachedProperties,
$methods,
$scopes,
$validators,
} = symbols;
describe('Model', () => {
let consoleWarn = console.warn;
beforeAl... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./palette"));
__export(require("./semantic_colors"));
//# sourceMappingURL=index.js.map |
module.exports = class CaptchaManager {
constructor (client) {
this.client = client;
this.constants = client.constants.captcha.solving;
this.submit = require("./lib/submit").bind(this);
}
}; |
import React, { Component } from 'react';
import $ from 'jquery';
class Login extends Component {
constructor(props){
super(props);
this.state = {
error: null,
}
}
componentDidMount(){
$('.Login--back-button').click(() => this.props.changeStage('Get Started'))
$('form').on("submit", (... |
export default {
title: 'Preferences',
colorScheme: {
title: 'Color Scheme',
light: 'Light',
dark: 'Dark',
auto: 'Adaptive'
},
lang: 'Language'
} |
/*******抄表设置接口********/
import request from '@/utils/request'
/**
* 抄表计划
* */
export function getPlan(data) {
return request({
url: '/MeterReading/LoadMeterReadPlanCombox',
method: 'post',
data: data
})
}
/**
*表册抄表员与抄表计划联动查询,返回表册下拉选数据与抄表员下拉选数据
* */
export function LoadRegisterBookAndMeterReader(da... |
import Logger from "helpers/Logger";
import Environment from "infra/Environment";
class Request {
constructor(request, response) {
this._request = request;
this._response = response;
this._status = 200;
}
getData() {
const { body, params, query } = this.getRequest();
return { ...body, ...par... |
const http = require('http');
const fs = require('fs')
http.createServer((req, res) => {
console.log(req.url);
if (req.url === '/') {
fs.readFile('index.html', 'utf-8', (err, data) => {
res.writeHead(200, { 'Content-Type': 'text/html' })
res.write(data);
... |
import 'file-loader?name=[name].[ext]!./src/html/index.html';
import {
Scene,
OrthographicCamera,
WebGLRenderer,
Mesh,
DataTexture,
RGBAFormat,
FloatType,
PlaneBufferGeometry,
ShaderMaterial,
Vector2,
TextureLoader,
Sprite,
MeshBasicMaterial,
RepeatWrapping,
R... |
import predicate from './predicate';
describe('toContainValue Predicate', () => {
const shallow = {
hello: 'world',
foo: 0,
bar: false
};
const deep = {
message: shallow,
donald: 'duck'
};
const deepArray = {
message: [shallow],
donald: 'duck'
};
describe('returns true', () =... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', '../createIcon'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require('../createIcon'));
} else {
var mod = {
exports: {}
};
factory(mod.exports, global.createIc... |
const SNOWFLAKE_EPOCH = Date.UTC(2021, 0, 1);
const UNSIGNED_23BIT_MAX = 8388607; // (Math.pow(2, 23) - 1) >> 0
const SNOWFLAKE_TIMESTAMP_SHIFT = 23n;
module.exports = (ts = Date.now(), randomBits, epoch = SNOWFLAKE_EPOCH) =>
(BigInt(ts - epoch) << SNOWFLAKE_TIMESTAMP_SHIFT) +
BigInt(randomBits || Math.round(... |
"use strict";
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
... |
import { mount } from 'enzyme';
import sinon from 'sinon';
import { AVAILABLE_VOLUME_REGIONS } from '~/constants';
import AddEditVolume from './AddEditVolume';
import { changeInput, expectDispatchOrStoreErrors, expectRequest } from '~/test.helpers';
import { api } from '~/data';
import { testLinode1238 } from '~/data... |
const express = require("express");
const app = express();
const server = require("http").Server(app);
const io = require("socket.io")(server);
const PORT = process.env.PORT || 3000;
var jogadores = {
primeiro: undefined,
segundo: undefined,
};
// Disparar evento quando jogador entrar na partida
io.on("conne... |
/** @constructor */
ScalaJS.c.scala_Product18$ = (function() {
ScalaJS.c.java_lang_Object.call(this)
});
ScalaJS.c.scala_Product18$.prototype = new ScalaJS.inheritable.java_lang_Object();
ScalaJS.c.scala_Product18$.prototype.constructor = ScalaJS.c.scala_Product18$;
ScalaJS.c.scala_Product18$.prototype.unapply__Lscal... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['knockout', 'koco-modaler'], factory);
} else if (typeof exports !== "undefined") {
factory(require('knockout'), require('koco-modaler'));
} else {
var mod = {
exports: {}
};
... |
function generateCounter() {
var x = 0;
function counter() {
return x + 1;
}
return counter;
}
var c1 = generateCounter();
console.log('c1: ' + c1());
console.log('c1: ' + c1());
console.log('c1: ' + c1());
var c2 = generateCounter();
console.log('c2: ' + c2());
console.log('c2: ' + c2());
console.log('c2: '... |
console.log('collapse bot injected');
chrome.runtime.onMessage.addListener(
({keyword, isCollapse, isRegex}) => {
if (!keyword) {
return;
}
let domList;
if (isRegex) {
domList = [].slice.call(document.querySelectorAll('.file-header'))
.filter(node => new RegExp(keyword).test(nod... |
export const fileShape32 = "M19.3 2H5v28h22V9.699zM26 29H6V3h12v8h8zm-7-19V3l7 7zm-6 3H9v4h1v6H9v4h4v-1h6v1h4v-4h-1v-6h1v-4h-4v1h-6zm-3 1h2v2h-2zm0 12v-2h2v2zm12 0h-2v-2h2zm0-12v2h-2v-2zm-3 1v2h2v6h-2v2h-6v-2h-2v-6h2v-2z"; |
$(document).ready(function () {
busqueda_rutas_reporte();
});
function busqueda_rutas_reporte() {
listar_rutas_vista();
}
function listar_rutas_vista() {
var fecha1 = $("#fecha1_ruta_report").val();
var fecha2 = $("#fecha2_ruta_report").val();
$.post
(
"../control... |
(function(){
var data = this.urls,
currentItem = -1,
searchItems,
input = document.getElementsByTagName("input")[0],
dd = document.getElementsByTagName("dd")[0];
input.addEventListener('keyup', search, false);
//input paste event
input.addEventListener('paste', function(){
setTimeout(function(){search({k... |
import _mergeJSXProps2 from "@vue/babel-helper-vue-jsx-merge-props";
import _mergeJSXProps from "@vue/babel-helper-vue-jsx-merge-props";
import { deepClone } from '../utils/deep-clone';
import { createNamespace, inBrowser, isObject } from '../utils';
import { range } from '../utils/format/number';
import { preventDefau... |
document.addEventListener("DOMContentLoaded", function(event)
{
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
xhr.onload = function() {
if (xhr.status == 200) {
var json = xhr.response;
//console.log(json);
var table = document.getElementById('database-my-sub... |
/**
* Portuguese translation for bootstrap-datetimepicker
* Original code: Cauan Cabral <cauan@radig.com.br>
* Tiago Melo <tiago.blackcode@gmail.com>
*/
;(function ($) {
$.fn.datetimepicker.dates['pt'] = {
days: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado", "Domingo"],
d... |
/*!
* Flickity asNavFor v2.0.1
* enable asNavFor for Flickity
*/
/*jshint browser: true, undef: true, unused: true, strict: true*/
( function( window, factory ) {
// universal module definition
/*jshint strict: false */ /*globals define, module, require */
if ( typeof define == 'function' && define.amd ) {
... |
import React from 'react';
import SvgIcon from '../../components/SvgIcon';
const ClockOutline = (props) => (
<SvgIcon {...props}>
<g>
<path d="M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z" />
<path d="M16 11h-3V8a1 1 0 00-2 0v4a1 1 0 001 1h4a1 1 0 000-2z" />
</g>
</SvgIc... |
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
*
* @codingstandard ftlabs-jsv2
* @copyright The Financial Times Limited [All Rights Reserved]
* @license MIT License (see LICENSE.txt)
*/
* @fileOverview
* @name asn1-1.0.js
* @author Kenji Urus... |
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --expose-gc --stress-compaction --gc-interval=255
function deepEquals(a, b) { if (a === b) { if (a === 0) return (1 / ... |
/* eslint-env mocha */
var assert = require('assert')
var multer = require('../')
var util = require('./_util')
var express = require('express')
var FormData = require('form-data')
var concat = require('concat-stream')
var onFinished = require('on-finished')
var port = 34280
var localhostUrl = function (path) { ret... |
'use strict'
const Router = require('koa-router')
const compose = require('koa-compose')
const { middleware } = require('@banzaicloud/service-tools')
const Prometheus = require('../../models/Prometheus')
const root = require('./root')
const health = require('./health')
const users = require('./users')
const router = ... |
/**
* 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.
*
* @flow
*/
import type {DispatchConfig} from './ReactSyntheticEventType';
import type {
AnyNativeEvent,
PluginName,
PluginM... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" opacity=".1" /><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3... |
// routes.js
// used to enforce secure coding practices; forces execution in strict mode
// strict mode --> prevents use of undeclared variables and other things
'use strict';
// loads the controllers
var controller = require('./controller');
// declares functions available to other files
module.exports = function (... |
const controles = document.getElementById('controles')
const cssText = document.querySelector('.css')
const btn = document.querySelector('.btn')
controles.addEventListener('change', handleChange)
const handleStyle = {
element: btn,
backgroundColor(value){
this.element.style.backgroundColor = value
},
heig... |
/*
* Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-CI 蓝鲸持续集成平台 is licensed under the MIT license.
*
* A copy of the MIT License is included in this file.
*
*
* Terms of the MIT... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.3/esri/copyright.txt for details.
//>>built
define({searching:"Recherche"}); |
import checkbox from './checkbox.vue'
import datePicker from './date-picker.vue'
import input from './input.vue'
import radio from './radio.vue'
import select from './select.vue'
import switcher from './switcher.vue'
import timePicker from './time-picker.vue'
export default {
paramCHECKBOX: checkbox,
paramDATE... |
/*!
* devextreme-angular
* Version: 21.2.5
* Build date: Mon Jan 17 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://git... |
//assets
let img1_d;
let img2_d;
let img3_d;
let img4_d;
let img5_d;
let img6_d;
let img7_d;
let img8_d;
let img9_d;
let img1_b;
let img2_b;
let img3_b;
let img4_b;
let img5_b;
let img6_b;
let img7_b;
let img8_b;
let img9_b;
let img_submit_button;
function preload() {
img1_d = loadImage('assets/textures/d1.png');... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import SocialFooter from '../../components/SocialFooter/components.jsx';
// include actions as they are needed by each component
// they are called via dispatch()
const propTypes = {
dispatch: PropTypes.func,
content: Prop... |
export { default } from 'labs-ui/components/labs-ui/icons/fa-icon'; |
var UIToastr = function () {
return {
//main function to initiate the module
init: function ( type,title, msg ) {
var i = -1,
toastCount = 0,
$toastlast;
// $('#showtoast').click(function (msg, title, type) {
var shortCutF... |
"use strict"
var DropdownPanel = require("./DropdownPanel")
var yo = require("yo-yo")
function CalldataPanel(_parentUI, _traceManager) {
this._parentUI = _parentUI
this.traceManager = _traceManager
this.basicPanel = new DropdownPanel("Call Data", { json: true })
this.init()
}
CalldataPanel.prototype.render = ... |
/*!
* jQuery JavaScript Library v3.5.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2020-05-04T22:49Z
/*!
* Sizzle CSS Selector Engine v2.3.5
* https://sizzlejs... |
import axios from 'axios';
// test env
// let base = 'http://169.56.130.93:50050/dsp_api';
let base = 'http://123.206.16.44:50050/dsp_api';
// let base = 'http://127.0.0.1:50050/dsp_api';
// pro env
// let base = 'http://169.56.130.93:50080/dsp_api';
axios.defaults.auth = {
username: sessionStorage.getItem("tok... |
module.exports={A:{A:{"1":"E B A","2":"J C G UB"},B:{"1":"D X g H L"},C:{"1":"0 2 4 F I J C G E B A D X g H L M N O P Q R S T U V W u Y Z a b c d e f K h i j k l m n o p q r w x v z t s PB","2":"1 SB QB"},D:{"1":"0 2 4 8 I J C G E B A D X g H L M N O P Q R S T U V W u Y Z a b c d e f K h i j k l m n o p q r w x v z t s... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage } from '../../util/reactIntl';
import { LISTING_STATE_DRAFT } from '../../util/types';
import { ListingLink } from '../../components';
import { EditListingPricingForm } from '../../forms';
impor... |
function playerManager(players) {
// your code
}
console |
function sortByTwo(args) {
args.sort().sort((a, b) => a.length - b.length);
//(a, b) => a.toLowerCase() - b.toLowerCase()
// console.log(a.toLowerCase().length);
// console.log(a.toUpperCase().length);
console.log(args.join(' '));
}
sortByTwo(['alpha', 'beta', 'gamma']);
sortByTwo(['Isacc', 'Theodo... |
/**
* Same as `put`, but values for index greater than the size of the Array will be folded back.
* @arguments _(index, item)_
*/
sc.define("foldPut", {
Array: function(index, item) {
if (typeof index === "number") {
this[index.fold(0, this.length-1)] = item;
} else if (Array.isArray(index)) {
... |
'use strict';
var GetIntrinsic = require('../GetIntrinsic');
var $ArrayPrototype = GetIntrinsic('%Array.prototype%');
var $RangeError = GetIntrinsic('%RangeError%');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var $TypeError = GetIntrinsic('%TypeError%');
var IsInteger = require('./IsInteger');
var MAX_ARRAY_... |
module.exports = {
plugins: [require('autoprefixer')],
}; |
'use strict'
const Boom = require('boom')
const database = require('@arkecosystem/core-container').resolvePlugin('database')
const utils = require('../utils')
const schema = require('../schema/wallets')
/**
* @type {Object}
*/
exports.index = {
/**
* @param {Hapi.Request} request
* @param {Hapi.Toolkit} h... |
import React from 'react';
import { Container, Row, Col } from 'react-bootstrap';
import ContactForm from '../ContactForm/ContactForm';
import * as C from './styles';
export default function ContatoSection() {
return (
<C.ContatoWrapper id="kontak" title="Contato">
<Container>
<Row>
<Col x... |
let fetch = require('node-fetch')
let { MessageType } = require('@adiwajshing/baileys')
let handler = async(m, { conn }) => {
let kamisato = `
┌〔 List Berlangganan 〕
├ 2 Bulan
├ 1 Bulan
├ 1 Minggu
├ Trial 3 Hari
└────
Silahkan klik pada "List Harga" untuk melihat list.
Pembayaran:
Saweria: https://saweria.co/Fadli... |
/*
This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
const NMenu = {
baseClass: "relative text-sm rounded",
iconClass: 'icon iconfont absolute top-0 ',
focusClass: 'transform -rotate-180 duration-300',
dropdownClass: "absolute z-50 py-1 mx-auto w-full text-xs bg-white rounded shadow-lg h-64 overflow-auto",
dropdownChildClass: "cursor-pointer hover:bg-gray-200 p... |
import React from 'react';
import {
Platform,
SafeAreaView,
StyleSheet,
View
} from 'react-native';
import WhatsApp from '../components/WhatsApp';
const HomeScreen = () => {
return (
<SafeAreaView style={styles.container}>
<View>
<WhatsApp />
</View>
</SafeAreaView>
)
}
const ... |
const Discord = require('discord.js');
const { RichEmbed } = require('discord.js');
const YouTube = require('simple-youtube-api');
const ytdl = require('ytdl-core');
const youtube = new YouTube('AIzaSyBTW0jnA023NBduCrds0Wz4PRwOOmDuQxI');
exports.run = async (client, message, args) => {
const queue = client.queue;
... |
// reads the lines and extracts the number
function read(canvas){
// get pixels
var ctx = canvas.getContext("2d");
var img = ctx.getImageData(0, 0, canvas.width, 1);
var pix = img.data;
var bits = "";
// read lines out of pixel array
for (var i = 5*4; i < pix.length; i += 4 * 10) {
if(pix[i] == 0){... |
/// <reference path="./index.d.ts" />
import browser from 'webextension-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { addSeconds, differenceInSeconds } from 'date-fns';
import { secToHhmmImproved } from './@toggl/time-format-utils';
import { formatDuration } from './@toggl/time-form... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","en-gb",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"General",items:[{nam... |
'use strict';
// Create a constructor for creating Rectangles.
// it should take two parameters: the sides of the rectangle
// Every rectangle should have a method called getArea() that returns its area
// Every rectangle should have a method called getCircumference() that returns its circumference
function Rectangles... |
//https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/06-24-2020.csv
export const JH20200624 =[
{
Confirmed: 31075,
Deaths: 3711,
Recovered: 24807,
Active: 2557,
Province_State: "Mexico",
Country_Region: "Mexico",
Last_Update: "2020-06-25 05:2... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _isPlainObject2 = _interopRequireDefault(require("lodash/isPlainObject"));
var _get2 = _interopRequireDefault(require("lodash/get"));
var _path = _interopRequireDefault(require("path"));
var _chalk = _inter... |
import Vue from 'vue'
import Router from 'vue-router'
import Features from 'example/pages/features'
import Examples from 'example/pages/examples'
import VerticalScroll from 'example/pages/vertical-scroll/'
import IndexView from 'example/pages/index-list/'
import Picker from 'example/pages/picker'
import Slide from 'exa... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const OrderSchema = new Schema({
timestamp: {
type: Date,
default: Date.now,
required: true
},
item: {
type: Schema.Types.ObjectId,
ref: 'Boardgame',
required: true
},
buyer: {
... |
/* global done:false */
/* global error:false */
/* global PaymentRequest:false */
/**
* Updates the details based on the selected address.
* @param {object} details - The current details to update.
* @param {PaymentAddress} addr - The address selected by the user.
* @return {object} The updated details.
*/
funct... |
ccListApp.controller('ccListCtrl',function($scope, $http, $location, $log){
"use strict";
var rowHeight = 28;
var headerHeight = 30;
$scope.ccListForFile = [];
$scope.isTooHigh = function(value){
return value > 20;
};
$http.get('/api/v1/codeMetrics/ccList', {
}).then(function(... |
// Question node
function QuestionNode(questionText, yes, no){
this.text = questionText;
this.yesAnswer = yes;
this.noAnswer = no;
}
QuestionNode.prototype.GetQuestion = function(){
return this.text;
}
QuestionNode.prototype.GetYes = function(){
return this.yesAnswer;
}
QuestionNode.prototype.Get... |
import _ from 'lodash';
import bcrypt from 'bcrypt';
import jwt from 'jsonwebtoken';
import config from 'config';
import services from 'services';
import errors from 'utils/errors';
import logger from 'logger';
const hashPassword = async (password) => {
return await bcrypt.hash(password, config.saltRounds);
};
expo... |
var dedupe = require('../src/lib/protect/dedupe-patches');
var test = require('tap').test;
var policy = require('snyk-policy');
var dir = __dirname + '/fixtures/bugs/SC-1076';
var vulns = require(dir + '/vulns.json');
test('protect patches in the correct order - SC-1076', function(t) {
var res = dedupe(vulns.vulnera... |
(function (){
'use strict';
var util = require('util');
var domain = "";
process.argv.forEach(function (val, index, array) {
var arg = val.split("=");
if (arg.length > 1) {
if (arg[0] == "--domain") {
domain = "." + arg[1];
console.log("Setting domain to:", domain);
}
}... |
/**
* @license
* MarionetteJS (Backbone.Marionette)
* ----------------------------------
* v4.1.0
*
* Copyright (c)2019 Derick Bailey, Muted Solutions, LLC.
* Distributed under MIT license
*
* http://marionettejs.com
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? fac... |
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import Component from '@glimmer/component';
import { task, restartableTask } from 'ember-concurrency';
/** @typedef {import("../../../models/behandeling-van-agendapunt").default} Beha... |
<script type="text/worker">
//Sheet open versioning
on("sheet:opened", function() {
getAttrs(["version"], (v) => { versioning(parseFloat(v.version) || 1); });
let translations = [];
let attributes = ["attribute", "body", "agility", "reaction", "strength", "willpower", "logic", "intuition", "charisma", "edge", ... |
/*
* Copyright 1999-2018 Alibaba Group Holding 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 applica... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.