text
stringlengths
3
1.05M
// // 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 following disclaimer. // * Redistributions in bin...
// / <reference types="Cypress" /> describe('Minimal auto update', () => { /** * Test requirements: * - db `Cypress.env('dbName')` must exist * - install.lock must exist * - update-service-mock.js must be running */ it('@update: Check product', () => { // Request we want to wa...
# ------------------------------------------------------------------------------ # Copyright 2020 Forschungszentrum Jülich GmbH # "Licensed to the Apache Software Foundation (ASF) under one or more contributor # license agreements; and to You under the Apache License, Version 2.0. " # # Forschungszentrum Jülich # In...
#!/usr/bin/env node 'use strict'; // Update notifier. const updateNotifier = require( 'update-notifier' ); const pkg = require( '../package.json' ); updateNotifier( { pkg } ).notify(); const spawn = require( 'cross-spawn' ); const args = process.argv.slice( 2 ); const scriptIndex = args.findIndex( x => x === 'brows...
var PlantHeatExchangerFluidToFluid_8cc = [ [ "CalcFluidHeatExchanger", "PlantHeatExchangerFluidToFluid_8cc.html#a63032960e9263e77f16b689dbacdb743", null ], [ "ComponentClassName", "PlantHeatExchangerFluidToFluid_8cc.html#a16892fa572a00e7b316f05bd791b2709", null ], [ "ControlFluidHeatExchanger", "PlantHeatEx...
import {COMMENT, RULESET, DECLARATION} from './Enum.js' import {abs, trim, from, sizeof, strlen, substr, append, replace} from './Utility.js' import {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, identifier, commenter} from './Tokenizer.js' /** * @param {string} value * @return {object[]}...
import time import itertools import argparse import numpy import pulp def ReadInputFile(filename): """Reads input file containing problem data. The first line of the input file contains the number of variables. All of these are assumed to be binary (0-1) variables. The second line contains the coeff...
/*! * Chart.js * http://chartjs.org/ * Version: 1.0.2 * * Copyright 2015 Nick Downie * Released under the MIT license * https://github.com/nnnick/Chart.js/blob/master/LICENSE.md */ ;(function() { 'use strict' //Declare root variable - window in the browser, global on the server var root = this, ...
var shapeMedia = function (options) { this.id = options.id; this.content = $(options.content); this.container = $(options.container); this.sdk = options.sdk; this.tab = options.tab; this.layer = options.layer; this.controller = options.controller; this.data = options.data /* set jso...
# Julian Conneely # testing push and pull # again # and again # extra comment test, failed on LAN, should commit on wifi at work? no it didnt, at home?
from django.conf import settings LMPDA_URL = settings.PJM_LMPDA_URL = getattr( settings, 'PJM_LMPDA_URL', 'http://www.pjm.com/pub/account/lmpda/{year:04d}{month:02d}{day:02d}-da.csv') LMPDA_URL2 = settings.PJM_LMPDA_URL2 = getattr( settings, 'PJM_LMPDA_URL2', 'http://www.pjm.com/pub/account/lm...
import { all, fork } from 'redux-saga/effects'; import axios from 'axios'; import postSaga from './post'; import userSaga from './user'; import { backUrl } from '../config/config'; axios.defaults.baseURL = backUrl; axios.defaults.withCredentials = true; export default function* rootSaga() { yield all([ fork(po...
(function (context, $, undefined) { 'use strict'; var modules = context.setNamespace('app.modules'), app = context.use('app'); /** * Pinnable module * * Adds functionality to fix node placement */ modules.Pinnable = app.createClass({ /** * This is actually a toggle to either pin or unpin a node */ hand...
amuseApp.controller('RegisterCtrl', ['$scope', function($scope) { $scope.message = "Welcome!"; }]);
# coding: utf-8 from setuptools import setup, find_packages setup( name='aws-transfer-custom-idp-ssm-parameter-store-apig', version='1.0', description='Allow myself, to introduce myself', author='Galen Dunkleberger', license='ASL', zip_safe=False, packages=['aws_transfer_custom_idp_ssm_par...
function getPerformance() { return window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance; } var getLanguage = function () { var languages = navigator.languages || navigator.language || navigator.userLanguage; return Array.isArray(languages) ? languages[0] : lan...
exports.up = function(knex) { return knex.schema .table('interview_process_reviews', table => { table.dropColumn('interest_id'); }) .table('salary_reviews', table => { table.dropColumn('interest_id'); }); }; exports.down = function(knex) { return knex.schema .table('interview_proces...
from container_support import ContainerSupport from chainer_framework import training from chainer_framework import serving cs = ContainerSupport() cs.register_engine(training.engine) cs.register_engine(serving.engine) if __name__ == '__main__': cs.run()
""" $Id: testEsmfFractions.py 2354 2012-07-11 15:28:14Z pletzer $ Unit test for src/dst AreaFractions return nan. It only fails in tripolar grids. """ import operator import numpy import cdat_info import cdms2 import regrid2.esmf import regrid2 import unittest import time import ESMP import copy from matplotlib impo...
import { Utils, FontAwesomeIcon } from "arclight-react"; export default (socket, _this) => socket.on("broadcast_update", (data) => { if ( data.origin === _this.state.active || data.target === _this.state.active ) { _this.getSMSByNum(data.target); } _this.aquire().then(() => { ...
#ifndef __NO_SYSTEM_INIT void SystemInit() {} #endif void main() { for (;;); }
def check_ip(ip): ip_array = [int(i) for i in ip.split('.')] print(ip_array) for octet in ip_array: if octet > 255: print("Dotted decimal addresses can't be above 255 for any octet, please try again.") return False else: print("This is a good IP address") ...
import React, {Component} from 'react' import {connect} from 'react-redux' import {withRouter, Route, Switch} from 'react-router-dom' import socket from './socket' import { Login, UserHome, Menu, Game, Welcome, TriviaHimHer, TriviaGuessNumber, TriviaMultiChoice, TriviaTrueFalse } from './components' ...
/* * Copyright 2012-14 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify...
'use strict'; const { MQClient } = require('mq-http-sdk'); const { sleep } = require('pure-func/promise'); const assert = require('assert'); const shortId = require('shortid'); module.exports = class ONS { constructor(app) { this.app = app; this.logger = app.getLogger('onsLogger'); this.config = app.con...
import simpy def car(env): while True: print('Start parking at %d' % env.now) parking_duration = 5 yield env.timeout(parking_duration) print('Start driving at %d' % env.now) trip_duration = 2 yield env.timeout(trip_duration) env = simpy.Environment() env.process(ca...
import hashlib from queue import Empty, Queue from threading import Event import gc from botocore import exceptions from botocore.client import BaseClient class CorruptedMultipartError(Exception): pass class S3FileProgress(object): def __init__(self, name, data): self.name = name self.data ...
'use strict'; /** * Module dependencies. */ var path = require('path'), mongoose = require('mongoose'), Skill = mongoose.model('Skill'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), _ = require('lodash'); /** * Create a Skill */ exports.create = funct...
# -*- coding: utf-8 -*- """ Created on Thu Feb 4 09:04:00 2021 @author: Gebruiker """ import cv2 import os import glob import matplotlib.pyplot as plt import random def load_images_from_folder(folder): '''Reads and displays all images in a given folder''' images = [] for filename in os.listdir(folder): ...
import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt import numpy as np from sklearn.utils import shuffle import input_data random_numer = 42 np.random.seed(random_numer) def ReLu(x): mask = (x > 0) * 1.0 return mask * x def d_ReLu(x): mask = (x > 0) * 1.0 return mask def arcta...
#Dictionary #Can be used when list of items dont need to be ordered. user = { 'age' : [1,2,3], 'username' : "John", 'greet' : 'hello' } #Dictionary keys are inmutable #get method dictionaries print(user.get('age')) #if get has no value computer returns new print(user.get('password')) user...
const _getOAuth2 = opts => ({ ...opts, oa2: { client: opts.oa2.client || opts.oa2.clientid, secret: opts.oa2.secret || opts.oa2.clientsecret, endpoint: opts.oa2.endpoint || opts.oa2.tokenendpoint, granttype: opts.oa2.granttype } }) // protocols are: httprest or amqp10ws const _optionsMessaging = ...
var tooltip; (function (tooltip) { var tooltipDiv; var PADDING = 4; var willShow = false; function init() { tooltipDiv = document.createElement("div"); tooltipDiv.className = "tooltip"; tooltipDiv.style.position = "absolute"; tooltipDiv.style.top = "0px"; tooltipD...
import os import pathlib from typing import Optional, Callable import PIL.Image from .utils import verify_str_arg, download_and_extract_archive from .vision import VisionDataset class DTD(VisionDataset): """`Describable Textures Dataset (DTD) <https://www.robots.ox.ac.uk/~vgg/data/dtd/>`_. Args: ro...
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4564],{3905:function(e,a,t){t.d(a,{Zo:function(){return d},kt:function(){return g}});var n=t(7294);function l(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function o(e,a){var t=Obj...
'use strict'; const generateRuleTests = require('../../helpers/rule-test-harness'); const { ERROR_MESSAGE } = require('../../../lib/rules/placeholder-for-dasherized-rule'); generateRuleTests({ name: 'placeholder-for-dasherized-rule', config: true, // TODO update with a good example that should pass good: [...
import React, { Component } from 'react'; class Cryptog extends Component { render(){ let size = 100; if(this.props.size){ size=this.props.size } return ( <div style={{width:size,height:size,margin:3}}> <div className="circle-text"> <img className="circular-square" src={t...
# ============================================================================ # FILE: base/kind.py # AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com> # License: MIT license # ============================================================================ from pynvim import Nvim import typing import denite.util fro...
function change() { var allElements = document.getElementsByClassName("cb"); allElements.forEach(function(element){ element.style = 'color: red;'; }); }
import colorsys import os import time import numpy as np import torch import torch.nn as nn from PIL import Image, ImageDraw, ImageFont from nets.frcnn import FasterRCNN from utils.utils import (cvtColor, get_classes, get_new_img_size, resize_image, preprocess_input) from utils.ut...
import typing from django.db import models from django.utils.translation import gettext_lazy as _ from .paths import Path, PathFactory class RelativePosition(models.TextChoices): CHILD = 'child_of', _("Child of") FIRST_CHILD = 'first_child_of', ("First child of") # Same functionality as child_of LAS...
/***************************************************************************//** * @file * @brief EFR32FG12P_GPIO register and bit field definitions ******************************************************************************* * # License * <b>Copyright 2022 Silicon Laboratories Inc. www.silabs.com</b> ********...
"use strict"; var BitmapImage2D_1 = require("awayjs-core/lib/image/BitmapImage2D"); var Sampler2D_1 = require("awayjs-core/lib/image/Sampler2D"); var LoaderEvent_1 = require("awayjs-core/lib/events/LoaderEvent"); var Vector3D_1 = require("awayjs-core/lib/geom/Vector3D"); var AssetLibrary_1 = require("awayjs-core/lib/li...
// Copyright (c) 2017 Sandstorm Development Group, Inc. and contributors // Licensed under the MIT License: // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, includin...
const { Model, DataTypes } = require('sequelize'); const sequelize = require('../config/connections'); class Comment extends Model {} Comment.init( { id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true }, comment_text: { type: DataTypes.STRING, allowNull: fa...
/* * Copyright (c) 2015, Groupon, 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 conditio...
import ajaxStatusReducer from './ajaxStatusReducer'; import * as actions from '../actions/ajaxStatusActions'; describe('Ajax Reducer', () => { it('should sum 1 to ajaxCallsInProgress when BEGIN_AJAX_CALL is called', () => { // arrange const initialState = 0; const action = actions.beginAjaxCall(); /...
# coding=utf-8 # Copyright 2018-2020 EVA # # 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 agreed to ...
/* * Copyright (C) detailyang * Copyright (C) Youzan, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include "cJSON.h" #define NGX_HTTP_IPIP_DATX_LITTLEEND(b) (((b)[0] & 0xFF) | (((b)[1] << 8) & 0xFF00) | (((b)[2] << 16) & 0xFF0000) | (((b)[3] << 24) & 0xFF000000)) #define NGX_HTTP_...
from rest_framework import serializers from .models import Rec class RecSerializer(serializers.ModelSerializer): class Meta: model = Rec fields = '__all__'
day = int(input()) if day == 1: print("Monday") elif day == 2: print("Tuesday") elif day == 3: print("Wednesday") elif day == 4: print("Thursday") elif day == 5: print("Friday") elif day == 6: print("Saturday") elif day == 7: print("Sunday") else: print("Error")
import torch import torch.nn as nn class LinearNorm(nn.Module): def __init__(self, hp): super(LinearNorm, self).__init__() self.linear_layer = nn.Linear(hp.embedder.lstm_hidden, hp.embedder.emb_dim) def forward(self, x): return self.linear_layer(x) class SpeechEmbedder(nn.Module): ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" /></React.Fragment> , 'ClearSharp...
from .print_hex_helper import print_bytes_with_description __all__ = [ "print_bytes_with_description" ]
(window.webpackJsonp=window.webpackJsonp||[]).push([[110],{248:function(e,n,t){"use strict";t.r(n),t.d(n,"frontMatter",(function(){return i})),t.d(n,"metadata",(function(){return o})),t.d(n,"rightToc",(function(){return l})),t.d(n,"default",(function(){return d}));var a=t(2),s=t(9),r=(t(0),t(330)),i={id:"username-email...
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
import argparse import sys from pathlib import Path import joblib import numpy as np from sklearn.preprocessing import MinMaxScaler, StandardScaler def get_parser(): parser = argparse.ArgumentParser(description="joblib scaler to npy files") parser.add_argument("input_file", type=str, help="input file") p...
"""Generate and work with PEP 425 Compatibility Tags.""" import distutils.util import logging import platform import re import sys import sysconfig import warnings from collections import OrderedDict import pip._internal.utils.glibc from pip._internal.utils.compat import get_extension_suffixes from pip._internal.uti...
import numpy from .AssemblyFlaw import AssemblyFlaw class Assembly: """Base class to represent assemblies. See GibsonAssembly, BASICAssembly, etc. for usage classes Parameters ---------- parts List of part names corresponding to part records in a repository name Name of the a...
/* Copyright JS Foundation and other contributors, http://js.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 r...
import os KAFKA_BROKERS = os.getenv('KAFKA_BROKERS','localhost:9092') KAFKA_CERT_PATH = os.getenv('KAFKA_CERT_PATH','') KAFKA_USER = os.getenv('KAFKA_USER','') KAFKA_PASSWORD = os.getenv('KAFKA_PASSWORD','') KAFKA_SASL_MECHANISM= os.getenv('KAFKA_SASL_MECHANISM','SCRAM-SHA-512')
import logging import os import time from bubble import Atom, Box, Trajectory from bubble import read_stress, build_box, write_density, write_ratio, write_pressure from bubble import bubble_ratio, shell_ratio, bubble_pressure, shell_pressure from bubble import bubble_density, shell_density, xyz_density import ...
import pytest try: from bots.etf.tops import etfs_disc_command except ImportError: pytest.skip(allow_module_level=True) @pytest.mark.bots @pytest.mark.parametrize("sort", ["active"]) @pytest.mark.vcr def test_etfs_disc_command(mocker, recorder, sort): mocker.patch("bots.helpers.uuid_get", return_value="1...
import numpy as np from hls4ml.converters.keras_to_hls import parse_default_keras_layer from hls4ml.converters.keras_to_hls import keras_handler from hls4ml.model.hls_model import Quantizer from hls4ml.model.hls_model import IntegerPrecisionType @keras_handler('InputLayer') def parse_input_layer(keras_layer, input_n...
#include <errno.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <sys/ioctl.h> #include <stdlib.h> #include <string.h> #define KEX_BASE 0x43544601 #define KEX_CREATE (KEX_BASE) #define KEX_GETARR (KEX_BASE + 1) #define KEX_SETARR (KEX_BASE + 2) #define KEX_DELETE (KEX_BASE + 5...
import { assert } from 'chai'; import React from 'react'; import { shallow, render } from 'enzyme'; import { i18nTranslator } from '@jenkins-cd/blueocean-core-js'; import { latestRuns } from './data/runs/latestRuns'; import RunDetailsChanges from '../../main/js/components/RunDetailsChanges'; const t = i18nTranslator(...
from typing import Union, Tuple import pytest import torch import torch.nn as nn from torch.testing import assert_allclose from torch.autograd import gradcheck import kornia import kornia.testing as utils # test utils from kornia.constants import pi from kornia.augmentation import ( RandomDepthicalFlip3D, R...
def prenom(): prenom = input("Bonjour ! Quel est votre prénom?\n") if (prenom == 'Johnny'): print("Hello, my love!") else: print("Salut, " + prenom + " !" ) prenom()
#----------------------------------------------------------------------------- # Copyright (c) 2005-2015, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
// (1) Desired editor features: import 'monaco-editor/esm/vs/editor/browser/controller/coreCommands.js'; // import 'monaco-editor/esm/vs/editor/browser/widget/codeEditorWidget.js'; // import 'monaco-editor/esm/vs/editor/browser/widget/diffEditorWidget.js'; // import 'monaco-editor/esm/vs/editor/browser/widget/diffNavi...
#********************************************************************************* # # Inviwo - Interactive Visualization Workshop # # Copyright (c) 2019-2021 Inviwo Foundation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the f...
module.exports = { add:function(a,b){ return a + b; } }
# coding: utf-8 """ Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at http://www.apache.org/licenses/LICENSE-2.0 or in ...
module.exports = function muddleware(...originalHandlers) { return function middleware(req, res, next) { // Clone on each request const handlers = [...originalHandlers]; // If running outside of express middleware then you may not have 'next' so ensure we have a final call and handle any er...
import ObjectShape from '../'; describe('objectOf validator creator', () => { it('should return false on invalidly created validator', () => { const shape = new ObjectShape({ author: ObjectShape.objectOf([]), }); const object = { author: { name: 'Bob Goodfellow', }, }; ...
import React, { PropTypes } from 'react'; import { toTitleCase } from '../../../utils'; import { giType } from '../../../config'; import { LabelWrapper, Label, } from './styled-components'; const GiLabel = ({ type, giValueDisplay, large }) => { const thisType = type || giType(giValueDisplay); let label = toT...
//引入express模块 const express=require("express"); //引入cors模块 const cors=require("cors"); const multer=require("multer"); const fs=require("fs"); // 创建连接池 const mysql=require("mysql"); pool=mysql.createPool({ host:'127.0.0.1', user:"root", password:"", database:"hy", connectionLimit: 10 }); // 创建expr...
/* eslint-disable no-irregular-whitespace */ const config = { /** * Configure the account/resource type for deployment (with 0 or 1) * - accountType: controls account type, 0 for global, 1 for china (21Vianet) * - driveType: controls drive resource type, 0 for onedrive, 1 for sharepoint document * * Fo...
/* Garbage collection for the GNU compiler. Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your ...
import forEach from 'tui-code-snippet/collection/forEach'; import Colorpicker from '@/ui/tools/colorpicker'; import Submenu from '@/ui/submenuBase'; import templateHtml from '@/ui/template/submenu/icon'; import { isSupportFileApi, assignmentForDestroy } from '@/util'; import { defaultIconPath, eventNames, selectorNames...
#!/usr/bin/env python """This script pulls completed subjects from the Scribe mongodb for Workflow 3, and writes these annotations, coordinates, and text to the workflow database. This data can be used to create training data for the CRF NLP machine learning process or as ground truth for the outupt of that process. ...
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/viz/polar_chart"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/u...
import asyncio import json import httpx from lnbits.core import db as core_db from lnbits.core.models import Payment from lnbits.tasks import register_invoice_listener from lnbits.core.views.api import api_wallet from lnbits.core.crud import get_wallet from lnbits.core.views.api import api_payment, api_payments_decode...
import logging import pytest from uptimer.main import main def test_main_func(mocker, log): loader = mocker.patch("uptimer.main.load_plugin") processor = mocker.patch("uptimer.main.static_reader_writer_processor") main() assert len(log.events) > 0 assert log.has("Starting uptimer") loader...
(window.webpackJsonp=window.webpackJsonp||[]).push([[138],{3676:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return i}));r(6),r(7);var n=r(0);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&...
# Copyright 2013-2019 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 Gmake(AutotoolsPackage): """GNU Make is a tool which controls the generation of executable...
from logging import getLogger import numpy as np from scipy import sparse from sklearn import base from sklearn.model_selection import KFold import pandas as pd from tensorflow.keras.callbacks import EarlyStopping, ReduceLROnPlateau from tensorflow.keras.layers import Embedding, Dense, Dropout, Input, Reshape, Concaten...
//===----------------------------------------------------------------------===// // // Peloton // // cost_and_stats_calculator.h // // Identification: src/include/optimizer/stats_calculator.h // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===-------------------------...
# Do the necessary imports import argparse import shutil import base64 from datetime import datetime import os import cv2 import numpy as np import socketio import eventlet import eventlet.wsgi from PIL import Image from flask import Flask from io import BytesIO, StringIO import json import pickle import matplotlib.ima...
"use strict";(self.webpackChunkbank=self.webpackChunkbank||[]).push([[952],{952:(f,s,n)=>{n.r(s),n.d(s,{OPOModule:()=>M});var u=n(6019),m=n(1382),O=n(4382),t=n(3668);const h=[{path:"pac",loadChildren:()=>Promise.all([n.e(138),n.e(659),n.e(100),n.e(506),n.e(592),n.e(101)]).then(n.bind(n,3101)).then(o=>o.PACModule)}];let...
class Cacti { constructor(t) { this.type = t; switch (this.type) { case 0: //small cactus this.w = 40; this.h = 80; break; case 1: //big cactus this.w = 60; this.h = 120; break; case 2: //small cacti this.w = 120; this.h =...
# 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 agreed to in writing, software # d...
from guillotina import configure from guillotina import app_settings from guillotina.interfaces import IResource from guillotina_volto.interfaces import IDefaultBlocksLayout from guillotina_volto.interfaces import IDefaultBlocks @configure.adapter(for_=IResource, provides=IDefaultBlocksLayout) class DefaultBlocksLayo...
import React from 'react'; import Link from 'gatsby-link'; const Footer = ({ meta }) => ( <footer className="footer"> <div className="footer__content"> <ul className="footer__links"> <li> <a href="https://github.com/tinrab">GitHub</a> </li> <li> <a href="https://...
#!/usr/bin/env python3 import os import re import sys from typing import List, Tuple def find_decls(ino: str) -> Tuple[List[str], List[str]]: with open(ino, encoding="utf8") as f: txt = f.read() incls = re.findall(r"^#include.*$", txt, re.MULTILINE) decls = re.findall( r"^(?:(?...
/* JavaScript Snake By Patrick Gillespie http://patorjk.com/games/snake */ /** * @module Snake * @class SNAKE */ var SNAKE = SNAKE || {}; /** * @method addEventListener * @param {Object} obj The object to add an event listener to. * @param {String} event The event to listen for. * @param {Function} funct The functio...
export { default as Home } from "./Home/Home"; export { default as Login } from "./Login"; export { default as Register } from "./Register"; export { default as NotFound } from "./NotFound";
#!/usr/bin/env python import rospy from predicator_msgs.msg import PredicateStatement from predicator_planning.srv import * from trajectory_msgs.msg import JointTrajectory from moveit_msgs.msg import * from control_msgs.msg import * import actionlib rospy.init_node('test_predicate_planning_node') planner = rospy.Ser...
# ############## # metadata # # ############## __author__ = "Sigmmma" # YYYY.MM.DD __date__ = "2020.10.30" __version__ = (1, 1, 2) from arbytmap import constants from arbytmap.arby import * from arbytmap import bitmap_io, constants, dds_defs, ext,\ format_defs, swizzler __all__ = ("bitmap_io", "co...
/******************************************************************************* * Copyright 2019 UChicago Argonne, LLC. * (c.f. AUTHORS, LICENSE) * * This file is part of the nrm-extra project. * For more info, see https://github.com/anlsys/nrm-extra * * SPDX-License-Identifier: BSD-3-Clause ******************...