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
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
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 numpy as np | |
def depth2pcd(depth): | |
def remap(x, in_range_l, in_range_r, out_range_l, out_range_r): | |
return (x - in_range_l) / (in_range_r - in_range_l) * (out_range_r - out_range_l) + out_range_l | |
# depth = remap(depth, depth.min(), depth.max(), 0, 1) | |
# print(depth) | |
scalingFactor = 1 | |
fovy = 60 |
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/sh | |
git config --global unset http.proxy | |
git config --global unset https.proxy |
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 os | |
import time | |
total = 80 # the number of copied files, decided by your free disk space | |
times = 2 # clean times, the more, the better | |
big_file = 'xxx' # a big file, maybe a .zip file or others ... | |
for j in range(times): | |
for i in range(total): | |
tgt_path = '%03d' % i |
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 math import * | |
def angleaxis_to_quat(rot, theta): | |
# rot: [rx, ry, rz] | |
return [r * sin(theta / 2) for r in rot] + [cos(theta / 2)] | |
def euler_to_quat(euler): | |
# euler: [X, Y, Z] |