Skip to content

Instantly share code, notes, and snippets.

Avatar

wf34

  • Moscow, RU
View GitHub Profile
@wf34
wf34 / CMakeLists.txt
Created Sep 3, 2018
G2O 3D SLAM with calibration test
View CMakeLists.txt
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}
)
@wf34
wf34 / webscrape_with_puppeteer.js
Created May 12, 2018
Web Scraping with JS, Node and puppeteer
View webscrape_with_puppeteer.js
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 {
@wf34
wf34 / headless_chrome_lxml.py
Last active May 12, 2018
Web-Scraping with Headless Chrome
View headless_chrome_lxml.py
#!/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 \
@wf34
wf34 / python_requests_lxml.py
Last active May 12, 2018
Web Scraping Wikipedia
View python_requests_lxml.py
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)
View tensorflow_n_keras_delayed_sin_echo_prediction.txt
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
You can’t perform that action at this time.