Skip to content

Instantly share code, notes, and snippets.

View kefeimo's full-sized avatar

kefeimo kefeimo

  • Austin, Texas, USA
View GitHub Profile
anyio==3.7.0
argcomplete==3.0.8
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
arrow==1.2.3
asttokens==2.2.1
attrs==23.1.0
backcall==0.2.0
beautifulsoup4==4.12.2
bleach==6.0.0
@kefeimo
kefeimo / gist:2f4c32caa5687b01ff9515f540be4ab6
Created March 11, 2023 06:15
pytest-benchmar-platformwrapper-install_agent.log
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/kefei/project/dev-volttron-modular
plugins: cov-3.0.0, line-profiler-0.1.0
collected 1 item
../volttron-lib-dnp3-driver/tests/test_driver.py /tmp/tmp2ew1sbri/volttron_home: Creating platform wrapper
/tmp/tmp2ew1sbri/volttron_home: Starting Platform: /tmp/tmp2ew1sbri/volttron_home
process environment:
{'DEBUG': '',
@kefeimo
kefeimo / cmake-build-dnp3-python.log
Created January 6, 2023 05:17
cmake build dnp3-python full log
(dnp3-sandbox) kefei@ubuntu-22:~/project/dnp3-python$ python setup.py install
running install
/home/kefei/miniconda3/envs/dnp3-sandbox/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/kefei/miniconda3/envs/dnp3-sandbox/lib/python3.10/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
dnp3-python github docs
testing proofs
"""
Task: Write a method that takes a string as an input and converts it to an integer.
Do not use any type of built in methods like int.Parse or atoi.
Solution:
Strategy:
1. Use regular expression to check if the input is a valid numeric string
2. Use decimal number definition to construct the integer (e.g., 23 = 2*10+3, 134 = (1*10+3)*10+4), -3 = -(3))
"""
import re
This file has been truncated, but you can view the full file.
<html>
<head><meta charset="utf-8" /></head>
<body>
<div>
<script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
<script type="text/javascript">/**
* plotly.js v1.52.1
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
@kefeimo
kefeimo / png_test.png
Last active May 30, 2020 08:49
png_test
![image](https://github.com/kefeimo/DataScienceBlog/blob/5063d0eebaf23da880222d26893c630912bc4051/1.%20PCA/partII_pca_motivation.png>