text stringlengths 3 1.05M |
|---|
#!C:\Users\sandro.ferreira\PycharmProjects\InstagramBot\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-... |
"""ist440 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... |
function RADTODEGREE(a){return 180*a/Math.PI}function DEGREETORAD(a){return a*Math.PI/180}function Layer(){this.renderables=new Array,this.opacity=1,this.hasTransformations=!0,this.transformation=new Transformation,this.visible=!0}function PreloadImages(){this.assets=new Array,this.funcUpdate=void 0,this.funcComplete=v... |
import axios from 'axios'
const baseUrl = "/api"
export default {
getMyMessage() {
return axios({
method: 'get',
url: `${baseUrl}/sm/student/me`
})
},
getMyMessageById(id) {
return axios({
method: 'get',
url: `${baseUrl}/studentMessage... |
module.exports = new Date(2019, 5, 28)
|
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2019 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Index syncing extension."""
from __future__ import absolute_import, print_functio... |
'''A module for demonstrating exception'''
import sys
def convert(s):
'''Convert to an integer.'''
try:
return int(s)
except (ValueError, TypeError) as e:
print("Conversion error : {}".format(str(e)), file=sys.stderr)
raise
finally:
print("done!")
print(c... |
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
// Globals
var yScale;
var xScale;
var margin;
var barWidth;
var barOffset;
var div;
var height;
var currAggregateBy;
var data
function loadChart(aggregateBy, preserveMenuLabel) {
// Convert dates to format for rendering chart
// data = [{ "2016-09-20": { 1.0: 2, 2.0:1 } }];
if (currAggregateBy == aggregat... |
/**
* SendinBlue API
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/or... |
import argparse
import glob
import logging
import os
import random
import timeit
import numpy as np
import torch
from torch.utils.data import DataLoader, RandomSampler, SequentialSampler
from torch.utils.data.distributed import DistributedSampler
from tqdm import tqdm, trange
from transformers import (
MODEL_FOR_... |
import os
import json
class Struct:
def __init__(self, **args):
self._urls = {}
self._urls.update(args)
def get_url(self, key):
return self._urls[key]
def __getattr__(self, key):
return self._urls[key]
def __str__(self):
return str(self._urls)
def __rep... |
/*
* Document : compCharts.js
* Author : pixelcave
* Description: Custom javascript code used in Charts page
*/
var CompCharts = function() {
// Get random number function from a given range
var getRandomInt = function(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
... |
import axios from 'axios'
import moment from 'moment'
import { apiConfig } from '../../../config/apiConfig'
const BASE_URL = apiConfig.BASE_URL
export default {
// Pages should probably start at largest page and go down in number
// this way links stay around and it's easy to link toa particular page.
// perhap... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
#
# Metrix++, Copyright 2009-2019, Metrix++ Project
# Link: https://github.com/metrixplusplus/metrixplusplus
#
# This file is a part of Metrix++ Tool.
#
from metrixpp.mpp import api
import re
class Plugin(api.Plugin,
api.IConfigurable,
api.Child,
ap... |
class NoReturn:
"""Do not store the return value in the object store.
If a task returns this object, then Ray will not store this object in the
object store. Calling `ray.get` on the task's return ObjectIDs may block
indefinitely unless the task manually stores an object for the
corresponding Objec... |
# Think about how to improved based on this basis
def mincoin(coins, target):
coins.sort()
cnt = target
for coin in coins:
if target - coin >= 0:
tmp = 1 + mincoin(coins, target - coin)
if cnt > tmp:
cnt = tmp
else:
break
return cnt
... |
from pathlib import Path
import pytest
from souschef.recipe import Recipe
@pytest.fixture
def path_data() -> Path:
return Path(__file__).parent / "data"
@pytest.fixture(scope="function")
def pure_yaml_with_comments(path_data):
return Recipe(load_file=path_data / "pure.yaml", show_comments=True)
@pytest.... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2019 Shigeki Karita
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Decoder definition."""
import torch
from espnet.nets.pytorch_backend.transformer.attention import MultiHeadedAttention
from espnet.nets.pytorch_backend.transformer.decoder_la... |
'''
.. warning:: These drivetrain models are not particularly realistic, and
if you are using a tank drive style drivetrain you should use
the :class:`.TankModel` instead.
Based on input from various drive motors, these helper functions
simulate moving the robot in various... |
#ifndef __scanner_h__
#define __scanner_h__
#include <string>
#include <iostream>
#include <fstream>
#include <iterator>
#include "chunk.h"
namespace PsqlChunks
{
class ChunkScanner
{
protected:
std::istream & strm;
Chunk chunkCache;
linenumber_t line_number;
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.FIRST_GROUP_PATTERN = undefined;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.construc... |
# -*- coding: utf-8 -*-
# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2
|
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot f... |
const VERSION_INFO_KEY = 'VERSION_INFO';
export class FooterDao {
constructor(RESOURCE, ArtifactoryDaoFactory, ArtifactoryStorage) {
this.storage = ArtifactoryStorage;
this._resource = ArtifactoryDaoFactory()
.setPath(RESOURCE.FOOTER)
.getInstance();
}
get(force = false) {
... |
/************************************************************************************************************************
Copyright (c) 2016, Imagination Technologies Limited and/or its affiliated group companies.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, ... |
##
# Copyright : Copyright (c) MOSEK ApS, Denmark. All rights reserved.
#
# File : opt_server_async.py
#
# Purpose : Demonstrates how to use MOSEK OptServer
# to solve optimization problem asynchronously
##
import mosek
import sys
import time
def streamprinter(msg):
sys.stdout.write(msg)
... |
goog.provide('ol.interaction.Select');
goog.provide('ol.interaction.SelectEvent');
goog.provide('ol.interaction.SelectEventType');
goog.provide('ol.interaction.SelectFilterFunction');
goog.require('goog.array');
goog.require('goog.asserts');
goog.require('goog.events');
goog.require('goog.events.Event');
goog.require(... |
/* eslint-disable no-shadow */
import '../../utils/dotenv';
import pm2 from 'pm2';
import mkdir from '../../utils/logsFolder';
const company = 'coronavirus';
const path = mkdir(company);
pm2.connect(err => {
if (err) {
console.error(err);
process.exit(2);
}
pm2.start(
[
{
name: `${co... |
var Neutralino;(()=>{"use strict";var e={885:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.open=t.getConfig=t.keepAlive=t.killProcess=t.exit=void 0;const n=i(69);t.exit=function(e){return n.request({url:"app.exit",type:n.RequestType.POST,data:{code:e},isNativeMethod:!0})},t.killProcess=function(){return ... |
const log = require("../utils/log");
const calc = require("../utils/calc");
const { DerivativeProviders, ethToken, DerivativeStatus, DerivativeType } = require("../utils/constants");
const Fund = artifacts.require("OlympusBasicFund");
const AsyncWithdraw = artifacts.require("components/widrwaw/AsyncWithdraw");
const Ma... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_MEDIA_ROUTER_PROVIDERS_DIAL_DIAL_INTERNAL_MESSAGE_UTIL_H_
#define CHROME_BROWSER_MEDIA_ROUTER_PROVIDERS_DIAL_DIAL_INTERNAL_MESSAGE_... |
export default {
CHANGE_LOGS_NUM: (state)=>{
let logs = state.index.logs;
let newLogs = [];
logs.map((item,i)=>{
if(item.indexOf(". ") === -1){
newLogs.push((i+1) + '. ' + item)
}else{
newLogs.push(item)
}
});
... |
/* See LICENSE file for copyright and license details. */
/* Default settings; can be overriden by command line. */
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */
/* ... |
#!/usr/bin/python
'''
--- Day 7: The Sum of Its Parts ---
You find yourself standing on a snow-covered coastline; apparently, you landed a little off course. The region is too hilly to see the North Pole from here, but you do spot some Elves that seem to be trying to unpack something that washed ashore. It's quite col... |
self.insert_sample().running = False
self.insert_sample().timeout_start = 1559568346.443381
cancelled = False
timeout_period = 10
timeout_start = 1559569685.139272
x = 0.263365334794732
y = 0.548708348754011
self.retract_sample().running = False
self.retract_sample().timeout_start = 1559569686.983505
self.pump_turn_off... |
'use strict'
const assert = require('assert')
const sinon = require('sinon')
const { cloneDeep } = require('lodash')
const IlpPacket = require('ilp-packet')
const appHelper = require('../helpers/app')
const logHelper = require('../helpers/log')
const logger = require('../../build/common/log')
const START_DATE = 14344... |
import morepath
from more.webassets import WebassetsApp
from more.webassets.core import webassets_injector_tween
from onegov.core.cache import lru_cache
from onegov.core.security import Public
from onegov.user.auth.core import Auth
from onegov.user.auth.provider import AUTHENTICATION_PROVIDERS, AzureADProvider
from one... |
import { Interpolant } from '../Interpolant.js';
import { Quaternion } from '../Quaternion.js';
/**
* Spherical linear unit quaternion interpolant.
*/
function QuaternionLinearInterpolant( parameterPositions, sampleValues, sampleSize, resultBuffer ) {
Interpolant.call( this, parameterPositions, sampleVal... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE194_Unexpected_Sign_Extension__negative_memcpy_42.c
Label Definition File: CWE194_Unexpected_Sign_Extension.label.xml
Template File: sources-sink-42.tmpl.c
*/
/*
* @description
* CWE: 194 Unexpected Sign Extension
* BadSource: negative Set data to a fixed nega... |
# -*- coding: utf-8 -*-
"""A plugin to generate a list of domains visited."""
from urllib import parse as urlparse
from plaso.analysis import interface
from plaso.analysis import manager
class UniqueDomainsVisitedPlugin(interface.AnalysisPlugin):
"""A plugin to generate a list all domains visited.
This plugin ... |
# Generated by Django 3.1.4 on 2020-12-12 06:58
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/kinesis/Kinesis_EXPORTS.h>
#include <aws/kinesis/KinesisRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/kinesis/model/ScalingType.h>
#include <util... |
/*
* Copyright (c) 2015-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, p... |
import { clientLogger } from './client_logger';
export function createDataCluster(server) {
const config = server.config();
const ElasticsearchClientLogging = clientLogger(server);
class DataClientLogging extends ElasticsearchClientLogging {
tags = ['data'];
logQueries = getConfig().logQueries;
}
f... |
from uuid import uuid4
from django.db import models
from users.models.user import User
class Achievement(models.Model):
code = models.CharField(primary_key=True, max_length=32, null=False, unique=True)
name = models.CharField(max_length=64, null=False)
image = models.URLField(null=False)
description... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/MoneyQuantity) on 2019-07-29.
# 2019, SMART Health IT.
import sys
from dataclasses import dataclass
from typing import ClassVar, Optional, List
from .fhirabstractbase import empty_list
from... |
/*! \file */
#ifndef _OSM_LUA_PROCESSING_H
#define _OSM_LUA_PROCESSING_H
#include <vector>
#include <string>
#include <sstream>
#include <map>
#include "geom.h"
#include "osm_store.h"
#include "shared_data.h"
#include "output_object.h"
#include "shp_mem_tiles.h"
#include "osm_mem_tiles.h"
#include "attribute_store.h"... |
// Allocator traits -*- C++ -*-
// Copyright (C) 2011-2019 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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;... |
env={
'version':'1.0',
'p1open':0,
'SIDEX':100,
'SIDEY':120,
'userLang':"fr",
'defaultdir':"C:\\",
} |
# -------------------------------------------------------------------------------
# Name: wiof_objstor_datasync.py
# Purpose: sync files between WIOF S3 bucket and OpenShift pvc
#
# Author: HHAY, JMONTEBE, PPLATTEN
#
# Created: 2021-07-21
# Notes: This is a little-tested proof of concept upload/down... |
/* MIT License
*
* Copyright (c) 2016-2020 INRIA, CMU and Microsoft 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 r... |
var gulp = require("gulp");
var karma = require("karma").server;
gulp.task("test-browsers", ["build"], function (done) {
/**
* This ensures that the browser tests only run on the first job,
* instead of wastefully running the browser tests on every job.
*/
if (process.env.TRAVIS_BUILD_NUMBER) {
if (process.e... |
'''
Created on 02.05.2021
@author: michael
'''
import textract
from Asb.ScanQualityScorer import AltoPageLayout
def process(filename):
text = textract.process(filename)
try:
alto_layout = AltoPageLayout(filename)
score = alto_layout.scan_quality
except:
score = None
... |
from django.conf.urls import url
from rest_framework import routers
from areas import views
urlpatterns = [
# url(r"^infos/$",views.ShengFen.as_view()),
# url(r"^infos/(?P<shang>\d{6})/$", views.ShiXian.as_view()),
]
router=routers.DefaultRouter()
router.register(r'infos',views.ChengShi,base_name='chengshi')... |
later.array = {}; |
import "../styles/global.css";
import "../styles/boostrap.min.css";
import "react-toastify/dist/ReactToastify.css";
import { StateProvider } from "../components/context/state";
export default function App({ Component, pageProps }) {
const initialState = {
links: [],
socialLinks: [],
};
const ... |
from time import *
import cv2 as cv
import torch
from PIL import Image
from evolveface.align.detector import detect_faces
from evolveface.align.visualization_utils_opencv import show_result
from evolveface.util.extract_feature_v3 import get_embeddings
from instance.calcDistance import calcDistance
from instance.load_... |
/*
* Constants and utilities for encoding channels (Visual variables)
* such as 'x', 'y', 'color'.
*/
import * as tslib_1 from "tslib";
import { flagKeys } from './util';
export var Channel;
(function (Channel) {
// Facet
Channel.ROW = 'row';
Channel.COLUMN = 'column';
// Position
Channel.X = 'x'... |
import axios from 'axios';
export default store => next => action => {
const {dispatch, getState} = store;
/*如果dispatch来的是一个function,此处不做处理,直接进入下一级*/
if (typeof action === 'function') {
action(dispatch, getState);
return;
}
/*解析action*/
const {
promise,
types,
... |
# ==============================================================================
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root
# for full license information.
# ==============================================================================
# ... |
"""
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... |
/**
* Auto-generated action file for "SubscriptionsManagementClient (azsadmin-DirectoryTenant)" API.
*
* Generated at: 2019-06-11T15:13:34.464Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / azure-com-azsadmin-directory-tenant-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowg... |
from decouple import config
PORT = 5000
TOKEN = config('PERSONAL_BOT_TOKEN', default='token')
VERIFICATION_TOKEN = config('APP_VERIFICATION_TOKEN', default='token')
COMMUNITY_CHANNEL = config('PERSONAL_PRIVATE_CHANNEL', default='community_channel')
MENTORS_INTERNAL_CHANNEL = config('PERSONAL_PRIVATE_CHANNEL', default... |
import React, {Component} from 'react';
class Text extends Component {
constructor(props){
super(props);
this.state = {value: props.value};
this.change = this.change.bind(this);
}
change(event) {
event.preventDefault();
var value = event.target.value;
this.setState({value}, () => this.p... |
from django.contrib import admin
from .models import *
admin.site.register(Device)
admin.site.register(Sensor)
admin.site.register(DataField)
|
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
from __future__ import print_function
import sys
from random import randint
from itertools import count
from composes.utils import io_utils
from composes.composition.weighted_additive import WeightedAdditive
from composes.semantic_space.space import Space
stacked_space = io_utils.load("gastrovec.ppmi.svd20.pkl")
WA ... |
import React from 'react'
import { Link } from 'react-router-dom'
import AddHacker from './AddHacker';
const Hackers = ({ hackers, addHacker, deleteHacker }) => {
const hackerList = hackers.map(hacker => {
const id = hacker.url.slice(0, -1).split('/').pop();
return (
<div className="hacker card... |
/*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy ... |
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1998 - 1999
//
// File: dxglob7obj.h
//
//--------------------------------------------------------------------------
#include "resource.h" // main s... |
/* eslint-disable no-unused-vars */
import path from "path";
const config = {
all: {
root: path.join(__dirname, ".."),
port: process.env.PORT || 9000,
ip: process.env.IP || "0.0.0.0",
apiRoot: process.env.API_ROOT || "",
mongo: {
uri: process.env.MONGODB_URI || "mongodb://localhost/hackatho... |
#! /usr/bin/env python
# coding=utf-8
# Copyright (c) 2019 Uber Technologies, 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... |
import demo from "./index.vue"
demo.install=(Vue)=>{
Vue.component(demo.name,demo)
}
export default demo; |
#ifndef __M_SYSMANAGER_H__
#define __M_SYSMANAGER_H__
#ifdef ASYNCH
void M_continue();
void M_wait();
#endif
#ifdef SYSMAN
#define BASEDIR_BUFF 256
#define ENT_REF_SIZE 0x10000
#endif
void M_systemsinit();
void M_systemsclose();
#endif
|
//
// SPUScheduledUpdateDriver.h
// Sparkle
//
// Created by Mayur Pawashe on 3/15/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SPUUpdateDriver.h"
#import "SPUUIBasedUpdateDriver.h"
NS_ASSUME_NONNULL_BEGIN
@class SUHost;
@protocol SPUUserDriver, SPUU... |
import functools
import operator
import os
import os.path
import sys
import numpy as np
# Bamboo utilities
current_file = os.path.realpath(__file__)
current_dir = os.path.dirname(current_file)
sys.path.insert(0, os.path.join(os.path.dirname(current_dir), 'common_python'))
import tools
# =================... |
const colors = require('tailwindcss/colors')
module.exports = {
content: [
'./resources/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
theme: {
extend: {
colors: {
danger: colors.rose,
primary: colors.blue,
success... |
// Copyright 2018-2021 by Boris Feld
import Mousetrap from "mousetrap";
import React from "react";
import { faSearch } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import store from "../store";
class SearchBox extends React.Component {
constructor(pro... |
//独立COOKIE文件 ck在``里面填写,多账号换行
let refreshtokenVal= ``
let iboxpaycookie = {
refreshtokenVal: refreshtokenVal,
}
module.exports = iboxpaycookie
|
from cogdl.experiments import check_experiment
from tabulate import tabulate
import json
import os
def load_hyperparameter_config():
path = os.path.dirname(os.path.realpath(__file__)) + os.path.sep + 'configs.json'
with open(path, 'r') as file:
configuration = json.load(file)
return configuration
... |
# -*- coding: utf-8 -*-
"""'Current Source Density analysis (CSD) is a class of methods of analysis of
extracellular electric potentials recorded at multiple sites leading to
estimates of current sources generating the measured potentials. It is usually
applied to low-frequency part of the potential (called the Local F... |
#pragma once
#include <iostream>
#include <string>
#include <fmt/format.h>
#include <cstdint>
#include <libgen.h>
#include <spdlog/spdlog.h>
#pragma GCC system_header
namespace CustomLogger
{
void initLogger(const spdlog::level::level_enum& LoggingLevel,
const std::string& log_file_name,
... |
exports.delete = require('keyarray-delete')
exports.get = require('keyarray-get')
exports.has = require('keyarray-has')
exports.set = require('keyarray-set')
|
"""
Module: 'btree' on micropython-v1.17-esp32
"""
# MCU: {'ver': 'v1.17', 'port': 'esp32', 'arch': 'xtensawin', 'sysname': 'esp32', 'release': '1.17.0', 'name': 'micropython', 'mpy': 10757, 'version': '1.17.0', 'machine': 'ESP32 module (spiram) with ESP32', 'build': '', 'nodename': 'esp32', 'platform': 'esp32', 'famil... |
define(["./when-ca391574","./Transforms-0cb18884","./Cartesian2-e7edc838","./Check-6d10d1a9","./ComponentDatatype-fd1cb55e","./FrustumGeometry-4df5fb18","./GeometryAttribute-861caa10","./GeometryAttributes-a356f820","./Math-272c9861","./RuntimeError-19cb26ba","./WebGLConstants-4739ce15","./Plane-7cca3bb7","./VertexForm... |
"""new db
Revision ID: 44597fd0211f
Revises:
Create Date: 2019-09-25 11:17:10.238454
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '44597fd0211f'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated b... |
from collections import defaultdict
from bluesky.run_engine import Msg, RunEngineInterrupted
from bluesky.plans import scan, grid_scan, count, inner_product_scan
from bluesky.object_plans import AbsScanPlan
from bluesky.preprocessors import run_wrapper, subs_wrapper
from bluesky.plan_stubs import pause
import bluesky.p... |
from django.db import models
# Create your models here.
from model_utils.models import TimeStampedModel
|
// import { Link } from "gatsby"
import React from "react";
import prev from "../img/cursos/taller-hacks-cover.jpg";
const BannerTaller = ({showImage}) => {
return (
<>
<div className="row no-gutters">
<div className="col-md-6">
<p className="text-light text-uppercase mb-0 font-sm">TALLER... |
// Copyright (C) 2021 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.plaindatetime.prototype.since
description: The dateUntil() method on the calendar is called with a copy of the options bag
features: [Temporal]
---*/
const originalOp... |
'use strict';
var http = require('http');
function IoResponse(respond) {
this.respond = respond || function() {};
}
IoResponse.prototype.json = function(body) {
return this.respond(body);
};
IoResponse.prototype.jsonp = IoResponse.prototype.json;
IoResponse.prototype.send = IoResponse.prototype.json;
IoResponse... |
# Copyright 2016 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 applicable ... |
module.exports = function ({ config }) {
config.module.rules.push({
test: /(\/|\\)stories(\/|\\).*\.tsx$/,
loaders: [{
loader: require.resolve('@storybook/addon-storysource/loader'),
options: {
parser: 'typescript',
prettierConfig: {
... |
from marshmallow import fields, post_load, validate, validates
from .base import BaseSchema
class ItemSchema(BaseSchema):
id = fields.Integer()
user_id = fields.Integer()
category_id = fields.Integer()
name = fields.String(required=True, validate=validate.Length(min=1, max=100))
description = fie... |
from flask import Flask, render_template, request, make_response, g
from redis import Redis
import os
import socket
import random
import json
option_a = os.getenv('OPTION_A', "Apple")
option_b = os.getenv('OPTION_B', "Samsung")
hostname = socket.gethostname()
version = 'v2'
app = Flask(__name__)
def get_redis():
... |
import sqlite3
from fuzzywuzzy import fuzz
class SearchCursor:
'''
To be used with SQLite
'''
def __init__(self, db_name):
self.db_name = db_name
self.connection = None
self.cursor = None
@staticmethod
def _similarityScore(s1, s2):
return fuzz.token_set_ratio(... |
import time
import vivisect
import vivisect.cli as viv_cli
import vivisect.qt.main as viv_qt_main
def remotemain(appsrv):
# The "appsrv" is a remote workspace...
vw = viv_cli.VivCli()
vw.initWorkspaceClient(appsrv)
# If we are interactive, lets turn on extended output...
vw.verbose = True
viv... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... |