Skip to content

Instantly share code, notes, and snippets.

View tanishq-dubey's full-sized avatar
🚀
:^)

Tanishq Dubey tanishq-dubey

🚀
:^)
View GitHub Profile
from flask import Flask
import RPi.GPIO as GPIO
import time
app = Flask(__name__)
state = False
@app.before_first_request
def setup_gpio():

Keybase proof

I hereby claim:

  • I am tanishq-dubey on github.
  • I am dubey (https://keybase.io/dubey) on keybase.
  • I have a public key ASCjnWVXZ1j7cAC2h3Av9jpDCcjSFySKUNM5E0PCC5ICyAo

To claim this, I am signing this object:

sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@tanishq-dubey
tanishq-dubey / Easy C++ Makefile
Created December 5, 2016 00:46
A easy C++ makefile that can compile all files within a directory
CC = g++
CFLAGS = -Wall -g
LIBS =
SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
MAIN = ttext
kwmc config padding top 0
kwmc config padding bottom 0
kwmc config padding left 0
kwmc config padding right 0
kwmc config gap vertical 0
kwmc config gap horizontal 1
kwmc config tiling bsp
kwmc config hotkeys on