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
import facepy, collections, time | |
token = "XXXX" | |
def convert(data): | |
if isinstance(data, basestring): | |
return str(data) | |
elif isinstance(data, collections.Mapping): | |
return dict(map(convert, data.iteritems())) | |
elif isinstance(data, collections.Iterable): |
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__ = "Shubham Dokania" | |
# This script will keep on opening the cd player | |
# of a linux pc in every 5 seconds in an infinite loop | |
import os, time | |
time.sleep(5) | |
while 1: | |
try: | |
os.system("eject cdrom") |