Skip to content

Instantly share code, notes, and snippets.

@velniukas
velniukas / bellman.py
Created February 26, 2019 13:59 — forked from joninvski/bellman.py
Bellman ford python implementation
import pdb
"""
The Bellman-Ford algorithm
Graph API:
iter(graph) gives all nodes
iter(graph[u]) gives neighbours of u
graph[u][v] gives weight of edge (u, v)
"""
import PySimpleGUI as sg
import os
import chess
import chess.pgn
import copy
import time
button_names = ('close', 'cookbook', 'cpu', 'github', 'pysimplegui', 'run', 'storage', 'timer')
CHESS_PATH = '.' # path to the chess pieces
@velniukas
velniukas / README.md
Created October 21, 2017 06:48
Scrape your Facebook saved links

Facebook does not provide an easy way to get your saved links out of its system. Here's a quick script that does that for you.

Instructions

Go to your Saved links page and make sure you scroll way down to the bottom so that all your saved items are loaded. This script will generate a simple HTML page with your links, along with an Add to Pinboard action.

Bookmarklet

Drag this to your bookmarks toolbar:

@velniukas
velniukas / textuml.py
Created October 22, 2015 05:22 — forked from zerok/textuml.py
"""
Fetches an umlgraph from a github wikipage and converts it into a
png using graphviz and UMLGraph.
The script searches on a given page for a pre+code compbination with the class
"uml", which is then converted into a png file.
Requirements:
* BeautifulSoup
* graphviz
Quick gist on getting vsphere and vcenter and fog/vsphere going
# Things to download
- Download free evaluation version of window 2008
- Download free evaluation of esxi v5
- Download free evaluation of esxi vsphere (control center) iso
# Install esxi in vmware fusion
1)Install esxi in vmware (select vmware/esx as host)
create a user root/pipopopo