This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'Parth' | |
import BaseHTTPServer | |
import urlparse | |
import RPi.GPIO as GPIO | |
PORT = 8000 | |
class Handler(BaseHTTPServer.BaseHTTPRequestHandler): | |
def do_GET(self): | |
args = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Copyright (c) 2016 Parth V. Parikh | |
#Freely distributable under MIT lincese. | |
__author__ = 'Parth' | |
def alternate(num, target): | |
if int(num)<3: | |
return False | |
found = False | |
occ = [] |
NewerOlder