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 playwright.sync_api import sync_playwright | |
def cnc_machine(): | |
with sync_playwright() as p: | |
browser = p.firefox.launch(headless=True) | |
page = browser.new_page() | |
page.goto("http://192.168.7.2/#production") | |
time.sleep(10) # Wait for page to load | |
# Click the HOME ALL button |
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
async function fetchCourses(odooUrl: string = "https://admin.orangewood.co") { | |
try { | |
const courseUrl = "/slides/all"; | |
const res = await fetch(odooUrl + courseUrl); | |
const html = await res.text(); | |
const courses = []; | |
const courseCardRegex = /<div class="card w-100 o_wslides_course_card mb-4[^>]*>[\s\S]*?<\/div>\s*<\/div>\s*<\/div>/g; | |
const courseCards = html.match(courseCardRegex) || []; |
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
# Install OhMyPosh | |
winget install JanDeDobbeleer.OhMyPosh -s winget | |
# Get the current shell | |
oh-my-posh get shell | |
# Get the location of the PROFILE | |
$PROFILE | |
# Open profile file in notepad |