text stringlengths 3.07k 16k |
|---|
const cWidth1 = 60;
const cWidth2 = 30;
/**
* Page manager for StudyPage
*/
var studyMgr = {
board: undefined,
displayed: false,
scrollPos: 0,
initialize: function(board) {
this.board = board;
},
getPageID: function() { return 'studyMgr'; },
getHeaderInfo: function() {
return {'title':R.text... |
const { createBackend } = require("@blixi/cli-new-backend");
const {
addAPIScript,
addVueTesting,
createCommonFilesAndFolders,
e2eSetup,
newProjectInstructions,
} = require('@blixi/cli-new-utils')
const {
loadFile,
store,
mkdirSync,
writeFile,
addDependenciesToStore,
addSc... |
import Node from './node';
import Selector from './selector';
import MixinDefinition from './mixin-definition';
import defaultFunc from '../functions/default';
class MixinCall extends Node {
constructor(elements, args, index, currentFileInfo, important) {
super();
this.selector = new Selector(elem... |
import dynamicImport from '/browser/dynamic-import.js';
import {loadSourceTextFrom} from '/components/lib/fetch.js';
import {createBlobURL, createDataURL} from './lib/helpers.js';
import {matcher} from './lib/tdf/matcher.js';
import {matchAll} from '/markup/packages/matcher/matcher.js';
import {processRow} from './lib... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _inte... |
// Adds or removes folder entries and their corresponding games
const path = require('path');
const fs = require('fs-extra');
const gamelist = require('./utils/gamelist');
const options = {
boolean: ['desc', 'quiet', 'help'],
string: ['name', 'desc', 'icon'],
alias: { n: 'name', d: 'desc', i: 'icon', m: 'multi', q:... |
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const nodeExternals = require('webpack-node-externals');
const path = require('path');
const basename = process.env.BASENAME || '/';
const pathPrefix = basename.endsWith('/') ? basename.slice(0, basename.length - 1) : basename... |
import React, { useState, useEffect } from "react"
import { GatsbySeo } from "gatsby-plugin-next-seo"
import Container from "@material-ui/core/Container"
import proloco from "../images/proloco.jpg"
import { makeStyles } from "@material-ui/core/styles"
import Paper from "@material-ui/core/Paper"
import Grid from "@mater... |
require('dotenv').config({path: 'local.env'});
const fs = require('fs').promises;
const path = require('path');
const config = require('../../config');
describe('config', () => {
let defaultConfig;
beforeAll(async () => {
// the keys are under the "secrets" folder that is supposed to be moved by Doc... |
import React from 'react'
import '../Components/styles/Home.css'
import Ray from '../Components/Ray'
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom'
import 'firebase/database'
import * as firebase from 'firebase/app'
import Assignment from './Assignment'
import Food from './Food'
import... |
/* eslint-disable func-style */
/* eslint-disable no-use-before-define */
import { assign, keys, orderBy } from "lodash";
import React from "react";
import { Helpers, Scale, Wrapper } from "victory-core";
const fallbackProps = {
width: 450,
height: 300,
padding: 50
};
// Assumes data in `datasets` is sorted by ... |
"use strict";
function parsePR(url) {
const re = /^(https:\/\/github.com)?\/([\w-]+\/[\w-]+\/(pull|issues)\/\d+)/;
const match = url.match(re);
return match && match[2];
}
function storage(pr, visible) {
if (!pr) {
pr = parsePR(location.href);
}
return new Promise(resolve => {
if (visible != null)... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
function _convertSourceMap() {
const data = require("convert-source-map");
_convertSourceMap = function () {
return data;
};
return data;
}
function _traceMapping() {
const data = require("@jrid... |
// this sets the background color of the current Window
Titanium.UI.currentWindow.setBackgroundColor('#ffffff');
Titanium.UI.currentWindow.setBackgroundImage('ChalkboardBg.jpg');
var win = Titanium.UI.currentWindow;
var data = [];
var scrollView = Titanium.UI.createScrollView({
contentWidth:'auto',
contentHeight:'a... |
// Console Version of Hangman.
// Takes words from the words file
// inquirer takes letters and matches the word.
// If match, then dislay letter and Correct in Green
// If not match, then display Incorrect in Red
var inquirer = require("inquirer");
// for colors
var colors = require("colors");
// factor to multi... |
import {
element,
template,
property,
attribute,
method,
delegate,
on,
dispatchCustomEvent,
toArray
} from 'ceb';
function padLeft(nbr, ref, val) {
if (nbr > ref.length) {
let paddedRef = ref;
for (let i = ref.length; i < nbr; i++) {
paddedRef = val +... |
import {
generateMines,
cascadeReveal,
adjFlagSurplus,
revealNonFlagNeighbours,
} from "./Field.js";
import flagImage from "./images/flag.svg";
import markImage from "./images/question-mark.svg";
import hiddenMineImage from "./images/mine.svg";
import flaggedMineImage from "./images/flagged-mine.svg";
import m... |
import Component from './component.js';
import Swapper from './swapper.js';
import { getValue } from './util.js';
const debounce = (/** @type {TimerHandler} */ f, /** @type {number | undefined} */ timeout) => {
/**
* @type {number | undefined}
*/
let id;
return () => {
clearTime... |
import React, { useState } from 'react';
import { DateTime } from 'luxon'
import ExpansionPanel from '@material-ui/core/ExpansionPanel';
import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';
import useStores from '../../... |
// Library Imports
import _ from 'lodash';
import { PhoneNumberUtil, PhoneNumberFormat } from 'google-libphonenumber';
// Local Imports
import { isStringEmpty } from './function_utility';
//--------------------------------------------------------------------//
// Interface
//-----... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("../../../src/components/VList/VListItem.sass");
var _colorable = _interopRequireDefault(require("../../mixins/colorable"));
var _routable = _interopRequireDefault(require("../../mixins/routable"));
var... |
'use strict';
const semverutils = require('semver-utils');
const _ = require('lodash');
const chalk = require('chalk');
const util = require('util');
const VERSION_BASE_PARTS = ['major', 'minor', 'patch'];
const VERSION_ADDED_PARTS = ['release', 'build'];
const VERSION_PARTS = [].concat(VERSION_BASE_PARTS, VERSION_ADD... |
/**
* Flag bullet module.
*/
import * as tslib_1 from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { Bullet } from "../../charts/elements/Bullet";
import { r... |
#!/usr/bin/env node
/**
* Module dependencies
*/
// App dependencies
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
// Server dependencies
var ... |
import { setAuthData, clearAuthData, getAuthData } from '../auth/auth-storage';
import { reloadNavigation } from '../navigation/navigation-data-init';
import { reloadAuth, hasNonOidcAuth } from '../auth/auth';
import { saveLocation } from '../navigation/previous-location';
import { createLoginCommand, parseOIDCParams }... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _core = require("../../../../core");
var yup = _interopRequireWildcard(require("yup"));
function _interopRequireWildcard(obj... |
/**
* Created by <NAME> on 2018.01.14
* Copyright (c) 2018 <NAME>
*
* 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, ... |
/**
* Created by IvanP on 20.09.2016.
*/
/**
* `HTMLImports` is a polyfill for HTML imports that inject HTML into document
* @external HTMLImports
* @see {@link https://github.com/webcomponents/webcomponentsjs/}
* */
/**
* `VisualFixtureTest` allows to test fixtures visually by dynamically injecting them into d... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
var popup = require('../lib/popup'),
customHash = require('../lib/custom_hash.js'),
qs = require('qs-hash');
LGeo = require('leaflet-geodesy'),
writable = false;
module.exports = function(context, readonly) {
writable = !readonly;
function map(selection) {
context.map = L.mapbox.map... |
/*:
* @plugindesc Scroll pictures that are larger than your screen
* @author Poryg
*
* @help Simple plugin that serves for moving pictures shown via Show picture
* with your mouse wheel. Works for pictures that have either greater width
* or greater height than the respective screen dimension. It prioritizes widt... |
import ko from 'knockout';
import _ from 'underscore';
import BaseClass from 'models/base-class';
import alert from 'utils/alert';
import mediator from 'utils/mediator';
import {validateImageSrc, validateImageEvent} from 'utils/validate-image-src';
import articleCollection from 'utils/article-collection';
import {track... |
import React, { Component, Fragment } from 'react';
import { Translate } from 'react-localize-redux';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { Grid } from 'semantic-ui-react';
import styled from 'styled-components';
import IconArrowLeft from '../../images/IconArrow... |
#!/usr/bin/env node
const express = require("express");
const next = require("next");
const bodyParser = require("body-parser");
const cors = require("cors");
const compression = require("compression");
require("dotenv").config();
const dev = process.env.NODE_ENV !== "production";
const GB_KEY = process.env.GB_KEY;
con... |
const VolunteerGroups = {
initialize() {
$( document ).on('turbolinks:load', () => {
$('#add_volunteers_to_group_button').click(function() {
VolunteerGroups.addVolunteerToGroup(this);
})
$('#volunteers_group_intro_email_button').click(function() {
VolunteerGroups.prepareIntroEma... |
const Discord = require('discord.js');
const { prefix, token } = require('./config.json');
const client = new Discord.Client();
var MongoClient = require('mongodb').MongoClient;
var url = "<insert mongo url here>";
var levenshtein = require('fast-levenshtein');
var distance;
var initials = require("initials");
var ... |
// --------------------------------------------------------------------------------------------------------------------
//
// amazon.js - test for AWS Amazon
//
// Copyright (c) 2011 AppsAttic Ltd - http://www.appsattic.com/
// Written by <NAME> <<EMAIL>>
//
// License: http://opensource.org/licenses/MIT
//
// --------... |
var TextList = function(jq) {
var jlist = new generic.list();
var id = $(jq).attr("id");
var html = '<div class="mlist" id="div_' + id + '">';
if ($(jq).val()) {
jlist.addRange($(jq).val().split(/,/g));
var tgs = $(jq).val().split(/,/g);
if (tgs.length > 0) {
... |
import {GetType} from "./helpers";
import store from "../store/store";
const getType = GetType;
// TODO: Date Equals = date_equals:date
/**
* Association for rules and message formatter function
*/
const messageFormatter = {
singleAttributeMessage: [
'accepted', 'active_url', 'alpha', 'alpha_dash', 'al... |
const merge = require('lodash.merge');
const defaultConfig = {
debug: false,
hotkeys: {
selectCurrentPane: 'CommandOrControl+Alt+P',
selectCurrentTabPanes: 'CommandOrControl+Alt+T',
selectAllPanes: 'CommandOrControl+Alt+A',
toggleCurrentPane: 'CommandOrControl+Alt+B'
},
indicatorStyle: {
po... |
// Class for User, which represents a person that uses the app.
class User{
constructor(end_info, start_info, lat, long) {
this.end = end_info;
this.start = start_info;
this.latitude = lat;
this.longitude = long;
}
get end_info() {
return this.end;
}
... |
import React, { useEffect } from 'react';
import ReactDOM from 'react-dom';
import { useTheme } from 'styled-components';
import * as S from './TableModal.styled';
// Deps
import { CSVLink } from 'react-csv';
// State
import { AGENCY_DETAILS, CONTRABAND_HIT_RATE, STOPS_BY_REASON } from 'Hooks/useDataset';
// Constan... |
'use strict';
const fs = require('fs')
, rimraf = require('rimraf')
, path = require('path')
, pump = require('pump')
, series = require('run-series')
, zlib = require('zlib')
, vfs = require('vinyl-fs')
, tar = require('tar-stream')
, File = require('vinyl')
, through2 = require('t... |
const Discord = require('discord.js');
var express = require('express');
const ytdl = require('ytdl-core');
const client = new Discord.Client();
const ayarlar = require('./ayarlar.json');
const Jimp = require('jimp');
const ms = require('ms');
const fs = require('fs');
const canvas = require('canvas');
const momenttime... |
var path = require('path');
var webpack = require('webpack');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var CommonChunks = require('copy-webpack-plugin');
var UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var LicenseWebpackPlugin = requir... |
import Zebedee from '../../clients/Zebedee.js';
const screenshotDir = "./screenshots/";
const florenceURL = process.env.PUBLISHING_ENV_URL + "/florence";
const isDebugMode = process.env.DEBUG === 'true' || process.env.DEBUG === 'puppeteer:*';
export default class Page {
static async initialise(doNotLogin) {
... |
const fetch = require('node-fetch')
const Sentry = require('@sentry/node')
const request = require('request')
const AWS = require('aws-sdk')
const postgres = require('postgres')
const { writeError } = require('./utils')
const { checkBlacklist, checkDistinctAddresses, MAX_DISTINCT_TO } = require('./bundle')
class Hand... |
// [TD2]
import React from 'react';
import {Actions} from 'react-native-router-flux';
import IoniconIcon from 'react-native-vector-icons/Ionicons';
import FAIcon from 'react-native-vector-icons/FontAwesome';
import {
StyleSheet,
View,
WebView,
Text,
TextInput,
Dimensions,
Platform,
TouchableOpacity
} fr... |
var Dashboard = require('../../src/Dashboard');
var chai = require('chai');
var expect = chai.expect;
var sinon = require('sinon');
var sinonChai = require('sinon-chai');
chai.use(sinonChai);
var dash = {
title: 'Test Dashboard',
description: 'Test Dashboard description',
domain: 'testadmin',
admins: [{
... |
import AppBar from "@material-ui/core/AppBar"
import Avatar from "@material-ui/core/Avatar"
import Box from "@material-ui/core/Box"
import Button from "@material-ui/core/Button"
import Chip from "@material-ui/core/Chip"
import { green, orange, red, yellow } from "@material-ui/core/colors"
import Dialog from "@material-... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
import * as fs from 'fs'
import DB from './DB.js'
let db = new DB();
class PostDetails {
constructor(page) {
this.page = page
this.checkLoggedInSelector = '[href*="logout"]'
}
async getLoggedIn() {
const loginSelector = '.login__button'
const emailSelector = '#emailInput'... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Dialog from '@material-ui/core/Dialog';
import MuiDialogTitle from '@material-ui/core/DialogTitle';
import IconButton from '@material-ui/core/IconButton';
import Avatar from '@material-ui/core/Avatar';
import Container from '@mater... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
/*
* Contains functions for operations commonly performed on anomaly data
*... |
import localforage from 'localforage';
import {extendPrototype} from 'localforage-setitems';
import BaseDB, {
storeSchema,
storeBulkSchema,
readSchema,
readAllSchema,
findSchema,
updateSchema,
removeSchema,
iterateSchema
} from './BaseDB';
import _ from 'lodash';
import LocalFS from "./LocalFSStorage";
... |
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
/* Layout */
import Layout from '@/layout'
/**
* Note: sub-menu only appear when route children.length >= 1
* Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
*
* hidden: true ... |
var cookieName = "fileDownload";
var debug = false; //mettere a true per abilitare gli Alert di debug
var blockUi = true; //mettere a true per bloccare la pagina in attesa del cookie
var retValue = true; //mettere a true per far funzionare il link
var refreshPage = true;
var secondsTimeout = 60;
var CookieValue =... |
/*
* variables =====================================================================================
*/
//SVG processing
const svgmin = require('gulp-svgmin');
const svgstore = require('gulp-svgstore');
const cheerio = require('gulp-cheerio');
//Sass processing
const sourcemaps = require('gulp-sourcemaps');
const sa... |
'use strict';
var fs = require('fs-extra');
var chalk = require('chalk');
var experiments = require('../experiments/');
var heimdallGraph = require('heimdalljs-graph');
var utilsInstrumentation = require('../utilities/instrumentation');
var vizEnabled = utilsInstrumentation.vizEnabled;
var instrumentationEnabled = ut... |
const del = require('del')
const gulp = require('gulp')
const autoprefixer = require('gulp-autoprefixer')
const cssnano = require('gulp-cssnano')
const gulpif = require('gulp-if')
const imagemin = require('gulp-imagemin')
const notify = require('gulp-notify')
const plumber = r... |
const core = require('@actions/core')
const { GitHub } = require('release-please/build/src/github')
const { Manifest } = require('release-please/build/src/manifest')
const CONFIG_FILE = 'release-please-config.json'
const MANIFEST_FILE = '.release-please-manifest.json'
const MANIFEST_COMMANDS = ['manifest', 'manifest-p... |
import Router from 'next/router'
import App from '../index'
import React, {Component} from 'react'
import axios from 'axios'
import {
Form, Select, InputNumber, Switch, Radio,
Slider, Button, Upload, Icon, Rate, Breadcrumb, Modal, Input, message
} from 'antd';
import InputList from '../components/InputList'
const F... |
var APP_NAME="GS2S"
const GS_SHEET_NAME='scores (from Gradescope)';
const GS_FIRSTNAME_COLUMN=1;
const GS_FIRSTNAME_COLUMN_NAME="First Name";
const GS_LASTNAME_COLUMN=2;
const GS_LASTNAME_COLUMN_NAME="Last Name";
const GS_SID_COLUMN=3;
const GS_SID_COLUMN_NAME="SID";
const GS_SCORE_COLUMN=6;
const GS_SCORE_COLUMN_NAME... |
'use strict';
// require libraries
require('dotenv').load();
const Config = require('./config');
const Scraper = require('./scraper');
const Chance = require('chance');
// check .env file
if (!process.env.SLACK_API_TOKEN) {
console.log('Error: Specify slack token in environment');
process.exit(1);
}
// init ... |
import React from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
import classnames from 'classnames';
import {
Rect,
createImmutableJSSelector
} from '../utils';
import {
createNewImageSpec,
ComponentsContainer,
image
} from '../base_components';
import {
componentTypes
} from '.... |
import { AddBoxOutlined, PhotoAlbum } from "@mui/icons-material";
import {
Alert,
Avatar,
Checkbox,
FormControl,
FormControlLabel,
FormGroup,
Grid,
Input,
InputAdornment,
InputLabel,
MenuItem,
Paper,
Select,
TextField,
} from "@mui/material";
import { green, pink, purple } from "@mui/materia... |
import React, { PureComponent, Fragment } from 'react';
import {
View,
Image,
Text,
TouchableOpacity,
Dimensions,
ActivityIndicator,
Linking,
} from 'react-native';
import get from 'lodash/get';
// Constants
import LIGHT_COVER_IMAGE from '../../../assets/default_cover_image.png';
import DARK_COVER_IMAGE ... |
var Led = require("./led"),
priv = new Map();
/**
* LedRGB
*
*
* @param {[type]} opts [description]
* @return {[type]} [description]
* @alias Led.RGB
*/
var RGB = function(opts) {
if (!(this instanceof RGB)) {
return new RGB(opts);
}
var state;
if (Array.isArray(opts)) {
// RGB([Byte, ... |
async function print_2d(c, text, em, cancelFn, textUpdatedCb, typingCb) {
let print,
ms = 0,
w = "+", // regex quantifier for how many characters to process, e.g '{,3}', '+'. Empty string is the same as '{1}'
tail = text.shift(),
[x, y] = [0, 0],
font,
color = "#9c4",... |
import { VariableInspectorPanel } from "./variableinspector";
import { KernelConnector } from "./kernelconnector";
import { VariableInspectionHandler, DummyHandler } from "./handler";
import { VariableInspectorManager, IVariableInspectorManager } from "./manager";
import { Languages } from "./inspectorscripts";
import ... |
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ... |
/* Copyright 2015-2016 PayPal, Inc. */
"use strict";
var client = require('./client');
var utils = require('./utils');
var configuration = require('./configure');
/**
* token_persist client id to access token cache, used to reduce access token round trips
* @type {Object}
*/
var token_persist = {};
/**
* Set up ... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... |
"use strict";
const queryString = require("../query-string");
const rePageList = /([0-9,]+)\s*-\s*([0-9,]+)\s*of\s*([0-9,]+)/i;
const reResults = /([0-9,]+)\s*results?/i;
class PageinationInfo {
constructor(pageCurrent, pageCount, itemCount, itemsOnPage, itemsPerPage, urlBase, pageFieldName) {
this.pageCurrent =... |
var Main = function(game){
};
var score = 0;
Main.prototype = {
create: function() {
this.tileVelocity = -450;
this.rate = 1500;
score = 0;
this.tileWidth = this.game.cache.getImage('tile').width;
this.tileHeight = this.game.cache.getImage('tile').height;
this.boxHeight = this.game.cache.getImage('b... |
import React, { Component } from "react";
import Input from 'components/Input/Input';
import { Route, Switch, Link, withRouter } from 'react-router-dom';
import Database from "variables/Database.js";
import { toast } from 'react-toastify';
import { withStyles } from '@material-ui/styles';
import CardHeader from "comp... |
import {addBub,addBubGroup}from './chatBubble.js'
import {addUser,openBox,openChatBoxEach,init,goFirst,userRecord} from './chatUserList.js'
import {storeFun}from './store.js'
import {cardsRun}from './Cards.js'
import {getNum,get,getClasses} from './tool.js'
import {reminder,judgeBox}from './msgReminder.js'
addUser('gr... |
// Pool object implementation.
'use strict';
const _ = require('lodash');
const assert = require('assert');
const { GrpcCode, GrpcError } = require('./grpc_client');
const log = require('./logger').Logger('pool');
const Replica = require('./replica');
class Pool {
// Build pool object from JSON object received fro... |
var models = require('../models');
var Sequelize = require('sequelize');
//Autoload el quiz asociado a :quizId
exports.load = function(req, res, next, quizId){
models.Quiz.findById(quizId,{include:[models.Comment]}).then(function(quiz){
if(quiz){//si encuentra es true
req.quiz = quiz;
next();
}
else{
re... |
const formats = require('./formats');
const accTypes = require('./accountTypes');
const transTypes = require('./transactionTypes');
const transStatus = require('./transactionStatus');
let checkTypes = require('./types');
/**
* Handy Utils for transforming data
* @module Tools
*/
const T = {
/**
* Convert TCP ... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may ... |
var configuracao_mensagem;
function configurarMensagens(configuracao) {
configuracao_mensagem = configuracao;
}
var GLOBAL_indice_abas = 0;
var xhr_abrir_documento;
var grid_tbody_tr;
$('document').ready(function() {
grid_tbody_tr = $("table.grid > tbody > tr");
grid_tbody_tr.click(function() {
// ... |
import React from 'react'
import { graphql } from 'gatsby'
import { getImage } from 'gatsby-plugin-image'
import Layout from '../components/layout/Layout'
import Seo from '../components/Seo'
import Banner from '../components/blog/banner/Banner'
import PageHeader from '../components/blog/page-header/PageHeader'
import ... |
'use strict';
var _ = require('lodash');
var DuplexStream = require('stream').Duplex;
module.exports = class IrcChannel {
constructor(irc_client, channel_name, key) {
this.irc_client = irc_client;
this.name = channel_name;
// TODO: Proxy channel related events from irc_bot to this instanc... |
import { ipcMain, dialog, app, BrowserWindow, shell } from 'electron'
import path from 'path'
import createMiniWindow from '../windows/miniWindow'
import createUpdateWindow from './../windows/updateWindow'
import { defaultDownloadFolder } from '../../renderer/config/downloadSettings'
let { download } = require('electro... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {isRTL} from 'chrome://resources/js/util.m.js';
/**
* The minimum amount of pixels needed for the user to swipe for the position
* (controlled b... |
'use strict';
/* Controllers */
var phonecatControllers = angular.module('phonecatControllers', []);
function Paging($scope,itemFromAPI,$filter)
{
$scope.sort = {
sortingOrder : 'patient_name',
reverse : false
};
$scope.gap = 5;
$scope.filteredItems = [];
$... |
'use strict';
const _ = require('lodash');
class AwsCompileCodeCommitEvents {
constructor(serverless) {
this.serverless = serverless;
this.provider = this.serverless.getProvider('aws');
this.hooks = {
'package:compileEvents': this.compileCodeCommitEvents.bind(this),
};
}
compileCodeCommi... |
// Copyright (c) 2015 - 2017 <NAME> <<EMAIL>>
//
// 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... |
import React from 'react';
import {
TouchableOpacity,
Dimensions,
View,
Platform,
DeviceEventEmitter,
ScrollView,
StatusBar,
AppState
} from 'react-native';
import * as Animatable from 'react-native-animatable';
import Modal from 'react-native-modalbox';
import { Icon } from 'react-native-elements';
imp... |
import cloneDeep from 'lodash.clonedeep';
import debounce from 'lodash.debounce';
import merge from 'lodash.merge';
import throttle from 'lodash.throttle';
import uniqueId from 'lodash.uniqueid';
const DEFAULT_TARGET_ELEM = document.body;
const DEFAULT_PARAMS = {
xAxisLabel: 'x',
xAxisOrientation: 'bottom',
xAxi... |
import React from "react";
import ReactDOM from "react-dom";
import ReactDataGrid from "react-data-grid";
import { DataGrid } from '@material-ui/data-grid';
import { Editors } from "react-data-grid-addons";
// import * as DataGridAddons from 'react-data-grid-addons';
import Navbar from './navbar/Navbar'
import... |
/* eslint-disable operator-assignment,prefer-template,no-else-return,react/no-array-index-key */
/**
* @Description: 家庭视图带有圆弧角度矩形柱图组件
*
* @author: 王健
*
* @date: 2019/12/13
*/
import React,{ PureComponent} from "react";
import echarts from "echarts";
import { Icon } from 'antd';
import isEqual from 'lodash/isEqual... |
/**
* Chat Application by AubynJ
* License under MIT & SAGA (Swedish Ason Group) AB
* Uploaded on Thu Feb 21, 16:07:08
*/
const io = require('../server').io
const sessionApp = require('../server').sessionApp
const EVENTS = require('./Events')
const con = require('./connection')
let connection = []
let users = []
... |
/* Copyright (c) 2016 <NAME>,
released under the CeCILL-B license (French BSD license)
(http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt).
*/
import {inherits as ol_inherits} from 'ol'
import {unByKey as ol_Observable_unByKey} from 'ol/Observable'
import ol_control_Control from 'ol/control/Control'
import... |
'use strict'
const request = require('request-promise')
const _ = require('lodash')
const ejs = require('ejs')
const moment = require('moment')
const AWS = require('aws-sdk')
const winston = require('winston')
const wjlf = require('winston-json-log-formatter')
const ISIN_CODE_REGEX = /^([A-Z]{2})[A-Z0-9]{9}\d{1}$/
c... |
'use strict';
var moment = require('moment');
var Animations = require("app/ui/views/animations");
var NavigationManager = require('app/ui/managers/navigation_manager');
var Logger = require('app/common/logger.coffee');
var ProfileManager = require("app/ui/managers/profile_manager");
var ErrorDialogItemView = require(... |
const path = require('path');
const {
extendDeep,
} = require('config/lib/util');
const { parseObjectFromNodeEnv } = require('./utils/node-env-object');
const defaultLogsPath = `${process.cwd()}/logs/all.log`;
const packageJson = require(path.join(process.cwd(), 'package.json'));
const APP_ID = packageJson.name;
c... |
const smallBuildCommons = {
assets: {
'favicon.ico': { size: 15086 },
'icon.png': { size: 51484 }
},
'polyfills.js': { size: 4620 },
'polyfills.js.map': { size: 31760 },
'favicon.ico': { size: 15086 },
'sw.js': { size: 3330 },
'manifest.json': { size: 298 },
'push-manifest.json': { size: 88 },
};
const fu... |
/**
* Copyright 2017 Google Inc. 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 required by appli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.