Skip to content

Instantly share code, notes, and snippets.

View tzvsi's full-sized avatar
🎯
Focusing

tzvsi tzvsi

🎯
Focusing
  • San Francisco, CA
View GitHub Profile
@miguelmota
miguelmota / parallel.sh
Created April 29, 2020 19:01
Bash run processes in parallel and exit with status code example
#!/bin/bash
set -eux
declare -a arr=("backend" "frontend")
FAIL=0
for i in "${arr[@]}"
do
@akTwelve
akTwelve / COCO_Image_Viewer.ipynb
Last active November 23, 2023 21:01
COCO Image Viewer | immersivelimit.com/tutorials/create-coco-annotations-from-scratch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smeschke
smeschke / smooth_pose_data.py
Last active March 17, 2025 14:56
Smooth Pose Estimation Data
import pandas as pd
import numpy as np
import cv2, os
import scipy
from scipy import signal
import csv
circle_color, line_color = (255,255,0), (0,0,255)
window_length, polyorder = 13, 2
sd = "workout"
@mattes
mattes / main.go
Last active October 10, 2021 09:34
package test
import (
"regexp"
guuid "github.com/google/uuid"
suuid "github.com/satori/go.uuid"
)
var re = regexp.MustCompile("^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$")
@shaps80
shaps80 / AVPlayer+Scrubbing.swift
Last active April 16, 2025 18:08
Enables smooth frame-by-frame scrubbing (in both directions) – similar to Apple's applications.
public enum Direction {
case forward
case backward
}
internal var player: AVPlayer?
private var isSeekInProgress = false
private var chaseTime = kCMTimeZero
private var preferredFrameRate: Float = 23.98
@Mahedi-61
Mahedi-61 / installing_opencv_from_source_in_Ubuntu_1804.sh
Last active April 4, 2024 05:05
Installing OpenCV from source on Ubuntu 18.04 machine
#!/bin/bash
# This gist is a step by step instructions to build and install OpenCV from source on ubuntu 18.04 LTS
# note: The easy and quick way to install is
# sudo pip3 install opencv-python
# sudo pip3 install opencv-contrib-python
# But this easy pypi installation can’t open video files on GNU/Linux distribution or on mac OS X system.
# And on some system opencv binaries provided packages are not compiled.
# Therefor we have no way rather than build it from source.
@guypursey
guypursey / .block
Last active September 21, 2023 09:51 — forked from mbostock/.block
Wrapping long labels with D3 v4 (sample data)
license: gpl-3.0
@tony-caffe
tony-caffe / Contract Killer 3.md
Last active June 12, 2024 17:44
The latest version of Bytes Unlimited ‘Contract Killer’ for web professionals

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Revised by Bytes Unlimited : Feb 3rd 2020

@mediavrog
mediavrog / gist:49c4f809dffea4e00738a7f5e3bbfa59
Last active June 20, 2024 18:13
CORS in Google Cloud Functions for Firebase
const cors = require('cors')({origin: true});
exports.sample = functions.https.onRequest((req, res) => {
cors(req, res, () => {
res.send('Passed.');
});
});