Skip to content

Instantly share code, notes, and snippets.

View Nirav-Madhani's full-sized avatar
🌃
Looking at the Sky

Nirav Madhani Nirav-Madhani

🌃
Looking at the Sky
View GitHub Profile
name: Build
on:
push:
jobs:
# Build job. Builds app for Android with Buildozer
build-android:
name: Build for Android
runs-on: ubuntu-latest
@kaustubhgupta
kaustubhgupta / kivyapp-to-apk.ipynb
Created December 3, 2020 19:32
KivyApp to APK.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexdlaird
alexdlaird / 1_pyngrok_TCPExample_server.py
Last active June 5, 2025 16:21
Simple TCP server/client integration example for pyngrok, full documentation found at https://pyngrok.readthedocs.io/en/latest/integrations.html
# HOST="1.tcp.ngrok.io" PORT=12345 python server.py
import os
import socket
from pyngrok import ngrok
host = os.environ.get("HOST")
port = int(os.environ.get("PORT"))
@puranjayjain
puranjayjain / DeleteFirestoreIndexes
Created February 10, 2020 09:23
Delete all firestore composite indexes
# Delete all firestore composite indexes
gcloud firestore indexes composite list --uri | xargs -I{} gcloud firestore indexes composite delete {} --quiet
@ogxd
ogxd / CameraImage.cs
Created June 28, 2019 18:46
Camera (webcam or phone camera) directly in a Unity UI Image
using UnityEngine;
using UnityEngine.UI;
[RequireComponent(typeof(Image))]
[RequireComponent(typeof(AspectRatioFitter))]
public class CameraImage : MonoBehaviour {
private WebCamTexture cameraTexture;
private Image image;
private AspectRatioFitter fit;
@chiradeep
chiradeep / Code.gs
Last active April 3, 2022 16:42
Google App Script to Collect GH Traffic Stats into Google Sheets
//Setup:
// Create a sheet with the first sheet called 'TrafficData'. Cell Values are:
// A1: Repo Traffic Collector
// A3: Organization B3: <org value>
// A4: Repo B4: <repo name>
// A7: Date, B7: Views, C7: Uniques, D7: Weeknumber
//Tools -> Script Editor
//Add this script, fill in your GitHub TOKEN (https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line)
//Run the onOpen script - you will be warned it is insecure, but accept anyway. This should add a menu item to your sheet
//Use the Custom GitHub menu to run the getRepoTrafficStats function
@bmaupin
bmaupin / free-database-hosting.md
Last active May 18, 2026 05:39
Free database hosting
@davegreenwood
davegreenwood / triangulation.py
Created September 16, 2018 10:18
Triangulate image points to world points comparing openCV to pure python.
from __future__ import print_function
import numpy as np
import cv2
import time
np.set_printoptions(formatter={'float': '{: 0.3f}'.format})
def triangulate_nviews(P, ip):
"""
@bmaupin
bmaupin / free-backend-hosting.md
Last active May 14, 2026 06:46
Free backend hosting
@nyancodeid
nyancodeid / README.md
Last active May 22, 2025 21:02
Make RESTful API with Google Apps Script and SpreadSheet

Google Script CRUD

By Ryan Aunur Rassyid

Simply create RESTful API with Google Script and store it to Google SpreadSheet like a Pro.