text
stringlengths
3
1.05M
import os from pathlib import Path from qtpy.QtWidgets import QListWidget from qtpy.QtCore import Qt class FolderListWidget(QListWidget): # be able to pass the Napari viewer name (viewer) def __init__(self, viewer, parent=None): super().__init__(parent) self.viewer = viewer self.setAc...
// Test that Array.prototype.pop doesn't call the [[HasProperty]] internal // method of objects when retrieving the element at the last index. var log = []; var array = []; var proxy = new Proxy(array, new Proxy({}, { get(t, trap, r) { return (t, pk, ...more) => { log.push(`${trap}:${String(pk)}`); ...
const e2e = require('../support/helpers/e2e').default const onServer = function (app) { app.get('/agent', (req, res) => { const agent = req.headers['user-agent'] return res.send(`<html><span id='agent'>${agent}</span></html>`) }) return app.put('/agent', (req, res) => { return res.json({ user...
from pyflink.datastream import StreamExecutionEnvironment from pyflink.table import EnvironmentSettings, StreamTableEnvironment, DataTypes def hello_world(): """ 从随机Source读取数据,然后直接利用PrintSink输出。 """ settings = EnvironmentSettings.new_instance().in_streaming_mode().use_blink_planner().build() env = ...
from glob import glob import re import os import logging from django.conf import settings from doc_builder.base import BaseBuilder, restoring_chdir from projects.utils import run from core.utils import copy_file_to_app_servers latex_re = re.compile('the LaTeX files are in (.*)\.') pdf_re = re.compile('Output writte...
from django.db import models # Create your models here. class Books(models.Model): bookName=models.CharField(max_length=200) authorName=models.CharField(max_length=200) price=models.CharField(max_length=200) content=models.TextField() path=models.ImageField(upload_to="media/BooksImage") descr=m...
from datetime import datetime, timedelta from django.db.models import Q from attendees.occasions.models import Gathering class GatheringService: @staticmethod def by_assembly_meets(assembly_slug, meet_slugs): return Gathering.objects.filter( meet__slug__in=meet_slugs, meet__a...
/****************************************************************** * * * Copyright Mentor Graphics Corporation 2004 * * * * All Rights Reserved. ...
// (C) Copyright 2015 Martin Dougiamas // // 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 agre...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 6 18:34:22 2020 From the matplotlib docs: Example of plotting matplot lib in pyqt5 @author: nlourie """ import sys import time import numpy as np from matplotlib.backends.qt_compat import QtCore, QtWidgets, is_pyqt5 if is_pyqt5(): from ma...
// // musicTimeFormatter.h // PlayerSample // // Created by co on 15/10/29. // Copyright © 2015年 caofarui. All rights reserved. // #import <Foundation/Foundation.h> @interface musicTimeFormatter : NSObject /** * *将时间秒数装换为格式化后的字符串 * **/ +(NSString *)getStringFormatBySconds:(float)sconds; /** * *将格式化后的字符串转换为时间...
'use strict'; module.exports = function(sequelize, DataTypes) { var Trial2Document = sequelize.define('Trial2Document', { trialId: { type: DataTypes.INTEGER, field: 'trial_id', allowNull: false }, documentId: { type: DataTypes.INTEGER, field: 'document_id', allowNull: ...
import discord import classes.osu as osu from typing import List class OsuListEmbed(discord.Embed): def __init__(self, title:str, color: str, scores:List[osu.Score], beatmaps:List[osu.Beatmap], user:osu.User, positions:List[int] = None, style:int = 1): super().__init__( title = discord.Embed....
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('C6A', ['C8pro']) Monomer('BaxA', ['BaxM', 'BaxA_1', 'BaxA_2', 'SmacM']) Monomer('Ligand', ['Receptor']) Monomer('C6pro', ['C3A']) Monome...
#!/usr/bin/env python """ ## install related sudo apt-get install python-psycopg2 python-sqlalchemy sudo pip install sqlalchemy_schemadisplay ## ensure there is a user and db ready if you run this script sudo su - postgres psql -U postgres CREATE USER ender WITH ENCRYPTED PASSWORD 'bugger'; \q create a database -----...
/* * 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 this list * of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce t...
#!/usr/bin/env python ### # Copyright (c) 2002-2007 Systems in Motion # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS I...
#!/usr/bin/env node const path = require('path'); const fs = require('fs'); let evaluationJavascriptFolder = path.resolve(__dirname, '../../../Resources/Javascript/'); let evaluationJavascriptFiles = ['cosnics_evaluation.common.js', 'cosnics_evaluation.umd.js', 'cosnics_evaluation.umd.min.js', 'cosnics_evaluation.com...
#ifndef ZSWCNODEZRANGESELECTOR_H #define ZSWCNODEZRANGESELECTOR_H #include "zswcnodeselector.h" class ZSwcNodeZRangeSelector : public ZSwcNodeSelector { public: ZSwcNodeZRangeSelector(); void setZRange(double minZ, double maxZ); virtual bool isSelected(const Swc_Tree_Node *tn); private: double m_minZ; do...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'removeformat', 'sr', { toolbar: 'Уклони форматирање' } );
require("dotenv").config(); module.exports = { siteMetadata: { title: `Moje książki`, subTitle: "Lista moich ulubionych książek", description: `Witam wszystkich na mojej stronie. Bazgrolę tu sobie o moich ksiunżkach`, welcome: "Cześć książkoluby", author: `@Staszek Olejnik` }, plugins: [ ...
#ifndef LANG_CODES_H_ #define LANG_CODES_H_ #include <QString> struct QtvLangCode { QString code; QString lang; }; static const char* shortLangList[][2] = { {"chi","Chinese"}, {"nld","\"Dutch; Flemish\""}, {"eng","English"}, {"fin","Finnish"}, {"fre","French"}, {"ger","German"}, {"ita","Italian"}, {"jpn","Jap...
import sys import os sys.path.append(os.path.abspath("../")) from unittest import TestCase from komand_palo_alto_pan_os.connection.connection import Connection from komand_palo_alto_pan_os.actions.show import Show import json import logging class TestShow(TestCase): def test_integration_show(self): """ ...
"""Cephadm orchestration host operations.""" import json import logging from copy import deepcopy from ceph.ceph import CephNode from ceph.utils import get_node_by_id from .common import config_dict_to_string from .maintenance import MaintenanceMixin from .orch import Orch, ResourceNotFoundError logger = logging.get...
#ifndef _IMAGE_DEFEAT_H #define _IMAGE_DEFEAT_H // DRAW IMAGE_DEFEAT extern void draw_image_defeat(unsigned int x, unsigned int y); extern UINT8 state_image_defeat(); #endif
# Generated by Django 3.1.7 on 2021-05-22 19:40 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('booksmanager', '0031_auto_20210522_2237'), ] operations = [ migrations.AlterField( model_name='toreadbook', ...
function log(message) { console.log(message); } var message = "Hello world"; log(message);
#! /usr/bin/env python # Hugo Chargois - 17 jan. 2010 - v.0.1 # Parses the output of iwlist scan into a table # You can add or change the functions to parse the properties # of each AP (cell) below. They take one argument, the bunch of text # describing one cell in iwlist scan and return a property of that cell. imp...
from app import app import urllib.request,json from .models import source from .models import article Source = source.Source Article = article.Article # Getting api key api_key = app.config["NEWS_API_KEY"] # Getting the source base url base_url = app.config["NEWS_API_BASE_URL"] articles_url = app.config["ARTICLE_API...
import everydate from '../src'; describe('setters', () => { let recur; beforeEach(() => { recur = everydate({ start: '2018-02-10', end: '2018-02-17', units: [1], measure: 'days' }); }); it('should set start', () => { const expected = ['2018-02-12', '2018-02-13', '2018-02-14...
import hashlib from sqlalchemy import func, or_ from sqlalchemy.orm import sessionmaker from core.renders import JsonResponse, redirect, render from core.request import GET, POST from dbconfig import engine from users.model import User def sign_in_user_get(environ, start_response): """ Used to render sign i...
/* * PowerPC64 atomic bit operations. * Dave Engebretsen, Todd Inglett, Don Reed, Pat McCarthy, Peter Bergner, * Anton Blanchard * * Originally taken from the 32b PPC code. Modified to use 64b values for * the various counters & memory references. * * Bitops are odd when viewed on big-endian systems. They wer...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
# -*- encoding: utf-8 -*- from delivery.ext.db import db class User(db.Model): __tablename__ = "user" id = db.Column("id", db.Integer, primary_key=True) email = db.Column("email", db.Unicode, unique=True) passwd = db.Column("passwd", db.Unicode) admin = db.Column("admin", db.Boolean) def __r...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This file is part of cronwrapper utility released under the MIT license. # See the LICENSE file for more information. from setuptools import setup, find_packages DESCRIPTION = ("A cron job wrapper to add some missing features (locks, " "timeouts, random ...
//This file is automatically rebuilt by the Cesium build process. define(function() { 'use strict'; return "float czm_planeDistance(vec4 plane, vec3 point) {\n\ return (dot(plane.xyz, point) + plane.w);\n\ }\n\ float czm_planeDistance(vec3 planeNormal, float planeDistance, vec3 point) {\n\ return (dot(planeNorm...
# !/usr/bin/env python # -*- coding: utf-8 -*- """Test api/municipalities/.""" def test_municipalities_root(client): """Start with a blank database.""" resp = client.get("/api/v1/municipalities/") assert 200 == resp.status_code
/***************************************************************************/ /* */ /* gxvcommn.c */ /* */ /* Tr...
import cv2 import numpy as np import os from os import path as osp __author__ = 'Yohai Devir, edited by Abdullah Zaiter' MAX_NEWTON_ITERATIONS = 40 N_BISECTION_ITERATIONS = 20 INITIAL_STEP_SIZE_PIX = 250 MIN_STEP_SIZE_PIX = 0.1 class NewtonRaphsonUndistort: def __init__(self): pass # region Internal...
/* Copyright (c) 2012, Broadcom Europe Ltd 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 t...
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
import json from abc import ABC, abstractmethod from typing import Optional from aiohttp import ClientResponse as Response from .mechanisms.fetch import IFetchMechanism from .models.request import IRestRequest from ..errors.fetching_errors import FetchMechanismFailed from ..utils.logging_utils import IMonitorLogger, ...
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
import csv filename = 'items.csv' reader = csv.reader(open(filename)) col = reader.next().index('id') ids = [line[col] for line in reader] ids = list(set(ids)) with open('ids.txt', 'w') as f: f.write('\n'.join(ids))
from __future__ import absolute_import from __future__ import unicode_literals from __future__ import division import mysuper.datasets as datasets
#from deepar.model import NNModel #from deepar.model.layers import GaussianLayer #from deepar.model.loss import gaussian_likelihood from . import NNModel from .layers import GaussianLayer, StudentTLayer from .loss import gaussian_likelihood, gaussian_sampler from .loss import studentt_likelihood, studentt_sampler from...
# Lint as: python3 # Copyright 2019 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 ...
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2017 Dean Jackson <deanishe@deanishe.net> # # MIT Licence. See http://opensource.org/licenses/MIT # # Created on 2017-12-17 # """A selection of helper functions useful for building workflows.""" import atexit from collections import namedtuple from contextl...
export function init() { 'use strict'; Element.prototype.hasClass = function(className) { return this.className && new RegExp('(^|\\s)' + className + '(\\s|$)').test(this.className); }; if (!('classList' in document.documentElement) && Object.defineProperty && typeof HTMLElement !== 'undefined...
import requests from datetime import datetime import time import os import json import hmac import hashlib import math import logging from datetime import datetime from coin import Coin from account import Account from _variables_ import _TIME_TO_DELAY_, _FUND_ from _transaction_handler_ import * from utils import * #...
var namespaceos_1_1rtos_1_1flags = [ [ "mode", "namespaceos_1_1rtos_1_1flags_1_1mode.html", null ] ];
from ..utils import TranspileTestCase, BuiltinFunctionTestCase class DirTests(TranspileTestCase): pass class BuiltinDirFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): function = "dir" not_implemented = [ 'test_class', ] class BuiltinDirTypeFunctionTests(BuiltinFunctionTestCase,...
from __future__ import absolute_import, unicode_literals VERSION = (1, 11, 0) __version__ = '.'.join(map(str, VERSION)) class LazySettings(object): def _load_settings(self): from feincms import default_settings from django.conf import settings as django_settings for key in dir(default_se...
$(document).ready(function() { var url = "http://localhost/deepak/sunil/"; function as_buss(a) { var on_id = $(a).attr('data-bussid'); var on_type = $(a).attr('data-type'); if (on_type != 'watch') { $.post(url + "admin/inc/bus_action.php", { ad_on_id: ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Blog', fields=[ ('id', models.AutoField(verbose...
function endSelectLoadAjax (btn) { btn.removeClass('disabled').attr('disabled', false); } function beforeSelectLoad (btn) { $(btn.data('target')).find('.option-response').remove(); btn.addClass('disabled').attr('disabled', true); } function successSelectLoad (response, btn) { endSelectLoadAjax(btn); $(btn.data('ta...
/* */ "format amd"; /*! jQuery Validation Plugin - v1.15.0 - 2/24/2016 * http://jqueryvalidation.org/ * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */ !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require(...
/* * This program has been developed by students from the bachelor Computer Science at Utrecht University * within the Software Project course. © Copyright Utrecht University (Department of Information and * Computing Sciences) */ const express = require('express'); const router = express.Router(); const mongoose ...
/* * * AddEventForm reducer * */ import produce from 'immer'; import { DEFAULT_ACTION } from './constants'; export const initialState = {}; /* eslint-disable default-case, no-param-reassign */ const addEventFormReducer = (state = initialState, action) => produce(state, (/* draft */) => { switch (action.type...
import usb
'use strict' var uri = require('../util/enclose-uri') var title = require('../util/enclose-title') module.exports = definition var space = ' ' var colon = ':' var leftSquareBracket = '[' var rightSquareBracket = ']' // Stringify an URL definition. // // Is smart about enclosing `url` (see `encloseURI()`) and `title...
#!/usr/bin/env python # # Copyright (c) 2015 Intel Corporation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of works must retain the original copyright notice, this # list of conditions and t...
const $ = require('./service') let service = null beforeAll(async () => { await $.onReady() service = $ }) describe('service', () => { test('create word', async () => { let doc = await service.word.create({word: '淘宝'}) expect(doc.id).toBeTruthy() }) })
import React, { useState, useEffect } from "react"; import request from "config/request"; // react-bootstrap components import { Badge, Button, Card, Navbar, Nav, Table, Container, Row, Col, } from "react-bootstrap"; import { CgUserRemove } from "react-icons/cg"; function User() { const [users, set...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["index-list"] = factory(); else root["cu...
"""Virtual gateway for Zigbee Home Automation.""" import asyncio import collections from datetime import timedelta import itertools import logging import os import time import traceback from typing import List, Optional from serial import SerialException from zigpy.config import CONF_DEVICE import zigpy.device as zig...
/* * This command deactivates the leaderboard channel this command is used it */ module.exports = (bot, message, args) => { if (bot.data.guilds[message.guild.id] == undefined || bot.data.guilds[message.guild.id].leaderboards[message.channel.id] == undefined) { message.channel.send("This channel doesn't have a leade...
#!/usr/bin/env python # Jiao Lin <jiao.lin@gmail.com> import os, numpy as np from bem import xscalc, diffraction from bem import xtaloriprobmodel as xopm from bem.matter import fccAl thisdir = os.path.dirname(__file__) def test1(): lambdas = np.arange(0.05, 5.5, 0.005) T = 300 # if max_diffraction_index ...
default_config = { 'templates_dir': 'templates', }
#ifndef _MMMEDIA_H__ #define _MMMEDIA_H__ #pragma once #include "mmtimeline.h" class MMMedia : public MMTimeline { public: MMMedia(CTIMEElementBase & elm, bool bFireEvents); virtual ~MMMedia(); virtual bool Init(); virtual HRESULT Update(bool bBegin, ...
const Interface = require("../../ExecProc/core/interface"); module.exports = class Test extends Interface { constructor(...args) { super(...args); this.createFunction("test::works", (arg)=>{ console.log(arg, true, this.argumentsLength(arg)); }); } }
const toggleMenu = navigation => { navigation.classList.toggle('navigation--is-open'); }; const buildButton = (toggle, callback) => { const button = document.createElement('button'); button.type = 'button'; button.classList.add('navigation__toggle'); button.innerHTML = toggle.innerHTML; button.addEventLi...
// note minimal tests as used throughout other tests describe('Buttons - options - buttons.action', function() { let params = undefined; dt.libs({ js: ['jquery', 'datatables', 'buttons'], css: ['datatables', 'buttons'] }); describe('Functional tests', function() { dt.html('basic'); it('Button present if n...
class Tree { public: Tree( int degree, int myRank, int size, int root ) : m_degree( degree ), m_myRank( myRank ), m_size( size ), m_numChildren(0), m_myVirtRank( myRank ), m_root( root ), m_parent( -1 ) { if ( root > 0 ) { if ( root...
var path = require('path'); var glob = require('glob'); var fs = require('fs-extra'); var through = require('through2'); var File = require('vinyl'); var StringDecoder = require('string_decoder').StringDecoder; var extend = require('util')._extend; var dotenv = require('dotenv'); var frontMatter = requir...
import time from roslibpy import Message from roslibpy import Topic from compas_fab.backends import RosClient with RosClient('localhost') as client: talker = Topic(client, '/chatter', 'std_msgs/String') talker.advertise() while client.is_connected: talker.publish(Message({'data': 'Hello World!'}...
import argparse from textwrap import dedent from io import StringIO from pathlib import Path import pytest from aiohttp_pydantic.oas import cmd PATH_TO_BASE_JSON_FILE = str(Path(__file__).parent / "oas_base.json") @pytest.fixture def cmd_line(): parser = argparse.ArgumentParser() cmd.setup(parser) retur...
// NOTE: This file was generated by the ServiceGenerator. // ---------------------------------------------------------------------------- // API: // People API (people/v1) // Description: // Provides access to information about profiles and contacts. // Documentation: // https://developers.google.com/people/ #i...
// // WVRPlayerViewProtocol.h // WhaleyVR // // Created by Bruce on 2017/8/17. // Copyright © 2017年 Snailvr. All rights reserved. // #import "WVRAPIConst.h" #pragma mark - player UI protocol @protocol WVRPlayerViewDelegate <NSObject> @required /** 点击播放-暂停按钮交互事件 @return 当前是否在播放 */ - (BOOL)actionPlayBtnClic...
import React, { Component } from "react"; import { connect } from "react-redux"; class PopupPage extends Component { constructor(props) { super(props); window.onload = function () { // Call JSO popupCompleted callback window.opener.popupCompleted(); setTimeout(function () { window.c...
/** * * @properties={type:12,typeid:36,uuid:"e9c5d286-edf5-4ac0-83fa-ae070ebdd2eb"} */ function display_name_column() { if (status_relation) { return table_or_relation+'.'+name_column } else { return name_column } } /** * * @properties={type:4,typeid:36,uuid:"70e036d3-dd20-45c8-8d77-3b680045d18c"} */ function...
export const linkResolver = doc => { if (doc.type === 'page') { return `/${doc.uid}` } return '/' }
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
import auth from './authService' import { DataService } from './sharedUtil' /// getProfile will fetch profile details about the user export function getProfile () { // TODO prob better to inject auth service so we can more easily mock? const ds = new DataService(auth) return ds.get(['current-user']) }
/*Debemos lograr tomar el importe por ID , transformarlo a entero (parseInt), luego mostrar el importe con un aumento del 10 % en el cuadro de texto "RESULTADO".*/ function MostrarAumento() { var sueldo; var resultado; var aumento; sueldo = document.getElementById("sueldo").value; sueldo = parseInt(sueldo); aumen...
import unittest class NumbersTest(unittest.TestCase): def test_equal(self): self.assertEqual(1 + 1, 2) def test_notequal(self): self.assertNotEqual(2, 1) def test_gre(self): self.assertGreater(2, 1) if __name__ == '__main__': unittest.main()
# -*- Python -*- # Return the options to use for a C++ library or binary build. # Uses the ":optmode" config_setting to pick the options. load( "//tensorflow/core:platform/default/build_config_root.bzl", "tf_cuda_tests_tags", "tf_sycl_tests_tags", "tf_additional_grpc_deps_py", "tf_additional_xla_de...
import moment from 'moment' export default function ( { name, address, phone, email, dueDate, date, id, notes, subTotal, type, vat, total, items, status, totalAmountReceived, balanceDue, company, }) { const today ...
import React from 'react'; const EuiIconBug = ({ title, ...props }) => ( <svg width={16} height={16} viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> <title>{title}</title> <path d="M10.651 5.126l.922-.455.884-2.343a.5.5 0 01.939.344L12.374 5.39l-1.45.717A5.3 5.3 0 0111 ...
// Copyright (c) 2017-2018 dirigeants. All rights reserved. MIT license. const { Command } = require('klasa') module.exports = class extends Command { constructor (...args) { super(...args, { permissionLevel: 6, requiredPermissions: ['MANAGE_ROLES'], runIn: ['text'], description: 'Unmute...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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-...
//import poly from './util/polyfills'; //import svg4everybody from '../vendor/svg4everybody'; import galleryGrid from './ui/gallery-grid'; let basePath; function init(){ //poly(); //svg4everybody(); setupGalleryGrid(); } function setupGalleryGrid(){ galleryGrid('.js-gallery', { imgPositions: [ { pos: { x ...
/******************************************************************************************** * SIDH: an efficient supersingular isogeny cryptography library * * Abstract: internal header file for P610 *********************************************************************************************/ #ifndef P610_I...
//===-- NativeProcessLinux.h ---------------------------------- -*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
import React from 'react' import { Global, css } from '@emotion/core' const GlobalStyles = () => ( <> <Global styles={css` *, *::before, *::after { box-sizing: border-box; margin: 0; } html { font-size: 62.5%; } body { ...
from datetime import datetime import re from config import hour24, journalsFilesFormat, journalsFilesExtension, journalsFolder, journalsPrefix,getFirebaseBucketName import requests import hashlib from os.path import basename bootTime = datetime.now() def getJournalPath(): dateTimeObj = datetime.now() if (journal...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* lib/krb5/krb/str_conv.c - Convert between strings and krb5 data types */ /* * Copyright 1995, 1999, 2007 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * requ...
from __future__ import annotations from typing import Any def raise_qsparser_kindly(): raise ModuleNotFoundError('please install qsparser for receiving query ' 'string as find argument') def query_to_object(query: str) -> dict[str, Any]: try: from qsparser import parse ...
import imp from logging import root import traceback import pandas as pd import numpy as np from zipfile import ZipFile import tensorflow as tf from tensorflow.keras import layers import tensorflow.keras as keras from pathlib import Path # import matplotlib.pyplot as plt # import matplotlib.pyplot as plt root_path...
/*! For license information please see pascaligo.js.LICENSE.txt */ define("vs/basic-languages/pascaligo/pascaligo",[],(()=>(()=>{var e=Object.defineProperty,o={};((o,n)=>{for(var t in(o=>{e(o,"__esModule",{value:!0})})(o),n)e(o,t,{get:n[t],enumerable:!0})})(o,{conf:()=>n,language:()=>t});var n={comments:{lineComment:"/...