Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
# Color codes for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
(() => {
// ===== Utility: build a stable CSS path for elements without a name =====
const cssPath = (el) => {
if (!(el instanceof Element)) return "";
const parts = [];
while (el && el.nodeType === Node.ELEMENT_NODE && el !== document.body && el !== document.documentElement) {
let selector = el.nodeName.toLowerCase();
if (el.id) {
selector += "#" + CSS.escape(el.id);
parts.unshift(selector);
@arpee
arpee / .screenrc
Last active September 2, 2025 06:16
# Enhanced colorful .screenrc configuration
# Force 256 color support
term screen-256color
termcapinfo xterm* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
termcapinfo xterm* ti@:te@
termcapinfo xterm* OL=10000
# Basic settings
startup_message off
javascript:
var taskname;
var taskduedate;
taskduedate = document.getElementsByName('due_date')[0].value;
if (document.getElementsByTagName('TEXTAREA')[0]) {
taskname = document.getElementsByTagName('TEXTAREA')[0].value;
} else {
@arpee
arpee / 0_reuse_code.js
Last active August 29, 2015 14:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console