Skip to content

Instantly share code, notes, and snippets.

View navanchauhan's full-sized avatar
👻

Navan Chauhan navanchauhan

👻
View GitHub Profile
This file has been truncated, but you can view the full file.
import Accessibility
import Combine
import CoreFoundation
import CoreGraphics
import CoreText
import CoreTransferable
import Darwin
import DeveloperToolsSupport
import Foundation
import Observation
@navanchauhan
navanchauhan / timeboxing.py
Created March 17, 2023 07:34
Simplest greedy-timeboxing algorithm implementation in Python
# Timeboxing Algorithms
from datetime import datetime, timedelta
timeboxes = []
class TaskEvent:
"""
A class to represent a task with its due date, title, description, priority, and time required to complete.
Attributes
import fitz
from PIL import Image
from azure.cognitiveservices.vision.computervision import ComputerVisionClient
from azure.cognitiveservices.vision.computervision.models import OperationStatusCodes
from azure.cognitiveservices.vision.computervision.models import VisualFeatureTypes
from msrest.authentication import CognitiveServicesCredentials
from array import array
import os
@navanchauhan
navanchauhan / installYunoHostBuster.sh
Created August 10, 2022 17:47
Archive of YunoHost's install script for Debian 10 (Buster)
#!/bin/bash
# Copyright (C) 2015-2020 YunoHost
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@navanchauhan
navanchauhan / libcamera-stream.sh
Created July 23, 2022 03:05
Stream Raspberry Pi to Twitch (Bullseye)
#!/bin/bash
# =================================================================
# Stream configuration file for Raspberry Pi Camera
#
# @author Russell Feldhausen ([email protected])
# @version 2019-06-05
#
# @author Navan Chauhan ([email protected])
# @version 2022-07-22

Keybase proof

I hereby claim:

  • I am navanchauhan on github.
  • I am navanchauhan (https://keybase.io/navanchauhan) on keybase.
  • I have a public key whose fingerprint is 1DA1 04AA DEB7 7473 A4FA C27B 4EFC A289 7342 A778

To claim this, I am signing this object:

@navanchauhan
navanchauhan / signer.sh
Created March 1, 2020 07:46
use to fake sign apps
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
echo "Usage: bash signer.sh ipaname.ipa"
if [ ! -f /usr/bin/ldid ] || [ ! -f /usr/bin/zip ] || [ ! -f /usr/bin/unzip ]; then
echo "***You need "'zip'", "'unzip,'" and "'Link Identity Editor (ldid)'" installed from Cydia to begin***"
echo "Exiting, one or more of the required programs is missing"
exit
We can't make this file beautiful and searchable because it's too large.
path,annotations
/Users/navanchauhan/Downloads/malaria-data-object/plasmodium-images/images/plasmodium-0000.jpg,[{"label":"plasmodium","type":"rectangle","coordinates":{"x":96,"y":436,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":66,"y":287,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":32,"y":244,"width":52,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":167,"y":185,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":278,"y":680,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":78,"y":613,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":71,"y":559,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":129,"y":499,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":409,"y":374,"width":51,"height":51}},{"label":"plasmodium","type":"rectangle","c
We can't make this file beautiful and searchable because it's too large.
path,annotations
/Users/navanchauhan/CodingAndStuff/objectD/turicreate/images/plasmodium-phone-0001.jpg,[{"label":"plasmodium","type":"rectangle","coordinates":{"x":311,"y":390,"width":42,"height":41}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":284,"y":433,"width":41,"height":41}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":131,"y":283,"width":41,"height":41}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":93,"y":169,"width":41,"height":41}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":246,"y":729,"width":41,"height":41}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":43,"y":729,"width":41,"height":41}}]
/Users/navanchauhan/CodingAndStuff/objectD/turicreate/images/plasmodium-phone-0002.jpg,[{"label":"plasmodium","type":"rectangle","coordinates":{"x":297,"y":287,"width":41,"height":41}},{"label":"plasmodium","type":"rectangle","coordinates":{"x":275,"y":260,"width":41,"height":41}},{"label":"plasmodium","type":"rectangle","coordinates":{
@navanchauhan
navanchauhan / sampleThingSpeakData.csv
Created May 10, 2019 02:27
thingSpeak Sample Data
created_at entry_id field1 latitude longitude elevation status
2019-05-10 00:26:27 IST 1 2 28.5659912 77.1929777
2019-05-10 00:42:09 IST 2 1 28.5659912 77.1929777
2019-05-10 07:38:55 IST 3 0 28.5659912 77.1929777
2019-05-10 07:49:20 IST 4 1 28.5192 77.213
2019-05-10 07:49:38 IST 5 2 28.5192 77.213
2019-05-10 07:50:38 IST 6 2 19.0176 72.8562