Skip to content

Instantly share code, notes, and snippets.

View sakshamchhimwal's full-sized avatar
🎯
Focusing

Saksham Chhimwal sakshamchhimwal

🎯
Focusing
View GitHub Profile
We couldn’t find that file to show.
We couldn’t find that file to show.
@sakshamchhimwal
sakshamchhimwal / saksham.py
Created November 17, 2022 09:43
sakshamnewgist
#Gist Created By Saksham ChhimwalAt 1668678213
@sakshamchhimwal
sakshamchhimwal / saksham.py
Last active November 17, 2022 10:08
sakshamnewgist
def main1():
for i in range(1,3):
print(i)
if&#40;i<5&#41;&#58;
print&#40;&#34;Yes&#34;&#41;
else&#58;
print&#40;&#34;NO&#34;&#41;
def main&#40;&#41;&#58;
for i in range&#40;1,5&#41;&#58;
if&#40;i<2&#41;&#58;
@sakshamchhimwal
sakshamchhimwal / dbjj.py
Last active November 17, 2022 10:11
saksham
from __future__ import annotations
import sys
from io import StringIO
from typing import Callable, TextIO, cast
def _run&#40;main_wrapper&#58; Callable[[TextIO, TextIO], None]&#41; -> tuple[str, str, int]&#58;
stdout = StringIO&#40;&#41;
#Gist Created By Saksham ChhimwalAt 1668679906
@sakshamchhimwal
sakshamchhimwal / djb.py
Last active November 17, 2022 10:15
adbd
def main1&#40;&#41;&#58;
for i in range&#40;1&#44;3&#41;&#58;
print&#40;i&#41;
if&#40;i<5&#41;&#58;
print&#40;&#34;Yes&#34;&#41;
else&#58;
print&#40;&#34;NO&#34;&#41;
def main&#40;&#41;&#58;
for i in range&#40;1&#44;5&#41;&#58;
if&#40;i<2&#41;&#58;
#Gist Created By Saksham ChhimwalAt 1668680979
# change above line to point to local 
# python executable
import urllib&#44; urlparse&#44; string&#44; time
 
# create URL with desired search parameters
url = &#34;http&#58;//archive.stsci.edu/pointings/search.php?&#34;
url = url + &#34;primary=ACS&outputformat=CSV&#34;
#Gist Created By Saksham ChhimwalAt 1668695720