Skip to content

Instantly share code, notes, and snippets.

@harshil93r
harshil93r / pre-check.py
Created August 23, 2018 15:16
Pre commit hook Python
#!/usr/bin/env python
#-*- mode: python -*-
all_okay = True
from subprocess import Popen, PIPE
import sys
from termcolor import colored
syntax_checker = "pyflakes"
#!/usr/bin/env python
#-*- mode: python -*-
all_okay = True
from subprocess import Popen, PIPE
import sys
from termcolor import colored
syntax_checker = "pylint"
@harshil93r
harshil93r / hh
Last active February 4, 2019 17:00
hh
hh1
#!/usr/local/bin/python
'''
Main page for UI : https://www.ustraveldocs.com/in/in-niv-waittimeinfo.asp#waittime
Check center codes : https://travel.state.gov/etc/designs/travel/TSGglobal_libs/data/PostsVWT.js
To allow SMTP client to authenticate and send email allow less secure here https://myaccount.google.com/lesssecureapps
configure here for center and type of visa
'''