Skip to content

Instantly share code, notes, and snippets.

View orphefs's full-sized avatar

Orfeas Kypris orphefs

  • Oxford, UK
View GitHub Profile
@orphefs
orphefs / .gitconfig
Created March 6, 2017 17:10 — forked from teoguso/.gitconfig
gitconfig
[push]
default = current
[user]
name = Cristina Munoz
email = hi@xmunoz.com
[core]
editor = /usr/local/bin/vim
pager = less
@orphefs
orphefs / colorized_voronoi.py
Created May 23, 2017 09:33 — forked from pv/colorized_voronoi.py
Colorized Voronoi diagram with Scipy, in 2D, including infinite regions
import numpy as np
import matplotlib.pyplot as plt
from scipy.spatial import Voronoi
def voronoi_finite_polygons_2d(vor, radius=None):
"""
Reconstruct infinite voronoi regions in a 2D diagram to finite
regions.
Parameters
@orphefs
orphefs / docker-cheat-sheat.md
Created November 6, 2018 09:45 — forked from dwilkie/docker-cheat-sheat.md
Docker Cheat Sheet

Build docker image

$ cd /path/to/Dockerfile
$ sudo docker build .

View running processes

@orphefs
orphefs / sampleREADME.md
Created July 21, 2020 15:56 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

name: Github action to run tests
on: pull_request
jobs:
Run-tests:
runs-on: ubuntu-latest
steps:
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- uses: actions/checkout@v2
-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-20.04
$ tree -a
.
├── my-repo
   ├── .git
   ├── .github
   │   └── workflows
   │   └── tests.yml
   └── src
on: ${ACTION}
FROM docker:dind
RUN apk add curl
RUN curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sh
COPY .actrc /
RUN mv /.actrc ~/.actrc
WORKDIR /project
$ tree -a
.
├── .actrc
├── Dockerfile
├── my-repo
   ├── .git
   ├── .github
   │   └── workflows
   │   └── tests.yml
   └── src