text stringlengths 2 1.04M |
|---|
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue').default;
/**
* The following block of code... |
/**
* @generated-from ./$forkerate.js
* This file is autogenerated from a template. Please do not edit it directly.
* To rebuild it from its template use the command
* > npm run generate
* More information can be found in CONTRIBUTING.md
*/
import { asyncEnsureIterable } from '../../internal/async-iterable.js';
... |
/**
* Created by Ameya Joshi on 28/6/17.
*/
var QuotationImageUpload = function() {
var e = function() {
var e = new plupload.Uploader({
max_files : 20,
runtimes: "html5,html4",
browse_button: document.getElementById("tab_new_version_images_uploader_pickfiles"),
... |
import dynamic from "next/dynamic";
import PropTypes from "prop-types";
const Navigation = dynamic(() => import("../components/Navigation"));
const Greetings = dynamic(() => import("../containers/Greetings"));
const Skills = dynamic(() => import("../containers/Skills"));
const Proficiency = dynamic(() => import("../con... |
/**
*
* @license Guriddo jqGrid JS - v5.1.1
* Copyright(c) 2008, Tony Tomov, tony@trirand.com
*
* License: http://guriddo.net/?page_id=103334
*/ |
define('csslint', ['require', 'exports'], function(require, exports) {
/*!
CSSLint
Copyright (c) 2011 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... |
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import { store } from "./app/store";
import { Provider } from "react-redux";
//import * as serviceWorker from "./serviceWorker";
import { BrowserRouter } from "react-router-dom";
import "./index.css";
ReactDOM.render(
<React.Strict... |
import React from 'react';
import { Link } from 'react-router-dom';
import { Menu } from 'semantic-ui-react';
const Header = () => (
<Menu>
<Menu.Item header>Reviso Timetracking</Menu.Item>
<Menu.Menu position='right'>
<Menu.Item><Link to="/new">New</Link></Menu.Item>
<Menu.Item><Link t... |
define(function(){return {"\/":".",":":":","days":{"names":["недјеља","понедјељак","уторак","сриједа","четвртак","петак","субота"],"namesAbbr":["нед","пон","уто","сре","чет","пет","суб"],"namesShort":["н","п","у","с","ч","п","с"]},"months":{"names":["јануар","фебруар","март","април","мај","јун","јул","август","септемба... |
'use strict';
var React = require('react');
var d3 = require('d3');
var DataSeries = require('./DataSeries');
var _require = require('../common');
var Chart = _require.Chart;
var XAxis = _require.XAxis;
var YAxis = _require.YAxis;
var Tooltip = _require.Tooltip;
var _require2 = require('../mixins');
var CartesianC... |
module.exports = function(grunt) {
let configs = require("./screeps.json");//load config as json
let target = grunt.option("target");//get parameter called "target" in scripts in package.json
grunt.loadNpmTasks("grunt-screeps");
if (grunt.option("ptr")) {
configs[target]["token"] = configs.ptr... |
require("init");
var util = require("requires/util");
var cache = require("requires/cache");
var network = require("requires/network");
var bitcoin = require("requires/bitcoin");
var ethereum = require("requires/ethereum");
var blockchain = require("requires/blockchain");
//cache.init(); // TODO
if( cache.load() ){... |
if (typeof define !== 'function') { var define = require('amdefine')(module) };
define([], function() {
//Via Sylvester for now
function Matrix(elements) {
if (!Array.isArray(elements))
throw new TypeError(elements);
if (!Array.isArray(elements[0]))
throw new TypeError(elements[0]);
this.elements = elem... |
/* eslint-env node */
module.exports = {
useYarn: true,
scenarios: [
{
name: 'ember-lts-2.4',
bower: {
dependencies: {
'ember': 'components/ember#lts-2-4'
},
resolutions: {
'ember': 'lts-2-4'
}
},
npm: {
devDependencies: {
... |
define("dijit/tree/ObjectStoreModel", [
"dojo/_base/array", // array.filter array.forEach array.indexOf array.some
"dojo/aspect", // aspect.before, aspect.after
"dojo/_base/declare", // declare
"dojo/Deferred",
"dojo/_base/lang", // lang.hitch
"dojo/when",
"../Destroyable"
], function(array, aspect, declare, Def... |
import { useTable } from 'react-table'
import React, { useEffect, memo } from 'react';
function JobResultTable({ tableData } ) {
const columns = React.useMemo(
() => [
{
Header: 'ID',
accessor: 'id', // accessor is the "key" in the data
},
{
Header: 'Number',
... |
import Transform from 'famous/core/Transform';
import TransitionableTransform from 'famous/transitions/TransitionableTransform';
import Molecule from 'infamous/Molecule';
import Calendar from 'infamous/Calendar';
import {contextWithPerspective} from 'infamous/utils';
var tt = new TransitionableTransform();
var contex... |
/**
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you 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 appl... |
// vim: foldmethod=marker:foldmarker={{{,}}}
/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview
* @suppress {missingRequire}
*/
goog.require('ShakaDemoAssetInfo');
goog.require('shakaDemo.MessageIds');
// Types and enums {{{
/**
* A container... |
var classregression =
[
[ "regression", "classregression.html#af41e84fae0d909832ebcfcc9e8e715f9", null ],
[ "regression", "classregression.html#a3541e54c28a5a23094a0bce7459621a2", null ],
[ "regression", "classregression.html#a2d5b91aec66e3f9c8847d438dff96a9a", null ],
[ "~regression", "classregression.... |
/*!
* Froguard(figure_wf@163.com)
* https://github.com/Froguard/json-toy
* license MIT
*/ |
const env = process.env.NODE_ENV === 'production' ? 'PROD' : 'DEV'
const profileApi = {
postProfile (profile) {
return fetch(`${process.env[`REACT_APP_${env}_API`]}/profiles`, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
... |
import "" |
// `_escape` : an utility's function
// ----------------------------------
import {createEscaper, escapeMap} from './_internal';
// Functions for escaping strings to/from HTML interpolation.
var _escape = createEscaper(escapeMap);
export {_escape as default}; |
import"../../../text-field/theme/lumo/vaadin-text-field.js";import"../../src/vaadin-grid-filter.js"; |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-id-init-unresolvable.case
// - src/dstr-binding/error/gen-func-expr.template
/*---
description: Destructuring initializer is an unr... |
import React, { Component } from 'react';
import {
Col,
Row,
Card
} from 'reactstrap';
import _ from 'lodash';
import MadlibContent from './madlib_content';
function MadlibInput(props) {
return (
<Col md="3" className="input-wrapper">
<Row>
<Col md="2">
... |
const { expect } = require("chai");
const sinon = require("sinon");
const proxyquire = require("proxyquire");
const path = require("path");
describe("migrationsDir", () => {
let migrationsDir;
let fs;
let config;
function mockFs() {
return {
stat: sinon.stub(),
readdir: sinon.stub(),
re... |
/*! Select2 4.0.1-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ru",[],function(){function e(e,t,n,r){return e%10<5&&e%10>0&&e%100<5||e%100>20?e%10>1?n:t:r}return{er... |
'use strict';
const {app} = require('electron');
const {is} = require('electron-util');
const Sentry = require('@sentry/electron');
const settings = require('../common/settings');
const SENTRY_PUBLIC_DSN = 'https://2dffdbd619f34418817f4db3309299ce@sentry.io/255536';
const isSentryEnabled = !is.development && setting... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'semantic-ui-css/semantic.min.css'
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,... |
import React, {PureComponent} from 'react';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import {tableData} from './data/tableData';
// const styles = {
// propContainer: {
// ... |
"use strict";
/*!
* Copyright (C) 2019-2020 Silas B. Domingos
* This source code is licensed under the MIT License as described in the file LICENSE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Resolution = void 0;
/**
* Resolution modes.
*/
var Resolution;
(function (Resolution) {
... |
$(document).ready(function() {
$('#testCasesTree').treed();
$("#allTestCasesCheckbox").change(function(){
checkUncheckAllTestCases(this.checked);
});
// check the selected tests cases
checkSelectedTests(selectedTests);
// if a test is unchecked, all parent and grandparent branches mu... |
/*!
* FileInput Brazillian Portuguese Translations
*
* This file must be loaded after 'fileinput.js'. Patterns in braces '{}', or
* any HTML markup tags in the messages must not be converted or translated.
*
* @see http://github.com/kartik-v/bootstrap-fileinput
*
* NOTE: this file must be saved in UTF-8 encodin... |
const {readFileSync, existsSync} = require('fs');
const isValidUrl = require('./src/utils/isValidUrl');
const {extract} = require('./index');
const extractFromUrl = async (url) => {
try {
const art = await extract(url);
console.log(art);
} catch (err) {
console.trace(err);
}
};
const extractFromFi... |
const withSass = require('@zeit/next-sass')
module.exports = withSass({
webpack: function (config) {
config.module.rules.push({
test: /\.(eot|woff|woff2|ttf)$/,
use: {
loader: 'url-loader',
options: {
limit: false,
name: '..... |
module.exports.interfaces = require('./interfaces')
require('./utilities') |
import React from 'react';
import ReactDom from 'react-dom';
import { Provider } from 'react-redux';
import Route from './routes/index';
import configureStore from './redux/store/createStore';
import preloadedState from './redux/reducers/initialStates';
const store = configureStore(preloadedState);
ReactDom.render(
... |
var searchData=
[
['orientation',['orientation',['../group___structs.html#aacd7d8542655f2d0e49f6d0fe2ebb0ac',1,'LEAP_PALM']]]
]; |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Person = mongoose.model('Person'),
Task = mongoose.model('Task'),
_ = require('lodash');
/**
* Create a Person
*/
exports.createPerson = function(req, res) {
var person =... |
var _ = require('lodash');
var utils = require('../utils');
var scp = require('../scp');
var rsync = require('../rsync');
var commands = {};
exports.commands = commands;
commands.pull = {
name: 'pull',
usage: 'overcast pull [instance|cluster|all] [source] [dest] [options...]',
description: [
'Pull a file or... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('bp-tabs', 'Integration | Component | bp tabs', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions... |
import React from "react"
function Footer() {
return (
<p className="footer d-flex justify-content-center"
>
© 2020 Grant Scriver | Privacy Policy: User Information is Not Stored | Terms of Use: Available to General Public
</p>
)
}
export default Footer; |
import Landing from 'components/Views/Landing.vue';
import Register from 'components/Views/Register.vue';
import Dashboard from 'components/Views/Dashboard.vue';
import Profile from 'components/Views/Profile.vue';
const routes = [
{
path: '/',
component: Landing
},
{
path: '/register',
component:... |
import mitt from 'mitt'
const emitter = mitt()
export default emitter; |
const router = require('express').Router();
const {
createFriend,
deleteFriend,
} = require('../../controllers/friendController');
router.route('/users/:userId/friends/:friendId').post(createFriend).delete(deleteFriend);
module.exports = router; |
import React from "react";
import Paper from "@material-ui/core/Paper";
import ListItemMui from "@material-ui/core/ListItem";
import List, { ScrollableList, compareListItem } from "./List";
import { mount } from "enzyme";
import sinon from "sinon";
import { extractMessages, TestWrapper } from "../../../utils/testUtils"... |
'use strict';
const Promise = require('bluebird');
const _ = require('lodash');
const eventmesh = require('../../data-access-layer/eventmesh');
const logger = require('../../common/logger');
const CONST = require('../../common/constants');
const utils = require('../../common/utils');
const BaseOperator = require('../B... |
var baseIteratee = require('./_baseIteratee'),
baseWhile = require('./_baseWhile');
/**
* Creates a slice of `array` with elements taken from the beginning. Elements
* are taken until `predicate` returns falsey. The predicate is invoked with
* three arguments: (value, index, array).
*
* @static
* @memberOf _... |
var callbackArguments = [];
var argument1 = function() {
callbackArguments.push(arguments)
return true; };
var argument2 = null;
var argument3 = "";
var argument4 = function() {
callbackArguments.push(arguments)
return false; };
var argument5 = function() {
callbackArguments.push(arguments)
return false; };
va... |
import firebase from 'firebase';
import 'firebase/auth';
import 'firebase/firebase';
import 'firebase/storage';
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: 'AIzaSyABPvPs3FFWTK_ljY7mrPC4mA5C6_Pch8M',
authDomain: 'olx-clone-fb085.firebaseapp.com',
project... |
define(["js/core/Application"], function (Application) {
return Application.inherit("xsd.XsdGeneratorClass", {
defaults: {
prefix: "ns",
targetNamespace: null,
namespace: null
},
start: function (parameter, callback) {
var targetNamespace =... |
const webpack = require('webpack');
const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const plugins = [
];
module.exports = {
mode: 'development',
entry: {
'printer.min': path.join(__dirname, 'src/printer.ts'),
'printer': path.join(__dirname, 'src/printer.ts'),
},
o... |
// coming soon
// willbe used to run tests in a specified order |
import { rAF, isFunction, isDepsChanged } from './utils';
import { MEMO, EFFECT, LAYOUT_EFFECT } from './constants';
import createRef from './createRef';
/* eslint-disable no-plusplus, no-param-reassign */
export default class Dispatcher {
static previous = null;
static current = null;
constructor(onUpdate) {... |
module.exports.create = require('./scenario.create.js');
module.exports.exec = require('./scenario.exec.js');
module.exports.export = require('./scenario.export.js');
module.exports.import = require('./scenario.import.js');
module.exports.trigger = require('./scenario.trigger.js');
module.exports.update = require('./sc... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { formatQuestion } from '../utils/helpers'
import User from './User'
import './Question.css'
class QuestionResult extends Component {
render() {
const { question } = this.props
if ( null === question ) {
return <p>This quest... |
define(['app', 'angular'], function(app, angular) {
app
.directive('uiFocus', function($timeout, $parse) {
return {
link: function(scope, element, attr) {
var model = $parse(attr.uiFocus);
scope.$watch(model, function(value) {
if(value === true) {
$timeout(function(... |
const debug = require('debug')('faktory-worker');
const assert = require('assert');
const Client = require('./lib/client');
const Manager = require('./lib/manager');
const faktory = () => {
const middleware = [];
const registry = {};
let manager;
return {
get registry() {
return registry;
},
... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("devtools","tt",{title:"Элемент тасвирламасы",dialogName:"Диалог тәрәзәсе исеме",tabName:"Өстәмә бит исеме",elementId:"Элемент идентификаторы",elemen... |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var LightSpeed;
(function (LightSpeed) {
var BaseEnemy = (function () {
function BaseEnem... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
/** remotestorage.js 0.11.1, http://remotestorage.io, MIT-licensed **/
/** FILE: lib/bluebird.js **/
/**
* bluebird build version 2.3.4
* Features enabled: core, nodeify
* Features disabled: race, call_get, generators, map, promisify, props, reduce, settle, some, progress, cancel, using, filter, any, each, timers
*... |
import { combineReducers } from 'redux';
import * as storage from 'redux-storage';
import merger from 'redux-storage-merger-immutablejs';
import auth from './Auth';
import notifications from './Notifications';
import search from './Search';
import settings from './Settings';
export default storage.reducer(combineRedu... |
import { StyleSheet } from "react-native"
export default StyleSheet.create({
passwordInputView: {
alignSelf: "center",
},
passwordInputViewItem: {
alignItems: "center",
justifyContent: "center",
margin: 5,
},
passwordInputViewItemActive: {
alignItems: "center",
justifyContent: "center"... |
var Three = (function (exports) {
'use strict';
var _Math = {
DEG2RAD: Math.PI / 180,
RAD2DEG: 180 / Math.PI,
generateUUID: ( function () {
// http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
var lut = [];
for ( var i = 0; i < 256; i ++ ) {
... |
/**
* @generated-from ./$some.test.js
* This file is autogenerated from a template. Please do not edit it directly.
* To rebuild it from its template use the command
* > npm run generate
* More information can be found in CONTRIBUTING.md
*/
/* eslint-disable no-unused-vars,import/no-duplicates */
import { some,... |
import {ShaderChunk} from 'three';
export default {
lights_fragment_begin: /* glsl */`
GeometricContext geometry;
geometry.position = - vViewPosition;
geometry.normal = normal;
geometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
#ifdef CLEARCOAT
geometry.clearcoatNormal = clearcoatN... |
function _Save() {
var data = $('#RpcConfig').FormData();
data.SystemTypeId = urlTools.GetUrlValue("id");
SubmitData("SysConfig/Add", null, data, function () {
alert("添加成功!");
window.location.href = "GroupConfig.aspx?id=" + data.SystemTypeId;
});
} |
/*
object-assign
(c) Sindre Sorhus
@license MIT
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
/*!
* @description Recursive object extending
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
* @license MIT
*
* The MIT License (MIT)
*
... |
import fs from "fs"
import path from "path"
import sharp from "sharp"
import createContentDigest from "gatsby/dist/utils/create-content-digest"
import { defaultIcons, doesIconExist, addDigestToPath } from "./common"
sharp.simd(true)
try {
// Handle Sharp's concurrency based on the Gatsby CPU count
// See: http://... |
const STCmd = require("../cmd-types/stcmd.js");
const { ferr } = require("../utils/utils.js");
const { STPlayer } = require("sauertracker");
class PlayerCmd extends STCmd
{
// generate an EmbedField for a stat
static /*EmbedField*/ statfield(/*STStats*/ stats, /*String*/ name)
{
return {
name: name,... |
// Requires
const { app, nativeImage, BrowserWindow, Tray, Menu, ipcMain, BrowserView, shell, powerMonitor } = require('electron');
const constants = require('./constants');
const AutoLaunch = require('auto-launch')
const contextMenu = require('electron-context-menu');
const BadgeGenerator = require('./badge_generator'... |
export function literal(value) {
return [0, value];
}
function ArithmeticExpression$copy(source) {
return source[0] === 2 ? [2, ArithmeticExpression$copy(source[1]), ArithmeticExpression$copy(source[2])] : source[0] === 1 ? [1, ArithmeticExpression$copy(source[1]), ArithmeticExpression$copy(source[2])] : source.sl... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[264],{"42da":function(n,e,t){"use strict";t.r(e),e["default"]='<template>\n <div style="max-width: 800px; width: 100%;">\n <q-calendar\n v-model="selectedDate"\n hide-outside-days\n view="month"\n locale="en-us"\n />\n </div>\n</temp... |
const Discord = require("discord.js")
const config = require('./config.json');
exports.run = (client, message, args) => {
const embed = new Discord.RichEmbed()
.setTitle(":ping_pong: Pong!")
.setColor(0x00AE86)
.setFooter(`Ping is ` + client.ping + `ms | Cookie v${config.version}b`)
message.channel... |
/*
* Copyright (C) 2014 Xillio (support@xillio.com)
*
* 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 appl... |
import React,{ Component } from 'react';
class SidebarMenu extends Component {
render() {
const { children } = this.props;
return (
<div id="sidebar-menu" className="main_menu_side hidden-print main_menu">
<br />
{ children }
</div>
)... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
window.Vue = require('vue');
/**
* Next, we will create a fresh Vue application instance and a... |
import { faunaQueries } from '@/lib/fauna';
// -> /api/drafts
export default async function handler(req, res) {
try {
const { size = 10, cursor = undefined, author = '' } = req.query;
// Fetch the most recent posts
const posts = await faunaQueries.getDrafts({
// author's email
author,
... |
export default class Level {
constructor(title = 'default title', imageurl = null, unlocked = true, properties = {}) {
// set level title
this.title = title;
// create image
if(imageurl !== null){
this.image = new Image();
this.image.src = imageurl;
} else {
this.image = image... |
import styled from "styled-components";
const Example = styled.div`
display: flex;
flex-direction: row;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
-ms-flex-align: center;
align-items: center;
list-style-type: none;
margin: 0;
padding-left: 0;
margin-bottom: 0;
list-style: none;
margin-right:... |
/*!
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
*
* 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 re... |
(function(global) {
function now() {
return new Date();
}
if (typeof (window._bokeh_onload_callbacks) === "undefined") {
window._bokeh_onload_callbacks = [];
}
function run_callbacks() {
window._bokeh_onload_callbacks.forEach(function(callback) { callback() });
delete window._bokeh_onload_ca... |
module.exports=require('../../decode-ranges.js')('ggheggMApRhvHBEEGAAATAjfGidIglBGAgmABgyAAABABAIaEEQJKABgsUPAhkHAFBBADfBAAdchYKANgqIGEVDAIACAGOAYEAijg2AAADHDACGJBTAGBBAHBBBVAGAACDCAABFBBBAAMBACDVGAAFDBBVAGABABABDCXDAAGJBCNAAIACAVAGABAECDHAABCAOBDJAAPBAHBBBVAGABAECABAFBBBOBACDRKAAFCCADCBAAABCBCCCLEAABCCACCAUUFCAHACAWAJ... |
const { Event } = require('../../../handler');
module.exports = class extends Event {
constructor(mongo) {
super('message');
this.mongo = mongo;
}
async run(client, message) {
await this.mongo.updateOne({ id: message.author.id }, { $inc: { coins: 5 } }).exec();
message.channel.send('You earned ... |
f(...a.b);
f(...a.b());
f(...(a));
f(...(a.b));
f(...a[i]); |
// const profileDataArgs = process.argv.slice(2);
// const printProfileData = profileDataArr => {
// // This...
// for (let i = 0; i < profileDataArr.length; i += 1) {
// console.log(profileDataArr[i]);
// }
// console.log('================');
// // Is the same as this...
// profileDataArr.forEach(pr... |
class Action {
constructor(description, callback) {
this.description = description
this._scores = []
this._condition = () => true
callback(this)
}
condition(callback) {
if (!callback) {
throw Error("UtilityAi#Action#condition: Missing callback")
}
this._condition = callback
... |
(function() {
d3.horizon = function() {
var bands = 1, // between 1 and 5, typically
mode = "offset", // or mirror
area = d3.svg.area(),
defined,
x = d3_horizonX,
y = d3_horizonY,
width = 960,
height = 40,
scale ... |
import {EptBinaryLoader} from "../../loaders/ept/EptBinaryLoader";
import {EptLaszipLoader} from "../../loaders/ept/EptLaszipLoader";
import {VersionUtils} from "../../utils/VersionUtils.js";
import {PointCloudTreeNode} from "../PointCloudTree.js";
import {Global} from "../../Global.js";
class U
{
static toVector3(v,... |
const express = require('express');
const User = require('../models/user');
const router = express.Router();
router.patch('/scores/:game', async (req, res) => {
const user = await User.findById(req.session.passport.user._id);
if (req.params.game === 'fb') {
const { score } = req.body;
user.fbScores.push... |
/* eslint no-unused-vars: ["error", { "argsIgnorePattern": "app" }] */
const { resolveFromVersion } = require('../../utils/resolve.utils');
const responseUtils = require('../../utils/response.utils');
const errors = require('../../utils/error.utils');
/**
* @description Construct a resource with base_version/uscore ... |
/**
* Certificate Transparency Utilities
* CTMonitor class
*
* By Fotis Loukos <me@fotisl.com>
* @module ctutils
*/
import CompactMerkleTree from './CompactMerkleTree';
/**
* A callback that is provided with the results of a verification.
* @callback sthVerificationCallback
* @param {Boolean} The result of t... |
// @packages
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
import TextField from '@material-ui/core/TextField';
import classNames from 'classnames';
import moment from 'moment';
import { withStyles } from '@material-ui/core/styles';
// @scripts
import CtrlIcon from './icon';
import ... |
const o=n(5),r=n(2),i=n(1),a=n(3);!function(){window.enhancedGithub={config:{}};const t=setInterval((function(){"complete"===document.readyState&&(clearInterval(t),document.addEventListener("click",(function(t){r.hasClass(t.target,"js-file-clipboard")&&r.selectText()}),!1),o.addListners(),chrome.storage.sync.get({"x-gi... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import React from "react";
import format from "date-fns/format";
import Jumbotron from "./components/jumbotron-grey";
export default class PostPreview extends React.Component {
render() {
const {entry, getAsset} = this.props;
let image = getAsset(entry.getIn(["data", "image"]));
// Bit of a nasty hack ... |
import React from 'react';
import './about.css';
import profileImage from './assets/mitulprofile.jpg';
const Mitul = () => {
return (
<div style={{ paddingTop: "40px" }}>
<div className='profile'>
<img className='profilepicture'
src={profileImage}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.