Skip to content

Instantly share code, notes, and snippets.

View skyme5's full-sized avatar
🚀
crashing on the 🌕

Aakash Gajjar skyme5

🚀
crashing on the 🌕
View GitHub Profile
@skyme5
skyme5 / process.py
Last active June 30, 2024 15:18
Person Segmentation
from itertools import zip_longest
import json
import math
from typing import Any
import cv2
from loguru import logger
from shapely.geometry import Polygon
import numpy as np
DEBUGGING = True
<section n="1">
<h1 class="title">Introduction to Data Structures an d Algorithms</h1>
<img query="computer programming code" />
Data structures an d algorithms form the backbone of effective software
development . They provide the building blocks for creating efficient an d
scal able applications that can handle complex tasks an d large amounts of
data .
</section>
<section n="2">
@skyme5
skyme5 / scan_isbn.rb
Last active September 10, 2021 17:07
Extract ISBN from PDF files using pdftotext utility
#!/usr/bin/env ruby
# frozen_string_literal: true
# Scan PDF files for ISBN Number using pdftotext.
#
# This ruby script will scan pdf files and extract ISBN
# Number and append it to the filename (`%filename%_[ISBN].pdf`)
#
# Run this script in folder
#
@skyme5
skyme5 / LICENSE
Last active August 3, 2021 11:59
Streaming Twitter Thread in Console using Tweepy
MIT License
Copyright (c) 2021 Aakash Gajjar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@skyme5
skyme5 / best_ctan_server.rb
Last active March 9, 2021 14:50
Find the closest CTAN mirror
require 'awesome_print'
require 'http'
require 'net/ping'
require 'uri'
require 'tty-table'
$MIRROR_DOC = 'https://ctan.org/tex-archive/README.mirrors'
$NEAREST = {}
def get_servers(type = 'rsync')
<!DOCTYPE html>
<html>
<head>
<title>Scatter Chart</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script>
<script src="https://www.chartjs.org/samples/latest/utils.js"></script>
<style>
canvas {
-moz-user-select: none;