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 | |
# CMAKE | |
# http://embedonix.com/articles/linux/installing-cmake-3-5-2-on-ubuntu/ | |
# Could NOT find Check (missing: PC_CHECK_LIBRARIES) | |
#(_FPHSA_FAILURE_MESSAGE) cmake/FindCheck.cmake:14 (find_package_handle_standard_args) | |
sudo apt-get install check | |
# additional libararies |
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
gcc --version | |
g++ --version | |
nvcc --version | |
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 | |
#### switching gcc | |
# https://gist.github.com/jS5t3r/5d1c15b2d10754cb732b5755508e51d0 | |
# conda update conda | |
# conda create -n yourenvname python=x.x anaconda |
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
# install wine and ltspice | |
sudo apt-get install wine | |
# sudo pacman -S wine | |
cd /tmp/ | |
wget http://ltspice.linear-tech.com/software/LTspiceIV.exe | |
wine LTspiceIV.exe | |
rm LTspiceIV.exe | |
# start lstpice through wine | |
wine ~/.wine/drive_c/Program\ Files/LTC/LTspiceIV/scad3.exe |
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
#https://github.com/ClementPinard/FlowNetPytorch | |
conda create -n flowpy35 python=3.5 anaconda | |
source activate flowpy35 | |
conda install pytorch torchvision -c pytorch | |
pip install tensorboardx | |
pip install argparse |
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
""" | |
The MIT License (MIT) | |
Copyright (c) 2015 Alec Radford | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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 | |
from sklearn.datasets import make_moons | |
from sklearn.cross_validation import train_test_split | |
n_feature = 2 | |
n_class = 2 | |
def make_network(n_hidden=100): |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<OpenSCENARIO> | |
<FileHeader revMajor="0" revMinor="9" date="2019-06-25" description="PedestrianCrossing" author="" /> | |
<Catalogs> | |
<VehicleCatalog> | |
<Directory path="Catalogs/VehicleCatalogs" /> | |
</VehicleCatalog> | |
<DriverCatalog> | |
<Directory path="Catalogs/DriverCatalogs" /> | |
</DriverCatalog> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<OpenSCENARIO> | |
<FileHeader revMajor="0" revMinor="9" date="2019-06-25" description="PedestrianCrossing" author="" /> | |
<Catalogs> | |
<VehicleCatalog> | |
<Directory path="Catalogs/VehicleCatalogs" /> | |
</VehicleCatalog> | |
<DriverCatalog> | |
<Directory path="Catalogs/DriverCatalogs" /> | |
</DriverCatalog> |
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
# Enter your code here. Read input from STDIN. Print output to STDOUT | |
class Node: | |
def __init__(self,value,point): | |
self.value = value | |
self.point = point | |
self.parent = None | |
self.H = 0 | |
self.G = 0 | |
def move_cost(self,other): | |
return 0 if self.value == '.' else 1 |
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
<!-- --> | |
<launch> | |
<arg name='role_name' default='ego_vehicle'/> | |
<include file="$(env CARLA_AUTOWARE_ROOT)/my_map.launch"/> | |
<include file="$(env CARLA_AUTOWARE_ROOT)/my_sensing.launch"/> | |
<include file="$(env CARLA_AUTOWARE_ROOT)/my_localization.launch"> | |
<arg name='role_name' value='$(arg role_name)'/> | |
</include> | |
<include file="$(env CARLA_AUTOWARE_ROOT)/my_detection.launch"> |