Skip to content

Instantly share code, notes, and snippets.

View vasantm's full-sized avatar

Vasant Marur vasantm

View GitHub Profile
@intellectronica
intellectronica / 0.README.md
Last active December 4, 2025 19:24
GitHub Copilot + VSCode Agent for Marimo Notebooks

GitHub Copilot + VSCode Agent for Marimo Notebooks

Marimo notebooks are now supported natively inside VSCode with an extension. To work on them agentically with the GitHub Copilot Chat Agent, add marimo.agent.md as an agent definition, and select the Marimo agent in the chat.

The agent understands the structure and common patterns of Marimo notebooks. It operates on the Python code directly and you can see the changes reflected instantly.

@rloufoster
rloufoster / PY0101EN-5.2_API_2.ipynb
Created January 24, 2021 16:52
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timelyportfolio
timelyportfolio / example.R
Created September 16, 2020 20:38
d3 calendar in R from observable/robservable
# remotes::install_github("juba/robservable")
library(robservable)
# see entire notebook
robservable("@timelyportfolio/a-github-inspired-calendar")
# only see the chart
robservable(
"@timelyportfolio/a-github-inspired-calendar",
@holmberd
holmberd / linux-kill-pts.md
Last active August 14, 2025 09:24
Kill tty/pts sessions in Linux

Kill user tty/pts sessions in Linux

Commands

  • w: show who is logged on and what they are doing
  • who: show who is logged on
  • tty: show current users pseudo terminal
  • ps -ft pts/1: get process id for the pseudo terminal
  • pkill: signal process based on name and other attributes
@leeper
leeper / merge_list.R
Last active March 4, 2017 01:19
Merge list of data.frames
# packages
library("dplyr")
library("reshape")
library("microbenchmark")
set.seed(1)
# prep data
m <- mtcars
n <- 50L # number of data.frames
@LKS90
LKS90 / cheatsheet.md
Last active December 1, 2025 05:57
Cheatsheet for LaTex, using Markdown for markup. I use this with atom.io and markdown-preview-plus to write math stuff

Description

Cheatsheet for LaTex, using Markdown for markup. I use this with atom.io and 📦markdown-preview-plus to write math stuff. 📦keyboard-localization is necessary when using an international layout (like [swiss] german).

Further Reference and source: ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf

Example expressions / functions

@bzerangue
bzerangue / _verify-repair-permissions-disk.md
Last active September 30, 2025 20:46
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@trestletech
trestletech / server.R
Last active October 3, 2025 05:03
A Shiny app combining the use of dplyr and SQLite. The goal is to demonstrate a full-fledged, database-backed user authorization framework in Shiny.
library(shiny)
library(dplyr)
library(lubridate)
# Load libraries and functions needed to create SQLite databases.
library(RSQLite)
library(RSQLite.extfuns)
saveSQLite <- function(data, name){
path <- dplyr:::db_location(filename=paste0(name, ".sqlite"))
@zeehio
zeehio / gen-statistics.sh
Last active February 17, 2023 08:37
Generate HTML page with CPU, RAM, and disk usage information for several SSH servers.TODO: There are too many SSH connections per server. Fixing that would speed up a lot the HTML generation.
#!/bin/bash
# Shell script to get disk usage, cpu usage, RAM usage,system load,etc.
# from multiple Linux servers and output the information on a single
# server in html format. Read below for usage/installation info
# *--------------------------------------------------------------------*
# * ORIGINAL WORK BY:
# * dig_remote_linux_server_information.bash,v0.1
# * Last updated on 25-Jul-2005*
# * Copyright (c) 2005 nixCraft project *
# * Comment/bugs: http://cyberciti.biz/fb/ *