text
stringlengths
3
1.05M
import { fromJS } from 'immutable'; import { apiPath } from 'config'; const USER_LOAD = 'wr/user/LOAD'; const USER_LOAD_SUCCESS = 'wr/user/LOAD_SUCCESS'; const USER_LOAD_FAIL = 'wr/user/LOAD_FAIL'; const RESET_EDIT_STATE = 'wr/user/RESET_EDIT_STATE'; const USER_EDIT = 'wr/user/EDIT'; const USER_EDIT_SUCCESS = 'wr/us...
the_count=[1, 2, 3, 4, 5] fruits=['apples', 'oranges', 'pears', 'apricots'] change=[1, 'pennies', 2, 'dimes', 3, 'quarters'] #this first kind of for-loop goes through a list for number in the_count: print(f"This is count {number}") #same as above for fruit in fruits: print(f"A fruit of type: {fruit}") #also ...
from influxdb import InfluxDBClient INFLUXDB_HOST = 'localhost' INFLUXDB_PORT = 8086 INFLUXDB_USER = 'galaxy' INFLUXDB_PASS = 'galaxy' INFLUXDB_DB = 'galaxy' client = InfluxDBClient( host=INFLUXDB_HOST, port=INFLUXDB_PORT, username=INFLUXDB_USER, password=INFLUXDB_PASS ) client.create_database(INFL...
/* ** Purpose: Define configurations for the OpenSat Kit Command Ingest application ** ** Notes: ** 1. These macros can only be built with the application and can't ** have a platform scope because the same file name is used for ** all applications following the object-based application design pattern. ** *...
/* global __dirname, require, module*/ const webpack = require('webpack'); const UglifyJsPlugin = webpack.optimize.UglifyJsPlugin; const path = require('path'); const env = require('yargs').argv.env; // use --env with webpack 2 let libraryName = 'react-simplemde'; const ExtractTextPlugin = require("extract-text-webpa...
import G6 from '@antv/g6'; fetch('https://gw.alipayobjects.com/os/antvdemo/assets/data/algorithm-category.json') .then(res => res.json()) .then(data => { const width = document.getElementById('container').scrollWidth; const height = document.getElementById('container').scrollHeight || 500; const graph ...
(function() { var OLD_DIRECTION, Processor, Value, utils, vendor; vendor = require('postcss/lib/vendor'); Value = require('./value'); utils = require('./utils'); OLD_DIRECTION = /(^|[^-])(linear|radial)-gradient\(\s*(top|left|right|bottom)/i; Processor = (function() { function Processor(prefixes) {...
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['None'] , ['PolyTrend'] , ['Seasonal_DayOfMonth'] , ['ARX'] );
# -*- coding: utf-8 -*- # # 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 #...
import React from 'react'; import styled from 'styled-components'; export default function NewListingForm(props) { const { submit, setFormValues, values, disabled, errors } = props const onChange = (evt) => { const { name, value } = evt.target setFormValues({ ...values, [name]: value }) }...
var express = require('express'); var session = require('express-session'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var mongoose = require('mongoose'); var db = mongoose.conn...
(window.webpackJsonp=window.webpackJsonp||[]).push([[141],{3014:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.icon=void 0,t(10);var o=function(e){return e&&e.__esModule?e:{default:e}}(t(0));function v(){return(v=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=argum...
var map_93b9cb20af5b405697ff62ebfa45a632 = L.map( "map_93b9cb20af5b405697ff62ebfa45a632", { center: [-22.9, -43.4], crs: L.CRS.EPSG3857, zoom: 11, zoomControl: true, prefe...
import { h } from 'vue' export default { name: "FileCodeOutline", vendor: "Mdi", type: "", tags: ["file","code","outline"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"mdi...
from PyQt5.QtGui import QFont from PyQt5.QtCore import QRect, Qt from PyQt5.QtWidgets import QFrame, QWidget, QLabel, QComboBox,\ QHBoxLayout, QVBoxLayout, QPushButton from random import randrange from twisted.internet.defer import inlineCallbacks class QSerialConnection(QFrame): def setupUi(self): s...
'use strict'; var ApiContracts = require('authorizenet').APIContracts; var ApiControllers = require('authorizenet').APIControllers; var utils = require('../utils.js'); var constants = require('../constants.js'); function credit(transactionId, callback) { var merchantAuthenticationType = new ApiContracts.MerchantAuth...
import komand from .schema import QueryInput, QueryOutput, Input, Output # Custom imports below from komand_active_directory_ldap.util.utils import ADUtils import json import ldap3 class Query(komand.Action): def __init__(self): super(self.__class__, self).__init__( name="query", description=...
const run = require('./config/globalVariables') let rawData = { tunnelOriginator: 'originatorTest@0mn.io', tunnelOwner: 'pizzashop@msgingi.net', stagingEnvironment: false } console.log(run(rawData))
/* And yet the contrary a most revolutionary part. Only, in the cottage * rents.... 646 CAPITALIST PRODUCTION acquires it. */ #include <stdarg.h> #include <stddef.h> _as_has_been_bred strnlen(const char * __and_, _as_has_been_bred count) { const char *one_of_its_value; for (one_of_its_value = __and_; count-- && *...
"""Low-level opcodes for compiler intermediate representation (IR). Opcodes operate on abstract values (Value) in a register machine. Each value has a type (RType). A value can hold various things, such as: - local variables (Register) - intermediate values of expressions (RegisterOp subclasses) - condition flags (tr...
/** * Imports */ import Fluxible from 'fluxible'; // Stores import AccountStore from './stores/Account/AccountStore'; import ApplicationStore from './stores/Application/ApplicationStore'; import CartStore from './stores/Cart/CartStore'; import CheckoutStore from './stores/Checkout/CheckoutStore'; import CollectionsA...
# Automatically generated by pb2py # fmt: off from .. import protobuf as p if __debug__: try: from typing import Dict, List # noqa: F401 from typing_extensions import Literal # noqa: F401 except ImportError: pass class DebugLinkFlashErase(p.MessageType): MESSAGE_WIRE_TYPE = 113 ...
/*! * Copyright 2017 by Contributors * \file hist_util.h * \brief Utility for fast histogram aggregation * \author Philip Cho, Tianqi Chen */ #ifndef XGBOOST_COMMON_HIST_UTIL_H_ #define XGBOOST_COMMON_HIST_UTIL_H_ #include <xgboost/data.h> #include <limits> #include <vector> #include "row_set.h" #include "../tree...
'use strict'; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
# -*- coding: utf-8 -*- import pytest from objetto.utils.custom_repr import custom_iterable_repr, custom_mapping_repr def test_custom_mapping_repr(): assert ( custom_mapping_repr( {1: 4, "2": 3, 3: 2, "4": "1"}, prefix="Mapping<", template="{key}=={value}", ...
const configs = require('./configs'); const mongoose = require('mongoose'); function preCompileModelsHooks(plugins) { plugins .filter(p => p.hasOwnProperty('preCompileModels')) .forEach(m => { m.preCompileModels(configs.models); }); } function postCompileModelsHooks(plugins) { plugins .filte...
/** * Dependencies */ var isArray = Array.isArray /** * Transform `obj` into nested arrays. * * @param {object} obj * @return {array} * * @api public */ function objectToArrays(obj) { if (!obj || !typeof obj === 'object' || isArray(obj)) return var results = [] Object.keys(obj) .forEach(function(...
// // WYAPhotoBrowserConfig.h // WYAKit // // Created by 李世航 on 2019/5/22. // #import <Foundation/Foundation.h> #import "WYAPhotoBrowserDefine.h" NS_ASSUME_NONNULL_BEGIN @interface WYAPhotoBrowserConfig : NSObject /// 最大可以选择多少个 @property (nonatomic, assign) NSInteger maxSelectCount; /// 是否是升序(NO: 从现在开始往之前的时间排, YE...
'use strict'; const { start, end, times } = require('hbu'); const { clone } = require('../../../dist'); let data = { ids: [], map: {} }; let cloned = clone(data); let i = 0; start(); while (i < times) { cloned.ids.push(i); cloned.map[i] = { a: 1, b: 'Some data here' }; i++;...
// Copyright 2015 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 V8DebuggerAgentImpl_h #define V8DebuggerAgentImpl_h #include "platform/inspector_protocol/Collections.h" #include "platform/inspector_protocol/St...
import math src=0,0 target=3,3 maze=[[0,1,0,0,1],[1,0,0,1,1],[1,0,1,0,1],[1,1,1,0,1]] def h(pos1,pos2): x1,y1=pos1 x2,y2=pos2 return math.sqrt(pow((x1-x2),2)+pow((y1-y2),2)) def possible_moves(pos,visited): pos_moves=[] i,j=pos for l in [i-1,i,i+1]: for m in [j-1,j,j+1]: ...
# third-party imports from difflib import SequenceMatcher # rest-framework imports from rest_framework.generics import ListAPIView, RetrieveAPIView, CreateAPIView, UpdateAPIView from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework.p...
// We require the Hardhat Runtime Environment explicitly here. This is optional // but useful for running the script in a standalone fashion through `node <script>`. // // When running the script with `npx hardhat run <script>` you'll find the Hardhat // Runtime Environment's members available in the global scope. cons...
/** * @overview Fozzie Analytics Component JS Wrapper * * @module f-analytics */ // Import vue component import Analytics from '@/components/Analytics.vue'; // Declare install function executed by Vue.use() export function install (Vue) { if (install.installed) { return; } install.installed = ...
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from flask_appbuilder.models.sqla.interface import SQLAInterface from flask_babel import gettext as __ from superset import appbuilder from super...
from contextlib import contextmanager import cupy import numpy as np import pandas as pd from pandas.util import testing as tm import cudf from cudf._lib.null_mask import bitmask_allocation_size_bytes from cudf.utils import dtypes as dtypeutils supported_numpy_dtypes = [ "bool", "int8", "int16", "int...
/** * @author mrdoob / http://mrdoob.com/ */ Sidebar.Geometry = function ( editor ) { var signals = editor.signals; var container = new UI.Panel(); container.setBorderTop( '0' ); container.setPaddingTop( '20px' ); // Actions /* var objectActions = new UI.Select().setPosition( 'absolute' ).setRight( '8px' ...
#!/usr/bin/python import sys import os import re import json # python 2 and 3 provide urlparse in different modules try: from urllib.parse import urlparse except Exception as e: from urlparse import urlparse from lib.parsers import load_openapi_spec, load_audit_log from processArtifacts import file_to_json def c...
import React from 'react' // import React, {Fragment} from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Link } from 'react-router-dom' import formatDate from '../../utils/formatDate' import { deleteComment } from '../../actions/post' const CommentItem = ({ postId, comme...
const { authSecret } = require("../.env") const passport = require("passport") const passportJWT = require("passport-jwt") const { Strategy, ExtractJwt } = passportJWT module.exports = app => { const params = { secretOrKey: authSecret, jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken() }; const st...
# # Copyright (c) 2021 by Kristoffer Paulsson <kristoffer.paulsson@talenten.se>. # # Permission to use, copy, modify, and/or 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 P...
import json import django from django.contrib.sites.models import Site from django.http import HttpResponsePermanentRedirect, HttpResponseRedirect from django.test import override_settings from django.test.client import RequestFactory from unittest import mock from nose.tools import eq_ from pyquery import PyQuery as...
Blockly.Msg.WEBDUINO_RGBLED_BIT = "RGB LED, (Bit)"; Blockly.Msg.WEBDUINO_RGBLED_CATHODE = "RGB LED (Cathode)"; Blockly.Msg.WEBDUINO_RGBLED_RED = "Red"; Blockly.Msg.WEBDUINO_RGBLED_GREEN = "Green"; Blockly.Msg.WEBDUINO_RGBLED_BLUE = "Blue"; Blockly.Msg.WEBDUINO_RGBLED_SETCOLOR = "Set Color";
var through = require('through'); module.exports = function (file) { return through(function (buf) { this.queue(String(buf).replace(/XXX/g, '111')); }); };
import React, { Component } from 'react'; import SigninForm from './signinForm'; class Signin extends Component { render() { return ( <div className='sign-in'> <SigninForm/> </div> ) } } export default Signin;
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2016 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * The Physics Body is typically linked to a single Sprite and defines properties that determine how the physics body i...
import _plotly_utils.basevalidators class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__(self, plotly_name="hoverinfo", parent_name="barpolar", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
import React from 'react'; const AddButton= (props) => { return ( <button className="addBtn" onClick={ () => props.showAddNewTodo() }> + </button> ); } export default AddButton;
import babel from 'rollup-plugin-babel' import resolve from 'rollup-plugin-node-resolve' import { terser } from 'rollup-plugin-terser' import { string } from 'rollup-plugin-string' const production = !process.env.ROLLUP_WATCH export default { input: 'src/index.js', external: ['react', 'react-dom'], output: [ ...
var fs = require('fs') var path = require('path') var https = require('https') var request = require('request-compose').stream var url = require('./url') var get = ({id, ext, size, location, agent}) => request({url: url[size]({id, ext}), agent}) .then(({res}) => new Promise((resolve, reject) => { var fil...
# flake8: noqa from cereal import car from selfdrive.car import dbc_dict Ecu = car.CarParams.Ecu class CarControllerParams: ACCEL_HYST_GAP = 0.02 # don't change accel command for small oscilalitons within this value ACCEL_MAX = 1.5 ACCEL_MIN = -4.0 ACCEL_SCALE = 3.0 # max(ACCEL_MAX, -ACCEL_MIN) STEER_MA...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.User = void 0; var User = /** @class */ (function () { function User(data) { this.id = data.id; this.username = data.username; this.discriminator = data.discriminator; this.bot = data.bot; th...
# Copyright 2020 Vadim Sharay <vadimsharay@gmail.com> # # 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 ...
import argparse import json import os import pickle import zlib from base64 import b64decode from typing import Iterable, Optional, Tuple import numpy as np import tqdm def create_file_descriptions( filename: str, input_column: str, random_seed: Optional[int] = None ) -> Tuple[Iterable[int], Iterable[int]]: ...
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Version module for artellapipe-tools-dependenciesmanager """ from __future__ import print_function, division, absolute_import __author__ = "Tomas Poveda" __license__ = "MIT" __maintainer__ = "Tomas Poveda" __email__ = "tpovedatd@gmail.com" __version__ = None def ...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
""" Demonstrates the creation of logical expressions and truth tables. `matstep.logic.Proposition` represents the 'variable' in a logical expression. The built-in logical operators that can be performed on a `Proposition` are: not (~p) and (p & q) inclusive or (p | q) implication (p >> q) !!! This must be surr...
import logging import os import re from datetime import datetime from typing import Optional from flask import Flask, jsonify, request, Response from flask_cors import CORS from werkzeug.exceptions import abort from grafener.logging_config import init_logging from grafener.request_handler import get_metrics, get_data...
/** * Kendo UI v2018.2.516 (http://www.telerik.com/kendo-ui) * Copyright 2018 Telerik AD. All rights reserved. ...
def user_must_be(request, view, action, field: str) -> bool: if not request.user or not request.user.is_authenticated: return False return getattr(request.user, field)
// Aspect // --------------------- // Thanks to: // - http://yuilibrary.com/yui/docs/api/classes/Do.html // - http://code.google.com/p/jquery-aop/ // - http://lazutkin.com/blog/2008/may/18/aop-aspect-javascript-dojo/ module.exports={ // 在指定方法执行前,先执行 callback before:function(methodName, callback, context) { ...
"""Script for multi-gpu training.""" import json import os import copy import numpy as np import torch import torch.nn as nn import torch.utils.data from tensorboardX import SummaryWriter from tqdm import tqdm from alphapose.models import builder from alphapose.opt import cfg, logger, opt from alphapose...
/* * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed...
# Used functions for data preparation from __future__ import print_function import sys import warnings import traceback import numpy as np import shutil import os from os import remove from os import listdir import os.path from os.path import join from datetime import datetime from scipy.misc import imread, imresize f...
/***************************************************************************************************************** * ProcessWire InputfieldImage * * Copyright 2017 by ProcessWire * */ function InputfieldImage($) { // When uploading a file in place: .gridItem that file(s) will be placed before var $uploadBef...
'use strict'; const input_codigo = document.querySelector('#txt-codigo'); const input_nombre = document.querySelector('#txt-nombre'); const input_precio = document.querySelector('#txt-precio'); const input_descripcion = document.querySelector('#txt-descripcion'); const btn_guardar = document.querySelector('#btn-guarda...
#ifndef __DATA_H #define __DATA_H #define N 16 static float A[N][N] = { {64,90,89,87,83,80,75,70,64,57,50,43,36,25,18,9}, {64,87,75,57,36,9,-18,-43,-64,-80,-89,-90,-83,-70,-50,-25}, {64,80,50,9,-36,-70,-89,-87,-64,-25,18,57,83,90,75,43}, {64,70,18,-43,-83,-87,-50,9,64,90,75,25,-36,-80,-89,-5...
""" Script for downloading all GLUE data. Original source: https://gist.github.com/W4ngatang/60c2bdb54d156a41194446737ce03e2e Note: for legal reasons, we are unable to host MRPC. You can either use the version hosted by the SentEval team, which is already tokenized, or you can download the original data from (https://d...
/* * Allwinner A1X SoCs timer handling. * * Copyright (C) 2012 Maxime Ripard * * Maxime Ripard <maxime.ripard@free-electrons.com> * * Based on code from * Allwinner Technology Co., Ltd. <www.allwinnertech.com> * Benn Huang <benn@allwinnertech.com> * * This file is licensed under the terms of the GNU General ...
import datetime import urlparse import re from urlparse import parse_qs from datetime import timedelta from django import forms from django.contrib import messages from django.contrib.admin.views.decorators import staff_member_required, user_passes_test from django.contrib.auth import get_user_model from django.contri...
(function ($) { $.bode = $.bode || { version: 1.0, vtime: (new Date().getTime()) }; })(jQuery); (function ($) { $.bode.grid = function (selector, conf) { this.tab = $(selector); this.conf = conf || {}; this.columnsHash = {}; this.columns = conf.columns || []; //列配置 this...
# Copyright 2016-2021 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import reframe as rfm import reframe.utility.sanity as sn @rfm.simple_test class GpuDirectCudaCheck(rfm.RegressionTest): ...
class MyTriangle extends CGFobject{ constructor(scene){ super(scene); this.initBuffers(); } initBuffers() { this.vertices=[ 1, 0, 0, 0, -1, 0, 0, 1, 0 ]; this.indices = [ 0, 1, 2 ]; this.primiteType = t...
def get_Dataset(assets, start, end, debug=False): ''' Create pandas MultiIndex DataFrame of Yahoo data to Xarray to_pandas for using by zipline strategies. INPUTS: ******* assets : list of ETFs start : earliest date as datetime tz-aware end : end date as datetime tz-aware debug ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[309],{1860:function(t,a,s){"use strict";s.r(a);var e=s(12),r=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h3",{attrs:{id:"css-面试题汇总"}},[s("a",{staticClass:"heade...
#!/usr/bin/env python # -*- coding: utf-8 # pytest unit tests for spinalcordtoolbox.reports import pytest import numpy as np from spinalcordtoolbox.image import Image from spinalcordtoolbox.reports.slice import Sagittal def labeled_data_test_params(path_in='sct_testing_data/t2/t2.nii.gz', ...
""" #;+ #; NAME: #; abssys_utils #; Version 1.0 #; #; PURPOSE: #; Module for Absorption Systems #; 23-Oct-2014 by JXP #;- #;------------------------------------------------------------------------------ """ from __future__ import print_function, absolute_import, division, unicode_literals import numpy as np ...
import databaseconnect class TestClass: def test_setup_database(self): tables = databaseconnect.setup_database() expected_tables = [ ("chat_table",), ("directions_table",), ("question_table",), ("statement_table",), ] assert sorted(ta...
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // portions copyright @2011 Apple Inc. // License: Licensed under MIT license (see license.js) // ================...
import keras from .utils.eval import evaluate from .utils.coco_eval import evaluate_coco class Evaluate(keras.callbacks.Callback): """ Evaluation callback for arbitrary datasets. """ def __init__( self, generator, iou_threshold=0.5, score_threshold=0.05...
import Pool from "pool"; /** * @desc Base class for manipulate with pool and destruction. * @class * @memberOf MANTICORE.memory */ class ReusableObject { /** * @constructor */ constructor() { /** * @desc Flag is currently object destroyed * @type {boolean} * @p...
const plugin = require('tailwindcss/plugin') module.exports = { purge: false, target: 'relaxed', prefix: '', important: false, separator: ':', theme: { customForms: theme => ({ default: { input: { '&:focus': { outline: 'none', boxShadow: 'none', ...
const update = (data) => { if(!squares[data.hash]) { squares[data.hash] = data; return; } if(squares[data.hash].lastUpdate >= data.lastUpdate) { return; } const square = squares[data.hash]; square.lastUpdate = data.lastUpdate; square.prevX = data.prevX; square.prevY = data.prevY; square....
""" PhysiCell Example ================= This file shows an example workflow with PhysiCell. This example was taken from the `AMIGOS Invasion <https://github.com/MathCancer/AMIGOS-invasion>`_ project. """ import xml.etree.ElementTree as ET import sys,os,platform,zipfile,datetime, time import dapt def main(): co...
/* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pragma once...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
$(document).ready(function(){adminInit("Nuovo volo","Modifica volo","xhr_voli","xhr_elimina_voli","Voli eliminati");$("#data").datetimepicker({controlType:"select",oneLine:true,timeFormat:"HH:mm",minDate:"+5d",dateFormat:"dd/mm/yy"});$("#tratta").select2({dropdownParent:$("#exampleModal"),ajax:{url:__site_url+"/"+__xh...
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from codecs import open # To use a consistent encoding from os import path from setuptools import setup HERE = path.dirname(path.abspath(__file__)) # Get version info ABOUT = {} with open(path.join(HER...
# Copyright (c) 2015 Adam Stokes <adam.stokes@ubuntu.com> # # 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...
var blocktrail = require('../'); // require('blocktrail-sdk') when trying example from in your own project var client = blocktrail.BlocktrailSDK({ apiKey : "MY_APIKEY", apiSecret : "MY_APISECRET", testnet : true }); var sendTransaction = function(wallet) { wallet.getNewAddress(function(err, address, p...
import logging import re from streamlink.plugin import Plugin, pluginmatcher from streamlink.plugin.plugin import parse_params from streamlink.stream.http import HTTPStream from streamlink.utils.url import update_scheme log = logging.getLogger(__name__) @pluginmatcher(re.compile( r"httpstream://(?P<url>\S+)(?:\...
from sqlalchemy.orm import sessionmaker from grpc_adenine.database import db_engine from grpc_adenine.database.user_api_relation import UserApiRelations from grpc_adenine.database.user import Users session_maker = sessionmaker(bind=db_engine) def get_did_from_api(api_key): did = None db_session = session_m...
const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); const webpack = require('webpack'); module.exports = { // https://webpack.js.org/concepts/entry-points/#multi-page-application entry: { home: './app/home/Home.jsx', roadmap: './app/roadmap/Roadmap.jsx', raiiNextSte...
#include <FaNES.h> #include "imageLeft.h" #include "imageRight.h" const uchar palette[16] = { 0x11, 0x00, 0x10, 0x30, 0x01, 0x21, 0x31, 0x30, 0x06, 0x16, 0x26, 0x36, 0x0A, 0x09, 0x19, 0x29 }; static uint topScrollX, topScrollY; static int topSpeedHorizontal, topSpeedVertical; int main(void) { set...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var express = require('express'); var router = express.Router(); var shortID = require('mongoose-shortid-nodeps'); var eventModel = require('./events').model; var fq = require('fuzzquire'); var base = require('project-root-path'); var path = require('pat...
/*! wollanupjs 29-10-2021 */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Handlebars=e():t.Handlebars=e()}(this,function(){return function(n){function o(t){if(r[t])return r[t].exports;var e=r[t]={...
#! /usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as mpl import warnings from propobject import BaseObject from scipy import stats from modefit.baseobjects import BaseFitter from .model import read_psfmodel from .chromatic_model import sigma_chromaticity from .tools import kw...
mycallback( {"CONTRIBUTOR OCCUPATION": "", "CONTRIBUTION AMOUNT (F3L Bundled)": "2.08", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "1250 Juniper Dr", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME...
// Curve parameters: const reserveRatio = 142857; // Kappa (~ 6) const theta = 350000; // 35% in ppm const p0 = 1; // Price of internal token in external tokens. const initialRaise = 300000; // Raise amount in external tokens. const friction = 20000; // 2% in ppm const gasPrice = 150000...
from django import forms from crispy_forms.layout import Layout, Fieldset from core.forms import PersonForm from core.models import Person from core.utils import indented_without_label, horizontal_form_helper from .models import Membership class MemberForm(PersonForm): def __init__(self, *args, **kwargs): ...