Skip to content

Instantly share code, notes, and snippets.

@dfbarrero
dfbarrero / jekyll-tikz.rb
Created March 15, 2017 15:24
Jekyll-tikz is a Jekyll plugin which helps you use Tikz in you Jekyll site.
# Authored my Maxfan http://github.com/Maxfan-zone http://maxfan.org
# This is used to convert tikz code into svg file and load in you jekyll site
#
# Install:
#
# 1. Copy this file in your _plugins/ directory. You can customize it, of course.
# 2. Make sure texlive and pdf2svg are installed on your computer.
#
# Input:
#
@dfbarrero
dfbarrero / astar.py
Last active March 26, 2019 08:22 — forked from jamiees2/astar.py
A* Algorithm implementation in Python 3.x.
# 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