[](https://mermaid-js.github.io/mermaid-live-editor/edit#pako:eNp9VE2PwiAU_CuE037oH-hxo4c97UE366FJ84RnS6TQAHU1jf99aam1pbqcyszAmzdQGso0R5pQJsHalYDcQJkq4scPSImOvC2XZIWWGVE5bQJ1n3f0ppvMVj2Bv7e7rwAGQQSOlNvdTNdCAewM9-omQIS8b5wRKicKShywvdaSVEacwGF2xIvNUMFeIo9XWZxjla_yqw3PLMi-l-vYwD2KZloQmBOnyIRQDo0CGRfhUb6e8VKi8OwyoTieHxQOoTSTBSPtqKvRMcRoAbaYMc7nNIAfIv_0OzOtDsKUo3x6olZzCjg3aO3L62B7bLw96qltdxZ8Apx07SZAgSIvXFwbSl0rN41Yana8WbneqDDGJra7fyz0QezbvSYJPbfSaZ2Ib53BSgLD9rYNxFrVJWE-41yby_O2H
This file contains 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 {readdirSync} from 'fs' | |
import path from 'path' | |
export const logAPICall = async <T>( | |
apiFunction: () => Promise<T>, | |
functionName: string, | |
): Promise<T> => { | |
try { | |
const result = await apiFunction() | |
logger.error( |
This file contains 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 python3 | |
import asyncio | |
import os | |
import subprocess | |
import sys | |
import time | |
import websockets | |
from websockets import connect |
This file contains 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 python3 | |
# Copyright (c) 2017-2021 The Bitcoin Core developers | |
# Distributed under the MIT software license, see the accompanying | |
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
"""An example functional test | |
getting node 1 to mine another block, send it to node 2, and check that node 2 received it. | |
""" | |
from collections import defaultdict |
This file contains 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] in rpc: call repeated 1 times | |
[ DEBUG] in rpc: call(wallet/specter/ghostmachine )( 1ms) payload:[{'method': 'listtransactions', 'params': ['*', 1000, 0, True], 'jsonrpc': '2.0', 'id': 0}] | |
[ DEBUG] in rpc: call(wallet/specter/ghostmachine )( 1ms) payload:[] | |
[ DEBUG] in rpc: call repeated 1 times | |
[ DEBUG] in rpc: call(wallet/specter/ghostmachine )( 2ms) payload:[{'method': 'listtransactions', 'params': ['*', 1000, 0, True], 'jsonrpc': '2.0', 'id': 0}] | |
[ DEBUG] in rpc: call(wallet/specter/ghostmachine )( 1ms) payload:[] | |
[ DEBUG] in rpc: call repeated 1 times | |
[ DEBUG] in rpc: call(wallet/specter/ghostmachine )( 2ms) payload:[{'method': 'listtransactions', 'params': ['*', 1000, 0, True], 'jsonrpc': '2.0', 'id': 0}] | |
[ DEBUG] in rpc: call(wallet/specter/ghostmachine )( 1ms) payload:[] |
This file contains 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
(.env) kim@nucii➜ pytho3.10 cp ~/src/specter-desktop/requirements.in . | |
(.env) kim@nucii➜ pytho3.10 pip-compile --generate-hashes requirements.in | |
# | |
# This file is autogenerated by pip-compile | |
# To update, run: | |
# | |
# pip-compile --generate-hashes requirements.in | |
# | |
aniso8601==9.0.1 \ | |
--hash=sha256:1d2b7ef82963909e93c4f24ce48d4de9e66009a21bf1c1e1c85bdd0812fe412f \ |
This file contains 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
PROMPT="$USER@%M" | |
PROMPT+="%(?:%{$fg_bold[green]%}➜ : %{$fg_bold[red]%}➜ )" | |
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
[](https://mermaid-js.github.io/mermaid-live-editor/edit#pako:eNqNU01vwjAM_StVTmxqD7sihjQNtNN24RopMo3bZUsdlKRMiPHf534wQLRsOVhR_J6f85zsRe40iqnILYSwMFB6qCQlvLr4goTe5AuI8AoEJfpk9p1lyQr91uS4pNzvNhH1KjrP2X-RnohchGgchQvas6PClLWHtcWVodJidNQxx_T68h3_NiaR4kGKJMvueUe8u3mFPslwRtcBwzjhoocutm4O2LDv0s1SypCJSk0C2iJNNINU4axGnybYKbBB6hN3j2-O8O7EJKhQuUJ9BM4XxuIphcfW-BytDqeMdaAnZ0VUgG1PPJz3PHLHocYvWmaLOGoTmuEpjS39TE_SuNj1exj2qQUro9PkCyw_jr_KD7-ns9qzWTgez-f_N-N6mAOFmhU6vFrvVOPPuML-t3-Rigp9BUbzp2wVpIjvWKEUU95qLKC2UQ
This file contains 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
Anmelden | |
Mein Profil | |
Themen | |
Von der Berliner Zeitung |
This file contains 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
============================= test session starts ============================== | |
platform linux -- Python 3.8.10, pytest-6.1.2, py-1.10.0, pluggy-0.13.1 | |
rootdir: /home/kim/src/specter-desktop, configfile: pytest.ini | |
plugins: cov-2.10.1 | |
collected 104 items | |
tests/test_checker.py . [ 0%] | |
tests/test_cli_bitcoind.py .. [ 2%] | |
tests/test_cli_server.py .... [ 6%] | |
tests/test_config.py . [ 7%] |
NewerOlder