Skip to content

Instantly share code, notes, and snippets.

View faermanj's full-sized avatar

Julio Faerman faermanj

View GitHub Profile
@tnk4on
tnk4on / build-and-setup-podman-on-fedora-lima.md
Last active January 14, 2024 09:34
Build Podman with Fedora running on lima and use the container on Podman as a DevContainer from VS Code Remote-Containers.

DevContainer with Podman on Fedora on lima

Environment

  • macOS: Big Sur v11.5.2
  • VS Code: Version: v1.60.0
  • Remote - Containers: v0.194.0
  • lima: v0.6.3

1. Install Podman and lima

@ranman
ranman / ssim-tests.py
Created April 13, 2017 21:34
ssim-tests
import io
import os
import pprint
import boto3
import cv2
import numpy as np
from PIL import Image, ImageOps
from skimage import img_as_float
from skimage.measure import compare_ssim as ssim
@alekseykulikov
alekseykulikov / index.md
Last active October 12, 2024 17:02
Principles we use to write CSS for modern browsers

Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.

My 3 developers team has just developed React.js application with 7668 lines of CSS (and just 2 !important). During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.

Here are main principles we use to write CSS for modern (IE11+) browsers:

@Bouke
Bouke / gist:11261620
Last active August 3, 2023 01:46
Multiple Python installations on OS X

Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv instead. If you are looking for the previous version of this document, see the revision history.

$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10

$ pyenv install 2.6.9