text stringlengths 3 1.05M |
|---|
/*!
* FileInput 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 encoding.
*/
(fun... |
import { getValueByPath } from '../../../src/utils/util';
export const getCell = function(event) {
let cell = event.target;
while (cell && cell.tagName.toUpperCase() !== 'HTML') {
if (cell.tagName.toUpperCase() === 'TD') {
return cell;
}
cell = cell.parentNode;
}
return null;
};
const isOb... |
/**
* Copyright 2013-2021 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
const express = require('express');
const router = express.Router();
const projectConstantRoute = require('./projectConstant');
router.use('/project-constant', projectConstantRoute);
module.exports = router;
|
require('@babel/register');
({
ignore: /node_modules/
});
require('@babel/polyfill');
const HDWalletProvider = require('@truffle/hdwallet-provider');
let mnemonic = 'good climb orange system bird ribbon remain smile hidden prize bone gift';
let testAccounts = [
"0x57f9ffeb71b2526b8119448c58bd13f15825ca108dcd3c2f... |
#!/usr/bin/env python3
from math import sqrt
# Given a positive integer n, find the least number of perfect square numbers
# (for example, 1, 4, 9, 16, ...) which sum to n.
def squares(target):
sqrts = set((i+1)**2 for i in range(int(sqrt(target))))
count, goals = 1, {target}
while goals:
next_g... |
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
from datetime import date
import hde_utils as utl
__version__ = "unknown"
from _version import __version__
def format_x_label(x, pos):
return "{:.0f}".format(x)
def format_x_label_in_ms(x, pos):
return "{:.0f}".format(x * 10... |
// @flow
export default {
primaryLight: 'Proxima Nova Alt',
primaryRegular: 'Proxima Nova Alt',
primaryBold: 'Proxima Nova Alt',
primarySemiBold: 'Proxima Nova Alt',
};
|
const HealthStatus = require('./health-status');
class HealthChecker {
constructor() {
this._checkers = [];
}
addCheck(check, name, failureStatus, tags) {
const failureStatusKey = Object.keys(HealthStatus).find(status => HealthStatus[status].name.toLowerCase() === failureStatus.toLowerCase... |
import $ from 'jquery';
import 'selectize';
import '../../utils/selectize-required-fix';
export default class SelectizeField {
constructor(options = {}) {
this.options = Object.assign({}, options);
this.elements = [];
$('[data-grav-selectize]').each((index, element) => this.add(element));
... |
module.exports = {
setupFiles: ['<rootDir>utilities/testing/setupTests.js'],
globalSetup: '<rootDir>utilities/testing/globalSetup.js',
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
collectCoverage: true,
collectCoverageFrom: [
'**/*.{js,jsx}',
'!**/node_modules/**',
'!**... |
import asyncio
from datetime import datetime, timedelta
import discord
from datasources.queries import *
import inspect
import datasources.models as models
import datasources.queries as queries
from mappings import BOT, GUILD, COMMANDS, MUSIC_PREFIX, MUSIC_COMMANDS
from datasources import session, engine
from random i... |
function saveAsFile(filename, bytesBase64) {
var link = document.createElement('a');
link.download = filename;
link.href = "data:application/octet-stream;base64," + bytesBase64;
document.body.appendChild(link); // Needed for Firefox
link.click();
document.body.removeChild(link);
} |
var searchData=
[
['keccak384',['Keccak384',['../class_i_o_t_a_1_1_crypto_1_1_keccak384.html',1,'IOTA::Crypto']]],
['kerl',['Kerl',['../class_i_o_t_a_1_1_crypto_1_1_kerl.html',1,'IOTA::Crypto']]],
['key',['key',['../namespace_i_o_t_a_1_1_crypto_1_1_signing.html#a9b5696363f2de2334d8d40ba44a721e0',1,'IOTA::Crypto::... |
import Line from './line'
import area from 'd3-shape/src/area'
import cardinal from 'd3-shape/src/curve/cardinal'
import {extend, isFn, noNilInArray} from '../utils/core'
export default {
name: 'LaArea',
mixins: [Line],
props: {
fillColor: String
},
computed: {
draw() {
const {curve, continu... |
// ==UserScript==
// @name Strava - Feed buttons
// @namespace https://github.com/bogdal/userscripts
// @version 0.1
// @description Adds buttons that switch the activity feeds directly.
// @author Adam Bogdał
// @match https://www.strava.com/dashboard*
// @grant GM_addStyle
// @lic... |
import React from 'react';
import { Route, Redirect } from 'react-router-dom';
import {isAuth} from './helpers';
const AdminRoute = ({component: Component, ...rest}) => (
<Route {...rest} render={
props => isAuth() && isAuth().role === 'admin' ? <Component {...props} /> : <Redirect to={{
path... |
module.exports = function(longtitude, latitude) {
// latitude: 0.000000~90.000000
// longtitude: 0.000000~180.000000
// 赤道長度: 40076 KM
// 子午線長度: 40009 KM
// one latitude = 40009/360 = 111.136111111111111 KM
// one longtitude = (40076/360)*cos(latitude)
const N = 1; // meter base
if (lat... |
#
# MIT License
#
# Copyright (c) 2022 GT4SD team
#
# 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,... |
/* global StatsControllers AuthHelper */
'use strict'
var Route = express.Router()
Route
.all('/*', AuthHelper.requiresAuthorization)
.get('/get/:userId', AuthHelper.requiresAccessToken, StatsControllers.get)
.get('/certificate/:userId/:classId', AuthHelper.requiresAccessToken, StatsControllers.getCertificate)... |
var webpage = require('webpage');
test(function () {
var page = webpage.create();
var expectedContent = '<html><body><div>Test div</div></body></html>';
var expectedLocation = 'http://www.phantomjs.org/';
page.setContent(expectedContent, expectedLocation);
var actualContent = page.evaluate(functio... |
from ops.data import OpsClass, OpsField, DszObject, DszCommandObject, cmd_definitions
import dsz
if ('windows' not in cmd_definitions):
dszwindowstation = OpsClass('windowstation', {'visible': OpsField('visible', dsz.TYPE_BOOL), 'status': OpsField('status', dsz.TYPE_STRING), 'name': OpsField('name', dsz.TYPE_STRIN... |
import React from 'react';
import { Link } from 'gatsby';
import Layout from '../components/layout';
import Head from "../components/head";
const NotFound = () => {
return (
<Layout>
<Head title="404 Not Found" />
<h1>Page not found</h1>
<p>
<Link t="/">H... |
"""
===================================
Compare cross decomposition methods
===================================
Simple usage of various cross decomposition algorithms:
- PLSCanonical
- PLSRegression, with multivariate response, a.k.a. PLS2
- PLSRegression, with univariate response, a.k.a. PLS1
- CCA
Given 2 multivari... |
var searchData=
[
['deletemap',['deleteMap',['../d7/db0/classMap.html#a0586f5778e3b03ff28be2a5b87249752',1,'Map']]],
['displaymap',['displayMap',['../d0/dfb/classAstar.html#a507163e302ae54ac912b75028a00aa42',1,'Astar::displayMap()'],['../d7/db0/classMap.html#ac5af28a5fed55d9ca5d1dab5cb9f3f9c',1,'Map::displayMap()']... |
const Discord = require("discord.js");
const util = require('../util.js');
module.exports.run = async (bot, message, args) => {
message.delete();
let totalSeconds = (bot.uptime / 1000);
let days = Math.floor(totalSeconds / 86400);
totalSeconds %= 86400;
let hours = Math.floor(totalSeconds / 3... |
import React, { createElement, cloneElement } from 'react';
import {
render,
unmountComponentAtNode,
} from 'react-dom';
import uuid from 'uuid/v4';
const appendedElements = {};
let appendElementContainer = null;
function getAppendedElements() {
return Object.keys(appendedElements).map(key => appendedElements[k... |
export const parsedManifest = {
allowCache: true,
discontinuityStarts: [],
segments: [],
endList: true,
mediaGroups: {
'AUDIO': {
audio: {
'en (main)': {
language: 'en',
autoselect: true,
default: true,
playlists: [
{
attribut... |
'use strict'
const Database = use('Database')
const Panelist = use('App/Model/Panelist')
const Advisers = use('App/Model/Advisers')
const Projects = use('App/Model/Project')
const Notification = use('App/Model/Notification')
class PanelistController {
* index(request, response) {
//User
const user = yield r... |
const tailwind = require('tailwindcss')
const snapshotDiff = require('snapshot-diff')
const postcss = require('postcss')
const typographyPlugin = require('.')
function run(options = {}, config = {}) {
return postcss([tailwind({ ...config, corePlugins: [], plugins: [typographyPlugin(options)] })])
.process(['@tai... |
// Resolves file path to it's url
// At this point we serve all static files from root directory scope
'use strict';
module.exports = function (path) {
return (path != null) ? '/' + String(path).split('/').map(encodeURIComponent).join('/') : null;
};
|
/**
* Given an array of domains, return the object with the appearances of the DNS.
*
* @param {Array} domains
* @return {Object}
*
* @example
* domains = [
* 'code.yandex.ru',
* 'music.yandex.ru',
* 'yandex.ru'
* ]
*
* The result should be the following:
* {
* '.ru': 3,
* '.ru.yandex': 3,
* '... |
#! /usr/bin/env python
"""
Module with 2d/3d plotting functions.
"""
from __future__ import division, print_function
__author__ = 'Carlos Alberto Gomez Gonzalez, O. Wertz'
__all__ = ['pp_subplots',
'plot_surface',
'save_animation']
import os
import shutil
import numpy as np
from subprocess imp... |
define(
({
_widgetLabel: "Katman Listesi",
titleBasemap: "Altlık haritaları",
titleLayers: "Operasyonel Katmanlar",
labelLayer: "Katman Adı",
itemZoomTo: "Şuna Yakınlaştır",
itemTransparency: "Saydamlık",
itemTransparent: "Saydam",
itemOpaque: "Opak",
itemMoveUp: "Yukarı taşı",
... |
/**
* Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
* ... |
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
/* eslint-disable import/extensions, import/no-extraneous-dependencies */
const path = require('path');
const Webpack = require('webpack');
const externals = require('webpack-node-externals');
const TerserPlugin = require('terser-webpack-plugin');
const PACKAGE = require('../../package.json');
const BANNER = `
${PACK... |
(function($) {
$.extend($.summernote.lang, {
'nb-NO': {
font: {
bold: 'Fet',
italic: 'Kursiv',
underline: 'Understrek',
clear: 'Fjern formatering',
height: 'Linjehøyde',
name: 'Skrifttype',
strikethrough: 'Gjennomstrek',
s... |
var NAVTREEINDEX2 =
{
"xrfdc__hw_8h.html#ga947e6e7ff58d6762ac9f9b201929506a":[2,5,141],
"xrfdc__hw_8h.html#ga94aae7714e373d3484d9a44a9accdd21":[2,5,355],
"xrfdc__hw_8h.html#ga94e22d750c5bb173daef63d56da347c7":[2,5,491],
"xrfdc__hw_8h.html#ga94eb9927c0a6f63846ac5dcee4181589":[2,5,287],
"xrfdc__hw_8h.html#ga94f8b8cb4b6d7... |
let estado = true,
resultado = "";
if (resultado) {
console.log("continuar")
} else {
console.log("detenerse");
} |
import asyncio
import inspect
import re
import unittest
from unittest.mock import (ANY, call, AsyncMock, patch, MagicMock, Mock,
create_autospec, sentinel, _CallList)
def tearDownModule():
asyncio.set_event_loop_policy(None)
class AsyncClass:
def __init__(self):
pass
... |
/*
* 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 no... |
jQuery(document).ready(function($) {
"use strict";
//Contact
$('form.contactForm').submit(function() {
var f = $(this).find('.form-group'),
ferror = false,
emailExp = /^[^\s()<>@,;:\/]+@\w[\w\.-]+\.[a-z]{2,}$/i;
f.children('input').each(function() { // run all inputs
var i ... |
// 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) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.provide("frappe.ui.form");
frappe.ui.form.LinkedWith = Class.extend({
init: function(opts) {
var me = this;
$.extend(this, opts);
},
show: function() {
if(!this.dialog)
this.make_dialog();
this.... |
define(["require", "exports", "tslib", "react", "../../FocusZone", "../../Utilities", "../../utilities/keytips/KeytipManager"], function (require, exports, tslib_1, React, FocusZone_1, Utilities_1, KeytipManager_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var getClassNa... |
/**
* Observable operator that emits one value when the source
* is emitting and another after it has stopped
*/
import { of, merge } from "rxjs";
import { throttleTime, mapTo, delay, switchMap, distinctUntilChanged } from "rxjs/operators";
// prettier-ignore
export const activity = (config = {}) => (source) => {
... |
import NavBar from "./NavBar/index";
import MenuAnchor from "./MenuAnchor/index";
import MenuContent from "./MenuContent/index";
import DropMenu from "./DropMenu/index";
import MenuItem from "./MenuItem";
export { NavBar, MenuAnchor, DropMenu, MenuItem, MenuContent };
export default DropMenu; |
import React, { useMemo } from 'react';
import { Box, Button, Icon, Table } from '@rocket.chat/fuselage';
import { useMediaQuery } from '@rocket.chat/fuselage-hooks';
import { useTranslation } from '../../../../client/contexts/TranslationContext';
import { GenericTable, Th } from '../../../../client/components/Generic... |
/*!
* Qoopido.js library v3.5.5, 2014-9-30
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(e){window.qoopido.register("jquery/plugins/lazyimage",e,["../../dom/element/lazyimage","jquery"])}(function(e,n,t,r,o){"use strict";var i,c=e.jquery||o.jQuery,u=t.pop(),... |
'use strict';
const DonorMSP = 'DonorMSP';
const ImpactMSP = 'ImpactMSP';
const HopistalMSP = 'HospitalMSP';
const ManufacturerMSP = 'ManufacturerMSP';
const BorderControlMSP = 'BorderControlMSP';
const StorageFacilityMSP = 'StorageFacilityMSP'
const MophMSP = 'MOPHMSP'
const ALL_MSPS = [DonorMSP, ImpactMSP, Hopistal... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("@styled-icons/feather/EyeOff"), exports);
|
'use strict';
/**
* Helper object to find all installed keyboard apps and layouts.
*
* (Need mozApps.mgmt and settings permission)
*/
(function(exports) {
/**
* The set of "basic keyboard" types
*/
var BASE_TYPES = new Set([
'text', 'url', 'email', 'password', 'number', 'option'
]);
/**
* The keys stored i... |
import React from 'react';
import PropTypes from 'prop-types';
import { Text, View, TextInput } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import { white, secondaryLight } from '../../config/colours';
import styles from './styles';
export default class Input extends React.PureCompo... |
# -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... |
import "es6-shim";
import * as parsers from "../parsers";
describe('parseNumber', function() {
it('returns null when given unparseable strings', function() {
expect(parsers.parseNumber('foo')).toBeNull();
expect(parsers.parseNumber('')).toBeNull();
expect(parsers.parseNumber('.')).toBeNull();
});
it... |
'use strict'
module.exports = exports = function (pth) {
var pathParts = pth.split('/')
var nbParts = pathParts.length
var assetTracker = this.assets
var externalAssetTracker = this.externalAssets
for (let i = 0; i < nbParts; i += 1) {
if (assetTracker) {
assetTracker = assetTracker[pathParts[i]]
... |
import React from 'react'
import Footer from '../components/footer/footer'
import Nav from '../components/nav/navbar'
const Layout = ({ children }) => {
return (
<div>
{/* insert Navbar here bro */}
<Nav />
{children}
<Footer />
{/* insert Footer h... |
const express = require('express');
const connectDB = require('/Users/erintheworld/Desktop/project/MERN_pt_booking/config/server.js');
var cors = require('cors');
// routes
const reservation = require('/Users/erintheworld/Desktop/project/MERN_pt_booking/routes/reservations.js');
const app = express();
// Connect Data... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { setupIntl } from 'ember-intl/test-support';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
const s = '[data-test-weekly-calendar-event]';
import { setupMirage } from 'ember-cli-mirag... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[225],{283:function(e,t,r){"use strict";r.r(t),r.d(t,"frontMatter",(function(){return o})),r.d(t,"metadata",(function(){return c})),r.d(t,"rightToc",(function(){return s})),r.d(t,"default",(function(){return u}));var n=r(2),a=r(6),i=(r(0),r(393)),o={id:"security-archi... |
import axios from 'axios';
const api = axios.create({
baseURL: 'https://sigfapeap.msbtec.com.br',
});
export default api;
|
import faker from "faker";
describe("Configuration", () => {
describe("with an Admin user", () => {
beforeEach(() => {
cy.login("admin@example.com", "admin");
});
it("renders the configuration menu item", () => {
cy.visit("/admin");
cy.contains("Configuration").click();
cy.url().... |
webpackJsonp([2],{
/***/ 82:
/***/ (function(module, exports) {
eval("module.exports = {\"ok\":\"Ok\",\"cancel\":\"Cancel\",\"error_alert_title\":\"Oops...\",\"error_alert_text\":\"Something went wrong! Please try again.\",\"token_expired_alert_title\":\"Session Expired!\",\"token_expired_alert_text\":\"Please log in... |
global.Core = new (require('./src/components/Core')) |
var group___s_t_l_u_x_struct___a_w_u__t =
[
[ "APR", "group___s_t_l_u_x.html#ac7bd12a3c89d74d5a284e5adeb12555a", null ],
[ "APR", "group___s_t_l_u_x.html#ac499bfdc2bff75da65d0c26a2d2b8706", null ],
[ "APR", "group___s_t_l_u_x.html#ad72d05d3b6f3c769190a4c07a8f3fbbe", null ],
[ "APR", "group___s_t_l_u_x.h... |
export { default } from 'ember-mobile-bar/components/mobile-bar'; |
import { LionButtonReset } from './LionButtonReset.js';
/**
* @typedef {import('@lion/core').TemplateResult} TemplateResult
* @typedef {{lionButtons: Set<LionButtonSubmit>, helper:HTMLButtonElement, observer:MutationObserver}} HelperRegistration
*/
/** @type {WeakMap<HTMLFormElement, HelperRegistration>} */
const ... |
const { app, BrowserWindow } = require('electron')
const path = require('path')
function createWindow() {
const win = new BrowserWindow({
width: 1920,
height: 1080,
webPreferences: {
preload: path.join(__dirname, 'preload.js')
},
icon: path.join(__dirname, '/asse... |
// URL: https://beta.observablehq.com/@randomfractals/chicago-homicides-sunburst
// Title: Chicago Homicides Sunburst, 2001-2018
// Author: Taras Novak (@randomfractals)
// Version: 444
// Runtime version: 1
const m0 = {
id: "d0e1ec4b85f01a90@444",
variables: [
{
inputs: ["md"],
value: (function(md... |
/*global define*/
define([
'../../Core/Cartesian3',
'../../Core/defaultValue',
'../../Core/defineProperties',
'../../Core/DeveloperError',
'../../Core/Ellipsoid',
'../../Core/Extent',
'../../Core/Math',
'../../Core/Matrix4',
'../../Scene/Camera',
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.concatArgs = exports.seqEqual = void 0;
/**
* Check whether two sequences (e.g. Arrays of numbers) are equal.
*
* @param arr1 - One of the arrays to compare.
* @param arr2 - The other array to compare.
*/
function seqEqual(arr1, a... |
var thrift = require('thrift');
var Extension = require('./gen-nodejs/Extension.js');
var Types = require('./gen-nodejs/osquery_types.js');
var OK_STATUS = new Types.ExtensionStatus({ code: 0, message: 'OK' });
var Server = function(client, opts) {
this._plugins = opts.plugins || [];
this._info = new Type... |
const proffys = [
{
name: 'Diego Fernandes',
avatar: 'https://github.com/MarioDoncel.png',
whatsapp: 19996129909,
bio: `Entusiasta das melhores tecnologias e de mátematica avançada.<br><br> Apaixonado por explodir coisas em laboratório e por mudar a vida das pessoas através de experi... |
Package.describe({
name: "danialf:ng-file-upload",
"version": "12.0.1",
summary: "Lightweight Angular directive to upload files with optional FileAPI shim for cross browser support",
git: "https://github.com/danialfarid/ng-file-upload.git"
});
Package.onUse(function (api) {
api.use('angular:angular@1.2.0', '... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
const webpack = require('webpack')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const opts = require('./options')
const babel = require('./loaders/babel')
const css = require('./loaders/css')
const raw = require('./loaders/raw')
const ... |
(function(e){function r(r){for(var t,i,f=r[0],l=r[1],c=r[2],p=0,s=[];p<f.length;p++)i=f[p],o[i]&&s.push(o[i][0]),o[i]=0;for(t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t]);a&&a(r);while(s.length)s.shift()();return u.push.apply(u,c||[]),n()}function n(){for(var e,r=0;r<u.length;r++){for(var n=u[r],t=!0,f=1... |
import React from 'react'
import * as R from 'ramda'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
const notEmpty = R.compose(
R.not,
R.isEmpty
)
const notNil = R.compose(
R.not,
R.isNil
)
const noneNil = R.any(notNil)
const isValid = R.allPass([notNil, notEmpty, noneNil])
const Site... |
import React, { Component } from 'react'
import { observer } from 'mobx-react'
import { observable, computed } from 'mobx'
import { API, Button } from 'react-saasify'
import { TabPane } from 'components'
import styles from './styles.module.css'
@observer
export class HomeTabPane extends Component {
@observable
_... |
# -*- coding: utf-8 -*-
"""
Sub-command for Attributes.
In all cases ``data = ctx.params`` when calling the appropriate action method
on ``ctx.obj``. (e.g. ``ctx.obj.add(ctx.params)``)
Also, ``action = ctx.info_name`` *might* reliably contain the name of the
action function, but still not sure about that. If so, eve... |
var QTYPE = {
'1': 'Vertical2',
'2': 'Vertical2',
'3': 'Vertical',
'4': 'Horizontal',
'5': 'Grid2',
'6': 'Grid2',
'7': 'Vertical2',
'8': 'Vertical2',
'11': 'Vertical2',
'12': 'Vertical2',
'13': 'Vertical',
'14': 'Horizontal',
'15': 'Grid2',
'16': 'Grid2',
'17': 'Vertical2',
'18': 'Vertic... |
# Copyright 2018 The TensorFlow Authors. 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 applica... |
const User = require("../Database/User");
const Token = require("jsonwebtoken");
exports.Login = (UserLoginRequest) => {
return new Promise(async(resolve, reject) => {
await User.findOne({
userName: UserLoginRequest.userName,
password: UserLoginRequest.password,
... |
(this["webpackJsonpdsearch-console"]=this["webpackJsonpdsearch-console"]||[]).push([[1],{1466:function(e,t,r){"use strict";var o=r(6),n=r(22),a=r(1),l=r(0),i=(r(4),r(7)),c=r(9),s=r(211),d=r(13),u=l.forwardRef((function(e,t){var r=e.classes,n=e.className,c=e.disabled,u=void 0!==c&&c,f=e.disableFocusRipple,v=void 0!==f&&... |
define(['ash',], function (Ash) {
var GlobalSignals = {
// ui events
gameShownSignal: new Ash.Signals.Signal(),
tabChangedSignal: new Ash.Signals.Signal(),
calloutsGeneratedSignal: new Ash.Signals.Signal(),
popupOpenedSignal: new Ash.Signals.Signal()... |
import styled from "@emotion/styled"
import React from "react"
import tw from "twin.macro"
const ToC = ({ headings }) => (
<div style={contentBlockStyle}>
<Title>Contents</Title>
<InnerScroll>
{headings.map(heading => {
if (heading.depth > 4) {
return <div />
}
return... |
import React from 'react'
// import { Link } from 'gatsby'
const ColoredLine = ({ color }) => (
<hr
style={{
color: color,
backgroundColor: color,
height: 3,
margin: '0% 25% 0% 25%',
width: '50%'
}}
/>
);
const Footer = class extends React.Component {
... |
'use strict';
/**
* @ngdoc service
* @name electroCrudApp.viewsModel
* @description
* # viewsModel
* Service in the electroCrudApp.
*/
angular.module('electroCrudApp')
.service('viewsModel', ['db', function(db){
var table = "views";
return {
getList: function(project_id) {
return db.sele... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const ReactComponent = props => (react_1.default.crea... |
const express = require('express');
const bodyParser = require('body-parser');
const path = require('path');
const PORT = process.env.PORT || 8080;
const app = express();
const exphbs = require('express-handlebars');
const routes = require('./controllers/burgers_controller');
// app.use(express.static("public"));
a... |
describe("chorus.views.WorkspaceMemberList", function() {
beforeEach(function() {
this.view = new chorus.views.WorkspaceMemberList();
});
describe("when there are less than 24 members", function() {
beforeEach(function() {
this.workspace = rspecFixtures.workspace();
... |
"use strict";
exports.__esModule = true;
exports.JOURNAL_TYPES = void 0;
exports.JOURNAL_TYPES = [
'outbound',
'inbound',
'voice',
'replies',
];
|
import * as pdfjs from 'pdfjs-dist/es5/build/pdf';
import Document from './Document';
import Outline from './Outline';
import Page from './Page';
import { isLocalFileSystem, warnOnDev } from './shared/utils';
if (isLocalFileSystem) {
warnOnDev('You are running React-PDF from your local file system. PDF.js Worker ma... |
from article.models import ArticleAuthors
from functional_tests.base import Test
from functional_tests.data_setup import DataSetup
from functional_tests.factory import AuthorFactory
from functional_tests.factory import CategoryFactory
from functional_tests.factory import HomePageFactory
from functional_tests.factory im... |
class Tank {
attack() {
console.log(`Tank attacks for ${this.power()} damage!`)
}
power() {
return 3
}
}
const tanks = [
new Tank(),
new Tank(),
]
// On a single line, make all tanks attack for 7 instead of 3.
// PLACE YOUR CODE BELOW
Tank.prototype.power = ()=>{return 7};
// PLACE YOUR CODE ABOVE... |
from django.http import JsonResponse
from django.template.loader import render_to_string
from django.contrib.messages.views import SuccessMessageMixin
from django.urls import reverse_lazy
from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib import messages
fro... |
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from config import BaseConfig
db = SQLAlchemy()
def create_app() -> Flask:
app = Flask(__name__)
app.config.from_object(BaseConfig)
db.init_app(app)
# This is a local import to deal with circular dependencies with the "db"
from con... |
const research1 = {
date: '05-26-2021',
title: 'CDR Database',
summary:
'We have analyzed project proposals submitted to multiple carbon removal procurement programs. Explore our database of project reports and read our articles for takeaways and lessons learned.',
color: 'purple',
href: '/research/cdr-da... |
import FindVABenefitsIntro from '../components/FindVABenefitsIntro';
import Profile360Intro from '../components/Profile360Intro';
import PersonalizationBanner from '../components/PersonalizationBanner';
import VAPlusVetsModal from '../components/VAPlusVetsModal';
import WelcomeToNewVAModal from '../components/WelcomeTo... |