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
| # context is available at https://wf34.ws/works/learnings-of-multibody-dynamics-workshop-2025/ | |
| # requirements: pip3 install typed-argument-parser numpy matplotlib | |
| # | |
| #!/usr/bin/env python3 | |
| import bisect | |
| import copy | |
| import os | |
| import typing | |
| import numpy as np |
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
| cmake_minimum_required(VERSION 3.0) | |
| find_package(PCL 1.8 REQUIRED) | |
| find_package(G2O REQUIRED) | |
| find_package(Eigen3 REQUIRED) | |
| include_directories( | |
| ${PCL_INCLUDE_DIRS} | |
| ${G2O_INCLUDE_DIR} | |
| ${EIGEN3_INCLUDE_DIR} | |
| ) |
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
| const puppeteer = require('puppeteer'); | |
| const cheerio = require('cheerio'); | |
| function get_browser() { | |
| return puppeteer.launch(); | |
| } | |
| function instantiate_page(browser) { | |
| return browser.newPage(); | |
| } | |
| class PageLoadError extends Error { |
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
| #!/usr/bin/env python3 | |
| import sys | |
| import os | |
| import subprocess | |
| import lxml.html as html | |
| import lxml.etree as etree | |
| def get_page(url): | |
| HEADLESS_GOOGLE_CMD = '''google-chrome-stable --headless \ |
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
| import requests | |
| import lxml.html as html | |
| def get_page(url): | |
| return requests.get(url, timeout =1.).text | |
| def parse_page(song_url): | |
| page_source = get_page(song_url) |
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
| import argparse | |
| import sys | |
| import gc | |
| from typing import Optional, Tuple | |
| import numpy as np | |
| from keras.models import Sequential | |
| from keras.layers import Dense, TimeDistributed | |
| from keras.layers import LSTM |