text stringlengths 3 1.05M |
|---|
from django import test
from django_google_maps.fields import typename
class TypeNameTests(test.TestCase):
def test_simple_type_returns_type_name_as_string(self):
self.assertEqual('str', typename("x"))
def test_class_object(self):
class X:
pass
self.assertEqual('type', ty... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.
//
// 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/li... |
import axios from "axios";
document.addEventListener("DOMContentLoaded", ()=>{
Dropzone.autoDiscover = false;
const dropzone= new Dropzone("div#dropzoneDocentes", {
url:'/docentes/imagenes',
dictDefaultMessage:'Sube tus imagenes aqui',
maxFiles:1,
acceptedFiles:".png,.... |
import { createStore , applyMiddleware } from 'redux'
import promiseMiddleware from 'redux-promise-middleware'
import reducers from './reducers'
const middleware = applyMiddleware(promiseMiddleware())
export default createStore(reducers, middleware)
|
import reduce from 'lodash/reduce';
import { GUIDES, CONTACT_US_PAGE_URL } from './constants';
import illustration from './assets/Nutanix.png';
export default class NutanixOnboardingCtrl {
/* @ngInject */
constructor($window, coreConfig) {
this.$window = $window;
this.coreConfig = coreConfig;
this.GUID... |
"""El odulo permite comunicarse con el exchange de Rabbit para escrbir un mensaje en queue1"""
import requests
def send_message(message):
"""Enviar el mensaje al api el publisher"""
#dentro de minikube
api_url = "http://10.107.229.105:80/publish/queue1/" + message
response = requests.post(api_url)
... |
import numpy as np
import pandas as pd
from pybedtools import BedTool
import random
def calc_gc(peaks,hg18_path):
"""calculate the GC content in peak set.
Parameters
----------
peaks : peak set
hg18_path : genome path
Returns
-------
np.mean(gc) : average GC content over all peaks
"""
peaks=BedTool(pea... |
import mongoose from 'mongoose';
import Handlebars from 'handlebars';
import logger from '../logs';
const { Schema } = mongoose;
const mongoSchema = new Schema({
name: {
type: String,
required: true,
unique: true,
},
subject: {
type: String,
required: true,
},
message: {
type: Strin... |
import React, { useEffect } from "react";
import { useState } from "react";
function IndividualTrouser({
id,
handleBuyNow,
history,
handleLarge,
handleSmall,
handleMedium,
isSmall,
isLarge,
isMedium,
quantity,
setQuantity,
trouserPrice,
setTrouserPrice,
}) {
const [indTrouser, setIndTrouse... |
/*************************** [bundle] ****************************/
// Original file:./src/Pages/course.paper
/*****************************************************************/
window.__etcpack__bundleSrc__['31']=function(){
var __etcpack__scope_bundle__={};
var __etcpack__scope_args__;
// 导入js
__et... |
import styled from "styled-components";
const Container = styled.a`
width: min(90%, 10rem);
align-items: center;
justify-content: center;
height: 3.5rem;
font-size: 1rem;
outline: none;
border: none;
color: var(--white);
font-weight: 600;
background: var(--section-subheading) 0% 0% no-repeat paddin... |
# -*- coding: utf-8 -*-
from __future__ import with_statement, unicode_literals
from ziggurat_foundations.models.services.group import GroupService
from ziggurat_foundations.models.services import BaseService
from ziggurat_foundations.tests import add_user, add_group, BaseTestCase
from ziggurat_foundations.tests.conft... |
/*
* contactable 1.5 - jQuery Ajax contact form
*
* Copyright (c) 2009 Philip Beel (http://www.theodin.co.uk/)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Revision: $Id: jquery.contactable.min.js ... |
#!/usr/bin/env node
const Ansi = require('./helpers/ansi');
const {execSync} = require('child_process');
const updateExamplesFromPreview = require('../maintenance/update-examples-from-preview');
const preCheckGitStatus = execSync('git status --porcelain').toString().trim();
if (preCheckGitStatus !== '') {
console.e... |
"""
Fit step for gross alignment and scale.
"""
from opencmiss.utils.zinc.field import assignFieldParameters, createFieldsDisplacementGradients
from opencmiss.utils.zinc.general import ChangeManager
from opencmiss.zinc.field import Field, FieldFindMeshLocation
from opencmiss.zinc.optimisation import Optimisation
from ... |
# -*- coding: utf-8 -*-
#
# ezyrb documentation build configuration file, created by
# sphinx-quickstart on Mon Jun 22 16:09:40 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... |
/**
* Created with JetBrains PhpStorm.
* User: xuheng
* Date: 12-8-8
* Time: 下午2:00
* To change this template use File | Settings | File Templates.
*/
var templates = [
{
"pre":"pre1.png",
'title':lang.blog,
'preHtml':`<h1 label="Title center" name="tc" style="border-bottom-color:#ccc... |
# coding: utf-8
#
# Copyright 2019 The Oppia 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 requi... |
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
/* Layout */
import Layout from '@/layout'
/* 项目提供的路由配置 官方文档 https://panjiachen.github.io/vue-element-admin-site/zh/guide/essentials/router-and-nav.html#配置项 */
/*
//当设置 true 的时候该路由不会再侧边栏出现 如401,login等页面,或者如一些编辑页面/edit/1
hidden: true // (默认 false)... |
# -*- coding: utf-8 -*-
import re
from bs4 import BeautifulSoup, element
from copy import copy
try:
# Python 2
from urlparse import parse_qs, urlsplit
except ImportError:
# Python 3
from urllib.parse import parse_qs, urlsplit
try:
# Python 2
unicode
except NameError:
# Python 3
unicod... |
var
HomeWindow;
function HomeWindow() {
var self = Ti.UI.createWindow({
backgroundColor : "#3b5998",
exitOnClose : true
});
return self;
}
module.exports = HomeWindow; |
"""Tests for :mod:`esmvalcore.iris_helpers`."""
import iris
import pytest
from esmvalcore.iris_helpers import var_name_constraint
@pytest.fixture
def cubes():
"""Test cubes."""
cubes = iris.cube.CubeList([
iris.cube.Cube(0.0, var_name='a', long_name='a'),
iris.cube.Cube(0.0, var_name='a', lon... |
/* eslint-disable max-len, no-undef */
import React from 'react'
import { mount } from 'enzyme'
import Slider from '../../../src/rc-slider/Slider'
import Range from '../../../src/rc-slider/Range'
describe('marks', () => {
let originGetBoundingClientRect
beforeAll(() => {
// Mock
originGetBoundingClientRect... |
/*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.9.6 - 2015-01-12T20:24:40.589Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: ... |
import PracticeListComponent from "../../components/practicelist/PracticeListComponent";
import { Tab, Tabs } from "react-bootstrap";
import "./StudentHomeStyles.css";
const StudentHomeView = () => {
return (
<div className="studentHomeBody">
<Tabs defaultActiveKey="tab1" id="tab" className="tab">
... |
const Intern = require("../lib/Intern");
describe("Intern class", () =>{
describe("Initialization", () => {
it("should create an object with a name, email, id, and school if provided valid arguments", () =>{
//Act
const intern = new Intern("Harry Potter", "hp@Hogwarts.edu", 4, "Hogw... |
/*! Mr. Green Jekyll Theme - v1.0.1 (https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme)
* Copyright (c) 2022 Mr. Green's Workshop https://www.MrGreensWorkshop.com
* Licensed under MIT
*/
/* when outside of top nav buttons is clicked, close it. */
(function () {
'use strict';
$(function () {
$(docum... |
module.exports = {
webpack: {
configure: {
output: {
filename: 'static/js/[name].js',
},
optimization: {
runtimeChunk: false,
splitChunks: {
chunks(chunk) {
return false
},
},
},
},
},
plugins: [
{
plugin: {
... |
/* global artifacts, contract, before, it, assert */
/* eslint-disable prefer-reflect */
const fs = require('fs');
const utils = require('../bancor/helpers/Utils');
const ContractRegistryClient = require('../bancor/helpers/ContractRegistryClient');
const BancorNetwork = artifacts.require('BancorNetwork');
const Banc... |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendor... |
# -*- coding: utf-8 -*-
# ======================================================================================================
# SLALOM - Open-Source Solar Cell Multivariate Optimizer
# Copyright(C) 2012-2019 Sidi OULD SAAD HAMADY (1,2,*), Nicolas FRESSENGEAS (1,2). All rights reserved.
# (1) Université de Lorr... |
"""
ImageMagickPolicy - files ``/etc/ImageMagick/policy.xml`` and ``/usr/lib*/ImageMagick-6.5.4/config/policy.xml``
===============================================================================================================
"""
from insights.core import XMLParser
from insights.core.plugins import parser
from insig... |
"""
Displays Info About Windows Portable Executables
"""
from yapsy.IPlugin import IPlugin
import pefile
class FaPefile(IPlugin):
def __init__(self):
self.display_name = 'PE File'
self.popularity = 7
self.category = 'executable'
self.cache = True
self.fast = False
... |
/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined... |
export { default, chanceCcType } from 'ember-chance/helpers/chance-cc-type';
|
import * as fs from "fs"
import { ShopStore } from "./ShopStore"
const testEnvironment = {
fetch: () => Promise.resolve(JSON.parse(fs.readFileSync("./public/books.json"))),
alert: m => console.log(m)
}
const testBook = {
id: "1",
price: 3,
author: "test",
name: "test",
sequence_i: 0,
g... |
//require('./../chat');
import moment from 'moment';
$(function () {
setTimeout(scro, 10);
let userId = $('#userId').val(),
addressee = $('#addressee').val(),
noError = true;
/// socket
let socket = io(":6001");
socket.on(`chat:message${addressee}`, function (data) {
cons... |
// 装配管理-续1
import Mock from 'mockjs'
const blogData = function() {
return Mock.mock({
'model|17': [{
number: 'D3351T2100520' + '@integer(0, 17)',
'name|1': ['右后舱门外应急撤离灯衬板', '左后舱门外应急撤离灯衬板', '左前舱门外应急撤离灯衬板', '右前舱门外应急撤离灯衬板', '升降舵34号拉杆组件',
'升降舵35号拉杆组件', '升降舵26号拉杆组件', '升降舵28号拉杆组件', '支座组件', '摇臂组件'],
... |
import React, { PropTypes } from 'react';
import injectSheet from 'react-jss';
import Button from 'react-mdl/lib/Button';
import { breakpoints, colors } from 'modules/common/styles';
import LabelWithBorder from 'modules/common/label/labelWithBorder';
import { formatPrice } from 'funong-common/lib/utils/displayUtils';
... |
const webpack = require('webpack');
const merge = require('webpack-merge');
const nodeExternals = require('webpack-node-externals');
const parts = require('./parts');
const paths = parts.paths;
const config = merge(
parts.commonConfig,
{
entry: [
'webpack/hot/poll?1000',
paths.server
],
o... |
var program = require( 'commander' )
, path = require( 'path' )
, pkg = require( path.join( __dirname, '..', 'package.json' ) );
program
.usage( '<command> [options]' )
.version( pkg.version );
program.on( '--help', function() {
console.log( ' Commands:' );
console.log( '' );
console.l... |
import { ARRAY_OF_DAYS_BY_FIRST_LETTER as days } from './constants';
const getFirstDayNumber = (first) => {
let number = 0; // sunday
if (first.toLowerCase() === 'monday') {
number = 1; // monday
}
return number;
};
const toEnd = (list, from, count) => {
list.push(...list.splice(from, count));
retur... |
"use strict"
const BOMChar = "\uFEFF"
exports.PrependBOM = class PrependBOMWrapper {
constructor(encoder) {
this.encoder = encoder
this.addBOM = true
}
write(str) {
if (this.addBOM) {
str = BOMChar + str
this.addBOM = false
}
return this.enc... |
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MrPlayer(object):
def setupUi(self, MrPlayer):
MrPlayer.setObjectName("MrPlayer")
MrPlayer.resize(730, 520)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizon... |
module.exports = function(app) {
app.get('/noticia', (req, res) => {
var connection = app.config.dbConnection();
var noticiasModels = app.app.models.noticiasModels();
noticiasModels.getNoticia(2, connection, function(error, result){
res.render("noticias/noticia",... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var mongoose_1 = require("mongoose");
var ExamSchemaDef = {
subject: String,
examDate: { type: Date, form: { size: 'small' } },
result: { type: String, enum: ['distinction', 'merit', 'pass', 'fail'] },
grader: { type: mongoose_... |
/**
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;r... |
# Copyright 2021 AI Redefined Inc. <dev+cogment@ai-r.com>
#
# 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 l... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{348:function(t,e,r){"use strict";r.r(e);var a=r(910),o=r(625);for(var n in o)"default"!==n&&function(t){r.d(e,t,(function(){return o[t]}))}(n);var s=r(16),i=Object(s.a)(o.default,a.a,a.b,!1,null,null,null);i.options.__file="src/components/courseCategory/edit.vue... |
import exportFromJSON from 'export-from-json';
const downloadCSV = ({ fileName, exportType, data }) =>
exportFromJSON({
data,
fileName,
exportType: exportType || 'csv',
withBOM: true,
});
export default downloadCSV;
|
from django.test import TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import Client
class AdminSiteTests(TestCase):
def setUp(self):
self.client = Client()
self.admin_user = get_user_model().objects.create_superuser(
email='ad... |
const evalTemplateString = require('./eval-template-string')
const p = require('barnard59')
const wellknown = require('wellknown')
const Transform = require('stream').Transform
function parseGeoJsonFeature (feature, subject, predicate) {
return p.rdf.quad(
p.rdf.namedNode(evalTemplateString(subject, feature.prop... |
import "./searchBar.css";
import searchBar from "./searchBar.html";
export default { title: "Components/searchBar" };
export const mysearchBar = () => searchBar;
|
# This file is a part of Arjuna
# Copyright 2015-2020 Rahul Verma
# Website: www.RahulVerma.net
# 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... |
/**
* @class draw2d.command.CommandAttr
*
*Command to change attributes of a shape with undo/redo support
*
* @inheritable
* @author Andreas Herz
*
* @extends draw2d.command.Command
*/
import draw2d from '../packages'
draw2d.command.CommandAttr = draw2d.command.Command.extend({
NAME: "draw2d.command.Command... |
import React from 'react';
import { Link } from 'react-router-dom';
import { t } from '@lingui/macro';
import { Host } from 'types';
import { CardBody } from 'components/Card';
import { Detail, DetailList, UserDateDetail } from 'components/DetailList';
import Sparkline from 'components/Sparkline';
import { VariablesDe... |
const ArgumentType = require('../../extension-support/argument-type');
const BlockType = require('../../extension-support/block-type');
const msg = require('./translation');
const formatMessage = require('format-message');
//async add estea
require('babel-polyfill');
//end
const menuIconURI = 'data:image/png;base64,iV... |
"use strict";
var log = require( './logger' );
var ScenicClient = require('../net/ScenicClient');
module.exports = {
/**
* Initialize
*
* @param config
* @param io
* @param switcherController
*/
initialize: function ( config, io, switcherController ) {
log.debug( "Initi... |
import { createGlobalStyle, css } from 'styled-components';
export default createGlobalStyle`
* {
margin: 0;
padding: 0;
outline: 0;
box-sizing: border-box;
}
body {
${({ theme }) => css`
background: ${theme.colors.darkGray};
-webkit-font-smoothing: antialiased;
`};
}
body... |
"use strict";
const { babelPresetFile } = require("@xarc/app-dev");
module.exports = {
presets: [babelPresetFile],
};
|
const Validator = require("validator");
const isEmpty = require("./is-empty");
module.exports = function validateRegisterInput(data) {
let errors = {};
data.name = !isEmpty(data.name) ? data.name : "";
data.email = !isEmpty(data.email) ? data.email : "";
data.password = !isEmpty(data.password) ? data.password ... |
"""
This code is copied and modified from this repository
https://github.com/keras-team/keras-applications
ResNet50 model for Keras.
# Modified from a model in https://github.com/fchollet/deep-learning-models
# Reference:
- [Deep Residual Learning for Image Recognition](https://arxiv.org/abs/1512.03385)
Adapted fro... |
import React, { useState } from "react";
import { Link as RouterLink } from "react-router-dom";
import {
AppBar,
Box,
IconButton,
Toolbar,
Typography,
Link,
makeStyles,
Hidden,
} from "@material-ui/core";
import { Menu as MenuIcon } from "@material-ui/icons";
import { WithUser } from "../api/Auth";
imp... |
(() => {
console.log("Initialize video controls plugin.")
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
if (message.name === "change-video-speed") {
const videoNode = document.querySelector('video')
if (videoNode) {
document.querySelector('video').playbackRate = m... |
function itemHasCurrentTag(item) {
var hasCurrentTag = false;
var currentTag = getCurrentTag();
if (currentTag != "") {
item.tags.forEach(tag => {
if (tag.name == currentTag) {
hasCurrentTag = true;
}
});
} else {
hasCurrentTag = true;
... |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-id-init-throws.case
// - src/dstr-binding/error/cls-decl-gen-meth-static.template
/*---
description: Error thrown when evaluating t... |
import React from 'react'
const Plans = (props) => {
return (
<div>This is Plans</div>
)
}
export default Plans
|
import React from 'react';
import PropTypes from 'prop-types';
import { NONE, DESCENDING, ASCENDING } from '../../../constants';
import ThSortable from './ThSortable';
export const toggleOrder = order => (order === ASCENDING ? DESCENDING : ASCENDING);
export const setOrder = ({ field, prevField, order, toggleOrderFn ... |
export default function createBufferActionsMiddleware(options = {}) {
const defaultOpts = {
startBuffered: false,
startBufferActionType: 'START_ACTION_BUFFER',
releaseBufferActionType: 'RELEASE_ACTION_BUFFER',
bufferedActionTypes: [],
};
const opts = Object.assign({}, defaultOpts, options);
con... |
'use strict'
const path = require('path')
const defaultSettings = require('./src/settings.js')
function resolve(dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title || '智慧监控管理平台' // page title
// If your port is set to 80,
// use administrator privileges to execute the command line.
// Fo... |
/**
* Copyright 2013-2017 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see http://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... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const read_file_relative_1 = require("read-file-relative");
const ASSETS_CACHE = {};
function loadAsset(filename, asBuffer) {
if (!ASSETS_CACHE[filename])
ASSETS_CACHE[filename] = read_file_relative_1.readSync(filename, asBuf... |
new (A, B), new (A || B), new (X ? A : B) |
// FormR = require( `${process.env.FORMR_HOME}/_3/FR.FNSs/FormR.fns.njs` ) //#.(10418.02.1).(10829.03.1)
var FormR = require( __dirname.replace( /[\\\/](_3|serv|clie).+/, '') + '/_3/FR.FNSs/FormR_Lib.js' ) // .(10829.03.1)
FormR.init( __dirname, __filename ); ... |
/* **************************************************************************
SigCaptX-Wizard-PadDisp2.js
This file contains the objects definitions and methods for the second screen of the wizard sequence.
Copyright (c) 2021 Wacom Co. Ltd. All rights reserved.
v4.0
***********************... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { DigitalTwinsClient } from "@azure/digital-twins-core";
import { DefaultHttpClient } from "@azure/core-http";
import { BatchService } from "./BatchService";
import { configService } from "./ConfigService";
import { REL_TYPE_ALL, REL_TYP... |
/**
* Kendo UI v2021.1.224 (http://www.telerik.com/kendo-ui)
* Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
const fs = require('fs')
, path = require('path');
function ensureDirectoryExists (filePath) {
const dirname = path.dirname(filePath);
if (fs.existsSync(dirname))
return true;
ensureDirectoryExists(dirname);
fs.mkdirSync(dirname);
}
module.exports = ensureDirectoryExists;
|
function fillCustomer() {
$.ajax({
url: "/api/customers",
method: "GET",
dataType: "json",
header: { token: window.localStorage["token"] },
success: (res) => {
var data = res.data.data;
var content = "";
for (var i = 0; i < data.length; i++... |
// NTSC NES resolution: 256x224 -> 512x448
const LEVEL_COLORS = [
['#4A32FF', '#4AAFFE'],
['#009600', '#6ADC00'],
['#B000D4', '#FF56FF'],
['#4A32FF', '#00E900'],
['#C8007F', '#00E678'],
['#00E678', '#968DFF'],
['#C41E0E', '#666666'],
['#8200FF', '#780041'],
['#4A32FF', '#C41E0E'],
['#C41E0E', '#F69B00'],
];
... |
(self.webpackChunkdocusaurus_template=self.webpackChunkdocusaurus_template||[]).push([[64248],{76910:function(e,n,t){"use strict";t.d(n,{w:function(){return a},T:function(){return o}});var a={browser:{label:"Browser UI",image:t(69885).Z,alt:"User Login HTML Form with validation errors"},missing:{label:"Missing Email",l... |
module.exports = {
__init__: [ 'overlays' ],
overlays: [ 'type', require('./Overlays') ]
}; |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.11/esri/copyright.txt for details.
//>>built
define("require exports ../../../core/unitUtils ../../../core/libs/gl-matrix-2/vec3 ../../../core/libs/gl-matrix-2/vec3f64 ../support/earthUtils ../support/mathUti... |
# -*- test-case-name: twisted.conch.test.test_ssh -*-
# Copyright (c) 2001-2007 Twisted Matrix Laboratories.
# See LICENSE for details.
import struct
try:
import Crypto.Cipher.DES3
except ImportError:
Crypto = None
try:
import pyasn1
except ImportError:
pyasn1 = None
from twisted.conch.ssh import co... |
/* http://keith-wood.name/svg.html
jQuery DOM compatibility for jQuery SVG v1.4.5.
Written by Keith Wood (kbwood{at}iinet.com.au) April 2009.
Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and
MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) license... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["i18n/zh-hk"],{cb46:function(e){e.exports=JSON.parse('{"weekDays":["星期一","星期二","星期三","星期四","星期五","星期六","星期日"],"weekDaysShort":["一","二","三","四","五","六","日"],"months":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"years":"年","year":"本年","month":... |
from os import environ
from sanic import Sanic
from gino.ext.sanic import Gino
from sanic_limiter import Limiter, get_remote_address
from utils import env_str
from config.stage import logger
def sanic_config_manager(app: Sanic, prefix: str = "SANIC_"):
for variable, value in environ.items():
if variable... |
# -*- coding: utf-8 -*-
from dp_tornado.engine.controller import Controller as dpController
class ErrorController(dpController):
pass
|
import { svg } from 'lit';
export const file = svg`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M15.5 6.937A6.997 6.997 0 0 1 19 13v8h-4.17a3.001 3.001 0 0 1-5.66 0H5v-8a6.997 6.997 0 0 1 3.5-6.063A3.974 3.974 0 0 1 8.125 6H5V4h3.126... |
/**
* Create, import, and export ethereum keys.
* @author Jack Peterson (jack@tinybike.net)
*/
"use strict";
var isBrowser = typeof process === "undefined" || !process.nextTick || Boolean(process.browser);
var sjcl = require("sjcl");
var uuid = require("uuid");
var secp256k1 = require("secp256k1/elliptic");
var c... |
module.exports = {
// 注册 stylelint 的 prettier 插件
plugins: ['stylelint-prettier'],
// 继承一系列规则集合
extends: [
// standard 规则集合
'stylelint-config-standard',
// standard 规则集合的 scss 版本
'stylelint-config-standard-scss',
// 样式属性顺序规则
'stylelint-config-recess-order',
// 接入 Prettier 规则
'styl... |
const strip = require(`strip-ansi`)
/**
* Split a string into shorter chunck
*
* @param {string} str The string to split
* @param {number} maxLength The max length of each chunck
* @return {Array} All the chuncks
*/
function limitStringLength (str, maxLength) {
const rgx = new RegExp(`.{0,${maxLength - 2}}(?:$... |
# coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... |
var ld = require('lodash')
var d3 = require('d3');
quartile_utils = {
datasetToRows: function(dataset, columns, nameColumn) {
var rows = ld.map(dataset.toJSON(), function(rowobj) {
var columnValues = ld.map(columns, function(col) { return rowobj[col]; })
return {
... |
import asyncio
from typing import Tuple, Dict, Union, Any, List
from functools import lru_cache
from aiohttp import ClientSession
from core.plugins import Plugin, register_plugin
URL = "https://cli.fyi/{}"
@lru_cache
async def fetch(
url: str, session: ClientSession, response_type="json"
) -> Dict[str, Union[Di... |
// Copyright 2018 FOCUS Inc.All Rights Reserved.
/**
* @fileOverview summers-ice
* @author oneroundseven@gmail.com
*/
const debugPlug = require('debug');
const summerUtil = require('summers-util');
let logger;
const warn = debugPlug('SUMMER-ICE:Warning');
warn.color = 3;
const info = debugPlug('SUMMER-ICE:Info');... |
module.exports={A:{A:{"8":"I D F E A B nB"},B:{"1":"C O H P J K L Z MB M N S T U ZB W"},C:{"1":"0 1 2 3 4 5 6 7 8 9 l m n o p q r s t u v w x y z AB BB CB DB EB FB GB RB IB JB KB LB R NB OB PB HB Y X WB SB TB UB VB QB Z MB M mB N S T U","4":"j k","8":"lB cB G a I D F E A B C O H P J K L b c d e f g h i uB xB"},D:{"1":"... |
var _ = require('lodash');
var properties = require('./properties');
var states = {
boot: require('./states/boot.js'),
preloader: require('./states/preloader.js'),
mainTitle: require('./states/mainTitle.js'),
game: require('./states/game.js'),
level2: require('./states/level2.js'),
level3: require('./state... |
;(function () {
"use strict";
var glowscript = { version: "2.7" }
// GlowScript uses lots of javascript properties (Object.defineProperty) with getters and setters
// This is an attempt to create a more declarative syntax for declaring an object with lots of properties
// This file also exports a... |
// Copyright (c) 2012 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.
/**
* @fileoverview
* Class handling creation and teardown of a remoting host session.
*
* This abstracts a <embed> element and controls the plugi... |