Skip to content

Instantly share code, notes, and snippets.

View aktech's full-sized avatar
🏠

Amit Kumar aktech

🏠
View GitHub Profile
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKFvWoQGC+lwSEcWy0XdMALCAqzD6dbC9sVKbE89QdJy horse@aktech
@aktech
aktech / ActiveCellChangeEvent.json
Created November 13, 2023 16:58
jupyterlab-pioneer sample event
{
"eventDetail": {
"eventName": "ActiveCellChangeEvent",
"eventTime": 1699894451772,
"eventInfo": {
"cells": [
{
"id": "3d5a4322-0229-4d8c-86a3-b4302ecd2e1b",
"index": 0
}
@aktech
aktech / .setup_info
Created October 6, 2023 02:03
.setup_info
[
{
"group": "Cirun TOS",
"detail": "Self Hosted Runners via Cirun.io"
},
{
"group": "Conda Forge TOS",
"detail": "You Accept the following TOS"
}
]
@aktech
aktech / cdao.svg
Created September 28, 2023 13:27
cdao.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aktech
aktech / panel_tailwind_button.py
Created August 17, 2023 15:44
Holoviz Panel Tailwind Button
import panel as pn
import param
class CustomButton(pn.reactive.ReactiveHTML):
clicks = param.Integer()
_template = """\
<div id="pn-container" style="height:100%;width:100%">
<button id="button" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
@aktech
aktech / delhi-geojson.json
Created March 17, 2023 01:04
delhi-geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aktech
aktech / timer.py
Created December 6, 2022 23:25
timer
import time
import logging
def timer(func):
def inner(*args, **kwargs):
start = time.time()
rv = func(*args, **kwargs)
logger.info(f"Time taken to execute {func}: {time.time() - start}")
return rv
@aktech
aktech / indexing.ipynb
Created January 9, 2022 05:25
array api indexing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aktech
aktech / linux_commits_bar_chart_race.py
Created June 17, 2021 17:12
Linux Commits Bar Chart Race
"""A script to generate a Bar Chart race graph from the linux git commits
commits.txt was generated via:
git log --format=%ai$%an > commits.txt
Pre-requisite:
==============
conda install -c conda-forge bar_chart_race ffmpeg imagemagick pandas
Instructions to run: