text stringlengths 3 1.05M |
|---|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,function(t,g,u){"use strict";function i(t,e){for(var n=0;n<e.length;n... |
describe('Namespaces Page Tests', () => {
var baseUrl = Cypress.config().baseUrl;
var adminUsername = Cypress.env('username');
var adminPassword = Cypress.env('password');
before(() => {
cy.galaxykit('-i group create', 'testGroup1');
cy.galaxykit('-i group create', 'testGroup2');
cy.galaxykit('-i ... |
var fs = require('fs');
var through2 = require('through2');
var osm_parser = require('osm-pbf-parser');
var JSONStream = require('JSONStream');
var INPUT_FILE = 'data/data.osm.pbf';
var OUTPUT_NODES_FILE = 'output/nodes.txt';
var OUTPUT_STREETS_FILE = 'output/streets.txt';
function isNode(item) {
return item.type ==... |
import timeit
from django.utils import timezone
from django.core.exceptions import ValidationError
from base.tests import BaseTestCase
from company.tests.tests_models import get_or_create_company
from finance.models import (Currency, TaxReceipt, TaxReceiptAuthorization,
TaxReceiptNumber)
class CurrencyModelTes... |
import React from "react";
import SvgIcon from "@material-ui/core/SvgIcon";
const OrgUnitIcon = (props) => {
const finalProps = {
...props,
viewBox: "0 0 85 85",
};
return (
<SvgIcon {...finalProps}>
<path d="M17.518403,78.3591 C16.2139001,78.3570957 15.0595734,77.5172438 14.660803,76.28 L0.149... |
'use strict';
/* Controllers */
app
// Flot Chart controller
.controller('FeedBackCtrl', ['$scope', 'commonService', 'modelService','$newLocalStorage', function($scope, commonService, modelService,$newLocalStorage) {
console.log('反馈管理');
}]); |
# Copyright (c) 2015-2016 OpenStack Foundation
# 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
#
# Un... |
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/arrowfunction-4.case
// - src/assignment-target-type/invalid/parenthesized.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression)
esid: sec-grouping-operator-static-s... |
const {
MessageEmbed,
Message
} = require("discord.js");
const config = require("../../botconfig/config.json");
const ee = require("../../botconfig/embed.json");
const settings = require("../../botconfig/settings.json");
const {
check_if_dj
} = require("../../handlers/functions")
module.exports = {
name: "forward",... |
'use strict';
var getMid = require('diagram-js/lib/layout/LayoutUtil').getMid;
var lineIntersect = require('./util/LineIntersect');
/**
* Fix broken dockings after DI imports.
*
* @param {EventBus} eventBus
*/
function ImportDockingFix(eventBus) {
function adjustDocking(startPoint, nextPoint, elementMid) {
... |
const { chromium } = require('playwright-chromium');
const { expect } = require('chai');
let browser;
let page;
describe('End-To-End Tests', function () {
// this.timeout(2000);
before(async () => {
browser = await chromium.launch();
});
after(async () => {
await browser.close();
}... |
macDetailCallback("0050c27b4000/36",[{"a":"5923 Thorntree Drive San Jose CA US 95120","o":"T 1 Engineering","d":"2008-07-30","t":"add","s":"ieee","c":"US"}]);
|
import sys, os
file_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(file_path, '.'))
import argparse, importlib
class SplitLineParser(argparse.ArgumentParser):
def convert_arg_line_to_args(self, arg_line):
return arg_line.split()
class Args():
'''
Container class t... |
var colors = {
maroon: '#800000', red: '#ff0000', orange: '#ffA500', yellow: '#ffff00', olive: '#808000',
purple: '#800080', fuchsia: "#ff00ff", white: '#ffffff', lime: '#00ff00', green: '#008000',
navy: '#000080', blue: '#0000ff', aqua: '#00ffff', teal: '#008080',
black: '#000000', silver: '#c0c0c0', gray: '#80808... |
import logging
import time
import numpy as np
import matplotlib.pyplot as pt
from keysight_fpga.sd1.fpga_utils import \
print_fpga_info, config_fpga_debug_log, print_fpga_log
from keysight_fpga.sd1.dig_iq import load_iq_image
from keysight_fpga.qcodes.M3202A_fpga import M3202A_fpga
from core_tools.drivers.M3102... |
import {getResource} from './helpers'
export default {
getRoleTypePermissions () {
return getResource('role_type_permissions')
}
}
|
function Svg6K(props) {
return (
<svg
xmlns='http://www.w3.org/2000/svg'
height='1em'
viewBox='0 0 24 24'
width='1em'
className='svg-icon'
{...props}>
<path d='M0 0h24v24H0V0z' fill='none' />
<path d='M8 12.5h1.5V14H8zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2... |
$(function(){ $("h3").html("jquery test"); });
$(document).ready(function() {
/* show lightbox when clicking a thumbnail */
$("a.thumb").click(function(event){
event.preventDefault();
var content = $(".modal-body");
content.empty();
var title = $(this).attr("title");
$(".modal-title")... |
import { createSelector } from 'reselect';
const authSelector = (globalState) => globalState.get('auth');
export const signedInSelector = createSelector(authSelector, (state) =>
state.get('signedIn')
);
export const usernameSelector = createSelector(authSelector, (state) =>
state.get('username')
);
export const... |
/* jslint undef: true */
/* global window, document, $ */
/* ----------------------------------------------------------------
* routes.js
*
* Contains all routes
* ---------------------------------------------------------------- */
(function() {
'use strict';
var express = require('express');
var _ ... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... |
import { GraphQLClient } from "graphql-request";
import prettyjson from "prettyjson";
/**
* Create a Shopify Storefront GraphQL client for the provided name and token.
*/
export const createClient = ({ storeUrl, storefrontToken }) =>
new GraphQLClient(`${storeUrl}/api/2019-10/graphql.json`, {
headers: {
... |
import express from "express";
import mongoose from "mongoose";
import Messages from "./dbMessages.js";
import Pusher from "pusher";
import cors from "cors"
//app config
const app = express();
const port = process.env.PORT || 9000
const connectionUrl = "mongodb+srv://root:root@cluster0.qvfum.mongodb.net/whatsappdb?ret... |
let num = document.querySelector('input#fnum');
let lista = document.querySelector('select#flista');
let res = document.querySelector('div#res');
let valores = [];
function isNumero(n) {
if(Number(n) >= 1 && Number(n) <= 100){
return true;
}else {
return false;
}
}
function inLista(n, l) {... |
var path = require('path');
var webpack = require('webpack');
var mainPath = path.resolve(__dirname, 'client', 'index.js');
module.exports = {
devtool: 'source-map',
entry: mainPath,
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/dist/'
},
plugins: [
new webpack.optimi... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__name__ = "Materials"
__author__ = "Rafael Pastrana"
__version__ = "0.0.2"
__creation__ = "2018.11.12"
__date__ = "2018.11.12"
import math
class Material(object):
def __init__(self, name="Blank Material"):
self.name = name
class Concrete(Material):
d... |
'use strict';
angular.
module('movieMatch').
factory('movieService', movieService);
movieService.$inject = ['$http', '$log'];
function movieService($http, $log) {
const baseUrl = 'http://152.228.133.44:1880/';
return {
getFilters: getFilters
, getMovies: getMovies
, createRoom: cr... |
export const twoFer = (name) => {
if (name == "")
return ("One for you, one for me.");
else return ("One for " + name + ", one for me.");
};
|
# coding: utf-8
from __future__ import division, unicode_literals
"""
Created on Jul 24, 2012
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "shyuep@gmail.com"
__date__ = "Jul 24, 2012"
import unittest
impo... |
function g() {
false;
true;
}
var max = 400;
ct = 0;
function f(b) {
if (b) {
f(b - 1);
} else {
g = {
apply: function (x, y) {
x;
null;
g();
ct;
++ct;
}
};
}
g.apply(null, arguments);
}
f(max - 1);
ct;
max;
|
import logging
import os
import threading
import my_json
from consts import CONFIG_PATH
logger = logging.getLogger(__name__)
class ConfigManager:
def __init__(self):
self._lock = threading.Lock()
self._configs = {}
self.dummy_configs = set()
def __contains__(self, item):
logger.debug('Config Manager che... |
'use strict';
// Register `contactForm` component, along with its associated controller and template
angular.
module('main', []).
component('main', {
templateUrl: 'pages/main.template.html'
});
|
/*!
* Chart.js v2.9.2
* https://www.chartjs.org
* (c) 2019 Chart.js Contributors
* Released under the MIT License
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = glo... |
# Copyright (C) 2001-2006 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org
"""email package exception classes."""
class MessageError(Exception):
"""Base class for errors in the email package."""
class MessageParseError(MessageError):
"""Base class for message parsing errors... |
describe('@polymer tag', () => {
const env = require('jsdoc/env');
const allowUnknownTags = Boolean(env.conf.tags.allowUnknownTags);
beforeEach(() => {
env.conf.tags.allowUnknownTags = false;
});
afterEach(() => {
jsdoc.restoreTagDictionary();
env.conf.tags.allowUnknownTag... |
_base_ = ['../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py']
img_scale = (640, 640)
pretrained = "/home/htkim2_skcc/git/car_mmdet/checkpoints/yolox_s_8x8_300e_coco_20211121_095711-4592a793.pth"
# model settings
model = dict(
type='YOLOX',
input_size=img_scale,
random_size_range=(15, 25... |
const EventEmitter = require('events').EventEmitter;
const assign = require('object-assign');
const HpDispatcher = require('../dispatchers/HpDispatcher');
import HpConstants from '../constants/HpConstants';
const ActionTypes = HpConstants.ActionTypes;
const CHANGE_EVENT = 'change';
let _config;
let _db;
function _l... |
import csv
import datetime
import traceback
import json
import pytz
from django.conf import settings
from django.db import models
from django.utils import timezone
from xlrd import open_workbook, xldate_as_tuple, XL_CELL_DATE, XLRDError
class SmartImportRowError(Exception):
def __init__(self, message):
... |
module.exports={A:{A:{"2":"I F E D A B fB"},B:{"1":"RB M","2":"C N v O H J K"},C:{"1":"1 2 3 4 5 6 7 8 9 QB EB BB CB AB R GB Q IB JB KB LB MB NB OB PB","2":"0 oB FB G T I F E D A B C N v O H J K U V W X Y Z a b c d e f g h i j k l m n o p q r s t u P w x y z lB eB"},D:{"1":"8 9 EB BB CB AB R GB Q IB JB KB LB MB NB OB P... |
import {
range,
select,
scaleLinear,
scaleBand,
transition as d3_transition,
symbol,
symbolCircle
} from 'd3';
import {
template,
chart,
layout,
series,
line,
bars,
scatter,
area,
labels,
gridlines,
text,
legend,
axisLeft,
axisBottom,
axisTop,
axisRight,
measure,
symbol... |
game.route( '/character/:id' )
.get(function(req, res) {
//get character info
});
.post(function(req, res) {
//create new character
});
.put(function(req, res) {
//update character info
});
.delete(function(req, res) {
//remove character
});
game.route( '/player/item/:id' )
.get(function(req, re... |
var PORT = 3000;
var express = require('express');
var app = express();
app.use(express.logger());
app.use(express.compress());
app.use(express.static(__dirname + '/static'));
var port = process.env.PORT || PORT;
app.listen(port, function() {
console.log("Node.js server running on port %s", port);
});
// var htt... |
# Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
from c7n.actions import Action
from c7n.filters.iamaccess import CrossAccountAccessFilter
from c7n.manager import resources
from c7n.query import QueryResourceManager, DescribeSource, TypeInfo, RetryPageIterator
from c7n.utils import local_s... |
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export const state = () => ({
access_token: '', // token
hasLogin: false, // 是否已登录
userInfo: { // 用户信息
_id: 'ObjectId',
username: '',
avatar: '',
introduce: '',
createTime: '',
updateTime: ''
},
currentArticle: null,
route... |
import React from 'react';
import styled from 'styled-components';
import LeftNav from './LeftNav';
import Burger from './Burger';
const NavBarWrapper = styled.div`
display: flex;
background-color: white;
box-shadow: 0px -4px 26px 2px rgba(194,194,194,1);
height: 65px;
z-index: 5;
`
const NavBarIn... |
const deepmerge = require("deepmerge");
const Mimos = require("@hapi/mimos");
const mimos = new Mimos.Mimos();
async function getWithResolvedFunction(
renderingInfoPart,
item,
toolRuntimeConfig
) {
const promises = renderingInfoPart.map(async (renderingInfoPartItem) => {
if (renderingInfoPartItem instanceo... |
/*
* FeaturePage
*
* List all the features
*/
import React, {useState, useEffect} from 'react';
import { Helmet } from 'react-helmet';
const table = {
borderCollapse: 'collapse',
borderStyle: 'hidden',
textAlign: 'center'
}
const button = {
cursor: 'pointer',
backgroundColor: '#04AA6D',
border: 'none',
... |
var store = [{
"title": "Writing Jekyll Posts",
"excerpt":"This is a post. ","categories": [],
"tags": [],
"url": "http://localhost:4000/writing-jekyll-posts/",
"teaser":null}]
|
if( typeof module !== 'undefined' )
require( 'wmathspace' );
require('wFiles');
var _ = wTools;
var matrix = _.Space.make( [ 4, 5 ] ).copy
([
1, 0, 0, 0, 2,
0, 0, 3, 0, 0,
0, 0, 0, 0, 0,
0, 2, 0, 0, 0
]);
var u = _.Space.make( [ 4, 4 ] );
var s = _.Space.make( [ 4, 5 ] );
var v = _.Space.make( [ 5, 5 ] );... |
# Copyright 2015 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... |
export default {
logs(state) {
return state.logs;
},
};
|
#!/usr/bin/env python
"""
Library for implementing getTiming tool which gets timing
information from a run.
"""
from CIME.XML.standard_module_setup import *
from CIME.utils import safe_copy
import datetime, re
logger = logging.getLogger(__name__)
class _GetTimingInfo:
def __init__(self, name):
self.nam... |
export default {
namespace: 'global',
state: {
collapsed: false,
},
reducers: {
changeCollapsed(state) {
return {
...state,
collapsed: !state.collapsed,
};
}
},
effects: {
},
subscriptions: {
setup({ dispatch, history }) {
return history.listen(({ pathn... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const configure_splash_screen_1 = require("@expo/configure-splash-screen");
const WarningAggregator_1 = require("../WarningAggregator");
function getSplashScreenConfig(config) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _... |
const os = require("os");
const fs = require("fs");
const path = require("path");
const Chrome = require("chrome-launcher");
const CDebugPort = require("chrome-remote-interface");
const { readJson, writeJson } = require("./readwrite");
var newFlags = Chrome.Launcher.defaultFlags();
const settingsPath = pat... |
!function(e){function t(t){for(var n,o,s=t[0],i=t[1],d=t[2],f=0,p=[];f<s.length;f++)o=s[f],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&p.push(a[o][0]),a[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,d||[]),r()}function r(){for(var e,t... |
var searchData=
[
['ccl_5ftest_5fcore',['ccl_test_core',['../namespaceccl__test__core.html',1,'']]],
['ccl_5ftest_5fdistances',['ccl_test_distances',['../namespaceccl__test__distances.html',1,'']]],
['ccl_5ftest_5fgrowth',['ccl_test_growth',['../namespaceccl__test__growth.html',1,'']]],
['ccl_5ftest_5fpyccl_5fi... |
const df = {
x: 0,
y: 0,
timer: 0,
targetPeriod: .8,
targetShift: 4,
}
class ShipGrid {
constructor(st) {
augment(this, df)
augment(this, st)
if (!this.blueprint) {
// create a default blueprint
this.blueprint = new dna.Blueprint()
}
... |
const path = require('path');
const assert = require('yeoman-assert');
const helpers = require('yeoman-test');
describe('Subgenerator common of entando JHipster blueprint', () => {
describe('With default blueprint configuration', () => {
before(done => {
helpers
.run('generator-jhipster/generators/... |
import React from 'react';
import { Link } from 'react-router';
var style = {
itemContainer: {
display: 'flex', justifyContent: 'center', flexBasis: '33.33%',
textAlign: 'center'
},
link: {
textDecoration: 'none',
color: '#FFEB3B',
fontWeight: '300'
},
item: {
background: '#424242',
boxShadow: '0 2p... |
"""
@Name: Modules/Computer/Internet/internet.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2012-2019 by D. Brian Kimmel
@license: MIT License
@note: Created on Mar 20, 2012
@summary: This module determines the IP address of the ISP connection.
All nodes currently ru... |
import TabNavigator from 'react-native-tab-navigator'
const Tab = TabNavigator.Item;
const Tabs = TabNavigator;
export {
Tab,
Tabs
};
|
import structlog
from banal import ensure_list
from followthemoney.types import registry
from opensanctions.helpers.dates import parse_date
from opensanctions.helpers.gender import clean_gender
from opensanctions.helpers.lookups import common_lookups
log = structlog.get_logger(__name__)
def _prepare_value(prop, val... |
//a closure gives you access to an outer function’s scope from an inner function.
function makeFunc() {
var name = "Mozilla";
function displayName() {
console.log("makefunc", name);
}
return displayName;
}
var myFunc = makeFunc();
myFunc();
//==============================================================... |
#
# Copyright 2019 The FATE 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 appli... |
import { reducer as formReducer } from 'redux-form/immutable'
export default formReducer
|
import React, { useState, useEffect } from "react"
import {
CCard,
CCardBody,
CCardHeader,
CCol,
CRow,
CButton,
CContainer,
CForm,
CFormGroup,
CLabel,
CInput,
CLink,
CFade,
} from "@coreui/react"
import { Switch, Route } from "react-router-dom"
import CIcon from "@coreui/icons-react"
import D... |
webpackJsonp([37],{V5f5:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("aA9S"),s=a.n(r),n=a("P9l9"),l={data:function(){return{plang:this.$parent.lan,sFormLoading:!1,sForm:{remark:"",status:""},sFormRules:{remark:[{required:!0,message:this.$parent.lan.SETTING_ACCCANCEL_REMARK_RULE,... |
#!/usr/bin/env python
# pep8.py - Check Python source code formatting, according to PEP 8
# Copyright (C) 2006-2009 Johann C. Rocholl <johann@rocholl.net>
# Copyright (C) 2009-2014 Florent Xicluna <florent.xicluna@gmail.com>
# Copyright (C) 2014-2015 Ian Lee <ianlee1521@gmail.com>
#
# Permission is hereby granted, free... |
'use strict'
const openModal = () => document.getElementById('modal')
.classList.add('active')
const closeModal = () => document.getElementById('modal')
.classList.remove('active')
const tempCliente = {
nome:"Mel",
email: "mel@email.com",
celular: "1122333455",
cidade: "Londrina"
}
const get... |
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸 (Blueking) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may... |
(function() {
'use strict';
angular
.module('fhirMappingApp')
.config(stateConfig);
stateConfig.$inject = ['$stateProvider'];
function stateConfig($stateProvider) {
$stateProvider.state('password', {
parent: 'account',
url: '/password',
data... |
/* @flow */
import BN from 'bn.js';
import BigNumber from 'bignumber.js';
import common, {
type ECPoint,
type ECPointHex,
type UInt160,
type UInt160Hex,
type UInt256,
type UInt256Hex,
} from '../common';
export default {
writeUInt64LE: (value: BN) => value.toString(16, 16),
readUInt64LE: (value: strin... |
export {default as createAction} from './createAction'
export {default as createActions} from './createActions'
|
export const tFilterReplace = (str, substitutions, entities = false) => {
let source, replace;
for (const token in substitutions) {
replace = substitutions[token];
if(typeof str === 'object' && typeof replace === 'number') {
switch (replace) {
case 0:
source = str.zero || Object.valu... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _ArcgisAccountStyled = require("./ArcgisAccount-styled");
function _interopRequireDefau... |
import React, { Component } from 'react';
import { Link} from 'react-router-dom';
import { Box, Button, Grid } from 'grommet';
import queryString from 'query-string'
import PropTypes from 'prop-types';
class BookmarksList extends Component {
render () {
return(
<>
<ul>
{(this.props.bookma... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HelixBitsApi = void 0;
var tslib_1 = require("tslib");
var twitch_api_call_1 = require("twitch-api-call");
var UserTools_1 = require("../../../Toolkit/UserTools");
var BaseApi_1 = require("../../BaseApi");
var HelixBitsLeaderboard_1 = ... |
/**
* Selling Partner API for Orders
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
... |
/*
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
title stylelint Configuration +
project nord-atom-syntax +
repository https://github.com/arcticicestudio/nord-atom-syntax +
author Arctic Ice Studio ... |
import React from "react"
import { graphql, useStaticQuery } from "gatsby"
import Img from "gatsby-image"
import styled from "styled-components"
const IconWrap = styled.div`
width: 100%;
height: 100%;
`
const getData = graphql`
{
icon: file(relativePath: { eq: "icon-desk.png" }) {
childImageSharp {
... |
import cv2
import torch
import time
import numpy as np
def test_d3qn():
from elegantrl.agent import AgentD3QN
from elegantrl.atari_env import AtariGameEnv
import gym
agent = AgentD3QN()
env = AtariGameEnv(env=gym.make('Breakout-v0'))
net_dim = 2 ** 9 # change a default hyper-parameters
age... |
import React from "react"
const FooterSection = () => {
return (
<section className="panel">
<div className="panel-content">
<div className="wrap">
<div className="entry-header">
<h2 className="entry-title">Stub</h2>
</div>
<di... |
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undef... |
'use strict';
const EventEmitter = require('events').EventEmitter;
const statesMapping = require('./devices');
const getAdId = require('./utils').getAdId;
const getZbId = require('./utils').getZbId;
class StatesController extends EventEmitter {
constructor(adapter) {
super();
this.adapter = adapt... |
from typing import Optional
from prisma import Client
from hashids import Hashids
from flask import Flask, render_template, request, flash, redirect, url_for, g
def get_db() -> Client:
try:
return g.db
except AttributeError:
g.db = db = Client()
db.connect()
return db
def cl... |
######## Webcam Object Detection Using Tensorflow-trained Classifier #########
#
# Author: Evan Juras
# Date: 1/20/18
# Description:
# This program uses a TensorFlow-trained classifier to perform object detection.
# It loads the classifier and uses it to perform object detection on a webcam feed.
# It draws box... |
import React from "react";
import { Select } from "antd";
import { withFilterItem } from "../FilterItem";
import { useConsumer } from "../context";
export const SelectorInner = ({ name, ...props }) => {
const { value: aValue, onChange } = useConsumer();
const currentValue = aValue[name];
return <Select {...props... |
from distutils.core import setup, Extension
import os
from os.path import expanduser, exists, join, realpath, basename, dirname
import sys
def find_path(candidates):
for path in candidates:
if exists(path):
return path
def find_path_with_members(candidates, required_names_we):
"""
Ar... |
# Generated by Django 3.0.5 on 2020-04-01 16:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0002_auto_20200401_1527'),
]
operations = [
migrations.RemoveField(
model_name='upload',
name='name',
),
... |
import React from 'react';
import Link from 'next/link';
import NavProfile from './navProfile';
class Nav extends React.Component {
constructor(props) {
super(props);
}
render() {
let className =
'app ' + this.props.width && this.props.width == 'full'
? 'container-fluid nav-fullwidth'
... |
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
'''
test case:
1. empty list
2. there is only one node in the list
3. more than one node
'''
class Solution(object):
def reverseList(self, head):
"""
:type ... |
import numpy as np
import matplotlib.pyplot as plt
import profit as pf
import GPy
xtrain = pf.util.quasirand(20, 2)
n1 = 20
n2 = 20
x1, x2 = np.meshgrid(np.linspace(0,1,n1), np.linspace(0,1,n2))
xtest = np.vstack([x1.flatten(), x2.flatten()]).T
def f(x):
return np.sin(4*(x[:,0] + x[:,1]))
ytrain = f(xtrain).resh... |
import React, { useState } from "react";
import { Link as ReactRouterLink } from "react-router-dom";
import {
Background,
Container,
ButtonLink,
Logo,
Link,
Group,
Text,
Feature,
FeatureCallOut,
PlayButton,
SearchIcon,
SearchInput,
Search,
Profile,
Picture,
Dropdown,
} from "./styles/hea... |
'use strict';
var buildLiveReloadPath = require('clean-base-url');
module.exports = {
name: 'live-reload-middleware',
contentFor: function(type) {
var liveReloadPort = process.env.EMBER_CLI_INJECT_LIVE_RELOAD_PORT;
var baseURL = process.env.EMBER_CLI_INJECT_LIVE_RELOAD_BASEURL;
if (liveReloadPort &&... |
/*
* The assets module stores all shaders and images.
* Shaders and other text based assets are stored in Assets.store.
* Images are stored in their own object in Assets.images.
*
* Load assets with
* Assets.queue("something.shader");
* Assets.queueImage("art.jpg");
* Assets.loadAll(success_callback, err... |
import pandas_datareader as web
import matplotlib.pyplot as plt
import mplfinance as mpf
import datetime as dt
start = dt.datetime(2019, 12, 1)
end = dt.datetime.now()
crypto = ["ETH", "XRP"]
currency = "INR" # How much INR/USD/EUR 1 ETH is for?
#crypto_data = web.DataReader(f"{crypto}-{currency}", "ya... |
import math
import numpy
from copy import deepcopy
from scipy.ndimage.filters import convolve
def donut_filter(input_image):
"""
Parameters
----------
input_image
Returns
-------
convolved image with kernel
"""
k = [1] + [3 for _ in input_image.shape[1:-1]] + [1]
kernel = num... |
module.exports = function repeater(str, options) {
let addition = String(options.addition);
let repeatTimes = parseInt(options.repeatTimes);
let separator = options.separator;
let additionRepeatTimes = parseInt(options.additionRepeatTimes);
let additionSeparator = options.additionSeparator;
let ... |
from endpoints import build_call
class followAPI(object):
def __init__(self, username, authstring, token = False):
self.requester = username
self.authstring = authstring
self.istoken = token
def my_followers(self):
return build_call("get", "user/followers", self.requester, sel... |