This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "accessControl", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract IBTCAddressValidator", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <MsgBoxConstants.au3> | |
#include <AutoItConstants.au3> | |
Local $win = "Extension: (MetaMask) - MetaMask Notification — Mozilla Firefox"; | |
Local $endwin = "Example Domain — Mozilla Firefox"; | |
ConsoleWrite("Ready to go.." & @CRLF) | |
Do | |
If WinWait($win, "", 1) > 0 Then | |
ConsoleWrite("FOUND!!!" & @CRLF) | |
; Test if the window is activated and display the results. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
import requests | |
from pytest_httpserver import HTTPServer | |
from pytest_httpserver.pytest_plugin import Plugin | |
class PluginHTTPServer(HTTPServer): | |
def start(self): | |
super().start() | |
def stop(self): | |
super().stop() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# module with simple class to build PDF documents with basic PDF elements | |
# Source code put in public domain by Didier Stevens, no Copyright | |
# https://DidierStevens.com | |
# Use at your own risk | |
# | |
# History: | |
# | |
# 2008/05/18: continue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## How to run multiple uvicorn server apps in the same process | |
## | |
import asyncio | |
from uvicorn import Server, Config | |
class MyServer(Server): | |
async def run(self, sockets=None): | |
self.config.setup_event_loop() | |
return await self.serve(sockets=sockets) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
regulators: | |
sc_ws_handlers: | |
counter: 1000 | |
rate: 1000 | |
max_size: 1000 | |
max_time: 5000 | |
http_update: | |
counter: 10000 | |
rate: 10000 | |
max_size: 10000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*----------------------------------------------------------------------------------- | |
SIMPLE REVERSI | |
---------------------------------------------------------------------------------- */ | |
const os = require("os"); | |
const EventEmitter = require('events'); | |
const { | |
Channel, | |
Crypto, | |
Universal | |
} = require('@aeternity/aepp-sdk'); |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUG[02-13|19:53:04.170] Sanitizing Go's GC trigger percent=100 | |
INFO [02-13|19:53:04.173] Maximum peer count ETH=25 LES=0 total=25 | |
DEBUG[02-13|19:53:04.174] FS scan times list=314.606µs set=60.101µs diff=7.1µs | |
TRACE[02-13|19:53:04.174] Handled keystore changes time=168.303µs | |
INFO [02-13|19:53:04.176] Starting peer-to-peer node instance=Geth/v1.9.0-unstable-555b3652/linux-amd64/go1.11.5 | |
INFO [02-13|19:53:04.176] Allocated trie memory caches clean=256.00MiB dirty=256.00MiB | |
INFO [02-13|19:53:04.177] Allocated cache and file handles database=/home/leaxcoin/testnet/geth/chaindata cache=512.00MiB handles=524288 | |
TRACE[02-13|19:53:04.186] Started watching keystore folder path=/home/leaxcoin/testnet/keystore | |
INFO [02-13|19:53:04.401] Initialised chain configuration config="{ChainID: 1516 Homestead: 1 DAO: <nil> DAOSupport: false EIP150: 2 EIP155: 3 EIP158: 3 Byzantium: 4 Constantinople: 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Copyright (c) 2003 CORE Security Technologies | |
# | |
# This software is provided under under a slightly modified version | |
# of the Apache Software License. See the accompanying LICENSE file | |
# for more information. | |
# | |
# Multiple target ICMP ping. | |
# | |
# This implementation of ping uses the ICMP echo and echo-reply packets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib | |
from matplotlib import pyplot as plt | |
class GrafGen: | |
def __init__(self, max_coor, values=50): | |
self._max = max_coor | |
self.values = values | |
def PointGen(self): |
NewerOlder