Skip to content

Instantly share code, notes, and snippets.

View tibaes's full-sized avatar
👻
What's that?! A paranormal distribution, of course!

Rafael H Tibães tibaes

👻
What's that?! A paranormal distribution, of course!
View GitHub Profile
@tibaes
tibaes / XGH - en.txt
Created May 3, 2024 14:47 — forked from banaslee/XGH - en.txt
eXtreme Go-Horse Process
eXtreme Go Horse (XGH) Process
Source: http://gohorseprocess.wordpress.com
1. I think therefore it's not XGH.
In XGH you don't think, you do the first thing that comes to your mind. There's not a second option as the first one is faster.
2. There are 3 ways of solving a problem: the right way, the wrong way and the XGH way which is exactly like the wrong one but faster.
XGH is faster than any development process you know (see Axiom 14).
@tibaes
tibaes / environment.sh
Last active January 4, 2024 21:40
yolov8 object segmentation
#!/bin/bash
# Assuming AWS Sagemaker conda_pytorch_p310 environment
sudo yum install -y openssl-devel openssl11-libs libcurl
pip install --upgrade pip setuptools wheel
pip install fiftyone
pip install fiftyone-db-rhel7 --force-reinstall
pip install shapely polars
@tibaes
tibaes / main.rs
Created January 13, 2023 15:33 — forked from jaysonsantos/main.rs
rust ring example
extern crate ring;
use ring::aead::*;
use ring::pbkdf2::*;
use ring::rand::SystemRandom;
fn main() {
// The password will be used to generate a key
let password = b"nice password";
@tibaes
tibaes / pose_mediapipe.ipynb
Created December 1, 2022 18:18
Pose_MediaPipe.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tibaes
tibaes / stable-diffusion.ipynb
Created December 1, 2022 17:53
stable-diffusion.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tibaes
tibaes / logistic.py
Created April 5, 2021 18:46
Fitting a logistic curve
from scipy.optimize import curve_fit
def logistic(x, x0, L, k):
return L / (1.0 + np.exp(-k*(x - x0)))
def resample(X, y) -> np.array:
X = np.array(X)
y = np.array(y)
bounds = (0, [1.0, np.max(y), 1000])
popt, pcov = curve_fit(logistic, X, y, bounds=bounds)
@tibaes
tibaes / video.ipynb
Created July 13, 2019 14:19
video.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tibaes
tibaes / faces.py
Created June 28, 2019 04:12
VisionAPI & Functions
# opencv-python
# google-cloud-storage
# google-cloud-vision
from google.cloud import storage
from google.cloud import vision
import numpy as np
import cv2 as cv
import logging
import os
@tibaes
tibaes / deploy.py
Created June 7, 2019 19:28
Google functions example
import pandas as pd
import numpy as np
import logging
from google.cloud import storage
from lightgbm import LGBMRegressor
from sklearn.externals import joblib
from sklearn.impute import SimpleImputer
from sklearn.preprocessing import OrdinalEncoder
num_feat = ['MSSubClass', 'LotFrontage', 'LotArea',
@tibaes
tibaes / opencv_cmake.log
Last active April 27, 2018 13:05
golden heart 3.0.0
General configuration for OpenCV 3.4.1 =====================================
-- Version control: unknown
--
-- Extra modules:
-- Location (extra): /root/opencv_contrib-3.4.1/modules
-- Version control (extra): unknown
--
-- Platform:
-- Timestamp: 2018-04-27T12:18:50Z
-- Host: Linux 4.9.87-linuxkit-aufs x86_64