Skip to content

Instantly share code, notes, and snippets.

View iMarcello's full-sized avatar
🏠
Working from home

iMarcello

🏠
Working from home
View GitHub Profile
@iMarcello
iMarcello / CLAUDE.md
Created March 4, 2026 21:24 — forked from sj-io/CLAUDE.md
Claude R Tidyverse Expert

Modern R Development Guide

This document captures current best practices for R development, emphasizing modern tidyverse patterns, performance, and style. Last updated: August 2025

Core Principles

  1. Use modern tidyverse patterns - Prioritize dplyr 1.1+ features, native pipe, and current APIs
  2. Profile before optimizing - Use profvis and bench to identify real bottlenecks
  3. Write readable code first - Optimize only when necessary and after profiling
  4. Follow tidyverse style guide - Consistent naming, spacing, and structure
@iMarcello
iMarcello / blctl.sh
Created October 2, 2021 03:44 — forked from katef/blctl.sh
backlight control
#!/bin/bash -e
path=/sys/class/backlight/intel_backlight
factor=10
usage() {
echo "usage: ${0##*/} [-l label] [-f path] {up|down|raise|lower} [n]" >&2
echo " ${0##*/} [-l label] [-f path] set <n>" >&2
echo " ${0##*/} [-l label] [-f path] get" >&2
exit 1
@iMarcello
iMarcello / submarine_cable_map.R
Created September 25, 2021 03:34 — forked from tylermorganwall/submarine_cable_map.R
Submarine Cable Map Dataviz
library(geojsonsf)
library(sf)
library(rayrender)
#Data source: https://github.com/telegeography/www.submarinecablemap.com
cables = geojson_sf("cable-geo.json")
cablescene = list()
counter = 1
for(i in 1:length(cables$geometry)) {
@iMarcello
iMarcello / top-brew-packages.txt
Created March 8, 2021 03:28 — forked from pmkay/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
@iMarcello
iMarcello / network_basic.R
Created June 22, 2019 06:18 — forked from dmarcelinobr/network_basic.R
network_basic
# Tutorial and data based on the network visualization workshop published over https://rpubs.com/kateto/netviz
#packages:
library(igraph)
library(RCurl)
# get the data
nodes <- read.csv("https://raw.githubusercontent.com/danielmarcelino/Datasets/master/Media-NODES.csv", header=T, as.is=T)
ties <- read.csv("https://raw.githubusercontent.com/danielmarcelino/Datasets/master/Media-EDGES.csv", header=T, as.is=T)
# Explore data: