This file contains hidden or 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
| public class PTimer extends Thread{ | |
| private int waitTime; | |
| private int seq = 0; | |
| private SWE swe = null; | |
| public PTimer(int time, int s, SWE c) { | |
| waitTime = time; | |
| seq = s; | |
| swe = c; |
This file contains hidden or 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 python | |
| import os | |
| import subprocess | |
| # from subprocess import PIPE, Popen | |
| def cmdline(command): | |
| process = subprocess.Popen( | |
| args=command, |
This file contains hidden or 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
| ''' | |
| Guide for usage: | |
| In your terminal, run the command: | |
| python download_gdrive.py GoogleFileID /path/for/this/file/to/download/file.type | |
| Credited to | |
| https://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive | |
| author: https://stackoverflow.com/users/1475331/user115202 | |
| ''' |