text stringlengths 2 1.04M |
|---|
export { default as $$ } from './$$'
export { default as $ } from './$'
export { default as createDOMPlaceholder } from './create-placeholder'
export { default as mkEl } from './make-element'
export { default as setAttr } from './set-attribute'
export { default as toggleVisibility } from './toggle-visibility'
export { ... |
const merge = require('webpack-merge');
const common = require('./webpack.config');
module.exports = merge(common, {
mode: 'production',
}); |
/**
* mqtt-sdk
* author:darklordli coolli2@163.com
* 基于 MQTT协议 Websocket JS客户端的故事机用mqttsdk
*/
var clientId = new Date().getTime().toString();
var client = new Paho.MQTT.Client(window.juli.MQTT,window.juli.MQTTPORT, clientId);
// set callback handlers
client.onConnectionLost = onConnectionLost;
var onConnectCa... |
import React, { useEffect } from "react";
import CIcon from "@coreui/icons-react";
import { useFormik } from "formik";
import { useSelector, useDispatch } from "react-redux";
import { setSnackbar } from "src/redux/reducers/snackbarReducer";
import { getHotelDetails, editHotel } from "src/redux/actions/hotelActions";
im... |
'use strict';
var generators = require('yeoman-generator');
var chalk = require('chalk');
var path = require('path');
var fs = require('fs');
module.exports = class VaadinElementsApplicationGenerator extends generators.Base {
constructor(args, options) {
super(args, options);
this.option('defaults');
thi... |
/**
* @author IITII
* @date 2020/9/19 13:06
*/
'use strict';
const config = require('../config'),
fetch = require('node-fetch'),
fs = require('fs'),
path = require('path'),
util = require('util'),
streamPipeline = util.promisify(require('stream').pipeline),
async = require('async'),
dayjs = require('da... |
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Block from './components/block';
import Header from './components/header';
import Icon from './components/icon';
import Tabs from './components/tabs';
import modifiers from '../../modifiers';
import Element from ... |
CustomScrollbar = (function($) {
return {
initialize: function(args) {
this._scrollbarElement = $(args.scrollbarElement);
this._handleElement = this._scrollbarElement.find('.scrollbar-handle');
this._scrollTop = 0;
this._scrollSpeedConstant = 500;
if (this._scrollbarElement.length ... |
var isogroup;$(function(){isogroup=new Isogroup(".resources-container");var a=function(a){isogroup.filter(a),ga("send","event","Resource Action","Filter resources",a)};filter=new Filter(".file-type-group",file_types,a),$.each(file_types,function(a,b){var c=isogroup.$el.find("."+b).length;$(".file-type-group ."+b+" .cou... |
'use strict';
const chai = require('chai');
const sinon = require('sinon');
const sinonTest = require('sinon-test');
var test = sinonTest(sinon);
const expect = require('chai').expect;
let request = require('superagent');
let BlockCypher = require('../../lib/bcypher');
let chain = 'btc';
let network = 'main';
let tok... |
/**
* request 网络请求工具
* 更详细的 api 文档: https://github.com/umijs/umi-request
*/
import { extend } from 'umi-request';
import { notification } from 'antd';
const codeMessage = {
200: '服务器成功返回请求的数据。',
201: '新建或修改数据成功。',
202: '一个请求已经进入后台排队(异步任务)。',
204: '删除数据成功。',
400: '发出的请求有错误,服务器没有进行新建或修改数据的操作。',
401: '用户没有... |
const promoteFunction = require("../lib/request-reply-promoter");
const { PassThrough } = require("stream");
describe("function promoter =>", () => {
describe("when called with functions with an argument transformer => ", () => {
it("rejects invalid argument transformers", () => {
try {
... |
/*
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( 'about', 'oc', {
copy: 'Copyright © $1. Totes los dreits reservats.',
dlgTitle: 'A prepaus de CKEditor 4',
moreInfo: 'Per ... |
export const debug = {
flashlight: false,
yMovement: false,
logging: true,
}
export const startMenu = {
title: {
name: "Mazeophobia",
offset: "30%",
},
start: {
name: "Start",
offset: "70%",
}
}
export const endMenu = {
lose: {
name: "You Died!",... |
//# sourceMappingURL=7.71c73c65ee4f33f6ac9d.js.map |
//-----------------------------Reloj en vivo------------------------------------
var reloj = '';
var reloj2 = '';
//
function show5() {
if (!document.layers && !document.all && !document.getElementById)
return;
var Digital = new Date();
var hours = Digital.getHours();
var minutes = Digital.getM... |
var Botkit = require(__dirname + '/CoreBot.js');
var request = require('request');
var express = require('express');
var bodyParser = require('body-parser');
var url = require('url');
var crypto = require('crypto');
function Sparkbot(configuration) {
// Create a core botkit bot
var controller = Botkit(configu... |
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
fontFamily: {
sans: ['"Titillium Web"']
},
extend: {
colors: {
orange: '#F05E7B'
}
},
},
variants: {
extend: {},
},
plugins: [],
} |
import * as assert from 'assert';
import 'mocha';
import VikingRecord from 'viking/record';
import { hasAndBelongsToMany } from 'viking/record/associations';
describe('Viking.Record::associations', () => {
class Parent extends VikingRecord { }
class Model extends VikingRecord {
static associations = [... |
export const primaryItems = [
{
text: '圣经',
icon: 'book',
key: 'book',
path: '/bible'
},
{
text: '搜索',
icon: 'search',
key: 'search',
path: '/search'
},
{
text: '我的收藏',
icon: 'star',
key: 'favorite',
path: '/favorite'
},
{
text: '原文字典',
icon: 'font',... |
import {b, div, span, button} from '@cycle/dom'
import classes from 'classnames'
require('./style.css')
export default function Menu (options) {
const defaults = {
toggled: false,
disabled: false,
name: '',
icon: undefined,
klass: '',
wrapperKlass: '',
arrow: true,
contentPosition:... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])... |
const environment = process.env.NODE_ENV || 'development';
const config = require('../../knexfile.js')[environment];
module.exports = require('knex')(config); |
import React from "react";
import "./styles.css";
import MainMenuButton from "../mainMenuButton";
const MainMenu = ({ buttons, onClick, onMouseEnter }) => {
return (
<div className="mainMenu">
{buttons.map((button, index) => (
<MainMenuButton key={index} name={button.name} onClick={onClick} onMouse... |
(this["webpackJsonphotkeys-js"]=this["webpackJsonphotkeys-js"]||[]).push([[381],{418:function(E,S){Prism.languages.sparql=Prism.languages.extend("turtle",{variable:{pattern:/[?$]\w+/,greedy:!0},boolean:/\b(?:true|false)\b/i}),Prism.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE... |
/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
//>>built
define("dojo/cldr/nls/fi/number",{"group":" ","percentSign":"%","exponential":"E","scientificFormat":"#E0","percen... |
'use strict';
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Any commits to this file should be reviewed with security in mind. *
* Changes to this file can potentially create security vulnerabilities. *
* An approval from 2 Core members with history of modifying ... |
import React, { Component } from 'react';
class Find extends Component {
render() {
return (
<div className="box">
<div className="header">
发现头部
</div>
<div className="content">
发现中间
... |
import React from 'react';
import { API_ROOT } from '../api-config';
import { withRouter } from 'react-router-dom';
import { PaneLeft, PaneRight } from './Pane';
import Button from './Button';
import HighlightContainer from './highlight/HighlightContainer';
import { Highlight, getHighlightColor } from './highlight/High... |
// Projects
// Expo
import expo1 from './images/projects/expo2019/expo1.png';
import expo2 from './images/projects/expo2019/IMG_1224.png';
import expo3 from './images/projects/expo2019/IMG_1230.png';
import expo4 from './images/projects/expo2019/IMG_1246.jpg';
import expo5 from './images/projects/expo2019/IMG_1266.png... |
/**
* skylark-ace - A version of ace v1.4.3 that ported to running on skylarkjs.
* @author Hudaokeji Co.,Ltd
* @version v0.9.0
* @link www.skylarkjs.org
* @license MIT
*/
define(function(require,exports,module){"use strict";var t=require("../lib/oop"),e=require("./text").Mode,n=require("./c9search_highlight_rules... |
import { css } from 'styled-components';
const secondaryViewStyles = css`
// width: 29%;
float: left;
max-height: 83vh;
position: relative;
border-right: 1px solid lightgrey;
border-bottom: 1px solid lightgrey;
font-size: .9rem;
overflow: auto;
background-color: white;
transition: .3s all;
// &:a... |
module.exports = require('../../full/instance/flat-map'); |
// Transcrypt'ed from Python, 2019-01-22 11:20:53
import {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and_... |
/**
* Export mxFile as Vsdx file
*/
function VsdxExport(editorUi)
{
var that = this;
var vsdxCanvas = new mxVsdxCanvas2D();
var idsMap = {};
var idsCounter = 1;
/**
* Fill the required files in vsdx format which are constants in our exporter
* @param zip JSZip of vsdx file
* @param pageCount The number... |
/**
* Created by anshal on 2/21/2016.
*/
'use strict';
angular.module('adminportal').controller('CategoryBrowseController', ['$scope','$timeout','$http', '$state', 'Authentication','Users',
function ($scope, $timeout, $http, $state, Authentication, Users) {
$http.get('/api/categories').then(function succ... |
import React, { useState, useEffect } from "react";
import Navbar from "../components/Navbar"
import SearchBar from "../components/SearchBar"
import Results from "../components/Results"
import API from '../utils/API'
import Jumbotron from "../components/Jumbotron";
// Search page that allows the user to search for ... |
function tagClick(e) {
id = $(this).attr("id");
if(id === "tag_X") {
$(".tile.is-child:has(.tag)").css("opacity", 1)
// $(".tag_X").hide()
return
}
$(".tile.is-child:has(.tag)").css("opacity", 0.2)
$(".tile.is-child:has(.tag." + id + ")").css("opacity", 1)
// $(".tag_X").... |
var bitcoin = require('../../lib/bitcoin');
var logger = require('../../lib/logger');
require('colors');
try {
var express = require('express');
var Pubkeys = require('./pubkeys').Pubkeys;
var Tx = require('./tx').Tx;
var Block = require('./block').Block;
var RealtimeAPI = require('./realtime').API;
} catch... |
/* 6. Write an expression that checks if given print (x, y)
* is within a circle K(O, 5).
*/
var point = {
"x": 0,
"y": 1
};
jsConsole.writeLine("point x = " + point.x + "; y = " + point.y + ";");
jsConsole.writeLine("point is in circle whit radius 5: " +
((point.x * point.x) + (point.y * point.y)... |
import{o as a,c as r,F as t,a as e,e as o}from"./app.afca4f37.js";import{_ as c}from"./plugin-vue_export-helper.21dcd24c.js";const n={},s=e("h1",{id:"\u5E38\u89C1\u95EE\u9898",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#\u5E38\u89C1\u95EE\u9898","aria-hidden":"true"},"#"),o(" \u5E38\u89C1\u95EE\u9898")],-1),_=e... |
// @flow
import { add, gt } from 'biggystring'
import type { EdgeCurrencyConfig, EdgeCurrencyWallet, EdgeDenomination } from 'edge-core-js'
import * as React from 'react'
import { Image, View } from 'react-native'
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons'
import { sprintf } ... |
// Copyright 2016 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
import ModelSelectorDialog from 'features/houses/utils/model_selector_dialog.js';
// Private symbol ensuring that the ModelSelector constructo... |
var path = require('path');
var webpack = require('webpack');
var ManifestPlugin = require('webpack-manifest-plugin');
var ChunkManifestPlugin = require('chunk-manifest-webpack-plugin');
var WebpackMd5Hash = require('webpack-md5-hash');
module.exports = {
entry: {
vendor: './src/vendor.js',
main: './src/inde... |
module.exports = function(app) {
var qualifiedOrganizationsModalController = function () {
var vm = this;
};
qualifiedOrganizationsModalController.$inject = [];
app.controller('qualifiedOrganizationsModalController', qualifiedOrganizationsModalController);
}; |
'IntersectionObserver'in window&&window.addEventListener('DOMContentLoaded',function(){'use strict';var e=document.querySelectorAll('[data-revealer]'),t=e.length;if(t){for(var n=0;n<t;n++)e[n].classList.add('revealer');window.addEventListener('load',function(){for(var n=0,r=new IntersectionObserver(function(e){e.forEac... |
import React, {useEffect, memo, useRef, useContext} from 'react';
import classes from '../../components/Cockpit/Cockpit.css';
import AuthContext from '../../context/auth-context';
const cockpit = (props) => {
const toggleButtonRef = useRef(null);
const authContext = useContext(AuthContext);
useEffect(() =... |
import HitBox from './HitBox.js'
export default class Boundry {
constructor (xMin, yMin, height, width) {
this.internalHitBox = new HitBox(xMin, yMin, height, width)
}
get hitBox () {
return this.internalHitBox
}
isInBoundry (x, y) {
if ((x >= this.hitBox.getXMin() && x <= this.hitBox.getXMax()... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
// Copyright (c) 2021 Uber Technologies, Inc.
//
// 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... |
const moment = require('moment');
function formatMessage(username, text) {
return {
username,
text,
time: moment().format('h:mm a')
}
}
module.exports = formatMessage; |
import htm from "https://unpkg.com/htm@2.2.1/dist/htm.module.js";
import {
h as preact,
Component
} from "https://unpkg.com/preact@10.0.5/dist/preact.module.js";
const h = htm.bind(preact);
export class App extends Component {
addTodo() {
const { todos = [] } = this.state;
this.setState({ todos: todos.c... |
if (typeof exports === 'object') {
var assert = require('assert');
var alasql = require('..');
} else {
__dirname = '.';
}
describe('Test 349 VALUE OF', function () {
it('1. CREATE DATABASE', function (done) {
alasql('CREATE DATABASE test349;USE test349');
done();
});
it('2. VALUE OF', function (done) {
v... |
export default {
lng: 'en',
resources: {
en: {
translation: {
complete: 'Submission Complete',
error: 'Please fix the following errors before submitting.',
submitError: 'Please check the form and correct all errors before submitting.',
required: '{{field}} is required',
... |
'use strict';
const LambdaRunner = require( './runner' );
const utils = require( './utils' );
const config = require( './config' );
const DEFAULT_TIMEOUT = 0;
const TARGET_NODE_VERSION = '6.10.1';
var checkForHandleLeak = false;
var checkVersion = utils.parseBoolean( process.env.LAMBDA_TESTER_NODE_VERSION_CHECK ... |
/*
* Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
* Copyright [2016-2021] EMBL-European Bioinformatics Institute
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... |
/*
---
MooTools: the javascript framework
web build:
- http://mootools.net/core/8423c12ffd6a6bfcde9ea22554aec795
packager build:
- packager build Core/Core Core/Array Core/String Core/Number Core/Function Core/Object Core/Event Core/Browser Core/Class Core/Class.Extras Core/Slick.Parser Core/Slick.Finder Core/Eleme... |
import request from '../utils/request';
export function servers(page, page_size, sort, asc) {
return request({
method: 'get',
url: `/api/v1/servers`,
params: {
page: page,
page_size: page_size,
sort: sort,
asc: asc
}
});
}
export... |
import firebase from "firebase";
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseApp = firebase.initializeApp({
apiKey: "AIzaSyB58NoH_ITy3TpOHqnUc9dtKUuwX7W2xjM",
authDomain: "chatto2021.firebaseapp.com",
projectId: "chatto2021",
storageBucket: "chatto2021.appspot.com",
mess... |
"use strict";
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
const impl = utils.implSymbol;
const HTMLElement = require("./HTMLElement.js");
function HTMLMenuElement() {
throw new TypeError("Illegal constructor");
}
Object.setPrototypeOf(HTMLMenuElement.prototype, HTMLElem... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.u25FB = void 0;
var u25FB = {
"viewBox": "0 0 2600 2760.837",
"children": [{
"name": "path",
"attribs": {
"d": "M2065 632v1531H534V632h1531zm-118 118H652v1295h1295V750z"
},
"children": []
}]
};
exports.u2... |
import React, { Component } from 'react';
import hourprice from '../app_assets/img/Final-ICONS_SVG_23-Hourly_price.ab660dea.svg';
import star from '../app_assets/img/Rating_Start_Filled.b9b882be.svg'
import hollowstar from '../app_assets/img/Rating_Start_Hollow.40582898.svg'
import hirenow from '../app_assets/img/Final... |
import PublicationUtils from 'meteor/utilities:smart-publications';
import EmbedlyThumbnail from './components/EmbedlyThumbnail.jsx';
Posts.addField([
{
fieldName: 'thumbnailUrl',
fieldSchema: {
type: String,
optional: true,
insertableIf: Users.is.memberOrAdmin,
editableIf: Users.is.o... |
import _ from 'lodash';
import LeagueBusiness from '../business/league-business';
import createError from '../utils/error-generator';
function validateInput(data) {
const errors = {};
if (!data.leagueId) {
errors.leagueId = 'Mandatory field';
}
if (!_.isNumber(data.leagueId)) {
errors.leagueId = 'leag... |
const defaults = {
title: null,
message: "",
type: "",
iconClass: "",
showInput: false,
showClose: true,
modalFade: true,
lockScroll: true,
closeOnClickModal: true,
closeOnPressEscape: true,
closeOnHashChange: true,
inputValue: null,
inputPlaceholder: "",
inputType: "text",
inputPattern: null,
inputVali... |
/*jshint smarttabs:true */
/**
* FlipClock.js
*
* @author Justin Kimbrell
* @copyright 2013 - Objective HTML, LLC
* @licesnse http://www.opensource.org/licenses/mit-license.php
*/
(function($) {
"use strict";
/**
* The FlipClock.Timer object managers the JS timers
*
* @param object The pare... |
"use strict";
/**
* Module dependencies
*/
var path = require("path"),
mongoose = require("mongoose"),
Booking = mongoose.model("Booking"),
errorHandler = require(path.resolve(
"./modules/core/server/controllers/errors.server.controller"
)),
PDFDocument = require("pdfkit"),
fs = require("fs"),
mome... |
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var d3 = require('d3');
var Registry = require('../../registry');
var Plots = require('../../plots/plots');
var... |
//设定设置字体比例
(function(doc, win) {
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function() {
var clientWidth = docEl.clientWidth;
if (clientWidth >= 640) {
clientWidth = 640;
};
if (!clientWidth) return;
docEl.style.fontSize ... |
/*global QUnit, sinon */
sap.ui.require([
"sap/ui/thirdparty/jquery",
"sap/base/strings/capitalize",
"sap/base/Log",
"sap/ui/events/KeyCodes"],
function($, Capitalize, Log, KeyCodes) {
"use strict";
sinon.config.useFakeTimers = true;
QUnit.config.autostart = false;
sap.ui.test.qunit.delayTestStart();
var mT... |
import React from "react";
import { useOverrides } from "@quarkly/components";
import { Button } from "@quarkly/widgets";
const defaultProps = {
"margin": "1rem 0px 0px 0px",
"background": "#0469FF",
"border-radius": "20px",
"padding": "15px 24px 15px 24px",
"children": "Разместить кнопки"
};
const overrides = {};... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distr... |
/*
* thermal_sensors.js
*
* part of pfSense (https://www.pfsense.org)
* Copyright (c) 2004-2013 BSD Perimeter
* Copyright (c) 2013-2016 Electric Sheep Fencing
* Copyright (c) 2014-2019 Rubicon Communications, LLC (Netgate)
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"... |
import React, { useEffect} from "react";
import Topnav from "../components/Navigations/Topnav";
import Sidenav from "../components/Navigations/Sidenav";
import ApprovedStreamCity from '../components/StreamCity/ApprovedStreamCityTable'
import { useNavigate } from "react-router-dom";
export default function Home() {
... |
/*! For license information please see component---src-pages-index-js-e8f4ae850c40ee63be8f.js.LICENSE.txt */
//# sourceMappingURL=component---src-pages-index-js-e8f4ae850c40ee63be8f.js.map |
/*! UIkit 2.27.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ |
const tagsTable = ['折扣', '饮料'];
function getTags(req, res) {
res.send(tagsTable);
}
export default {
'GET /api/store-product/:uuid/tags': getTags,
}; |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : roo... |
import { createAction } from 'redux-actions';
import { createThunkAction } from 'utils/redux';
const getKeyVisualizationsInit = createAction('getKeyVisualizationsInit');
const getKeyVisualizationsFail = createAction('getKeyVisualizationsFail');
const getKeyVisualizationsReady = createAction('getKeyVisualizationsReady'... |
const {
assertRevert
} = require("../helpers/assertRevert");
const {
sendTransaction
} = require("../helpers/sendTransaction");
const etherToWei = require("../helpers/etherToWei");
const advanceBlock = require("../helpers/advanceToBlock");
const _ = require("lodash");
const BigNumber = web3.BigNumber;
const Radi... |
// Data to pass to our List elements
class Demos extends React.Component {
constructor(props) {
super(props);
this.state = {
demos: []
};
}
componentDidMount() {
d3.csv('data/demos.csv', (data) => {
this.setState({ demos: data });
});
}
... |
import { test } from 'uvu';
import { create_kit_middleware } from '../src/kit-middleware.js';
import * as assert from 'uvu/assert';
import fetch from 'node-fetch';
import polka from 'polka';
const { PORT = 3000 } = process.env;
const DEFAULT_SERVER_OPTS = { render: () => {} };
async function startServer(opts = DEFAUL... |
'use strict'
const base64 = require('base64-url')
const { login, putTokens, deleteTokens } = require('../../helpers/routes_helper')
describe('PUT /tokens', () => {
it('should respond with a fresh access token given a valid refresh token', () => {
return login('read-user', 'password')
.then(tokens => putTo... |
"use strict";
class Encoding {
constructor(encoding, line, column) {
this.encoding = encoding;
this.line = line;
this.column = column;
}
getTipo(e) {
return Tipo.ENCODING;
}
;
getValorImplicito(e) {
return this;
}
;
generarGrafo(g, padre) {
... |
const feathers = require("@feathersjs/feathers");
const express = require("@feathersjs/express");
const socketio = require("@feathersjs/socketio");
const moment = require("moment");
const service = require('feathers-memory');
const app = express(feathers());
app.get("/", (req, res) => {
res.sendFile('index.html'... |
const Sequelize = require('sequelize');
// Initialise connection
const sequelize = new Sequelize({
dialect: 'sqlite',
storage: 'users.sqlite',
operatorsAliases: false,
logging: false
});
// Define our Model
const User = sequelize.define('users', {
name: Sequelize.STRING,
email: Sequelize.STRIN... |
'use strict'
// Pull in our modules
const chalk = require('chalk')
const boxen = require('boxen')
const fs = require('fs')
const path = require('path')
// Define options for Boxen
const options = {
padding: 1,
margin: 1,
borderStyle: 'round'
}
// Text + chalk definitions
const data = {
name: chalk.green(' Go... |
import http from 'http';
import express from 'express';
import cors from 'cors';
import morgan from 'morgan';
import bodyParser from 'body-parser';
import initializeDb from './db';
import middleware from './middleware';
import api from './api/index';
import config from './config.json';
let app = express();
app.server ... |
30 mtime=1556799902.066456446
24 SCHILY.fflags=extent |
import React from 'react';
import styled from 'styled-components';
const Wrapper = styled.div`
margin-top: 1em;
margin-left: 6em;
margin-right: 6em;
`;
export const Issue = () => (
<Wrapper>
<h2>Issue Page</h2>
</Wrapper>
) |
var fs = require( 'fs' );
var unzip = require( 'unzip' );
var del = require( 'del' );
console.log( 'Initializing...' );
var isLite = process.argv[2] == 'lite';
var config = JSON.parse( fs.readFileSync( './q-config.json' ) );
// Q_REPLACE_DASHED -> my-app
// Q_REPLACE_CAMELCASED -> myApp
// Q_REPLACE_HUMAN -> My App
... |
"use strict";
const { Launchpad } = require("../lib");
const controller = new Launchpad();
controller.on("connected", () => {
console.log(`Novation ${controller.name} controller ready`);
controller.programmerMode();
setInterval(() => {
for (let x = 0; x < 9; x++) {
for (let y = 0; y... |
// =================================================================
// Social Authorization Strategies
// =================================================================
module.exports ={
'facebookAuth': {
'clientID':'137047966849610',
'clientSecret':'37110de52b988af1e94ca3fe7357e900',
... |
angular.module("worthApp", [
'ngRoute',
'app.main',
'app.controllers',
'app.services',
'app.localize',
'app.navigation'
])
.config(function($routeProvider,$locationProvider) {
$routeProvider
.when('/', {
redirectTo: '/dashboard'
})
$routeProvider.when('/dashboard', {
tem... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[31],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/admin/reader/reader-form.vue?vue&type=script&lang=js&":
/*!*********************************************************************************... |
define({
root: {
//begin v1.x content
previousButton: "◄",
nextButton: "►",
todayButton: "Today",
dayButton: "Day",
weekButton: "Week",
fourDaysButton: "4 Days",
monthButton: "Month"
//end v1.x content
},
"bs": true,
"mk": true,
"sr": true,
"zh": true,
"zh-tw": true,
"uk": true,
"tr": true,... |
module.exports = {
lineHeight: { value: 1 },
height: { value: '1em' }, // Should match height of parent container font-size
}; |
Rickshaw.namespace('Rickshaw.Fixtures.Time.Local');
Rickshaw.Fixtures.Time.Local = function() {
var self = this;
this.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
this.units = [
{
name: 'decade',
seconds: 86400 * 365.25 * 10,
formatter: function(d) { r... |
module.exports = new Date(2006, 1, 9) |
/*
* Pattern for matching MD5 hashes
*/
import regexParser from '../regex-parser'
export default (str, config) =>
regexParser( str, '\\b[A-Fa-f0-9]{32}\\b', config || null ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.