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 datetime | |
import glob | |
import os | |
import pathlib | |
import PIL.Image | |
import PIL.ExifTags | |
import pytz | |
import re |
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
# WSL2 network port forwarding script v1 | |
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell, | |
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter. | |
# written by Daehyuk Ahn, Aug-1-2020 | |
# Display all portproxy information | |
If ($Args[0] -eq "list") { | |
netsh interface portproxy show v4tov4; | |
exit; | |
} |
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
#include <array> | |
#include <iostream> | |
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> | |
#include <CGAL/Point_set_3.h> | |
#include <CGAL/Orthogonal_k_neighbor_search.h> | |
#include <CGAL/Search_traits_3.h> | |
#include <CGAL/Search_traits_adapter.h> |
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
#!/bin/bash | |
# The content of this file is copied from | |
# https://raw.githubusercontent.com/km4ack/pi-scripts/master/rtc | |
# and | |
# https://learn.adafruit.com/adding-a-real-time-clock-to-raspberry-pi/set-rtc-time | |
#install/configure real time clock | |
#20190203 km4ack | |
#script based on directions from the following web site |
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
#!/bin/bash | |
LIBRARIES_PATH=/home/$USER/Libraries/CGAL | |
sudo apt-get install -y | |
libgmp-dev libmpfr-dev \ | |
libreadline-dev coinor-libipopt-dev \ | |
libqt5svg5-dev libqt5script5 libqt5scripttools5 libqt5websockets5-dev qtscript5-dev \ | |
glpk-utils libglpk-dev glpk-doc python-swiglpk |
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
#!/bin/bash | |
# This file is obtained from | |
# https://answers.ros.org/question/300113/docker-how-to-use-rviz-and-gazebo-from-a-container/ | |
# and | |
# https://medium.com/intro-to-artificial-intelligence/rviz-on-docker-bdf4d0fca5b | |
# If not working, first do: sudo rm -rf /tmp/.docker.xauth | |
# It still not working, try running the script as root. |
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
# Author: | |
# Yaoyu Hu <[email protected]> | |
# | |
# Date: | |
# 2021-12-28 | |
# Arguments. | |
ARG base_image | |
FROM ${base_image} |
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
#include <fstream> | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
#include <CGAL/Simple_cartesian.h> | |
#include <CGAL/Surface_mesh.h> | |
#include <CGAL/Surface_mesh/IO/PLY.h> |
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
template < typename Iterable_t > | |
static std::map<int, int> | |
compute_cluster_size(const Iterable_t& cluster_map) { | |
std::map<int, int> cluster_size; | |
for ( const auto& idx : cluster_map ) { | |
if ( cluster_size.find(idx) == cluster_size.end() ) { | |
// New idx. | |
cluster_size[idx] = 1; | |
} else { |
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
FROM nvidia/vulkan:1.1.121-cuda-10.1--ubuntu18.04 | |
# This is found at | |
# https://askubuntu.com/questions/909277/avoiding-user-interaction-with-tzdata-when-installing-certbot-in-a-docker-contai | |
# and | |
# http://p.cweiske.de/582 | |
# | |
# Allow using GUI apps. | |
ENV TERM=xterm |
NewerOlder