text
stringlengths
3
1.05M
# # PySNMP MIB module Unisphere-SMI (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Unisphere-SMI # Produced by pysmi-0.3.4 at Wed May 1 12:55:07 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
# Copyright 2001-2014 by Vinay Sajip. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appear in all copies and that # both that copyright notice and this permissio...
import {combineReducers} from 'redux'; import authReducer from './auth'; import cartReducer from './cart'; import addressReducer from './address'; const reducers = combineReducers({ auth: authReducer, cart: cartReducer, address: addressReducer, }); export default reducers;
// @flow import * as React from 'react'; import { View, ScrollView, Platform } from 'react-native'; import { Button, StyleSheet } from '@kiwicom/universal-components'; import { defaultTokens } from '@kiwicom/orbit-design-tokens'; import { graphql, createFragmentContainer } from '@kiwicom/margarita-relay'; import type...
const canvas = document.querySelector('canvas'); const ctx = canvas.getContext('2d'); canvas.width = 800; canvas.height = 500; const cw = canvas.width; const ch = canvas.height; let snake = { x: cw/2, y: ch/2, dir: "", len: 1, w: 10, h: 10, speed: 10, slad : [] }; const apple = { x...
def fatorial(n, show=False): """[Calculo do fatorial de um número] Arguments: n {[int]} -- [Numero a ser calculado o fatorial] """ if n == 0: n = 1 f = 1 cont = n while cont != 1: if show: print(f'{cont} X ', end='') f *= cont con...
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
let team = { _players: [{ _firstName: 'Diego', _lastName: 'Lainez', _age: 21 }, { _firstName: 'Hirving', _lastName: 'Lozano', _age: 25 }, { _firstName: 'Guillermo', _lastName: 'Ochoa', _age: 35 } ], _games: [{ _opponent: 'Brazil', _teamPoints: 8, _opponentPoints: 6 }, { _opponent: 'France', _tea...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _moment = require('moment'); var _moment2 = _interopRequireDefault(_moment); var _ca_ES = require('rc-pagination/lib/locale/ca_ES'); var _ca_ES2 = _interopRequireDefault(_ca_ES); var _ca_ES3 = require('../date-picker/locale/ca_ES...
/* * Copyright (c) 2018 Ilya Tagunov <tagunil@gmail.com> * * SPDX-License-Identifier: Apache-2.0 */ #include <kernel.h> #include <device.h> #include <init.h> #include <pinmux.h> #include <sys_io.h> #include <pinmux/stm32/pinmux_stm32.h> /* pin assignments for RAINBONIC-L151CC board */ static const struct pin_con...
import xml.etree.ElementTree from io import BytesIO from fHDHR.tools import sub_el class Lineup_XML(): device_xml = None def __init__(self, settings, device): self.config = settings self.device = device def get_lineup_xml(self, base_url, force_update=False): if not self.device_x...
const chalk = require('chalk') module.exports = { ok: msg => console.log(chalk.green(`- [ok] ${msg}`)), err: msg => console.log(chalk.red(`- [err] ${msg}`)), info: msg => console.log(chalk.blue(`- [info] ${msg}`)), debug: msg => console.log(chalk.debug(`- [info] ${msg}`)) }
def main(): palindrome = [it1*it2 for it1 in range(100,1000) for it2 in range(it1,1000) if str(it1*it2)==str(it1*it2)[::-1]] for tc in range(int(input())): N = int(input()) print(max(filter(lambda x: x<N,palindrome))) if __name__=="__main__": main()
/*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['./UniversalDate','../CalendarType','sap/base/Log','./_Calendars'],function(U,C,L,_){"use strict";var I=U.extend("sap.ui.core.date.Islamic",{constructor:f...
import React, { useState } from 'react'; import classNames from '../../../utils/classNames'; import Accordion from '../../common/Accordion'; import AccordionTrigger from '../../send/components/AccordionTrigger'; import Breakdown from '../../send/components/css/Breakdown.css'; import Amount from '../../send/components/...
from . import fusion from . import model from . import utilities
import os from pathlib import Path from typing import Iterable from .ext import Date from .ext import make_weekday_calendar, parse_calendar, make_const_calendar from .weekday import parse_weekdays #------------------------------------------------------------------------------- def load_calendar_file(path, ...
from debiai.config import DebiaiConfig def test_config(): config = DebiaiConfig() assert config is not None assert config.debiai_app_url is not None
const path = require('path') const webpack = require('webpack') const nodeExternals = require('webpack-node-externals') module.exports = env => { return { target: 'node', node: { __dirname: false, __filename: false }, entry: { main: './src/main.js' }, output: { filenam...
/** * Schema Definitions * */ import mongoose from 'mongoose'; export const RevisionsSchema = new mongoose.Schema({ hash: String, message: String, author_name: String, author_email: String, date: Date }); // Compiles the schema into a model, opening (or creating, if // nonexistent) the 'Topic' collection...
var searchData= [ ['pn_5fbegin_5flinked',['pn_begin_linked',['../group__li.html#ga5f00d217fd9014417efe0e28e515e31a',1,'pn_begin_linked(PN_NUMC numcores, void *frame_adr):&#160;pn_link.c'],['../group__li.html#ga5f00d217fd9014417efe0e28e515e31a',1,'pn_begin_linked(PN_NUMC numcores, void *frame_adr):&#160;pn_link.c']]],...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2016-2019 Couchbase, 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 * * ...
from conans import tools from .test_check_for_deprecation import _create_recipe, MockOutputResultCheck from bincrafters_conventions.actions.check_for_download_hash import check_for_download_hash from bincrafters_conventions.actions.check_for_required_attributes import check_for_required_attributes from bincrafters_con...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, 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 ri...
""" WSGI config for api project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from whitenoise.django import DjangoWhiteNoise from django.core.wsgi import get_wsgi_applic...
"""Aliases for complex types from `typing`.""" from typing import TYPE_CHECKING, Awaitable, Callable, TypeVar, Union from botx.models.messages import message if TYPE_CHECKING: from botx.bots.bots import Bot # noqa: WPS433 try: from typing import Literal # noqa: WPS433 except ImportError: from typing_e...
import time from direct.distributed.DistributedObjectAI import DistributedObjectAI from direct.distributed.ClockDelta import globalClockDelta class TimeManagerAI(DistributedObjectAI): def requestServerTime(self, context): self.sendUpdateToAvatarId(self.air.getAvatarIdFromSender(), 'serverTime', [context, globa...
// Copyright (c) 2014 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CRYPTO_COMMON_H #define BITCOIN_CRYPTO_COMMON_H #if defined(HAVE_CONFIG_H) #include "safepe-config.h" #endif #in...
import matplotlib.pyplot as plt import numpy import matplotlib def line_sensitivities(x,y,y2,xref,yref,yref2,valid,xstr,ystr,ystr2,title): #==================================================================== # create line plot #==================================================================== fig, ax1 = plt....
'use strict' const { getDependencyVersion } = require('../package-json-helpers') const NpmBase = require('./npm-base') const keywords = ['node'] module.exports = class NpmDependencyVersion extends NpmBase { static get category() { return 'platform-support' } static get route() { const { queryParams } ...
# # This file is part of pyasn1 software. # # Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pyasn1/license.html # import sys import unittest from tests.base import BaseTestCase from pyasn1.type import tag from pyasn1.type import namedtype from pyasn1.type import opentype fro...
import os import re _test_data_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../tests") def list_files(): """ Return a list of data files under tests/data These strings are suitable to be passed to read(). """ result = [] for dirname, dirnames, filenames in os.walk(_test_d...
def github_archive( name, repository = None, commit = None, sha256 = None, build_file = None, local_repository_override = None, mirrors = None, **kwargs): """A macro to be called in the WORKSPACE that adds an external from github using a workspace ...
// Copyright (c) 2012-2018 Intel Corporation // // 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, merge,...
from typing import Union, Tuple import torch import torch.nn as nn from torch.utils.data import DataLoader from tqdm import tqdm import os from datetime import datetime import numpy as np import setproctitle from detr import CellDETR import misc import validation_metric class ModelWrapper(object): """ This ...
// atof_ex.c : atof() example // ------------------------------------------------------------- #include <stdlib.h> // double atof( const char *s ); #include <stdio.h> int main() { char string[ ] = " -1.02857e+2 \260C"; // symbol for degrees Celsius double z; z = atof(string); print...
import asyncio from main import App from services.models.msg_track import MessageTracker class TestApp1(App): async def _simple_edit_message(self): users = await self.deps.broadcaster.all_users() me = users[0] bot = self.deps.bot message = await bot.send_message(me, 'test') ...
#! /usr/bin/env python # -*- coding: utf-8 -*- # test/test_enum.py # Part of enum, a package providing enumerated types for Python. # # Copyright © 2007–2009 Ben Finney <ben+python@benfinney.id.au> # This is free software; you may copy, modify and/or distribute this work # under the terms of the GNU General Public Lic...
$(function() { $('form').submit(function(e) { var d = {}; $(this).find('input, select').each(function() { d[$(this).prop('id').split('-')[1]] = $(this).val(); }); var l = $(this).prop('id').split('-'); d['method'] = l.slice(0, 2).join('-'); if (d['password...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__char_fscanf_multiply_12.c Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-12.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: fscanf Read data from the console using fscanf() * G...
/** * @author alteredq / http://alteredqualia.com/ * @modified by Egor Sorokin */ THREE.GlitchPass = function ( dt_size ) { var self = this; THREE.Pass.call( self ); if ( THREE.DigitalGlitch === undefined ) console.error( "THREE.GlitchPass relies on THREE.DigitalGlitch" ); var shader = THREE.Digi...
/** * 查看器(包含渲染和PTZ) * * @author Y3G */ import check from 'param-check' import Delegate from 'dodele/lib/Delegate' import undisposed from 'litchy/lib/decorator/undisposed' import callback from 'dodele/lib/decorator/callback' import Eventable from 'litchy/lib/Eventable' import mix from 'litchy/lib/mix' import selec...
import setuptools setuptools.setup( name='django-configurations-apps', version='2020.7.2', install_requires=open('requirements.txt').read().splitlines(), packages=setuptools.find_packages() )
import torch import torch.nn.functional as F import matplotlib.pyplot as plt from tqdm import tqdm from pyro.distributions import * import pyro from pyro.optim import Adam from pyro.infer import SVI, Trace_ELBO, Predictive assert pyro.__version__.startswith('1') pyro.enable_validation(True) pyro.set_rng_seed(1337) ...
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), path('', include('store.urls')), path('accounts/', include('accounts.urls')), path('category/', include('c...
from setuptools import setup setup( name='mikrotik-ssh', version='0.1', description='Python script to send SSH command to Mikrotik device.', author='Ignatiy Voronov', author_email='ignatiy.voronov@gmail.com', url='https://github.com/voronovim/mikrotik-ssh', packages=['mikrotik-ssh'], install_re...
'use strict'; /*eslint-env node*/ var webpack = require('webpack'); var path = require('path'); var ROOT_PATH = __dirname; var SOURCES_PATH = path.join(ROOT_PATH, 'sources'); var VENDORS_PATH = path.join(ROOT_PATH, '/examples/vendors'); var NODE_PATH = path.join(ROOT_PATH, 'node_modules'); var BUILD_PATH = path.join(...
#!/usr/bin/env python from distutils.core import setup setup(name='paws', version='1.1.0', description='Python Async Web Server', author='Erika Jonell', author_email='erika.jonell@gmail.com', url='https://github.com/xevrem/paws', packages=['paws'], install_requires=['jinja2']...
from django.contrib.gis.geoip import GeoIP import re import settings def get_region(ip): default_code = '47' # Moscow g = GeoIP() try: ip = re.sub(r'^::ffff:', '', ip) city = g.city(ip) if city['country_code'] == 'RU': code = city['region'] else: cod...
const path = require("path"); const CleanWebpackPlugin = require("clean-webpack-plugin").CleanWebpackPlugin; const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer"); const { UnusedFilesWebpackPlugin } = require("unused-files-webpack-plugin"); const _HtmlWebpackPlugin = require("html-webpack-plugin"); const ...
class InverterError(Exception): """Indicates error communicating with inverter""" class RequestFailedException(InverterError): """ Indicates request sent to inverter has failed and did not yield in valid response, even after several retries. Attributes: message -- explanation of the error...
//https://cdn.pixabay.com/photo/2015/03/26/09/41/chain-690088_960_720.jpg // TRUE :: https://w7.pngwing.com/pngs/38/204/png-transparent-computer-icons-check-mark-true-or-false-miscellaneous-company-logo.png // FALSE :: https://w7.pngwing.com/pngs/568/635/png-transparent-graphy-postage-stamps-rubber-stamp-fake-shemp-tex...
(function() { module("FlatColorPicker", { teardown: function() { kendo.destroy(QUnit.fixture); }, }); test("input: false does not show input", function() { var dom = $("<div />").appendTo(QUnit.fixture).kendoFlatColorPicker({ input: false }); var input...
if ($.support.pjax) { module("$.pjax", { setup: function() { var self = this stop() window.iframeLoad = function(frame) { self.frame = frame window.iframeLoad = $.noop start() } $("#qunit-fixture").append("<iframe src='home.html'>") this.iframe = $("ifra...
/* * * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok. * Product and Trade Secret source code contains trade secrets ...
'use strict'; angular.module("ngLocale", [], ["$provide", function ($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0434\u043e \u043f\u043e\u043...
(function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func...
//Global constants const nextClueWaitTime = 1000; //how long to wait before starting playback of the clue sequence //Global variables var pattern = []; var progress = 0; var gamePlaying = false; var tonePlaying = false; var volume = 0.5; //must be between 0.0 and 1.0 var guessCounter = 0; var clueHoldTime = 1000; //h...
import cv2 class Params(object): def __init__(self): self.pnp_min_measurements = 10 self.pnp_max_iterations = 10 self.init_min_points = 10 self.local_window_size = 10 self.ba_max_iterations = 10 self.min_tracked_points_ratio = 0.5 self.lc_min_inbetween_...
/** * Copyright (c) 2015 - present LibDriver All rights reserved * * The MIT License (MIT) * * 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 lim...
"use strict";!function(){function s(t){return Array.prototype.slice.call(t||[],0)}function t(t,e){if(!t)return[];if("string"!=typeof t)return s(t);if("string"==typeof e&&!(e=function(t){return"string"==typeof t?c.getElementById(t):t}(e)))return[];var n=9==(e=e||document).nodeType,i=n?e:e.ownerDocument||document;return(...
import React from 'react'; function ClearCanvas(props) { function eraseCanvas() { props.clear() } return ( <button onClick={eraseCanvas}>Start Over</button> ) } export default ClearCanvas
import json import re import logging from datetime import datetime from .ast import Func, If, Switch, Case, Call, Break, Return, Blank, Expr, Ast, FuncDeclaration, Include, Ifndef, Define, Endif, Comment, Decl, Assignment, Enum from typing import List, Dict # TODO: make sure, that there is only one exit function and i...
/* Copyright (c) 2019, Ameer Haj Ali (UC Berkeley), and Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
'use strict'; var async = require('async'); module.exports = function (client, stanzas) { stanzas.use(require('../stanza/streamFeatures')); client.features = { negotiated: {}, order: [], handlers: {} }; client.registerFeature = function (name, priority, handler) { th...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["wizard-dataplane-kubernetes"],{"0350":function(e,a){e.exports={apiVersion:"v1",kind:"Namespace",metadata:{name:null,namespace:null,annotations:{"kuma.io/sidecar-injection":"enabled","kuma.io/mesh":null}}}},"259a":function(e,a,t){"use strict";var n=t("c1f9"),s=...
# Copyright 2020 The TensorFlow Quantum 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...
#ifndef HUAWEICLOUD_SDK_ECS_V2_MODEL_NovaServerNetwork_H_ #define HUAWEICLOUD_SDK_ECS_V2_MODEL_NovaServerNetwork_H_ #include <huaweicloud/ecs/v2/EcsExport.h> #include <huaweicloud/core/utils/ModelBase.h> #include <huaweicloud/core/http/HttpResponse.h> #include <string> namespace HuaweiCloud { namespace Sdk { names...
const hre = require("hardhat"); async function main() { // todo: change address const oracleDAOContractAddress = "0x9208C2B417Ec2699454843A06A5E49fA6dd88422"; // todo: update addresses const addressList = [ "0x6d2e5279b106843f6E924194401B50e6e27FE12a", "0xbE14Eb1ffcA54861D3081560110a45F4A1A9e9c5", ...
#!/usr/bin/python3 github_token = "${{ secrets.GITHUB_TOKEN }}" super_linter=f""" name: Super-Linter Code Base # # Documentation: # https://help.github.com/en/articles/workflow-syntax-for-github-actions # on: [push, pull_request] jobs: build: name: Lint Code Base runs-on: ubuntu-latest steps: ...
# coding: utf-8 # # Project: FabIO X-ray image reader # # Copyright (C) 2010-2016 European Synchrotron Radiation Facility # Grenoble, France # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software")...
(function(factory){if(typeof module==="object"&&typeof module.exports!=="undefined"){module.exports=factory}else{factory(FusionCharts)}})(function(FusionCharts){(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var ...
/** @jsx jsx */ import { Transforms } from 'slate' import { jsx } from '../../..' export const run = editor => { Transforms.delete(editor, { unit: 'line' }) } export const input = ( <editor> <block> one two thr <cursor /> ee </block> </editor> ) export const output = ( <editor> ...
from django.contrib.auth import get_user_model, forms from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ from django import forms as gen_forms User = get_user_model() class UserChangeForm(forms.UserChangeForm): class Meta(forms.UserChangeForm.Meta): ...
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def hasCycle(self, head): """ :type head: ListNode :rtype: bool """ tortoise = head hare = head ...
# -*- coding: utf-8 -*- """Correlations.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/124lq_wmY0vSG6wNF2BU8bBmkfkagzNZb # Correlations and understanding them Relationship can be either linear, non linear, monotonic and no relationship. We will...
import PropTypes from 'prop-types'; import React from 'react'; /** * The Category header component */ const LinkListItem = ({ item }) => { const attributeOptions = {}; if( typeof item.onClick === 'function' ) { attributeOptions.onClick = item.onClick; // if we find an onClick event but no link we make it a...
import cv2 import pickle import numpy as np import matplotlib.pyplot as plt from tqdm import tqdm from pathlib import Path from torch.utils.data import Dataset from utils.data_manipulation import resize, normalize_mean_variance, generate_affinity, generate_target class DatasetSYNTH(Dataset): def __init__(self, cf...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc.5-master-9082e4a */ function GridListDirective(t,e,i,r){function n(n,o,a,u){function l(){for(var t in e.MEDIA)r(t),r.getQuery(e.MEDIA[t]).addListener(G);return r.watchResponsiveAttributes(["md-cols","md-row-height","md-g...
var http = require( "http" ); var fs = require( "fs" ); var x = 0; function serverFn( req, res ) { for( field in req ) { console.log( "R."+field+" = ..."/*+req[ field ]*/ ); } var filename = req.url.substring( 1, req.url.length ); try { var contents = fs.readFileSync( filename ...
import React, { useEffect, useContext } from 'react'; import { Switch, Route, useLocation } from 'react-router-dom'; import { TocContext } from '../utils'; import { Usage } from './Usage'; import { PageView } from './PageView'; import styleGuide from '../data/styleGuide'; import documentation from '../data/...
import numpy as np import skfuzzy as fuzz import matplotlib.pyplot as plt class Particao: def __init__(self, inicio, fim, discretizacao, tiposConjunto): self.inicio = inicio self.fim = fim self.discretizacao = discretizacao self.tiposConjunto = tiposConjunto self.conjuntos...
""" Command-line entrypoints for `pip-audit`. """ import argparse import enum import logging import os import sys from contextlib import ExitStack from pathlib import Path from typing import List, NoReturn, Optional, Type, cast from pip_audit import __version__ from pip_audit._audit import AuditOptions, Auditor from ...
# Makes available all custom algorithms that I have worked with import os import numpy as np from util.approximate import WeightedApproximator from util.math import SMALL epsilon = 8 * SMALL # = 8 * SQRT(EPSILON(float)) ibudget = 10000 # 200000 # IBUDGET - maximum number of steps to take through mesh, default 50K # ...
/* crypto/evp/evp_enc.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-...
//modes //- per texture //- texture coordinates //- vertex color and extras //- alpha test //StandardMaterial class ************************** /* Warning: a material is not a component, because it can be shared by multiple nodes */ /** * StandardMaterial class improves the material class * @namespace LS *...
from .import display __all__ = ['display']
import { Alert } from "react-native"; export function AsyncAlert(title, message) { return new Promise((resolve, reject) => { Alert.alert( title, message, [ { text: "Tamam", onPress: () => resolve("YES") }, //{text: 'NO', onPress: () => resolve('NO') } ], { cancelable...
import React, { Component } from 'react'; class Header extends Component { render() { console.log(this.props) return ( <div className="header"> <ul> <li>{this.props.test}</li> <li>{this.props.test}</li> <li>{this.props.test}</li> </ul> </div> ); } }...
# -*- coding: utf-8 -*- ################################################################# # File : napari_browser_cz.py # Version : 0.0.8 # Author : czsrh # Date : 31.01.2021 # Institution : Carl Zeiss Microscopy GmbH # # Disclaimer: This tool is purely experimental. Feel free to # use it at you...
import json import django_filters from rest_framework import viewsets, permissions from rest_framework.response import Response from django.utils import timezone from django.utils.decorators import method_decorator from django.views.decorators.cache import cache_page from revisions.views import VersionableModelViewSe...
/** * @license * Copyright 2021 Google LLC. 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
# Generated by Django 3.0.7 on 2020-07-24 18:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('creating_user', '0005_auto_20200725_0007'), ] operations = [ migrations.RenameModel( old_name='Company_details', new_name='C...
/** * @file src/fileinfo/file_information/file_information_types/file_segment.h * @brief Class for file segment. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef FILEINFO_FILE_INFORMATION_FILE_INFORMATION_TYPES_FILE_SEGMENT_H #define FILEINFO_FILE_INFORMATION_FILE_INFORMATION_TYPES_F...
import React from 'react' import { RiCheckboxBlankCircleFill } from "react-icons/ri"; import { IoAlertCircleSharp, IoDocumentText } from "react-icons/io5"; import { GiCarWheel } from "react-icons/gi"; import { FaWrench } from "react-icons/fa"; import { AiFillCar, AiFillSetting } from "react-icons/ai"; import { MdLocal...
import { VEEAM_PORT } from './license.constants'; export default class VeeamEnterpriseLicenseCtrl { /* @ngInject */ constructor(VeeamEnterpriseService) { this.VeeamEnterpriseService = VeeamEnterpriseService; this.form = { port: VEEAM_PORT, }; } dismissModal() { this.trackClick(this.getLi...
# -*- coding: utf-8 -*- ''' Salt's pluggable authentication system This system allows for authentication to be managed in a module pluggable way so that any external authentication system can be used inside of Salt ''' # 1. Create auth loader instance # 2. Accept arguments as a dict # 3. Verify with function introspe...
a = false ? 1 : 2;
#!/usr/bin/env python3 # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' A script to check that the (Linux) executables produced by gitian only contain allowed gcc, glibc and libstdc+...
#!/usr/bin/python # # Copyright 2015 Google Inc. 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 b...