This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove qq.js , and modify some files (#55)
- Loading branch information
1 parent
9c91a10
commit 4ac8ce5
Showing
17 changed files
with
1,317 additions
and
3,924 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
import argparse | ||
try: | ||
import urllib2 as u | ||
except: | ||
import urllib.request as u | ||
|
||
URL = "https://raw.githubusercontent.com/kriskowal/q/c2f5a6f35456389a806acca50bfd929cbe30c4cb/q.js" | ||
HOME_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__))) | ||
|
||
|
||
def download(): | ||
req = u.Request(URL) | ||
res_data = u.urlopen(req) | ||
with open(os.path.join(HOME_PATH, 'js/q.js'), 'wb') as f: | ||
f.write(res_data.read()) | ||
|
||
|
||
if __name__ == '__main__': | ||
parser = argparse.ArgumentParser(description="Download q.js into ./js") | ||
parser.parse_args() | ||
download() |
Oops, something went wrong.