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
# https://martechwithme.com/get-list-pages-url-from-website-python/ | |
# https://stackoverflow.com/questions/38511444/python-download-files-from-google-drive-using-url#39225272 | |
# https://stackoverflow.com/questions/38489386/how-to-fix-403-forbidden-errors-when-calling-apis-using-python-requests | |
import requests | |
import os | |
import re | |
from usp.tree import sitemap_tree_for_homepage | |
from time import sleep |
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
# https://martechwithme.com/get-list-pages-url-from-website-python/ | |
# https://stackoverflow.com/questions/38511444/python-download-files-from-google-drive-using-url#39225272 | |
import requests | |
import os | |
import re | |
from usp.tree import sitemap_tree_for_homepage | |
from time import sleep |
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
qmk json2c2 C:/Users/[USERSAME]/qmk_firmware/keyboards/JNAO/keymaps/JoeNAO/keymap.json | |
qmk c2json -km joeyv120 -kb keebio/iris/rev4 C:/Users/[USERSAME]/qmk_firmware/keyboards/keebio/iris/keymaps/joeyv120/keymap.c | |
qmk c2json -km JoeNAO -kb jnao C:/Users/[USERSAME]/qmk_firmware/keyboards/JNAO/keymaps/JoeNAO/keymap.c --no-cpp |
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
"""Steal a network device for exclusive use regardless of reservation""" | |
import warnings | |
import nidaqmx as ni | |
# ignore warnings from nidaqmx (i.e. network device is already in the system) | |
warnings.filterwarnings('ignore', module='nidaqmx') | |
host = 'cDAQ9185-1E00AD8' # ip address or host name | |
cdaq = ni.system.device.Device(name=host) |
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
from time import time | |
class TicToc(): | |
''' | |
Represents a simple timer-like, or stopwatch object. | |
tic() starts the timer. | |
toc() returns time (seconds) since tic() was called. | |
''' | |
def __init__(self): |