Skip to content

Instantly share code, notes, and snippets.

View satyamkapoor's full-sized avatar
🎯
Focusing

Satyam Kapoor satyamkapoor

🎯
Focusing
View GitHub Profile
@satyamkapoor
satyamkapoor / wgetforftp.py
Last active February 22, 2021 11:02
Quickly download all files from a link on NCBI.
import wget
from urllib.error import HTTPError
url = 'https://ftp.ncbi.nlm.nih.gov/repository/dbEST/dbEST.reports.000000.'
for x in range(2, 6):
fullurl = url + str(x) + '.gz'
print(fullurl)
try:
wget.download(url, '/Users/satk/fasta/')
except HTTPError as err:

Keybase proof

I hereby claim:

  • I am satyamkapoor on github.
  • I am satyamkapoor (https://keybase.io/satyamkapoor) on keybase.
  • I have a public key ASC6HPjjhPzyeGlDQIqa6G1-cFqUVox7EKaAPf01ZvvvvAo

To claim this, I am signing this object:

[server]
SERVER
[server:vars]
server_name=SERVER
docker_nginx_ssl=true
@satyamkapoor
satyamkapoor / apiv1.py
Last active March 16, 2019 19:16
flask rest API Hackthon
from flask import Flask, jsonify, request, render_template, Response
from datetime import datetime
app = Flask(__name__)
def compute_total_cost(prices,quantities,startDate,endDate,country,reduction):