text
stringlengths
3
1.05M
import { combineReducers } from "redux"; import calculator from "./calculator"; export default combineReducers({ calculator });
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import GridList from '@material-ui/core/GridList'; import GridListTile from '@material-ui/core/GridListTile'; import GridListTileBar from '@material-ui/core/GridListTileBar'; import Modal from '@material-ui/core/Modal'; import ChevronLeft...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import {BrowserRouter as Router} from 'react-router-dom' import {MuiPickersUtilsProvider} from '@material-ui/pickers'; import DateFnsUtils from '@date-io/date-fns'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( ...
# Create a dictionary of accounts to make deletion easier to manage from Account import * accountsDict = {} nextAccountNumber = 0 # Create two accounts oAccount = Account("Ryan", 100, "ryanpassword") ryansAccountNumber = nextAccountNumber accountsDict[ryansAccountNumber] = oAccount nextAccountNumber += 1 oAccount ...
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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...
export default vm => [ { attrs: { prop: 'name', minWidth: '200', 'show-overflow-tooltip': true, label: '名称' }, render: (h, scope) => { let childNode = [h('span', {}, scope.row.name)]; return h('span', {}, childNode); } }, { prop: 'code', minWidth: '120',...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Waitress { constructor(validator, timeoutFormatter) { this.waiters = new Map(); this.timeoutFormatter = timeoutFormatter; this.validator = validator; this.currentID = 0; } resolve(payload) { ...
import pandas as pd from backlight.labelizer.common import Label from backlight.labelizer.common import TernaryDirection as TD from backlight.signal.signal import Signal def _r(a: int, b: int) -> float: return a / b if b != 0 else 0 def calc_ternary_metrics(sig: Signal, lbl: Label) -> pd.DataFrame: """Comp...
var reactComponentSymbol = Symbol.for("r2wc.reactComponent"); var renderSymbol = Symbol.for("r2wc.reactRender"); var shouldRenderSymbol = Symbol.for("r2wc.shouldRender"); var define = { // Creates a getter/setter that re-renders everytime a property is set. expando: function (receiver, key, value) { Object.defineP...
from django.db import models from django.contrib.auth.models import User # Create your models here. class Professor(models.Model): user = models.OneToOneField(User, null=True, blank=True) name = models.CharField(max_length=100) info = models.TextField(max_length=1000) image = models.ImageField(null=True, blank=T...
(function($){ //var baseURL = 'https://almiranezgecilie68358.ipage.com/BSIT2019/goodbuy/'; //var baseURL = 'http://localhost/goodBuy1/'; var baseURL = 'http://paranaque.goodbuy-bolinao.com/'; // var baseURL = 'http://localhost/goodbuyParanaque/'; var timer = null; var timeout = 500; //var baseURL = 'https://alm...
export default rlux;
# coding: utf-8 """ Timeline events This feature allows an app to create and configure custom events that can show up in the timelines of certain CRM object like contacts, companies, or deals. You'll find multiple use cases for this API in the sections below. # noqa: E501 The version of the OpenAPI docu...
const nock = require('nock') const mergePullRequest = require('../bin/merge-pr') process.env.GH_TOKEN = '12345token' process.env.CIRCLE_SHA1 = 'e07e589fbeb379' process.env.CIRCLE_PULL_REQUEST = 'https://github.com/NewThingsCo/circleci-automerge/pull/1' process.env.CIRCLE_PROJECT_USERNAME = 'NewThingsCo' process.env.CI...
export default { GENERIC_ERROR: 'Something went wrong. Please contact us', EDIT_DETAILS_MENTOR_SUCCESS: 'Your details updated successfully', EDIT_DETAILS_APPLICATION_SUBMITTED: "Thanks for joining us! We'll approve your application ASAP.", EDIT_DETAILS_DELETE_ACCOUNT_CONFIRM: 'Are you sure you want to d...
# Copyright 2019 The SQLFlow 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 law o...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import base64 import json from flask import Flask, request import argparse import sys import os.path from datetime import datetime from PIL import Image import numpy as np import os import io import tensorfl...
import React, { useEffect } from "react" import { Link } from "gatsby" import Layout from "../components/layout" import Image from "../components/image" import SEO from "../components/seo" import "./styles.css" const IndexPage = () => { useEffect(() => { setTimeout(function () { window.ReactNativeWebView.p...
# -*- coding: utf-8 -*- """Representation of edit operations in HGVS variants NARefAlt and AARefAlt are abstractions of several major variant types. They are distinguished by whether the ref and alt elements of the structure. The HGVS grammar for NA and AA are subtly different (e.g., the ref AA in a protein substitu...
'use strict' const connection = require('../connection') const test = require('tape') const dedent = require('dedent') const Table = require('./partitioning') const sinon = require('sinon') test('getPartitionStrings', function (t) { const sandbox = sinon.sandbox.create() const expected = dedent` PARTITION \`from...
const config = { siteTitle: 'نتائج السودان ', siteTitleShort: 'نتائج السودان', siteTitleAlt: 'نتائج السودان', siteLogo: '/logos/logo-1024.png', siteUrl: 'https://sudansscr.com', pathPrefix: '', dateFromFormat: 'YYYY-MM-DD', dateFormat: 'MMMM Do, YYYY', siteDescription: 'موقع مختص في تقديم وعرض ن...
/*! * EaselPlugin 3.4.2 * https://greensock.com * * @license Copyright 2020, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */ !function(e,t){"ob...
import enrollment from './enrollment' import download from './download' import { Router } from 'express' import actions from './actions' import tickets from './tickets' import destroy from './destroy' import refund from './refund' import create from './create' import update from './update' import cancel from './cancel'...
import json import boto3 import time from pprint import pprint import urllib import base64 print("loading function") kinesis_client = boto3.client("kinesis") dynamodb_clinet = boto3.resource("dynamodb") def lambda_handler(event, context): # record_set = [] # event print("Event is :") pprint(event) ...
!function(global,factory){if("function"==typeof define&&define.amd)define("/Plugin/icheck",["exports","Plugin"],factory);else if("undefined"!=typeof exports)factory(exports,require("Plugin"));else{var mod={exports:{}};factory(mod.exports,global.Plugin),global.PluginIcheck=mod.exports}}(this,function(exports,_Plugin2)...
import 'jest-canvas-mock'; import Phaser from 'phaser'; import GetNameScene from '../Scenes/GetNameScene'; test('GetName-Scene is an instance of Scene', () => { expect(GetNameScene.prototype instanceof Phaser.Scene).toBe(true); }); test('GetName-Scene is not an instance of Text', () => { expect(GetNameScene.proto...
"use strict"; const simple = { // * Simple instruments notObject : function notObject ( str ) { let result = false if ( str == null ) { result = true } if ( typeof str == 'string' ) { result = true } if ( typeof str == 'number' ) { res...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GovernorVotesQuorumFraction__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", ...
import React from 'react'; const td = (props) => { const { children } = props; return ( <td>{ children }</td> ); }; export default td;
# =============================================================================== # Copyright 2019 ross # # 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/LICE...
!function(){"use strict";function e(e){function r(e){return e.toLocaleLowerCase?e.toLocaleLowerCase():e.toLowerCase()}function t(e){return e.replace(d,"\x00$1\x00").replace(/\0$/,"").replace(/^\0/,"").split("\x00")}function n(e,r){return(!e.match(i)||1===r)&&parseFloat(e)||e.replace(f," ").replace(u,"")||0}e=e||{};var ...
var ie = document.all != null; var moz = !ie && document.getElementById != null && document.layers == null; /** * @dependencies Bs_Misc.lib.js * @author sam blum <sam-at-blueshoes-dot-org>, andrej arn <andrej-at-blueshoes-dot-org> * @package javascript_core * @subpackage lang * @copyright blueshoes.o...
'use babel'; import axios from 'axios' const search = crate => `https://crates.io/api/v1/crates?page=1&per_page=20&q=${crate}&sort=` export default { provide() { return { selector: '.source.toml', inclusionPriority: 1, excludeLowerPriority: true, suggestionPriority: 2, getSugges...
const { User } = require("../models"); const bcrypt = require("bcrypt"); const jwt = require("jsonwebtoken"); exports.signin = (req, res) => { /* *POST api/auth-admin/signin * this function signin or login */ const { username, password } = req.body; User.findOne({ where: { username: username ...
/* * $Id: rawdeflate.js,v 0.4 2013/02/23 01:55:59 dankogai Exp dankogai $ * * Original: * http://www.onicos.com/staff/iz/amuse/javascript/expert/deflate.txt */ (function(){ /* Copyright (C) 1999 Masanao Izumo <iz@onicos.co.jp> * Version: 1.0.1 * LastModified: Dec 25 1999 */ /* Inter...
define(['jquery'], function ($) { return $('#sandbox'); });
#! /usr/bin/env python # -*- coding: UTF-8 -*- import wx import sys reload(sys) sys.setdefaultencoding('utf-8') import os import time import threading import inspect import ctypes from _main import RTxxx_main from _main import RTyyyy_main from ui import RTyyyy_uidef from ui import RTxxx_uidef from ui import uidef from ...
var searchData= [ ['_5fbaseurls',['_BaseUrls',['../class_simple_web_socket_server_library_1_1_simple_web_socket_http_server_1_1_web_socket_http_server.html#a70e5c60e525049aed662d4f174413f43',1,'SimpleWebSocketServerLibrary::SimpleWebSocketHttpServer::WebSocketHttpServer']]], ['_5fbuffersize',['_BufferSize',['../cla...
module.exports = { "stories": [ "../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)" ], "addons": [ "@storybook/addon-links", "@storybook/addon-essentials", ] }
/* Função para selecionar um elemento HTML getElement('div') -> seleciona um elemento <div></div> getElement('.div') -> seleciona um elemento de classe div <div class="div"></div> getElement('#div') -> seleciona um elemento de ID div <div id="div"></div> */ function getElement(element) { return wind...
const path = require('path'); const mongoose = require('mongoose'); const bcrypt = require("bcrypt"); require('dotenv').config({ path: path.resolve(__dirname, '../../../.env') }) const mongoURL = process.env.auth; const mongoAdmin = process.env.authuser; const mongoPW = process.env.authpw; const bocAuth = `mongodb://${...
# -*- coding: utf-8 -*- ''' Created on 2019-04-20 @FileName: base_dao.py @Description: 基础dao @author: 'Aaron.Qiu' @version V1.0.0 ''' from sqlalchemy import create_engine,Column,String,Integer,ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker,relationship ''' #...
import React, { Component } from 'react'; import { searchProduct, fetchProducts } from '../../_action/searchActions'; import { connect } from 'react-redux'; export class SearchForm extends Component { onChange = e => { this.props.searchProduct(e.target.value); } onSubmit = e => { e.preve...
import React from "react" import Layout from "../components/layout" import SEO from "../components/seo" const NotFoundPage = () => ( <Layout> <SEO title="404 error" /> <div class="gg"> <h1 style={{ color: "white", fontFamily: "Courier New", fontWeight: "lighter", ...
/*! * jquery.fancytree.gridnav.js * * Support keyboard navigation for trees with embedded input controls. * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * * Copyright (c) 2014, Martin Wendt (http://wwWendt.de) * * Released under the MIT license * https://github.com/mar10/fanc...
import React, { useEffect, useState } from "react"; import "./Dashboard.scss"; import { Col, Row, Spinner } from "react-bootstrap"; import { useSelector } from "react-redux"; import { ProjectColumn } from "./ProjectColumn/ProjectColumn"; import { IssueColumn } from "./IssueColumn/IssueColumn"; import { TimelineColumn...
const MuState = require('./MuState'); describe('MuState', ()=>{ let initialState, muState; beforeEach(()=>{ initialState = { a: { a1: { a2: { a3: 3, a4: 4 } } ...
import day from 'dayjs'; import { insertAt, filterBy } from '@/utils/array'; import { ADD_SIDECAR, _FLAGGED, MODE, _CREATE, _CLONE, _STAGE } from '@/config/query-params'; import { escapeHtml } from '@/utils/string'; import { DATE_FORMAT, TIME_FORMAT } from '@/store/prefs'; import { PRIVATE } from '@/plugins/steve/res...
# create element in matrix arr = [ [1,2,4,29], [3,4,6,19] ] print(arr) # create matrix of set size N = 3 M = 2 A = [] for i in range(N): A.append([0]*M) print(A) # with generate nums import random N = 3 M = 2 A = [[0]*M for i in range(N)] # fill in with random num for i in range(N...
import Ext_field_Panel from '../../Ext/field/Panel.js'; export default class Ext_form_Panel extends Ext_field_Panel { static PROPERTIES() { return [ 'activeChildTabIndex', 'activeItem', 'alignSelf', 'allowFocusingDisabledChildren', 'alwaysOnTop', 'anchor', 'anchorPosition', 'api', ...
(function() {var implementors = {}; implementors["core"] = []; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
function clickdelButton(e, formId) { e.preventDefault(); if(confirm('Do you really want to delete this?')) { document.getElementById(formId).submit(); } }
# Copyright (C) 2021 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
angular.module("umbraco").controller("bulkEdit.dashboard.controller", function( $scope, appState, bulkEditApi, contentResource, dataTypeResource, dialogService, navigationService, notificationsService) { // Initialization Methods //////////////////////////////////////////////////...
# -*- coding: utf-8 -*- """Top-level package for hypothesis_torch.""" __author__ = """Lea Provenzano""" __email__ = 'leaprovenzano@gmail.com' __version__ = '0.0.0'
from flaky import ( flaky, ) @flaky(max_runs=3) def test_miner_hashrate(web3_empty, wait_for_miner_start): web3 = web3_empty hashrate = web3.eth.hashrate assert hashrate > 0
module.exports={A:{A:{"1":"E A B","2":"I D F pB"},B:{"1":"C N O Q J K L","2":"b KB OB R S T U M W X G"},C:{"2":"0 1 2 3 4 5 6 7 8 9 oB WB H c I D F E A B C N O Q J K L d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB eB IB VB P LB MB NB Y PB QB RB SB TB UB JB HB a XB YB ZB b KB OB nB R S T U M W X G w...
// We register the TypeScript evaluator in gatsby-config so we don't need to do // it in any other .js file. It automatically reads TypeScript config from // tsconfig.json. // eslint-disable-next-line @typescript-eslint/no-var-requires require("ts-node").register({ project: "./tsconfig.gatsby.json" }) // Use a TypeScr...
"""setup.py file.""" import uuid from setuptools import setup, find_packages try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements __author__ = 'David Barroso <dbarrosop@dravetech.com>' install_reqs = parse_requ...
#!/usr/bin/env node /* Copyright 2016 The Trustees of University of Arizona 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...
/*判断是否是移动设备*/ function isMobile(){ return navigator.userAgent.match(/iPhone|iPad|iPod|Android|android|BlackBerry|IEMobile/i) ? true : false; } //判断是否是在线ShowDoc function is_showdoc_online(){ var host = window.location.host; if(host.indexOf("showdoc.cc") > -1 || host.indexOf("wu.com") > -1){ return true; }else{ ...
// @flow import React from 'react' import APILoader from '../utils/APILoader' import isFun from '../utils/isFun' import log from '../utils/log' import { toLnglat } from '../utils/common' import withPropsReactive from '../utils/withPropsReactive' const Component = React.Component const Children = React.Children const c...
"use strict"; // Test rhdp-search-results component xdescribe('Search Results (list)', function() { var wc; beforeEach(function() { document.body.insertBefore(document.createElement('rhdp-search-results'), document.body.firstChild); wc = document.body.firstChild; }); afterEach(function...
import React, {useState} from 'react'; import clsx from 'clsx'; import { useThemeConfig, useAnnouncementBar, MobileSecondaryMenuFiller, ThemeClassNames, useScrollPosition, useWindowSize, } from '@docusaurus/theme-common'; import Logo from '@theme/Logo'; import IconArrow from '@theme/IconArrow'; import {tran...
"use strict"; let Supervisor = { identification : 0, processes : {}, send : function (party, message, data, identifier) { /* <CONNECTION-FOR-(party)>.send({ identifier : identifier, message : message, data : data }); */ }, receive : function (message, data, identifier) { // Supervisor.receive, for ...
const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
/** * Created by yumodev on 18/2/5. */ 'use strict'; import React, {Component} from 'react' import {StyleSheet, Text, View, BackAndroid} from 'react-native' let Dimensions = require('Dimensions'); let totalWidth = Dimensions.get('window').width; let totalHeight = Dimensions.get('window').height; let ConfirmDialog ...
# Copyright 2017 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...
function Person(initialAge) { // Add some more code to run some checks on initialAge if (initialAge >= 0) { age = initialAge; } else { age = 0; console.log("Age is not valid, setting age to 0."); } this.amIOld = function() { // Do some computations in here and print out the correct statement t...
import { createSlice } from '@reduxjs/toolkit'; import { getCategories } from '../data/repo'; const categoriesSlice = createSlice({ name: 'categories', initialState: { data: [] }, reducers: { updateCategories: (state, action) => { state.data = action.payload.data.categories; } } }); export const...
import {metadata} from '../src/metadata'; import {decorators} from '../src/decorators'; describe('metadata', () => { it('can be located by key', () => { var found = metadata.getOwn(metadata.resource, HasMetadata); expect(found instanceof SampleMetadata).toBe(true); }); it('can be normalized to handle th...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var winston_1 = __importDefault(require("winston")); var smashggJsLevels = { levels: { error...
"use strict"; /* Generated from https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json, version 1.13.0 */ Object.defineProperty(exports, "__esModule", { value: true }); const resource_1 = require("../resource"); class SecurityGroup extends resource_1.ResourceBase { constructor(pr...
const canFinish = require("../main/canFinish.js"); // Question // There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take course bi first if you want to take course ai. // ...
// / <reference types="Cypress" /> import ProductPageObject from '../../../../support/pages/module/sw-product.page-object'; /** * @deprecated tag:v6.5.0 - will be removed, use `sw-promotion-v2` instead * @feature-deprecated (flag:FEATURE_NEXT_13810) */ describe('Promotion: Test promotion with individual codes', ()...
var searchData= [ ['c_5fcentroid_5flist',['C_Centroid_List',['../class_c___centroid___list.html',1,'']]], ['c_5fdmum',['C_DMUM',['../class_c___d_m_u_m.html',1,'']]], ['c_5fdmum_5fresult',['C_DMUM_Result',['../struct_c___d_m_u_m___result.html',1,'']]], ['c_5fedge',['C_Edge',['../class_c___edge.html',1,'']]], [...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.mobx = {})); }(this, (function (exports) { 'use strict'; var niceErrors = ...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainConfig.ui', # licensing of 'mainConfig.ui' applies. # # Created: Sat Mar 23 13:32:36 2019 # by: PyQt5-uic running on PyQt5 5.12.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); tslib_1.__exportStar(require("@styled-icons/material/NoMeetingRoom"), exports);
'use strict'; const fs = require('fs'); module.exports = app => { async function close() { try { if (app.grpcServer) await app.grpcServer.close(); } catch (err) { app.logger.error('[Close App Error]', err); } } app.beforeStart(() => { fs.writeFileSync('pid', process.pid); }); ap...
export default function getDataStructures(result) { while ( !result.meta || !result.meta.classes || !result.meta.classes.includes('dataStructures') ) { result = result.content[0]; } return result.content.map(entry => entry.content[0]); }
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You m...
/* eslint-env mocha */ 'use strict' const assert = require('assert') const CRC = require('crc-32') const { OrderBook } = require('../../../lib/models') describe('OrderBook model', () => { it('constructor: integrates snapshot', () => { const entries = [ [100, 2, 10], [200, 2, -10] ] const ob...
########## # Part of the code modified from: # https://github.com/asappresearch/emergent-comms-negotiation ########## import torch from torch import nn, autograd from torch.autograd import Variable import torch.nn.functional as F import numpy as np eps = 1e-6 class NumberSequenceEncoder(nn.Module): def __init__...
import _pickle as pickle import os import time import numpy as np import shutil import tensorflow as tf import reader from common import Common class Model: topk = 10 num_batches_to_log = 100 def __init__(self, config): self.config = config self.sess = tf.Session() self.eval_qu...
/** * This file contains styles for SignUp component */ import styled from "styled-components"; export const StyledDisplayFlexDiv = styled.div` display: flex; `; export const StyledFlex1Div = styled.div` flex: 1; `;
export default { WELCOME_TO_KIMG: '欢迎光临KIMG', ROTATE: '旋转角度', BACKGROUND: '背景色', GRAY: '灰化', QUALITY: '图片质量', AUTO_ORIENT: '自动旋正', OUTPUT_FORMAT: '输出格式', STRIP: '瘦身', TAB_BASIC: '基础设置', TAB_SCALE: '缩放设置', TAB_CROP: '裁剪设置', TAB_WATERMARK: '水印设置', CONVERT_PANEL: '转换面板', ADMIN_PANEL: '管理面板', ...
const autoprefixer = require('autoprefixer'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const { getBrowsersList } = require('../../../common/getBrowsersList'); /** * 获取style的loader * @param {*} isProd 是否生产环境 * @param {*} enableModule css module * @param {*} enableLess 是否是less */ function ge...
import { createSelector } from 'reselect'; const selectRaw = (state) => state.document.list; const selectLoading = createSelector( [selectRaw], (raw) => raw.loading, ); const selectExportLoading = createSelector( [selectRaw], (raw) => raw.exportLoading, ); const selectRows = createSelector( [selectRaw], ...
import React from "react" import { useStaticQuery, Link, graphql } from "gatsby" const ListLink = props => ( <li style={{ display: `inline-block`, marginRight: `1rem` }}> <Link to={props.to}>{props.children}</Link> </li> ) export default function Layout({ children }) { const data = useStaticQuery( ...
'use strict' module.exports = function(content, file){ if(file.extras && file.extras.isPage){ return content.replace(/#end\s*$/, ' #require("'+file.id+'") \n #end' ); } return content; };
var callbackArguments = []; var argument1 = function callback(){callbackArguments.push(arguments)}; var argument2 = true; var argument3 = function callback(){callbackArguments.push(arguments)}; var argument4 = 823; var argument5 = ""; var argument6 = function callback(){callbackArguments.push(arguments)}; var arg...
from __future__ import print_function import sys import os import json import webbrowser import urllib from yapsy import IPlugin from awsume import awsumepy # Python 3 compatibility (python 3 has urlencode in parse sub-module) URLENCODE = getattr(urllib, 'parse', urllib).urlencode # Python 3 compatibility (python 3 h...
#!/usr/bin/env python # heatmap - High performance heatmap creation in C. # # The MIT License (MIT) # # Copyright (c) 2013 Lucas Beyer # # 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 witho...
// get color depending on the candidate var colors = { 'amadou': '#FB7102' , 'nicolas': '#FB7132' , 'avello': '#1B2638' , 'calonne': '#1B2640' , 'scales': '#7AB42D' , 'egron': '#E50000' , 'pernot': '#FF0011' , 'raimbourg': '#8297BE' , 'rebora': '#8297CE' , 'barrely': '#8297DE' , 'rineau': '#8297EE...
from mybitbank.libs.jsonrpc.proxy import ServiceProxy, JSONRPCException from .json import loads, dumps, JSONEncodeException, JSONDecodeException
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: requiredElement.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import messa...
import { existsSync } from 'fs' import { readFile } from 'fs/promises' const file = new URL('../config.json', import.meta.url) const config = existsSync(file) ? JSON.parse(await readFile(file)) : {} if (process.env.token) { Object.keys(JSON.parse(await readFile(new URL('../config_example.json', import.meta.url))))....
from __future__ import unicode_literals from babeldjango.templatetags.babel import currencyfmt from django.core.urlresolvers import reverse from django.http import JsonResponse from django.shortcuts import get_object_or_404, redirect, render from django.template.response import TemplateResponse from ..core.ut...
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. import torch.nn as nn from .yolo_head import YOLOXHead from .yolo_pafpn import YOLOPAFPN class YOLOX(nn.Module): """ YOLOX model module. The module list is defined by create_yolov3_modules function. ...