text
stringlengths
3
1.05M
const { Command } = require("discord.js-commando"); module.exports = class SayCommand extends Command { constructor(client) { super(client, { name: "say", aliases: ["repeat"], group: "fun", memberName: "say", description: "Is this phone broken? I just hear myself!!!!!", guildO...
/* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * 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, ...
from __future__ import unicode_literals from django.contrib.auth.models import User from django.db import models from django.db.models import Max from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ @python_2_unicode_compatible class Message(models.Mod...
from app import create_app app = create_app() if __name__ == "__main__": app.run(host='0.0.0.0', port=5000)
from django.template.defaultfilters import stringfilter from django import template register = template.Library() @register.filter(name='docslink') @stringfilter def docslink(value): if '#' in value: return '{0}/#{1}'.format(*value.split('#')) return value + '/'
#!/usr/bin/env python """ A driver script to run clang-tidy on changes detected via git. By default, clang-tidy runs on all files you point it at. This means that even if you changed only parts of that file, you will get warnings for the whole file. This script has the ability to ask git for the exact lines that have ...
import logging import random from datetime import datetime from typing import List import torch from torch import optim, nn from torch.utils.tensorboard import SummaryWriter from hearthstone.host import RoundRobinHost from hearthstone.ladder.ladder import Contestant, update_ratings, print_standings, save_ratings from...
'use strict'; const assert = require('assert'), byline = require('byline'); function split(inputStream, opts, createOutputStreamCallback) { let outputStream = null; let chunkIndex = 0; let lineIndex = 0; let header; const options = { bomChar: Buffer.from('\ufeff'), delimiter: opts.delimiter || '...
// pixel !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(win...
/* * Copyright (C) 2013 salesforce.com, 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 * * Unless required by applicable ...
(function (Translator) { // nb Translator.add("This value should be false.", "Verdien skal v\u00e6re falsk.", "validators", "nb"); Translator.add("This value should be true.", "Verdien skal v\u00e6re sann.", "validators", "nb"); Translator.add("This value should be of type {{ type }}.", "Verdien skal v\...
#Python 3 import rrb4 as rrb import time #import ex_8x8_pixels rr = rrb.RRB4(6, 3) def confirm(question): answer = input(question) def test_leds(): rr.set_led1(0) rr.set_led2(0) confirm("Are LED1 and LED2 both OFF?") rr.set_led1(1) rr.set_led2(0) confirm("Is LED1 ON and LED2 OFF?") ...
#!/usr/bin/env python # miedema.py v1.6 12-13-2012 Jeff Doak jeff.w.doak@gmail.com # adapted by S. Kirklin 1/7/14 import numpy as np import sys import yaml import logging import qmpy from qmpy.utils import * logger = logging.getLogger(__name__) __all__ = ['Miedema'] # data rows: # Element_name Phi Rho Vol Z Valence...
class IPlugin: """Plugin interface to recognise what needs to be processed."""
# # 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 us...
/** * @method defaultValue * @memberof PIXI.glCore.shader * @param type {String} Type of value * @param size {Number} * @private */ export default function defaultValue(type, size) { switch (type) { case 'float': return 0; case 'vec2': return new Float32Array(2 * s...
import numpy as np import torch import torch.nn.functional as F import torch.nn as nn ALLOWED_MINING_OPS = None REQUIRES_BATCHMINER = False REQUIRES_OPTIM = True class Criterion(torch.nn.Module): """ This Implementation follows: https://github.com/azgo14/classification_metric_learning """ def __init...
import pickle import os import glob import hypothesis as h import numpy as np import torch import time from sbi.inference.base import infer from hypothesis.benchmark.mg1 import Prior from hypothesis.benchmark.mg1 import Simulator from hypothesis.stat import highest_density_level from sbi.inference import SNPE, prepare...
# Copyright 2016 Hewlett Packard Enterprise Development Company LP # # 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...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); tslib_1.__exportStar(require("@styled-icons/remix-line/Gallery"), exports);
import { Storage } from '@rnd7/rum-storage' export const TEMPORARY_STORAGE_DEFAULTS = { scheduler: true, ttl: 1000*60*60*24, touchOnFind: true, touchOnList: true } export class TemporaryStorage extends Storage { constructor(opts) { super(Object.assign({}, TEMPORARY_STORAGE_DEFAULTS, opts)) this._to...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:23:24 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/Accounts/Authentication/D...
/* * jQuery MiniColors: A tiny color picker built on jQuery * * Copyright Cory LaViska for A Beautiful Site, LLC. (http://www.abeautifulsite.net/) * * Licensed under the MIT license: http://opensource.org/licenses/MIT * */ if (jQuery) { (function ($) { // Defaults $.minicolors = { defaults: { ...
// Copyright 2013 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 CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ #include <string> #include "base/basictypes.h" #in...
/***************************************************************************/ /* */ /* t1decode.c */ /* */ /* ...
"""Utilities related to disk I/O.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import sys from collections import defaultdict try: import h5py except ImportError: h5py = None class HDF5Matrix(object): """Representation...
#!/usr/bin/env python import os import sys import unittest def setup(): # add test/src folders to sys path test_folder = os.path.abspath(os.path.dirname(__file__)) src_folder = os.path.abspath(os.path.join(test_folder, os.pardir)) sys.path.insert(0, test_folder) sys.path.insert(0, src_folder) # define settings...
// IMU class whose intrinsics can be (optionally) estimated. // Author: Xiaohan Fei (feixh@cs.ucla.edu) #pragma once #include "Eigen/Core" #include "alias.h" #include "component.h" namespace xivo { struct IMUState { public: EIGEN_MAKE_ALIGNED_OPERATOR_NEW Mat3 Ca; // accel scaling (diagonal) and misalignment (u...
// Import React import React from "react"; // Import Spectacle Core tags import { Appear, BlockQuote, Cite, CodePane, Deck, Fill, Heading, Image, Layout, Link, ListItem, List, Markdown, Quote, Slide, Spectacle, Text } from "spectacle"; // Import image preloader util import preloader ...
var searchData= [ ['main',['main',['../spasm_8c.html#a1dfeea39dabf076270426c94def1a2a2',1,'spasm.c']]], ['max_5fline_5flength',['MAX_LINE_LENGTH',['../spasm__types_8h.html#af0f2173e3b202ddf5756531b4471dcb2',1,'spasm_types.h']]], ['max_5fmnemonic_5flength',['MAX_MNEMONIC_LENGTH',['../spasm__types_8h.html#a51fc19e3...
from logging import getLogger from pgopttune.config.postgres_server_config import PostgresServerConfig from pgopttune.parameter.pg_parameter import PostgresParameter logger = getLogger(__name__) def reset_postgres_param(postgres_server_config: PostgresServerConfig): """ When KeyboardInterrupt occurs, Res...
mycallback( {"CONTRIBUTOR OCCUPATION": "Consultant", "CONTRIBUTION AMOUNT (F3L Bundled)": "500.00", "ELECTION CODE": "P2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Adler Group", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "115 Central Park West", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "",...
#ifndef operations_h_ #define operations_h_ typedef struct user_detail { char acc_type[20]; char acc_no[17]; char name[200]; char f_name[200]; char m_name[200]; int age; char dob[11]; char city[20]; char state[20]; char country[20]; char mobile[10]; } userDetail; ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><g><path d="M4 5h16v10H4z" opacity=".3" /><path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z" /></g></React.Fragment> , 'LaptopChromebookTwoTone');
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_romans ---------------------------------- Tests for `romans` module. """ import unittest from romans import RomanNumConverter class TestRomans(unittest.TestCase): def setUp(self): pass def test_single_char_romans(self): roman = Roman...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
const mysql = require('mysql'); const dbConfig = require('../config/database'); const table = dbConfig.table; const dbLogger = require('../utils/logger')('dbLogger'); const pool = mysql.createPool(dbConfig.mysqlConfig); const CREATE_USEER_TABLE = `CREATE TABLE IF NOT EXISTS ${table.user} (username VARCHAR(30) B...
/* * * =================================== * HARP | Host ATM Research Platform * =================================== * * * This Host ATM Research Platform ("HARP") file (the "Software") is * made available by Network Computing Services, Inc. ("NetworkCS") * "AS IS". NetworkCS does not provide maintenance, i...
# -*- coding: utf-8 -*- import itertools import numpy as np from collections import defaultdict import datetime from utils import _draw_random_discreet_gaussian, _normalize_scores, _json_serialize, compute_distance from config import * # PARAMETERS from base import Event class Event: test = 'test' encounter =...
/* jqGrid Galician Translation Translated by Jorge Barreiro <yortx.barry@gmail.com> Dual licensed under the MIT and GPL licenses: http://www.opensource.org/licenses/mit-license.php http://www.gnu.org/licenses/gpl.html */ (function(a){"function"===typeof define&&define.amd?define(["jquery"],a):"object"===typeof exp...
from dataclasses import dataclass from typing import List from kale.types.blockchain_format.coin import Coin from kale.types.header_block import HeaderBlock from kale.util.streamable import Streamable, streamable @dataclass(frozen=True) @streamable class HeaderBlockRecord(Streamable): """ These are values th...
# Driver for microwave source HP_83650A # # Written by Bruno Buijtendorp (brunobuijtendorp@gmail.com) import logging from qcodes import VisaInstrument from qcodes import validators as vals log = logging.getLogger(__name__) def parsestr(v): return v.strip().strip('"') class HP_83650A(VisaInstrument): def...
let nomeVelho = prompt("Qual o nome do ancião?") let idadeVelho = prompt("Qual a idade do ancião?") let nomeNovo = prompt("Qual o nome da criança?") let idadeNovo = prompt("Qual a idade da criança?") let difIdade = idadeVelho - idadeNovo window.alert(`O nome do ancião é ${nomeVelho} e tem ${idadeVelho} anos`) window.al...
(function() { 'use strict'; ItemsControllerFunction.$inject = ["$scope", "$state", "$timeout", "itemInfo", "selfInfo", "apiServices", "generalServices", "itemsServices"]; function ItemsControllerFunction($scope, $state, $timeout, itemInfo, selfInfo, apiServices, generalServices, itemsServices) { var vm = this; ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import messageSenderMessages from 'ringcentral-integration/modules/MessageSender/messageSenderMessages'; import AlertDisplay from '../AlertDisplay'; import MessageSenderAlert from '../AlertRenderer/MessageSenderAlert'; export default class N...
#!/usr/bin/env python # Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
(this.webpackJsonpteamify=this.webpackJsonpteamify||[]).push([[0],{108:function(n,e,t){"use strict";t.r(e);var a,i,o=t(2),c=t.n(o),r=t(32),s=t.n(r),d=(t(82),t(6)),l=t(18),j=t(75),p=t(12),b=t(33),x=t(39),h=x.a.initializeApp({apiKey:"AIzaSyDv7s0IiZ4r2pyPk5cjpbKxf-f9wqle1U4",authDomain:"teamify-jusoft.firebaseapp.com",pro...
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # ------------------------------------------------------------------------------ from __future__ import absolute_import from __futu...
/* * Copyright (c) 2014-2015 François Tigeot * 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 unmodified, t...
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},r.getTagRule(),{defa...
// Copyright 2020 The VGC Developers // See the COPYRIGHT file at the top-level directory of this distribution // and at https://github.com/vgc/vgc/blob/master/COPYRIGHT // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may o...
/* SPDX-License-Identifier: BSD-2-Clause-Patent * * Copyright (c) 2019 Intel Corporation * * This code is subject to the terms of the BSD+Patent license. * See LICENSE file for more details. */ #ifndef __BEEROCKS_UCC_LISTENER_H__ #define __BEEROCKS_UCC_LISTENER_H__ #include "../include/beerocks/bcl/beerocks_soc...
import sys from PyQt5.QtWidgets import QDialog, QApplication from demoMultilevelInheritance import * class Student: name = "" code = "" def __init__(self, code, name): self.code = code self.name = name def getCode(self): return self.code def getName(self): ...
/* global MockLazyLoader, MockMatcher, MockMozContacts, MocksHelper, mozContact, VCFReader */ 'use strict'; require('/shared/test/unit/mocks/mock_lazy_loader.js'); requireApp('communications/contacts/test/unit/mock_contacts_match.js'); requireApp('communications/contacts/js/utilities/vcard_parser.js'); requireApp...
# -*- coding: utf-8 -*- """ :author: Grey Li (李辉) :url: http://greyli.com :copyright: © 2018 Grey Li <withlihui@gmail.com> :license: MIT, see LICENSE for more details. """ from flask_ckeditor import CKEditorField from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, SelectField, ...
// All symbols in the `Hiragana` script as per Unicode v5.2.0: [ '\u3041', '\u3042', '\u3043', '\u3044', '\u3045', '\u3046', '\u3047', '\u3048', '\u3049', '\u304A', '\u304B', '\u304C', '\u304D', '\u304E', '\u304F', '\u3050', '\u3051', '\u3052', '\u3053', '\u3054', '\u3055', '\u3056', '\u3057', '...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * 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 ...
import _ from "underscore"; import _l from "utils/localization"; import pyre from "pyre-to-regexp"; const NEW_COLUMN = "new"; const multiColumnsToString = function (targetColumns, colHeaders) { if (targetColumns.length == 0) { return `no columns`; } else if (targetColumns.length == 1) { return...
from typing import Optional from fastapi import APIRouter, FastAPI from fastapi.responses import JSONResponse from pydantic import BaseModel, HttpUrl app = FastAPI() class Invoice(BaseModel): id: str title: Optional[str] = None customer: str total: float class InvoiceEvent(BaseModel): descript...
import matplotlib.pyplot as plt import numpy as np import torch from torch import nn from torch import tensor from torch import optim import torch.nn.functional as F from torch.autograd import Variable from torchvision import datasets, transforms import torchvision.models as models from collections import OrderedDict i...
/* * 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 ...
""" Controller for integration with the Biostar application """ from galaxy.web.base.controller import BaseUIController, error, web from galaxy.util import biostar class BiostarController( BaseUIController ): """ Provides integration with Biostar through external authentication, see: http://liondb.com/help/x...
//Requires const modulename = 'WebServer:LiveConsole'; const { dir, log, logOk, logWarn, logError} = require('../extras/console')(modulename); /** * Returns the output page containing the live console * @param {object} ctx */ module.exports = async function LiveConsole(ctx) { //Check permissions if(!ctx.ut...
// Add code here to setup handling of all streams asked for by the program. // // TODO(stephen): determine whether the logic for handling a stream (ddp connection or // connection to the server, etc) should be handled locally within the stream // object or globally as 'batch'. // ...
var should = require('chai').should(); var moment = require('moment'); describe('common', function(){ var common = require('../../../lib/plugins/processor/common'); it('isTmpFile()', function(){ common.isTmpFile('foo').should.be.false; common.isTmpFile('foo%').should.be.true; common.isTmpFile('foo~')....
class CraigslistApartmentListing: def __init__(self): self.properties = { "datapid": None, "datetime": None, "title": None, "housing" : None, "ft" : None, "ad_url" : None, "hoo...
var inquirer = require("inquirer"); var mysql = require("mysql"); var dotenv = require("dotenv") dotenv.config(); const { title, allowedNodeEnvironmentFlags } = require("process"); var connection = mysql.createConnection({ host: process.env.DB_HOST, // Your port; if not 3306 port: 3306, // Your usern...
import React, {useState} from 'react' import { SliderData } from './SliderData' import { FaArrowAltCircleRight, FaArrowAltCircleLeft } from 'react-icons/fa' import './Slider.css' const ImageSlider = ({ slides }) => { const [current, setCurrent] = useState(0) const length = slides.length const nextSlide ...
import WatsonHealthStudySkip16 from "./WatsonHealthStudySkip16.svelte"; export default WatsonHealthStudySkip16;
""" [2017-05-29] Challenge #317 [Easy] Collatz Tag System https://www.reddit.com/r/dailyprogrammer/comments/6e08v6/20170529_challenge_317_easy_collatz_tag_system/ # Description Implement the [Collatz Conjecture tag system described here](https://en.wikipedia.org/wiki/Tag_system#Example:_Computation_of_Collatz_sequenc...
""" With this library, you can calculate movements such as free fall """ class Rock(): def __init__(self): self.name = 'rock' class sphere_rock: def __init__(self): self.name = 'sphere' def create_sphere(self,radius,density): self.radius = ra...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11ywebrobot","en",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"General",items:[{nam...
const path = require('path'); const { VueLoaderPlugin } = require('vue-loader'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); module.exports = (env, argv) => ({ mode: argv && argv.m...
"""Test cases for running mypy programs using a Python interpreter. Each test case type checks a program then runs it using Python. The output (stdout) of the program is compared to expected output. Type checking uses full builtins and other stubs. Note: Currently Python interpreter paths are hard coded. Note: These...
/* * Mesa 3-D graphics library * * Copyright (C) 1999-2008 Brian Paul All Rights Reserved. * Copyright (C) 2009 VMware, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to dea...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import time from gaiatest import GaiaTestCase from gaiatest.apps.messages.app import Messages class TestSmsWithAttach...
import cv2 import time import numpy as np import os import HandTrackingModule as htm #### Parameters #### cam_width, cam_height = 640, 480 #### Video Capture #### cap = cv2.VideoCapture(0) #Camera cap.set(3, cam_width) cap.set(4, cam_height) #### Overlay #### file_path = "proj_imgs/top_menu.png" overlay_img = cv2.im...
from pathlib import Path import numpy as np import pytest import torch from espnet2.layers.global_mvn import GlobalMVN @pytest.fixture() def stats_file(tmp_path: Path): """Kaldi like style""" p = tmp_path / "stats.npy" count = 10 np.random.seed(0) x = np.random.randn(count, 80) s = x.sum(0)...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import "@fontsource/nanum-pen-script"; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') );
"document"in self&&!("classList"in document.createElement("_"))&&!function(a){"use strict";if("Element"in a){var b="classList",c="prototype",d=a.Element[c],e=Object,f=String[c].trim||function(){return this.replace(/^\s+|\s+$/g,"")},g=Array[c].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]=...
#!/usr/bin/env python # Copyright (c) 2017-2021 F5 Networks, 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 # # Unless required by appl...
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '*^&e6ni=jei#jogx-u0cc7o+2s*7zk38x(e3pklff(-@d7s^5+' DEBUG = True ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '10.100.60.223', '192.168.1.29'] CACHE_BACKEND = "locmem://" STATIC_URL = '/static/' STATICFILES_DIRS = [ os.pa...
import re import inspect import logging # parse HTTP status code to get the code HTTP_CODE = re.compile(r'^HTTP_(?P<code>\d{3})$') logger = logging.getLogger(__name__) def parse_comments(func): """ parse function comments First line of comments will be saved as summary, and the rest will be saved a...
""" proxy2fs.py -- A mitmproxy script to write browsed files and requisite resources to the filesystem as static .html. Usage: 1. Configure browser to use mitmproxy for URLs (e.g. FoxyProxy whitelist patterns) 2. Launch mitmproxy with the proxy2fs.py inline script: .. code:: bash mitmproxy -s "prox...
let calc = require('./calc'); test('divide', () => { expect(calc.divide(2, 1)).toBe(2); expect(calc.divide(2, 0)).toThrow(); });
# Generated by Django 2.1.2 on 2018-11-28 08:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('promgen', '0005_project_owner'), ] operations = [ migrations.CreateModel( name='DefaultExporter', fields=[ ...
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Zookeeper(Package): """ Apache ZooKeeper is an effort to develop and maintain an open-...
/** * Theme: WebAdmin * Morris Chart */ !function($) { "use strict"; var MorrisCharts = function() {}; //creates line chart MorrisCharts.prototype.createLineChart = function(element, data, xkey, ykeys, labels, lineColors) { Morris.Line({ element: element, data: data, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Utilities_1 = require("../../Utilities"); var Styling_1 = require("../../Styling"); var Styling_2 = require("../../Styling"); exports.ButtonGlobalClassNames = { msButton: 'ms-Button', msButtonIcon: 'ms-Button-icon', msB...
# Copyright (c) 2020 - for information on the respective copyright owner # see the NOTICE file and/or the repository https://github.com/boschresearch/blackboxopt # # SPDX-License-Identifier: Apache-2.0 import numpy as np import parameterspace as ps import pytest from blackboxopt import EvaluationSpecification, Object...
/* * Copyright 1993, 1995 Christopher Seiwald. * * This file is part of Jam - see jam.c for Copyright information. */ /* * expand.h - expand a buffer, given variable values * * 11/04/02 (seiwald) - const-ing for string literals */ LIST *var_expand( LIST *l, const char *in, const char *end, LOL *lol, ...
import React from "react" import ReactPlayer from "react-player" import Hyphenated from "react-hyphen" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { faPlay, faPause } from "@fortawesome/free-solid-svg-icons" // export default class YoutubePreview { // constructor(props) { // super(p...
from sqlalchemy.engine import url as sa_url from sqlalchemy import text from sqlalchemy import exc from sqlalchemy.util import compat from . import config, engines import time import logging import os log = logging.getLogger(__name__) FOLLOWER_IDENT = None class register(object): def __init__(self): self...
(self.webpackChunkdocusaurus_template=self.webpackChunkdocusaurus_template||[]).push([[9017],{58215:function(e,t,n){"use strict";var a=n(67294);t.Z=function(e){var t=e.children,n=e.hidden,o=e.className;return a.createElement("div",{role:"tabpanel",hidden:n,className:o},t)}},55064:function(e,t,n){"use strict";n.d(t,{Z:f...
rock = ''' _______ ---' ____) (_____) (_____) (____) ---.__(___) ''' paper = ''' _______ ---' ____)____ ______) _______) _______) ---.__________) ''' scissors = ''' _______ ---' ____)____ ______) __________) (____) ---.__(___) '''...
default_app_config = 'danceschool.merch.apps.MerchAppConfig'
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); var script = vue.defineComponent({ name: "ThunderstormsFill" }); const _hoisted_1 = { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }; const _hoiste...
import mysql.connector from model.group import Group from model.contact import Contact import re class DbFixture: def __init__(self, host, name, user, password): self.host = host self.name = name self.user = user self.password = password self.connection = mysql.connector.co...
export { default } from 'ember-modal-service/models/modal';
#ifndef _imglib_png_h_ #define _imglib_png_h_ #include "imglib_export.h" #include "imglib/image.h" namespace imglib { IMGLIB_EXPORT bool loadPng(ImageWrapper image, const char *filename); IMGLIB_EXPORT bool savePng(ImageWrapper image, const char *filename); }//namespace imglib #endif //_imglib_png_h