Response to https://gist.github.com/Thomas-0001111111/e40b05c3ed0da41a3d7308b90ef8383f
Test any script that affects a system file using a local copy until it's complete. cd to your project folder, then in the terminal:
cp /etc/hosts ./| Group No,Group Name,CH No,Name,SEL,Frequency,Dup,Offset,Mode,DATA,Filter,TONE,Repeater Tone,TSQL Frequency,DTCS Code,DTCS Polarity,DV SQL,DV CSQL Code,Your Call Sign,RPT1 Call Sign,RPT2 Call Sign,Split,Frequency(2),Dup(2),Offset(2),Mode(2),DATA(2),Filter(2),TONE(2),Repeater Tone(2),TSQL Frequency(2),DTCS Code(2),DTCS Polarity(2),DV SQL(2),DV CSQL Code(2),Your Call Sign(2),RPT1 Call Sign(2),RPT2 Call Sign(2) | |
| 02,Air Band,00,Roanoke 1,OFF,118.300000,OFF,0.500000,AM,OFF,2,,,,,,,,,,,OFF,14.100000,OFF,0.500000,LSB,OFF,2,,,,,,,,,, | |
| 02,Air Band,01,CTAF New River V,OFF,118.325000,OFF,0.600000,AM,OFF,2,,,,,,,,,,,OFF,118.325000,OFF,0.600000,FM,OFF,1,OFF,88.5Hz,88.5Hz,023,BOTH N,,,,, | |
| 02,Air Band,02,Roanoke 2,OFF,119.700000,OFF,0.600000,AM,OFF,2,,,,,,,,,,,OFF,119.700000,OFF,0.600000,FM,OFF,1,OFF,88.5Hz,88.5Hz,023,BOTH N,,,,, | |
| 02,Air Band,03,CTAF VT,OFF,122.700000,OFF,0.600000,AM,OFF,2,,,,,,,,,,,OFF,122.700000,OFF,0.600000,FM,OFF,1,OFF,88.5Hz,88.5Hz,023,BOTH N,,,,, | |
| 02,Air Band,04,CTAF Tazewell,OFF,122.725000,OFF,0.600000,AM, |
Response to https://gist.github.com/Thomas-0001111111/e40b05c3ed0da41a3d7308b90ef8383f
Test any script that affects a system file using a local copy until it's complete. cd to your project folder, then in the terminal:
cp /etc/hosts ./| #!/usr/bin/env python3 | |
| # updated 2023-11-27 | |
| # updated 2023-10-12 | |
| # updated 2021 | |
| # updated 2020 | |
| # created 2018 | |
| import sys | |
| import hashlib | |
| from urllib.parse import urlparse |
| #!/usr/bin/env python3 | |
| import re | |
| from typing import Dict, List | |
| from os import path | |
| from urllib.request import urlopen | |
| from string import ascii_uppercase | |
| # from itertools import product | |
| # from collections import Counter |
| #!/usr/bin/env python3 | |
| # Find rational approximations of irrational numbers | |
| import math | |
| from typing import List | |
| from timeit import timeit | |
| class Ratio: |