Skip to content

Instantly share code, notes, and snippets.

View seenitall's full-sized avatar

Blanca Alonso seenitall

View GitHub Profile
@seenitall
seenitall / OpenSourceCRM.rst
Created January 10, 2020 17:18 — forked from cstroe/OpenSourceCRM.rst
A distilled list of open-source CRM software
@seenitall
seenitall / polygon_interpolation_torch.py
Created May 15, 2019 09:27
Polygon interpolation functions in PyTorch
import numpy as np
import cv2
import math
import torch
###### POLYGON INTERPOLATION FUNCTIONS PYTORCH ######
from torchinterp1d import Interp1d
def segments_torch(polygon):
@seenitall
seenitall / polygon_interpolation_numpy.py
Last active May 15, 2019 09:28
Polygon interpolation functions in numpy
import numpy as np
import cv2
import math
import torch
###### POLYGON INTERPOLATION FUNCTIONS NUMPY ######
def segments(poly):
"""A sequence of (x,y) numeric coordinates pairs """
return zip(poly, poly[1:] + [poly[0]])
@seenitall
seenitall / docker-examples.md
Created May 13, 2019 18:39 — forked from thaJeztah/docker-examples.md
Some docker examples

Commit, clone a container

To 'clone' a container, you'll have to make an image of that container first, you can do so by "committing" the container. Docker will (by default) pause all processes running in the container during commit to preserve data-consistency.

For example;

docker commit --message="Snapshot of my container" my_container my_container_snapshot:yymmdd
@seenitall
seenitall / tmux-cheatsheet.markdown
Created March 1, 2019 09:07 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname