Skip to content

Instantly share code, notes, and snippets.

View jS5t3r's full-sized avatar
🎯
Focusing

Peter Lorenz jS5t3r

🎯
Focusing
View GitHub Profile
#!/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
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
@jS5t3r
jS5t3r / ltspice.sh
Created December 3, 2017 13:32 — forked from daniw/ltspice.sh
install ltspice on ubuntu (arch commented)
# 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
#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
@jS5t3r
jS5t3r / adam.py
Created December 8, 2017 12:02 — forked from Newmu/adam.py
Adam Optimizer
"""
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
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):
@jS5t3r
jS5t3r / negative_car.xosc
Created November 4, 2019 17:02
Adversary car should be able to drive backwards.
<?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>
<?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>
@jS5t3r
jS5t3r / astar.py
Created November 26, 2019 12:29 — forked from jamiees2/astar.py
A* Algorithm implementation in python.
# 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
<!-- -->
<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">