Skip to content

Instantly share code, notes, and snippets.

Lucas Amparo Barbosa lucasamparo

Block or report user

Report or block lucasamparo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lucasamparo / CMakeLists.txt
Last active Nov 14, 2019
PCL PointCloud to Image class
View CMakeLists.txt
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
find_package(PCL 1.3 REQUIRED)
find_package(OpenCV REQUIRED)
lucasamparo / Set of Divisors
Last active Feb 26, 2019
A code snippet to pick the set of divisor from a number, with or without limit the largest possible value. Enjoy, if useful.
View Set of Divisors
import numpy as np
def pick_divisors(value, max_divisor=None):
divisors = []
calc_value = np.int0(np.sqrt(value))
limit = calc_value if max_divisor is None else min(max_divisor, calc_value)
for i in range(1, limit):
if value % i == 0:
You can’t perform that action at this time.