Skip to content

Instantly share code, notes, and snippets.

View MrYawe's full-sized avatar
🏠
Working from home

Yannis Weishaupt MrYawe

🏠
Working from home
View GitHub Profile
@MrYawe
MrYawe / deploy-production.yml
Created December 1, 2021 11:01
Deploy a Phoenix app with GitHub Actions on fly.io with Docker layer caching
# Based on https://evilmartians.com/chronicles/build-images-on-github-actions-with-docker-layer-caching
on:
push:
branches:
- main
jobs:
deploy_production:
name: Deploy production
runs-on: ubuntu-latest
from igraph import *
g = Graph(16, directed=True)
g.add_edges([
(0,1), (0,2), (0,3),
(1,4),
(2, 4), (2,5),
(3,5), (3,6),
(4,7), (4,8),
(5,8), (5,9), (5,10),
@MrYawe
MrYawe / MRO-1.py
Last active September 21, 2016 12:39
from igraph import *
g = Graph(11)
g.vs["name"]=["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K"]
g.add_edges([
("A","B"),("A","C"),("A","D"),
("B","E"),("B","G"),
("C","E"),("C","F"),("E","G"),("E","H"),
("D","E"),("D","G"),("D","H"),
("E","I"),("E","J"),