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
// create list of list with three strings each | |
strings = [ | |
["p1", "p2", "p3"], | |
["p4", "p5", "p6"], | |
["p7", "p8", "p9"] | |
] | |
// function to return a random row of the input list | |
function getRow() { |
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
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950 | |
Facebook = { | |
config: { | |
actionDelay: 1000, | |
scrollDelay: 5000, | |
// set to -1 for no limit | |
maxRequestsToAccept: -1, | |
totalRequestsAccepted: 0, | |
// set string to be present in names to be accepted, leave empty to accept all |
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
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950 | |
Linkedin = { | |
config: { | |
scrollDelay: 3000, | |
actionDelay: 5000, | |
nextPageDelay: 5000, | |
// set to -1 for no limit | |
maxRequests: -1, | |
totalRequestsSent: 0, |
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
Bhagat Aaryan | 17CS10001 | 28-12-1999 | |
---|---|---|---|
Vardhan Vivek Adepu | 17CS10002 | 26-10-1999 | |
Tiwari Akash | 17CS10003 | 21-08-1999 | |
Rakshith Aloori | 17CS10004 | 14-08-1999 | |
Choudhary Anshul | 17CS10005 | 03-12-1998 | |
Kaushal Ayush | 17CS10006 | 04-11-1999 | |
Kumar Ayush | 17CS10007 | 31-08-1999 | |
Agarwal Bedant | 17CS10008 | 09-10-1998 | |
Rahul Bhukya | 17CS10009 | 22-10-2000 | |
Bhanuteja Bolisetti | 17CS10010 | 01-05-2000 |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 50 columns, instead of 46 in line 1.
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
Bhagat Aaryan,17CS10001,7.96 - 7.96 - 7.26,5,CS31003,COMPILERS,3-0-0,3,D,5,CS31005,ALGORITHMS,-II,3-1-0,4,C,5,CS31007,COMPUTER,ORGANIZATION,&,ARCHITECTURE,3-1-0,4,C,5,CS39001,COMPUTER,ORGANIZATION,LABORATORY,0-0-6,4,B,5,CS39003,COMPILERS,LABORATORY,0-0-3,2,B,5,ET60019,C,5,MA20105,LINEAR,ALGEBRA,3-0-0,3,B | |
Rakshith Aloori,17CS10004,6.44 - 6.44 - 6.25,5,CS31003,COMPILERS,3-0-0,3,P,5,CS31005,ALGORITHMS,-II,3-1-0,4,C,5,CS31007,COMPUTER,ORGANIZATION,&,ARCHITECTURE,3-1-0,4,D,5,CS39001,COMPUTER,ORGANIZATION,LABORATORY,0-0-6,4,C,5,CS39003,COMPILERS,LABORATORY,0-0-3,2,C,5,ET60019,C,5,MA61027,P | |
Choudhary Anshul,17CS10005,8.77 - 8.77 - 8.83,5,CS31003,COMPILERS,3-0-0,3,A,5,CS31005,ALGORITHMS,-II,3-1-0,4,B,5,CS31007,COMPUTER,ORGANIZATION,&,ARCHITECTURE,3-1-0,4,B,5,CS39001,COMPUTER,ORGANIZATION,LABORATORY,0-0-6,4,EX,5,CS39003,COMPILERS,LABORATORY,0-0-3,2,A,5,CS60050,A,5,ET60007,A | |
Kaushal Ayush,17CS10006,9.45 - 9.45 - 9.43,5,CS31003,COMPILERS,3-0-0,3,EX,5,CS31005,ALGORITHMS,-II,3-1-0,4,B,5,CS31007,COMPUTER,ORGANIZATION,&,ARC |
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
class KeyFileNotFound(IOError): | |
def __init__(self, key_file_path): | |
traceback.print_exc() | |
LOG.error("Error: secret key not found. Create it with:") | |
if not os.path.isdir(os.path.dirname(key_file_path)): | |
print('mkdir -p', os.path.dirname(key_file_path)) | |
LOG.error('head -c 24 /dev/urandom >', key_file_path) | |
sys.exit(1) |
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 abc | |
class Nephos(): | |
""" | |
superclass Nephos with all necessary definitions | |
""" | |
__metaclass__ = abc.ABCMeta | |
# independent function |
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
#!/usr/bin/env python2 | |
''' | |
requires python-pydrive | |
''' | |
import multiprocessing | |
import os | |
from pydrive.drive import GoogleDrive | |
from pydrive.auth import GoogleAuth |