Skip to content

Instantly share code, notes, and snippets.

View sugatoray's full-sized avatar
🎯
Focusing

Sugato Ray sugatoray

🎯
Focusing
View GitHub Profile
@sugatoray
sugatoray / great_tables_co2.py
Created May 1, 2024 04:44 — forked from chalg/great_tables_co2.py
Showcase electricity consumption data for 2023 from ElectricityMaps via Python great_tables
from great_tables import GT, md, html, system_fonts
import pandas as pd
power_cie_prepared_tbl = pd.read_csv("./data/2023_cie_power_cons.csv")
# Create a Great Tables object
ciep_gt_tbl = GT(data=power_cie_prepared_tbl)
# Apply wider color ranges & formatting
gt_tbl = ciep_gt_tbl \
@sugatoray
sugatoray / .gitconfig
Created August 1, 2023 17:56 — forked from johnpolacek/.gitconfig
My current .gitconfig aliases
[alias]
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
br = branch
brd = branch -d
brD = branch -D
merged = branch --merged
st = status
aa = add -A .
@sugatoray
sugatoray / .gitconfig
Created July 31, 2023 22:19 — forked from 0livare/.gitconfig
My git alias list. Running 'git alias' will pretty-print these commands to the terminal.
# Some options that may or may not be applicable to you
[user]
name = Zach Olivare
email = zach@olivare.net
[push]
default = upstream
[core]
autocrlf = input # Force replacing CRLF line endings with LF
ignorecase = false
[merge]
@sugatoray
sugatoray / .gitconfig
Created July 31, 2023 22:19 — forked from 0livare/.gitconfig
My git alias list. Running 'git alias' will pretty-print these commands to the terminal.
# Some options that may or may not be applicable to you
[user]
name = Zach Olivare
email = zach@olivare.net
[push]
default = upstream
[core]
autocrlf = input # Force replacing CRLF line endings with LF
ignorecase = false
[merge]
@sugatoray
sugatoray / howto_extract_and_install_multiple_vscode_extensions.md
Last active June 10, 2022 10:57
Managing VS Code Extensions: Extract and Import + Install

VS Code Extensions Management

The following examples assume that the list of extensions is saved as a file (extensions.txt) inside .vscode folder.

How to install a given VS Code extension from the Marketplace?

code --install-extension <extauthor.extname>
@sugatoray
sugatoray / setup.cfg
Created May 21, 2022 17:38 — forked from althonos/setup.cfg
A `setup.cfg` template for my Python projects
# https://gist.github.com/althonos/6914b896789d3f2078d1e6237642c35c
[metadata]
name = {name}
version = file: {name}/_version.txt
author = Martin Larralde
author_email = martin.larralde@embl.de
url = https://github.com/althonos/{name}
description = {description}
long_description = file: README.md
@sugatoray
sugatoray / add_public-google-calendar_from_mobile-phone.md
Created May 11, 2022 09:45
Adding a Public Google Calendar to your Google Calendar from Mobile Phone

Adding Public Google calendar from Mobile Phone with Google Chrome

The reason why I wanted to add a discussion topic is to share the fact that adding the Public Google calendar (for MLOps Zoomcamp) is possible from mobile phone(s) as well.

EE35F40C-B54D-44BF-8435-179956A7FD92

Here’s what you need to do:

  1. Open the Google calendar link in your phone’s browser (I used Google Chrome).
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sugatoray
sugatoray / vscode_ssh_with_proxy.md
Last active October 25, 2021 02:32
SSH Tips and Tricks
@sugatoray
sugatoray / latex-open-in-overleaf-badge-example.md
Last active January 8, 2023 17:42
Open LaTeX in Overleaf directly from GitHub

overleaf-badge-image

Example badge: open-in-overleaf

[Overleaf][#overleaf] is an online service that allows you to create/edit/collaborate on LaTeX documents. For details on how the badge must be used, see the Example below.

  • Sample badge: Open in Overleaf