Skip to content

Instantly share code, notes, and snippets.

View ashyadav's full-sized avatar

Ash Yadav ashyadav

  • USA
View GitHub Profile
@frabert
frabert / COPYING
Last active December 21, 2023 13:35
Favicons for HN
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@CarlosDomingues
CarlosDomingues / python-poetry-cheatsheet.md
Last active March 23, 2026 03:34
Python Poetry Cheatsheet

Create a new project

poetry new <project-name>

Add a new lib

poetry add <library>

Remove a lib

@mrkyle7
mrkyle7 / setup.sh
Last active November 3, 2024 15:43 — forked from melnikovdv/setup.sh
#!/bin/sh
# to auto-run:
# curl -fsSL https://gist.github.com/mrkyle7/e2574cb5feb633dea7a7/download | tar -xf- && bash giste2574cb5feb633dea7a7*/setup.sh && rm -r giste2574cb5feb633dea7a7*
##### Preparations #####
#-----------------------
# Description is available at http://mlayer.org/tech/2014/11/25/setup-mac-os-x.html
# install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install caskroom/cask/brew-cask # makes available to install apps as packages
@dannguyen
dannguyen / face-boxer-usage.md
Last active July 29, 2023 22:05
A face-detection script in Python

This face-boxer.py script is more-or-less the same code that you'll find in the OpenCV tutorial: Face Detection using Haar Cascades. For another variation, with more explanation, check out RealPython's tutorial.

Usage

The face-boxer.py script is designed to be run from the command-line. It has two required arugments:

  1. The path to a XML file containing a Haar-cascade of visual features. In this example, it will be the features that make up a face.
  2. The path to an image file that you want to perform face-detection on. You can pass in more than one image file as space-separated arguments.