text stringlengths 2 1.04M |
|---|
module.exports = global_inits = (function(){
//Require Express
var express = require('express');
GLOBAL._REQUIRE_EXPRESS = express;
//Initialize app
var app = express();
GLOBAL._EXPRESS_APP = app;
//Initialize Router
var router = express.Router();
GLOBAL._EXPRESS_ROUTER = router;
... |
import OpenPanelFilledBottom32 from "./OpenPanelFilledBottom32.svelte";
export default OpenPanelFilledBottom32; |
"use strict";
var _babelHelpers = require("./utils/babelHelpers.js");
exports.__esModule = true;
var _react = _babelHelpers.interopRequireDefault(require("react"));
var _Icon = require("./Icon");
var _fragments = require("./fragments");
var SharpStyle =
/*#__PURE__*/
function SharpStyle(props) {
return _react.d... |
/**
* editor_plugin_src.js
*
* Copyright 2011, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
var each = tinymce.each, Event = tinymce.dom.Event, bookmark;
// Skips text nodes th... |
/*!
* Isotope PACKAGED v3.0.5
*
* Licensed GPLv3 for open source use
* or Isotope Commercial License for commercial use
*
* https://isotope.metafizzy.co
* Copyright 2017 Metafizzy
*/
/**
* Bridget makes jQuery widgets
* v2.0.1
* MIT license
*/
/* jshint browser: true, strict: true, undef: true, unused: tr... |
import * as actionTypes from './actionTypes'
import axios from '../../axios-orders'
export const purchaseBurgerSuccess = (id, orderData)=>{
return {
type: actionTypes.PURCHASE_BURGER_SUCCESS,
orderId: id,
orderData: orderData
}
}
export const purchaseBurgerFail = (error)=>{
return {
type: actionTypes.PURCH... |
let body = document.querySelector('body'),
bullseye = document.querySelector('#rainbow'),
display = document.querySelector('#display'),
displayTxt = document.querySelector('#displayTxt');
init();
function init() {
bullseye.removeEventListener('click', init);
bullseye.addEventListener('click', shoo... |
'use strict';
const simpleQueryValidator = require('./generic/simpleQuery.validator');
exports.execute = execute;
function execute() {
return simpleQueryValidator
.executeInScope('sys_documentation',
'element=NULL^hint=NULL',
'Found tables without hints');
} |
const webpack = require('webpack')
const configCreator = require('./webpack.config')
const webpackConfig = configCreator(process.env, {mode: 'production'})
webpack(webpackConfig, (err, stats) => {
if (err) {
throw err
}
const info = stats.toJson()
if (stats.hasErrors()) {
console.error(info.errors)
... |
module.exports = {
printWidth: 80,
tabWidth: 4,
parser: "typescript",
overrides: [
{
files: "*.less",
options: {
parser: "less"
}
}
]
}; |
"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... |
'use strict'
const logger = require('winston')
const jsforce = require('jsforce')
const _ = require('lodash')
const config = require('../../config/server')
const DEVICE_FIELD_NAME = `${config.salesforce.namespace}__XI_Device_ID__c`
const DEVICE_FIELD_NAME_WITHOUT_XI = `${config.salesforce.namespace}__Device_ID__c`
co... |
const express = require("express")
const path = require("path")
const app = express()
app.use("/static", express.static(path.resolve(__dirname, ".", "static")))
app.use("/assets", express.static(path.resolve(__dirname, ".", "assets")))
app.get("/*",(req, res)=>{
res.sendFile(path.resolve(__dirname,"index.html")... |
define(["../../../@polymer/iron-icon/iron-icon.js", "../../../@polymer/iron-iconset-svg/iron-iconset-svg.js", "../../../@polymer/polymer/lib/utils/html-tag.js"], function (_ironIcon, _ironIconsetSvg, _htmlTag) {
"use strict";
function _templateObject_55163320c3a111e99204fd28bf05b7e9() {
_templateObject_551633... |
"use babel";
const env = atom.config.get("language-coursescript.useStagingApi")
? "staging"
: "prod";
const API_URLS = {
prod: {
parse: "https://cms.llsapp.com/v1/coursescript/parse",
asset: "https://cms.llsapp.com/v1/asset/",
bffAsset: "https://cms.llsapp.com/frontend/v1/atom/assets/"
},
stagin... |
"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 = _interopRequireWildcar... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { Scvmm ... |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5)
(c) Copyright 2009-2015 SAP SE. All rights reserved
*/
sap.ui.define(["sap/ui/base/EventProvider"],function(E){"use strict";var T=E.extend("sap.ui.vk.tools.TooltipToolHandler",{metadata:{},constructor:function(t){this._priority=0;this._tool=t;this._rec... |
macDetailCallback("e8eb1b000000/24",[{"d":"2020-06-24","t":"add","s":"ieee-oui.csv","a":"2355 W. Chandler Blvd. Chandler AZ US 85224","c":"US","o":"Microchip Technology Inc."}]); |
const crypto = require('crypto');
const { whereRaw } = require('../../../../utils/db/knex');
const commonFilters = require('../../_common/sql/filters');
const commonFiltersOrder = require('../../_common/sql/filtersOrder');
module.exports = {
filters: {
...commonFilters,
script: s =>
whereRaw(
... |
/* global module */
var pkg = require('../package.json');
module.exports = Object.assign({}, pkg.jest, {
rootDir: '../',
moduleNameMapper: {
'/src/index$': '<rootDir>/es/index',
},
}); |
import {
resolveRule,
normalizeParams,
parseQuery,
queryMp
} from "../helpers/util.js";
import {
route
} from "../helpers/config.js";
import {
queryInfo
} from "../patch/applets-patch.js";
import {warn} from "../helpers/warn.js";
export const registerHook = function(list, fn) {
list.push(fn);
return () => {... |
import React from "react";
import { Route, BrowserRouter as Router, Switch } from "react-router-dom";
import Matches from "./components/Matches";
import WrappedMyTeamPage from "./components/MyTeamPage";
import Nav from "./components/Nav";
import Squad from "./components/Squad";
import TeamSelect from "./components/Team... |
import React from "react";
import { shallow } from "enzyme";
import HomeInfoListItem from "./MeetingListItem";
describe("MeetingListItem Component", () => {
test("Should render without errors", () => {
const component = shallow(<HomeInfoListItem />);
console.log(component.debug());
const wrapper = compon... |
import createSvgIcon from './utils/createSvgIcon.js';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M6.5 5.5 12 11l7-7-1-1-6 6-4.5-4.5H11V3H5v6h1.5V5.5zm17.21 11.17C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71s.11.53.29.7... |
/*!
* JS Scripts
*/
jQuery(function(){
//Carousel
jQuery('.carousel').carousel({interval: 3500});
jQuery(".carousel-indicators li:first").addClass("active");
jQuery(".carousel-inner .item:first").addClass("active");
});
jQuery(document).ready(function($) {
// initialize Isotope after all images have loaded
var ... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 11.3.2-2-1-s
esid: sec-postfix-decrement-operator
description: >
Strict Mode - SyntaxError is thrown if the identifier 'arguments'
appear as a PostfixExpression(ar... |
import React from 'react'
import hogan from 'hogan.js'
import shallowCompare from 'react-addons-shallow-compare'
export default class ReactHogan extends React.Component {
shouldComponentUpdate(nextProps, nextState) {
return shallowCompare(this, nextProps, nextState)
}
compileTemplate(template){
... |
/*
* Copyright (c) 2021 AtLarge Research
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... |
import { combineReducers } from 'redux'
import todos from './todos'
import inputText from './inputText'
import visibilityFilter from './visibilityFilter'
export default combineReducers({
todos,
inputText,
visibilityFilter
}) |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.9/esri/copyright.txt for details.
//>>built
define(["require","exports","../../MaterialInfo","../../util/serializationUtils"],function(g,h,f,k){Object.defineProperty(h,"__esModule",{value:!0});g=function(){fu... |
/*! @license miniraf v1.0.1
Copyright 2018 Fisssion LLC.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, me... |
const http = require('http')
const server = http.createServer((req, res) => {
res.end('it worked')
})
server.listen(+process.env.PORT) |
import React from 'react';
import Header from './components/Header';
import MemeGenerator from './components/MemeGenerator';
function App() {
return (
<div>
<Header />
<MemeGenerator />
</div>
);
}
export default App; |
import { createSelector } from 'reselect';
import { LanguageMap } from 'manifesto.js/dist-esmodule/LanguageMap';
import flatten from 'lodash/flatten';
import AnnotationList from '../../lib/AnnotationList';
import { getCanvas, getCanvases } from './canvases';
import { getWindow } from './windows';
import { getManifestLo... |
module.exports = {
task: {
billable: Boolean,
description: String,
name: String,
rate_amount: String,
rate_code: String,
updated: Date
},
user: {
bus_phone: String,
company_industry: String,
company_size: String,
currency_code: String,
... |
const Generator = require('yeoman-generator');
const path = require('path');
const fs = require('fs');
const keyPair = require('../_lib/rsa').keyPair;
const COMMON_EXT_APP_TEMPLATES = '../../_common/circle-of-trust-ext-app'
const BASE_JAVA = 'src/main/java';
const BASE_RESOURCES = 'src/main/resources';
const BDK_VERS... |
var isWin = /^win/.test(process.platform);
var isMac = /^darwin/.test(process.platform);
var isLinux32 = /^linux/.test(process.platform);
var isLinux64 = /^linux64/.test(process.platform);
var os = "unknown";
if (isWin)
os = "win";
if (isMac)
os = "mac";
if (isLinux32)
os = "linux32";
if (isLinux64)
o... |
mapboxgl.accessToken = getAccessToken();
var map = new mapboxgl.Map({
container: 'map',
zoom: 12.5,
center: [-77.01866, 38.888],
style: 'mapbox://styles/mapbox/streets-v8',
hash: true
});
map.addControl(new mapboxgl.Navigation());
map.addControl(new mapboxgl.Geolocate());
map.on('load', function(... |
const { createStore, applyMiddleware } = require('redux');
const reducers = require('../reducers'); // combineReducers already called on reducers in her)e
const api = require('../middleware/api');
const {setupSubscribe: userSubscribe} = require('./user');
const Immutable = require('immutable');
let middleware = [api];... |
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');
const msecs = common.platformTimeout(1);
const server = http2.createServer();
server.on('request', (req, res) => {
req.setTimeout(msecs, commo... |
import React, { PureComponent } from "react";
import PropTypes from "prop-types";
import cn from "classnames";
import { Transition, TransitionGroup } from "react-transition-group";
import { format } from "../../utils/date";
import { OutsideLink } from "../../components/OutsideLink/OutsideLink";
import styles, { AboutC... |
// node modules
import React from 'react';
import { useTranslation } from 'react-i18next';
// material components
import { withStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
// local components
import LockIcon from 'components/lock_icon';
import Input from 'components/input';... |
/**
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
*/
(function(global) {
// map tells the System loader where to look for things
var map = {
'menu_app': '/resources/angular2/login/menu_app', // 'dist',
'@angular': '... |
'use strict';
const
wrapper = require('../lib/wrapper'),
dbconfig = require('./localRethinkConfig'),
should = require('chai').should();
describe('creating a database', () => {
it('should not create DB if it already exists', (done) => {
let w = new wrapper(dbconfig);
w.initDatabase('n... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.close = exports.launch = void 0;
const util_1 = require("util");
const fs_1 = require("fs");
const path_1 = require("path");
const child_process_1 = require("child_process");
const locker = require("lockfile");
const puppeteer = requir... |
import Koa from 'koa'
import Router from 'koa-router'
import Grant from 'grant-koa'
import app2mw from 'koa-mount'
import session from 'koa-session'
import proxy from 'koa-proxies'
import bodyParser from 'koa-bodyparser'
import jwt from 'koa-jwt'
import OAuth from 'oauth-1.0a'
import got from 'got'
import jsonwebtoken ... |
const ControlBodyView = require('./ControlBodyView.js');
const SliderView = require('../SliderView.js');
module.exports = class MediaControlBodyView extends ControlBodyView {
template = Templates['controls/media'];
className() { return super.className() + ' media-control'; }
regions() {
return {
slid... |
const mysql = require('mysql');
const db = require('../models/index');
const User = require('../models/user')
const { Sequelize, QueryTypes } = require('sequelize');
const Op = Sequelize.Op;
// Connection Pool
// let connection = mysql.createConnection({
// host: process.env.DB_HOST,
// user: process.env.DB_USER... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const Precise = require ('./base/Precise');
const { ExchangeError, BadRequest, ArgumentsRequired, AuthenticationError, PermissionDenied, AccountSuspended, InsufficientFunds, Rate... |
import React from 'react'
import { useDispatch } from "react-redux";
import axios from 'axios';
import Cookies from 'universal-cookie';
import {
CBadge,
CDropdown,
CDropdownItem,
CDropdownMenu,
CDropdownToggle,
CImg
} from '@coreui/react'
import CIcon from '@coreui/icons-react'
import * as authActions from ... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* 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 ... |
import React, { useState, useEffect } from "react";
import {
getAccessTokenFromCookie,
getCookieByName,
} from "../Helper-Functions/CookieFunctions";
// import axios from "axios";
const SplashScreen = () => {
const [loading, setLoading] = useState(false);
// const [refreshToken, setRefreshToken] = useState(
... |
/*jslint nomen: true*/
/*global define*/
define(function (require) {
'use strict';
var _ = require('underscore'),
BaseComponent = require('oroui/js/app/components/base/component'),
Calendar = require('orocalendar/js/calendar-view'),
EventCollection = require('orocalendar/js/calendar/eve... |
var class_ext_1_1_net_1_1_axis_floating_1_1_builder =
[
[ "Builder", "dc/d7f/class_ext_1_1_net_1_1_axis_floating_1_1_builder.html#af741ac9832c18ed2bf07403e93fe107c", null ],
[ "Builder", "dc/d7f/class_ext_1_1_net_1_1_axis_floating_1_1_builder.html#a5168efffa9305d0f5ce19231218ba5db", null ],
[ "Builder", "dc... |
import fetchMock from 'fetch-mock';
import * as actions from '@/store/jobs/actions';
import { addUrlParams } from '@/utils/api';
import { storeWithApi } from './../../utils';
describe('fetchJob', () => {
let args, params, url;
beforeEach(() => {
args = {
jobId: 'job-1',
productSlug: 'my-product'... |
import React from 'react'
import { EmoRating } from 'emo-rating-react'
import 'emo-rating-react/dist/index.css'
const ratingData = [
{
id: 1,
text: 'Terrible',
icon: 'https://i.ibb.co/BPKK8Hm/terrible-icon.png',
icon_selected:
'https://i.ibb.co/r6qN2YV/terrible-big-icon.png'
},
{
id: 2... |
const path = require('path')
module.exports = {
mode: "production",
entry: "./docs/sw.js",
output: {
path: path.resolve(__dirname, "./docs"),
filename: "service-worker.js",
},
} |
import testingDB from 'api/utils/testing_db';
import migration from '../index.js';
import fixtures from './fixtures.js';
describe('migration default-metadata-object', () => {
beforeEach(async () => {
spyOn(process.stdout, 'write');
await testingDB.clearAllAndLoad(fixtures);
});
afterAll(async () => {
... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in your app, pass a func... |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/
/******/ // add "moreModules" to the modu... |
/* globals RTCPeerConnection: false, RTCSessionDescription: false */
const { RTCPeerConnection, RTCSessionDescription, MediaStreamTrack, MediaStream } = require("wrtc");
const EventEmitter = require('events').EventEmitter;
const sdp_transform = require('sdp-transform');
const Logger = require('./Logger');
const JsSIP_... |
import TabDemo from './TabDemo'
export default TabDemo |
import { types as sdkTypes } from '../util/sdkLoader';
const { LatLng: SDKLatLng, LatLngBounds: SDKLatLngBounds } = sdkTypes;
const placeOrigin = place => {
if (place && place.geometry && place.geometry.location) {
return new SDKLatLng(place.geometry.location.lat(), place.geometry.location.lng());
}
return ... |
const router = require("express").Router();
const booksController = require("../../controllers/booksController");
router.route("/api/books")
.get(booksController.findAll)
.post(booksController.create);
router.route("/api/books/:id")
.delete(booksController.remove);
module.exports = router; |
// @link http://acme-schemas.triniti.io/json-schema/acme/curator/request/get-promotion-history-request/1-0-0.json#
import Fb from '@gdbots/pbj/FieldBuilder';
import Format from '@gdbots/pbj/enums/Format';
import GdbotsPbjxRequestV1Mixin from '@gdbots/schemas/gdbots/pbjx/mixin/request/RequestV1Mixin';
import Message fro... |
/**
* @file
<<<<<<< HEAD
* @author 赵晓强(longze_xq@163.com)
=======
* @author 赵晓强(v_zhaoxiaoqiang)
>>>>>>> branch 'master' of https://github.com/Baidu-ecom/bi-platform.git
* @date 2014-8-4
*/
define([
'template',
'dialog',
'report/edit/component-box/main-model',
'report/edit/component... |
/**
* ### Поле ввода пути к данным
*
* Created by Evgeniy Malyarov on 18.09.2017.
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import Cascader from 'rc-cascader';
import '../styles/cascader.css';
class FieldPath extends Component {
constructor(props, context) {
super(pr... |
import {
Aabb,
Capsule,
Obb,
Sphere
} from '../collidables';
import {
aabbCollisionDetection,
capsuleCollisionDetection,
obbCollisionDetection,
sphereCollisionDetection,
} from '../collision-detection';
import {
aabbContactCalculation,
capsuleContactCalculation,
obbContactCalculation,
sphereCo... |
import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import { BrowserRouter as Router } from "react-router-dom";
import "./index.css";
import App from "./App";
import store from "./reudx/store.jsx";
const rootElement = document.getElementById("root");
ReactDOM.render(
... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @typechec... |
const util = require('util')
const axios = require('axios');
const fs = require('fs-extra');
var transParams = (data) => {
let params = new URLSearchParams();
for (let item in data) {
params.append(item, data['' + item + '']);
}
return params;
};
var notify_logs = {}
var wrapper_color = (type, m... |
/**
* @namespace cam
* @description Device section for Cam class
* @author Andrew D.Laptev <a.d.laptev@gmail.com>
* @licence MIT
*/
module.exports = function(Cam) {
const linerase = require('./utils').linerase;
/**
* @typedef {object} Cam~NTPManual
* @property {string} options.type Network host type: IPv4, ... |
import React from "react";
import { Link } from "react-router-dom";
import HeroButton from "../Buttons/HeroButton";
export default function PreviousPlaylists({ allPlaylistNames }) {
let playlists = [];
let playlists1 = [],
playlists2 = [],
playlists3 = [];
for (let i = 0; i < allPlaylistNames.length; i+... |
import React from 'react';
import { connect } from 'react-redux';
import { createStream } from '../../actions';
import StreamForm from './StreamForm';
class StreamCreate extends React.Component {
onSubmit = formValues => {
this.props.createStream(formValues);
};
render() {
return (
<div>
<... |
'use strict';
var _chai = require('chai');
var _edit = require('../source/edit');
var _edit2 = _interopRequireDefault(_edit);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
describe('edit', function () {
it('should edit phone numbers', function () {
(0, _chai.exp... |
const assert = require('assert');
const util = require('util');
const {
When,
Given,
Then
} = require('cucumber');
const {
httpPost
} = require('fasit');
const fs = require('fs')
const {
attachJSON,
attachText
} = require('fasit');
When('jeg lager ny journalpost', function (body, done) {
httpPost(this... |
layui.use(['table'], function(){
var table = layui.table
,form = layui.form;
var tableIns = table.render({
elem: '#udzan-rule'
,url: $('#udzan-rule').data('url')
,page: true //开启分页
,limit:20
,limits:[15,20,30,50]
,done:function (res, curr, count) {
if(count <= this.limit){
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CoffeeRefactor1628786719446 = void 0;
class CoffeeRefactor1628786719446 {
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "coffee" RENAME COLUMN "title" TO "name"`);
}
async down(queryRunner) {
... |
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* globals console, window, document, CKEditorInspector */
// Dll core.
import 'ckeditor5/build/ckeditor5-dll.js';
// Editor creators.
im... |
/**
* Cesium - https://github.com/AnalyticalGraphicsInc/cesium
*
* Copyright 2011-2017 Cesium Contributors
*
* 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/l... |
module.exports = {
source: {
templates: 'src/templates/**/*.pug',
slides: 'src/slides/*.pug',
js: 'src/js/**/*.js',
styl: 'src/styl/*.styl',
img: 'src/img/**/*',
files: {
pug: 'src/templates/index.pug',
styl: 'src/styl/main.styl',
notes:... |
const fetch = require("node-fetch");
const { API_ENDPOINT, MAX_EMBED_FIELD_CHARS, MAX_EMBED_FOOTER_CHARS } = require("./helpers/discord-helpers.js");
const { createJwt, decodeJwt } = require("./helpers/jwt-helpers.js");
const { getBan } = require("./helpers/user-helpers.js");
exports.handler = async function (event, ... |
(function ($) {
$.fn.extend({
notify: function (options) {
var settings = $.extend({
type: 'sticky',
speed: 500,
onDemandButtonHeight: 35
}, options);
return this.each(function () {
var wrapper = $(this);
... |
export async function listSpots() {
const response = await fetch(`/api/spots`);
return response.json();
}
export async function createSpot(spot) {
console.log(spot);
const response = await fetch("/api/spots", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.... |
const { MessageEmbed } = require('discord.js');
const { join } = require('path');
const { readdirSync } = require('fs');
module.exports.run = async (client, message, args) => {
try {
const noArgs = new MessageEmbed()
.setColor(0x2F3136)
.setThumbnail(message.guild.iconURL())
... |
import React, { useState, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
import SearchForm from '../../components/searchForm/SearchForm';
import Art from '../../components/art/Art';
import { mockData } from '../../mockData/datasource';
import './CollectionPage.scss';
// async funtion to get... |
// Copyright 2012 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.
(function(global, utils) {
"use strict";
%CheckIsBootstrapping();
// -------------------------------------------------------------------
// Imports
... |
export default {
home: {
title: 'Home',
schedule: 'Schedule',
MySchedule: 'My-Schedule',
Unconference: 'Unconf',
Mission: 'Mission',
Game: 'Game',
Sponsors: 'Sponsors',
Speakers: 'Speakers',
Community: 'Community',
News: 'News',
More: 'More',
},
news: {
title: 'News... |
'use strict';
(function(exports) {
var _id = 0;
var MockAppWindowHelper = {
mInstances: [],
mLatest: null
};
var MockAppWindow = function AppWindow(config) {
if (config) {
for (var key in config) {
try {
this[key] = config[key];
} catch (e) {
}
}
... |
/**
* Plans API.
*
* @module api/plans
*/
'use strict';
const Error = require('../lib/error');
module.exports = Plans;
function Plans(parent) {
if (!new.target) {
return new Plans(parent);
}
Object.defineProperty(this, 'http', {value: parent.http});
}
Plans.prototype.create = function crea... |
let nock = require('nock');
module.exports.hash = "eb425630f735bbce67615281fa2ca98c";
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
nock('https://endpoint', {"encodedQueryParams":true})
.post('/sms', {"from":"+18005551234","smsRecipients":[{"to":"+18005551234","repeatabilityRequestId":"sanitized","repea... |
const assert = require("assert");
const computeShortTitle = require("../src/compute-shorttitle.js");
describe("compute-shorttitle module", () => {
function assertTitle(title, expected) {
const shortTitle = computeShortTitle(title);
assert.equal(shortTitle, expected);
}
it("finds abbreviation for main CS... |
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Route } from 'react-router-dom';
import Root from 'Root';
import App from 'components/App';
ReactDOM.render(
<Root>
<BrowserRouter>
<Route path="/" component={App} />
</ BrowserRouter>
</Root>
, document.getElemen... |
const exec = require('child_process').exec;
const os = require("os");
const axios = require('axios');
async function fb_msg(Language) {
var sdn = 'RUN git clone https://github.com/riz4d/stella /root/stella' + '\n'
exec('sed -n 3p /root/stella//Dockerfile', async (err, stdout, stderr) => {
if (sdn !== stdout) {... |
var tripitLogin = {
CONNECT_TRIPIT: 'a[rel^=connect_Tripit]',
TRIPIT_BUTTON_CONNECT: 'button[rel^=connect_Tripit]',
TRIPIT_ELEMENT_TARGET: 'connect_Tripit',
WINDOW_OPEN: 'mywindow',
WINDOW_WIDTH: 500,
WINDOW_HEIGHT: 400,
TRIPIT_DISCONNECT: 'a[rel^=disconnect_Tripit]',
TRIPIT_BUTTON_DISCO... |
import React from 'react';
import ReactDOM from 'react-dom';
import 'leaflet/dist/leaflet.css';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import $ from "jquery";
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
$( ... |
var indexSectionsWithContent =
{
0: "5_abcdefghijlmnoprstuw~",
1: "bcdefijmopst",
2: "5abdems",
3: "5abcdefmpr",
4: "_abcdefgijmprsu~",
5: "abcdfilmprst",
6: "m",
7: "inw",
8: "_acdhps",
9: "fw"
};
var indexSectionNames =
{
0: "all",
1: "classes",
2: "namespaces",
3: "files",
4: "function... |
import { combineReducers } from 'redux';
import { Map as IMap } from 'immutable';
import * as types from '../actions/types';
import stories from './story.reducer';
/* eslint-disable indent */
const initialState = IMap({
projectId: null,
templatesTablePage: 0,
templatesTableFilter: '',
templatesTableS... |
/*global jQuery, window*/
(function ($) {
$(window).load(function () {
$('.sp-wrap').smoothproducts();
$('.product-attrs li').on('click', function () {
var $variationDiv,
selectedproductOptions = [],
variationName,
$form = $(this).closest... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.