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
Step 0: SSH into SSH Gateway | |
$ ssh xyz123@shell3.doc.ic.ac.uk | |
====================================== | |
Step 1: SSH into Remote Server | |
$ ssh xyz123@beech14.doc.ic.ac.uk | |
Step 2: Run Jupyter Lab in the remote environment | |
$ cd DIRECTORY |
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
git rev-list --objects --all | | |
git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' | | |
sed -n 's/^blob //p' | | |
sort --numeric-sort --key=2 | | |
cut -c 1-12,41- | | |
$(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest |
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
SUMMER INTERNSHIPS LIST | |
--- | |
RESEARCH INTERNSHIPS FOR UNDERGRADUATE AND GRADUATE STUDENTS | |
INDIA: | |
1. SURGE, IIT Kanpur (http://surge.iitk.ac.in/) | |
2. SPARK, IIT Roorkee (http://spark.iitr.ac.in/) | |
3. IIT Bombay, Research Internship Program (http://www.iitb.ac.in/en/education/research-internship)(http://www.iitb.ac.in/newacadhome/toTraining.jsp)(https://www.it.iitb.ac.in/summerinternship2020/selectionlist.html) | |
4. IAS Bangalore, SRFP (https://www.ias.ac.in/) | |
5. JNCASR, Bangalore, SRFP (http://www.jncasr.ac.in/fe/srfp.php) |
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 python | |
# Copyright: This document has been placed in the public domain. | |
""" | |
Taylor diagram (Taylor, 2001) implementation. | |
Based on Copin's implementation in Python. | |
Co-authors : "Yannick Copin <yannick.copin@laposte.net>" and "Pritthijit Nath <pritthijit.nath@icloud.com>" | |
""" | |
import numpy as NP |
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
# Loading ONNX Network and Creating resulting neural network expressions using Big M Encoding | |
import tensorflow as tf | |
import numpy as np | |
import pandas as pd | |
from tensorflow.compat.v1 import ConfigProto | |
from tensorflow.compat.v1 import InteractiveSession | |
config = ConfigProto() |
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
libreoffice --headless --invisible --convert-to pdf *.ppt |
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
sudo apt-get install libhdf4-dev | |
pip install pyhdf |
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 json | |
from shapely.geometry import shape, Point | |
with open('./Data/nyc-neighborhoods.geo.json') as f: | |
js = json.load(f) | |
def get_nbd(lng, lat): | |
point = Point(lng, lat) | |
for feature in js['features']: | |
polygon = shape(feature['geometry']) |
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 torch | |
torch.manual_seed(42) | |
torch.backends.cudnn.deterministic = True | |
torch.backends.cudnn.benchmark = False | |
import numpy as np | |
np.random.seed(42) |
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 cv2 | |
import numpy as np | |
img = np.zeros((100, 300, 3), dtype=np.uint8) | |
ft = cv2.freetype.createFreeType2() | |
ft.loadFontData(fontFileName='Ubuntu-R.ttf', | |
id=0) | |
ft.putText(img=img, | |
text='Quick Fox', |
NewerOlder