text stringlengths 3 1.05M |
|---|
const router = require('express').Router();
const mongoose = require('mongoose');
const log4js = require('log4js');
const swaggerParser = require('swagger-parser');
const async = require('async');
const _ = require('lodash');
const { flatten } = require('@appveen/utils/objectUtils');
const config = require('../../conf... |
import React from 'react';
import { grommet, Box, Grommet, Spinner, Text } from 'grommet';
export var Size = function Size() {
return /*#__PURE__*/React.createElement(Grommet, {
theme: grommet,
full: true
}, ['xsmall', 'small', 'medium', 'large', 'xlarge'].map(function (size) {
return /*#__PURE__*/React... |
# Copyright (C) 2021 Open Source Robotics Foundation
# 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 applicable law or a... |
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Hpx5(AutotoolsPackage):
"""The HPX-5 Runtime System. HPX-5 (High Performance ParalleX) is... |
import React, { Component } from 'react';
import './App.css';
import Header from './components/header';
import TodoInput from './components/todoInput';
import TodoItem from './components/todoItem';
class App extends Component {
constructor(props) {
super(props);
this.state = {
todos: [
{id: 0, ... |
module.exports = ({ env }) => ({
defaultConnection: 'default',
connections: {
default: {
connector: 'bookshelf',
settings: {
client: 'mysql',
host: env('DATABASE_HOST', '127.0.0.1'),
port: env.int('DATABASE_PORT', 3306),
database: env('DATABASE_NAME', 'bienesraices'),... |
const { getDB } = require('../../db/db.js');
module.exports = async (req, res) => {
try {
const db = getDB();
const deviceUID = req.params.uid;
const device = await db.Devices.find({
where: { UID: deviceUID }
});
if (!device) {
return res.status(404).send();
}
const allowed... |
import templateUrl from './slider.view';
function controller() {
};
const COMPONENT_NAME = 'slider';
const component = {
transclude: true,
templateUrl,
controller,
bindings: {
icon: '<',
label: '<',
range: '<',
value: '=',
}
};
export { COMPONENT_NAME, component }... |
from collections import OrderedDict
class LastProducts:
def __init__(self, max_number_of_products: int = 3) -> None:
self.max_number_of_products = max_number_of_products
self.products: OrderedDict[str, str] = OrderedDict()
def add_watched_product(self, product_name: str, product_category: st... |
/*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("charts-base",function(e,t){function f(){}function l(t){return t.type!=="pie"?new e.CartesianChart(t):new e.PieChart(t)}var n=e.config,r=n.win,i=n.doc,s=e.Lang,o=s.isS... |
# -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
import time
import logging
logging.Logger.manager.emittedNoHandlerWarning = 1
from logging.config import fileConfig
import os
import socket
import sys
import traceback
from gunicorn import ut... |
#!/usr/bin/python3
"""
Compare two gedcom trees.
Arguments: tree1file person1xref tree2file person2xref
A person (child,partnermparent) which gets added in tree2 is not deteched,
in order to do that run the program again reversing the order of the trees.
This code is released under the MIT License: https://opens... |
var app = angular.module('app', ['ngAnimate', 'ngSanitize', 'ui.bootstrap']);
app.controller('ctrl', ['$scope', function($scope) {
$scope.dt = new Date();
$scope.today = function() {
$scope.dt = new Date();
}
$scope.options = {
minDate: new Date(),
showWeeks: true
... |
// DecentCMS (c) 2014 Bertrand Le Roy, under MIT. See LICENSE.txt for licensing details.
'use strict';
var expect = require('chai').expect;
var proxyquire = require('proxyquire');
var Shell = function() {};
var path = require('path');
describe('file-resolution', function() {
it('resolves paths to existing files, and... |
import * as Sentry from '@sentry/browser'
import { message, Typography } from 'antd'
import config from '../../config'
import util from '../../util'
import React from 'react'
import { handleAddressError } from '../../handler'
import BN from 'bn.js'
const { Text, Link } = Typography
export default {
buildHelpers: ({ ... |
(function() {
NProgress.configure({
minimum: 0.5,
showSpinner: true
});
$(document).ready(function() { NProgress.start(); });
$(window).load(function() { NProgress.done();} );
})(); |
from flask import render_template
from . import main
@main.app_errorhandler(404)
def four_Ow_four(error):
'''
Function to render the 404 error page
'''
return render_template('fooOowFoo.html'),404 |
/*
Implements the DOMTokenList interface
https://dom.spec.whatwg.org/#interface-domtokenlist
Inspired by
https://github.com/bkardell/tokenListFor/blob/master/_tokenListFor.js
https://github.com/jwilsson/domtokenlist/blob/master/src/DOMTokenList.js
*/
/*global Symbol, Proxy */
// https://encoding.spec.... |
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 applicable law or... |
const Discord = require("discord.js");
const client = new Discord.Client();
const bot = client;
const Prefix = "g!";
const prefix = Prefix;
const fs = require("fs-extra");
let cookie = JSON.parse(fs.readFileSync("./cookie.json", "utf8"));
var dispatcher;
function sendError(message, description) {
message... |
# Generated by Django 3.1.3 on 2020-11-23 23:22
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Car',
fields=[
('id', model... |
const Discord = require('discord.js');
exports.run = (client, message, args) => {
let guild = message.guild;
guild.fetchBans()
.then(bans => message.channel.send(` > <a:BanHammer:816607111898857482> **Sunucunuzda ${bans.size} banlanmış üye bulunmaktadır!** `))
.catch(console.error);
}
export... |
#! /usr/bin/env python3
import matplotlib
matplotlib.use('agg')
import sys
import matplotlib.pyplot as plt
import re
from matplotlib.lines import Line2D
#
# First, use
# ./postprocessing.py > postprocessing_output.txt
# to generate the .txt file
#
fig, ax = plt.subplots(figsize=(8,5))
#fig, ax = plt.subplots(figs... |
// const {IgnorePlugin} = require('webpack')
module.exports = {
style: {
postcss: {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
},
},
}
|
from django.contrib import admin
from .models import Member, Track, Album, Leader, Gallery, Event, EventGoer
# Register your models here.
@admin.register(Member)
class MemberAdmin(admin.ModelAdmin):
list_filter = ('church','note','residence','age')
list_display = ('name', 'age','church', 'note', 'residence')
... |
var path = require('path');
var fs = require('fs');
module.exports = {
'init': function(browser) {
browser
.url('file://' + path.join(__dirname, 'index.html'))
.waitForElementVisible('body', 1000)
.assert.value('input', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFoCAYAAAB65WHVAAAPyklE... |
var codiceLang = {
confirmCancel: "Czy na pewno odwołać?",
confirmDelete: "Czy na pewno skasować?",
confirmEmailChange: "Zmiana adresu email wpłynie na dane, którymi logujesz się do Codice i to, gdzie otrzymasz powiadomienia o zadaniach. Potwierdzasz zmianę?",
confirmUninstall: "Czy na pewno odinstalowa... |
'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
chalk = require('chalk'),
glob = require('glob'),
path = require('path');
/**
* Get files by glob patterns
*/
var getGlobbedPaths = function(globPatterns, excludes) {
// URL paths regex
var urlRegex = new RegExp('^(?:[a-z]+... |
// ================================================================================
// * ElementManager <SDUDOC Engine>
// --------------------------------------------------------------------------------
// Designer: Lagomoro <Yongrui Wang>
// From: SDU <Shandong University>
// License: MIT license
// -----------... |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import cv2
import numpy as np
from progress.bar import Bar
import time
import torch
from models.decode import ddd_decode
from models.utils import flip_tensor
from utils.image import get_affine_transform
from ... |
# Generated by Django 3.2.12 on 2022-04-28 08:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0213_discount_condition_ignore_voucher_discounted'),
]
operations = [
migrations.AddField(
model_name='customer',... |
#########################################################################
## Define your tables below; for example
##
## >>> db.define_table('mytable',Field('myfield','string'))
##
## Fields can be 'string','text','password','integer','double','boolean'
## 'date','time','datetime','blob','upload', 'reference TABL... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4cd8d6a0"],{5517:function(t,e,a){},a26d:function(t,e,a){"use strict";var n=a("5517"),r=a.n(n);r.a},ba3d:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("breadcrumb",{attrs:{data:t.bread... |
'use strict'
const merge = require('webpack-merge')
const devEnv = require('./dev.env')
module.exports = merge(devEnv, {
NODE_ENV: '"testing"',
GLOBAl: {
serverDomain: 'http://192.168.96.15:3054/guard'
}
})
|
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var DocCommentHighlightRules = ... |
import "core-js/modules/es.symbol";
import "core-js/modules/es.symbol.description";
import "core-js/modules/es.symbol.iterator";
import "core-js/modules/es.array.iterator";
import "core-js/modules/es.object.get-prototype-of";
import "core-js/modules/es.object.set-prototype-of";
import "core-js/modules/es.object.to-stri... |
import sys
#sys.path.insert(0,"/Users/acoles/Documents/PolyglotDB-master-3")
#sys.path.insert(0, "/Users/mlml/Documents/GitHub/PolyglotDB")
sys.path.insert(0, "/users/mlml/Documents/transfer/PolyglotDB-master-3")
import os
import time
import logging
import polyglotdb.io as pgio
from polyglotdb import CorpusContext
fr... |
'''Desenvolva um programa que leia o comprimento de três retas e diga ao usuário se elas podem ou não formar um triângulo.'''
a = float(input('Digite o valor da reta a: '))
b = float(input('Digite o valor da reta b: '))
c = float(input('Digite o valor da reta c: '))
if (a + b) > c and (a + c) > b and (b + c) > a:
p... |
var o = { x: 3, setX : function(y) { this.x = y; },
getX : function() { return this.x; } };
o.setX(19);
printInt(o.getX());
|
const path = require('path');
const webpack = require('webpack');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
entry: {
main: 'src/portal.js',... |
"""
uses R for statistics and graphics
"""
import os.path as op
import os
import sys
from string import Template
from jcvi.formats.base import must_open
from jcvi.apps.base import OptionParser, ActionDispatcher, sh
class RTemplate(object):
"""
Creates a R script and runs it
"""
def __init__(self, ... |
//Command: Dolphin
var global = {}; //Required
global.numPoints = 512; //Default //TODO: min:64 max:8192
global.cx;
global.cy;
global.sx = 0.04; //Default
global.sy = 0.04; //Default
global.numPoints;
global.mode;
//enums
global.mode_NUM_POINTS = 0;
global.mode_XSCALE = 1;
global.mode_YSCALE = 2;
//NOTE: mai... |
import sys
import torch
import torch.nn.functional as F
import onir
from onir import trainers, spec, util
@trainers.register('pairwise')
class PairwiseTrainer(trainers.Trainer):
@staticmethod
def default_config():
result = trainers.Trainer.default_config()
result.update({
'lossfn':... |
var classproton_1_1receiver =
[
[ "flow", "classproton_1_1receiver.html#ae1f55918650ead2aa2cbcbd86de84864", null ]
]; |
import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import classnames from 'classnames';
import {
getDiscussions,
getPinnedDiscussions,
updateSortingMethod,
} from './actions';
import NewDiscussionButton fro... |
import urllib.request
import random
from bs4 import BeautifulSoup
from requests import get
import mysql.connector
conn = mysql.connector.connect(user="root", passwd="",host="localhost", database="product")
cursor = conn.cursor()
sql = """INSERT INTO drymoistd (about, rate, top, comment, dari) VALUES (%s, %s, %s, %s,... |
import React from 'react';
export default function DayOfWeek() {
return (
<thead>
<tr>
<th scope="col" className="rainbow-calendar_header-days">
<abbr title="Sunday">Sun</abbr>
</th>
<th scope="col" className="rainbow-calendar_... |
"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator... |
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'@vue/standard',
],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'producti... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.buildLinkPathDefinition = buildLinkPathDefinition;
var _link = require("./link.const");
var _RADIUS_STRATEGIES;
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, { value:... |
let linked = true;
function toggleLink() {
let link = document.getElementById('link-icon');
if (link.className == 'fas fa-link') {
linked = false;
link.className = 'fas fa-unlink';
}
else if (link.className == 'fas fa-unlink') {
linked = true;
link.className = 'fas fa-li... |
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}
function _getPrototypeOf(o) {
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
return o.__proto__ ||... |
module.exports = {
outputDir: '../server/core/templates',
assetsDir: 'static',
devServer: {
host: '0.0.0.0',
hot: true,
proxy: {
'/api/*': {
target: 'http://localhost:5000',
changeOrigin: true,
secure: false
},
}
},
css: {
sourceMap: true
}
} |
//Code adapted from Laurens Aarnoudse
//Checks if property exists and if not generates it and puts 1 in it
export function transformData(data){
const selectedData = data.map(item => {
return {
areamanagerid: item.areamanagerid,
areageometryastext: getPropIfExists(item, 'areageometryastext')
}
})
r... |
window.DependencyLoader.push(['Base'], function() {
/**
* BaseAccessor
*
* @extends Base
*/
window.BaseAccessor = Base.extend({
/**
* _model
*
* Reference to the model responsible for CRUD operations on the
* accessor.
*
* @a... |
// Copyright (c) Microsoft. All rights reserved.
import moment from 'moment';
import lang from '../../common/lang';
import { EMPTY_FIELD_VAL, DEFAULT_TIME_FORMAT, gridValueFormatters } from '../pcsGrid/pcsGridConfig';
const { checkForEmpty } = gridValueFormatters;
export const DEFAULT_SYSTEM_GRID_PAGE_SIZE = 6;
con... |
import numpy as np
def yield_rgb_augmentation(elem):
# elem is of size N x N x C where C is either 4
# possible permutations are rgb, rbg, grb, gbr, brg, bgr
elem_rgb = elem
elem_rbg = elem[:, :, [0,2,1,4]]
elem_grb = elem[:, :, [1,0,2,4]]
elem_gbr = elem[:, :, [1,2,0,4]]
elem_brg = elem[:... |
import Modal from "react-modal";
import SliceMachineModal from "@components/SliceMachineModal";
import deepMerge from "deepmerge";
import { Box, Close, Flex, Button, useThemeUI } from "theme-ui";
import * as yup from "yup";
import * as Widgets from "@lib/models/common/widgets/withGroup";
import { createInitialValues... |
'use strict';
debugger;
// require built-in dependencies
const fs = require('fs');
const path = require('path');
// require local dependencies
const labeledLogger = require('../../labeled-logger');
// --- main script ---
const log = labeledLogger(Date.now());
const sourceFile = path.join(__dirname, process.argv[2]);... |
var assertArgs = require('assert-args')
var debug = require('debug')('rethinkdb-validator-stream:query-type-is')
var equals = require('101/equals')
var protoDef = require('rethinkdb/proto-def')
module.exports = queryTypeIs
function queryTypeIs (type /*, ...keys */) {
var args = assertArgs(arguments, {
'type': '... |
"use strict";
var Brain, inherit_utils, utils;
utils = require("./utils");
inherit_utils = require("./inheritance");
Brain = (function() {
function Brain(master) {
this.master = master;
this.strict = master._strict;
this.utf8 = master._utf8;
this._currentUser = null;
}
Brain.prototype.say = fu... |
MWF.APPPD = MWF.xApplication.portal.PageDesigner;
MWF.APPPD.options = {
"multitask": true,
"executable": false
};
//MWF.xDesktop.requireApp("portal.PortalManager", "Actions.RestActions", null, false);
MWF.xDesktop.requireApp("portal.PageDesigner", "Module.Package", null, false);
//MWF.xDesktop.requireApp("portal.Page... |
/**
* Copyright 2015 The AMP HTML 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 require... |
$(document).ready(function () {
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
$('#spinnertop').toggleClass('spinner-top');
$('#spinnermiddle').toggleClass('spinner-middle');
$('#spinnerbottom').toggleClass('spinner-bottom');
});
$('#sid... |
const crypto = require('crypto');
const deburr = require('lodash/deburr');
const pick = require('lodash/pick');
const leven = require('leven');
const normalizeString = (string) => (
deburr(string) // remove diacritical marks
.replace(/\W+/g, ' ') // keep only alphanumeric chars
.toLowerCase()
// .split(' '... |
var Base64 = {
// private property
_keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
// public method for encoding
encode: function(input) {
var output = "";
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
var i = 0;
input = Base64._utf8_encod... |
/*
* Copyright © 2016 I.B.M. 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 applicable law... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { DEFAULT_INTERPOLATION_CONFIG, DomElementSchemaRegistry, Lexer, Parser } from '../compiler';
import * as o fr... |
var PersonList = /** @class */ (function () {
function PersonList(list) {
this.personList = list;
}
PersonList.prototype.getPersonByIdCard = function (idCard) {
var index = this.personList.findIndex(function (a) { return a.idCard === idCard; });
if (index === -1) {
return... |
import time
from pathlib import Path
from unittest.mock import MagicMock
import pytest
from fastapi.testclient import TestClient
from ...utils import needs_py37
openapi_schema = {
"openapi": "3.0.2",
"info": {"title": "FastAPI", "version": "0.1.0"},
"paths": {
"/users/": {
"get": {
... |
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
__version__ = '1.54.72'
# -----------------------------------------------------------------------------
import asyncio
import concurrent.futures
import socket
import certifi
import aiohttp
import ssl
import sys
i... |
const {EOL} = require('os');
const {basename} = require('path');
const {Observable} = require('rxjs');
const ora = require('ora');
const _ = require('lodash');
const {branch$, latestTag$} = require('./git');
const ISSUE_REGEX = /\d+-[A-Z]+(?!-?[a-zA-Z]{1,10})/g;
exports.spinner = ora('Loading...');
exports.multiByte... |
""" Module containing classes and routines for the GUI interface
"""
import tempfile
import signal
import subprocess
import os
import argparse
import logging
from typing import TYPE_CHECKING
import ipywidgets as widgets
import jupytext
from ipywidgets import (
HBox,
Label,
VBox,
Text,
Output,
C... |
import React from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import {Link} from 'react-router-dom'
import {logout} from '../store'
import AllDoctors from './AllDoctors';
import UserHome from './user-home';
import Footer from './footer';
const Navbar = ({ handleClick, isLoggedIn, ch... |
import React from 'react';
import { Menu } from 'antd';
import StyledLink from './GhostLink';
// Wrap `Menu.Item` from AntD in a `Link` from react-router-dom
// We can just toss in a "to" attribute to MenuItem
// and it will look like an AntD Menu.Item but act like a Link
const MenuItemLink = ({ key, to, icon, handleC... |
import {positionsAPI} from "../_api/positionsAPI";
const SET_POSITIONS = "SET_POSITIONS";
export const setPositions = (positions) => ({type: SET_POSITIONS, payload: positions});
export const getPositions = () => {
return (dispatch) => {
positionsAPI.fetchAllPositions().then(result => {
let pos... |
/*
* This file is part of the Konsserto package.
*
* (c) Jessym Reziga <jessym@konsserto.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var Controller;
Controller = (function() {
function Controller() {
return this;
... |
/*
* Kendo UI Complete v2013.1.319 (http://kendoui.com)
* Copyright 2013 Telerik AD. All rights reserved.
*
* Kendo UI Complete commercial licenses may be obtained at
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx
* If you do not own a commercial license, this file shall be gover... |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# --------------------------------------------------------------------------------------------
import math
import numpy as np
imp... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const workoutSchema = new Schema ({
day: {
type:Date,
default:Date.now,
},
exercises: [
{
type:{
type:String,
trim:true,
required:'enter exercise',
... |
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import FontAwesome from 'react-fontawesome'
import Track from './Track'
import ContextMenuTrigger from './ContextMenuTrigger'
import * as helpers from '../helpers'
import * as mopidyActions from ... |
from conans import ConanFile, tools
class MinAPI(ConanFile):
name = "min-api"
license = "MIT"
url = "https://github.com/Cycling74/min-api"
description = "Support files for compiling a MAX external object written in C++ using a high-level declarative application programming interface"
def set_versi... |
module.exports = {
displayName: 'imng-kendo-grid-filtering',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
},
coverageDirectory: '../..... |
/*
Copyright © 2001-2004 World Wide Web Consortium,
(Massachusetts Institute of Technology, European Research Consortium
for Informatics and Mathematics, Keio University). All
Rights Reserved. This work is distributed under the W3C® Software License [1] in the
hope that it will be useful, but WITHOUT ANY WARRANT... |
import Timer from "./timer";
import Mutex from "./Mutex";
import _sanitizeHTML from "sanitize-html";
import ecc from "eosjs-ecc";
import {
v4 as uuidv4,
version as uuidVersion,
validate as uuidValidate
} from 'uuid';
const mentionRegex = /^[0-9A-Za-z_]*$/i;
function generateUUID() {
return uuidv4();
... |
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class UsersConfig(AppConfig):
name = "shop_thienhi.users"
verbose_name = _("Users")
def ready(self):
try:
import shop_thienhi.users.signals # noqa F401
except ImportError:
pas... |
import styled from 'styled-components';
const FooterContainer = styled.footer`
grid-row: 3;
bottom: 0;
display: flex;
position: sticky;
margin-top: 0.3rem;
@media (min-width: 768px) {
display: none;
}
`;
export default FooterContainer;
|
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])... |
# 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 not u... |
/* Tabulator v4.4.1 (c) Oliver Folkerd */
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ajax=function(e){this.table=e,this.config=!1,this.url="",this.ur... |
import React from 'react';
import Link from '@material-ui/core/Link';
import { makeStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableHead from '@material-ui/core/Tab... |
import { updateSquares } from "../utils/formulas";
function squareClicked(state, position) {
if (state.gameState.currentCount === state.gameState.maxMoves) {
return { ...state }
}
let squares = state.gameState.squares;
let currentCount = state.gameState.currentCount;
let oldColor = squares[0].color;
... |
# Copyright 2021 The NetKet 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 applicable ... |
import { whiteColor, grayColor } from "../material-kit-react.js";
const modalStyle = theme => ({
modalRoot: {
overflow: "auto",
display: "block"
},
modal: {
[theme.breakpoints.up("sm")]: {
maxWidth: "500px",
margin: "auto"
},
borderRadius: "6px",
overflow: "visible",
maxHe... |
import { axios } from '@/utils/request'
/**
* login func
* parameter: {
* page_count_number: '',
* page_number: '',
* remember_me: true,
* captcha: '12345'
* }
* @param parameter
* @returns {*}
*/
// 获取媒体列表
export function mediaList (parameter) {
return axios({
url: '/media',
method... |
define(function(require) {
'use strict';
var app = require('../app');
require('swiper');
app.controller('bodyCtrl', ['$scope', '$modal', '$alert','$rootScope', function($scope, $modal, $alert,$rootScope) {
$rootScope.menu.menu_type = 1;
$rootScope.menu.menu_index = 1;
var _kit =... |
const Matrix = require('../..');
const { SIZE_INCOMPATIBLE } = require('../../Error');
describe('should get correct difference of two matrices', () => {
const tests = [
{
matrix1: [
[1, 2],
[3, 4],
],
matrix2: [
[4, 3],
[2, 1],
],
expected: [
... |
define(["./when-229515d6","./Transforms-9cbc873c","./Matrix2-f2da41d4","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./GeometryAttribute-a2983cc1","./GeometryAttributes-b253752a","./combine-8ce3f24b","./WebGLConstants-4e26b85a"],(function(e,t,n,r,i,a,o,u,c){"use strict";function y(){this._workerName="create... |
$('#registrar').on('click',function(e){
e.preventDefault();
var form = $(this).parents('form');
var caract = new RegExp(/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/);
var email = document.getElementById("txtcorreo").value;
if ($("#txtnombre").val() &&
$("#txtempresa").val() &&
... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... |