The instructions are based on this answers.ros.org thread.
You may need the latest pip, follow the official instructions.
Install bloom:
from selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support import expected_conditions as EC | |
import requests | |
import os | |
def download_all_papers(base_url, save_dir, driver_path): | |
driver = webdriver.Chrome(driver_path) |
### INSTALLATION NOTES ### | |
# 1. Install Homebrew (https://github.com/mxcl/homebrew) | |
# 2. brew install zsh | |
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh) | |
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace | |
# 5. Install iTerm2 | |
# 6. In iTerm2 preferences for your profile set: | |
# Character Encoding: Unicode (UTF-8) | |
# Report Terminal Type: xterm-256color | |
# 7. Put itunesartist and itunestrack into PATH |
The instructions are based on this answers.ros.org thread.
You may need the latest pip, follow the official instructions.
Install bloom:
Pretty much everything is working out of the box. The screen is beautiful and the keyboard is nice to type on.
The battery life when just doing using the laptop as a portable laptop is pretty good. It's light, thin.
I look forwarding to testing its for some light gaming, but until then, here's what I did to get everything working on it.
cmake_minimum_required(VERSION 2.8.3) | |
project(foo) | |
if(NOT WIN32) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall") | |
endif() | |
# find dependencies |
var page_no = getCurrentPageNumber(); | |
var macro_flag = false; | |
function wait(msecs) { | |
var start = new Date().getTime(); | |
var cur = start; | |
while (cur - start < msecs) { | |
cur = new Date().getTime(); | |
} | |
} |
class UnionFind: | |
"""Weighted quick-union with path compression. | |
The original Java implementation is introduced at | |
https://www.cs.princeton.edu/~rs/AlgsDS07/01UnionFind.pdf | |
>>> uf = UnionFind(10) | |
>>> for (p, q) in [(3, 4), (4, 9), (8, 0), (2, 3), (5, 6), (5, 9), | |
... (7, 3), (4, 8), (6, 1)]: | |
... uf.union(p, q) |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import rospy | |
from sensor_msgs.msg import PointCloud2 | |
import sensor_msgs.point_cloud2 as pc2 | |
class SubscribePointCloud(object): | |
def __init__(self): |