This file contains hidden or 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 matplotlib.pyplot as plt | |
import numpy as np | |
if __name__ == '__main__': | |
input_data = 'data/input_training_0000_0099.npy' | |
label_data = 'data/label_training_0000_0099.npy' | |
xs = np.load(input_data) | |
ys = np.load(label_data) |
This file contains hidden or 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
#!/usr/bin/env zsh | |
REMOTE=ovh:/opt/mscs/worlds/ | |
N_TO_KEEP=60 | |
echo "Fetching server data into a temporary folder" | |
rsync -av ovh:/opt/mscs/worlds/ tmp-backup/ | |
echo "Compressing server fetched data" | |
tar -cJvf `date +'%Y-%m-%H-%M-%S'`.tar.xz tmp-backup |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"> | |
</script> | |
<meta charset='utf-8' /> | |
<title> | |
infinite loop carousel(horizontal) | |
</title> |
This file contains hidden or 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
{ | |
"MESSAGE_ERREUR_PATIENT_INTROUVABLE": "Impossible de trouver le patient...", | |
"MESSAGE_BIENVENUE": "Systeme de gestion de patient tototot", | |
} |
This file contains hidden or 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
ListePourWidget = [] | |
for battement in list: | |
widgetItem = # whatever tas besoin de mettre dedans | |
ListePourWidget.append(widgetItem) | |
This file contains hidden or 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
Eigen::Transform<double,3,Eigen::Affine> eigenTransformOfPoses(geometry_msgs::Pose from, geometry_msgs::Pose to) | |
{ | |
Eigen::Quaternionf fromQuat = rosQuatToEigenQuat(from.orientation); | |
Eigen::Quaternionf toQuat = rosQuatToEigenQuat(to.orientation); | |
Eigen::Quaternionf quaternionRotation = transFromQuatToQuat(fromQuat, toQuat); | |
Eigen::Transform<float,3,Eigen::Affine> rotation(quaternionRotation); | |
Eigen::Translation<double,3> translation(vectorOfPoints(from.position, to.position)); | |
Eigen::Transform<float,3,Eigen::Affine> T = rotation * translation.cast<float>(); |