Skip to content

Instantly share code, notes, and snippets.

View jS5t3r's full-sized avatar
🎯
Focusing

Peter Lorenz jS5t3r

🎯
Focusing
View GitHub Profile
@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
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 / 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
@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
@jS5t3r
jS5t3r / CMakeLists.txt
Created January 10, 2017 19:59 — forked from ClintLiddick/CMakeLists.txt
wxWidgets Hello World
cmake_minimum_required(VERSION 3.1)
project(wxApp CXX)
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
if(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
else()
message(ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()