This file contains 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 |
This file contains 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 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 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 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} | |
) |