Skip to content

Instantly share code, notes, and snippets.

View ebobby's full-sized avatar

Francisco Soto ebobby

View GitHub Profile
@ebobby
ebobby / SKILL.md
Created May 24, 2026 00:53 — forked from aparente/SKILL.md
tufte-viz Claude Code skill — Edward Tufte data visualization principles

name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays

#!/usr/bin/env bash
if [ -z "$1" ]; then
echo "Need a directory of repositories to work with..."
exit
fi
if [ -d $1 ]; then
case "$1" in
*/)
@ebobby
ebobby / seeds.rb
Last active April 22, 2020 05:47
Generador de base de datos de una empresa retail
require 'securerandom'
require 'gsl'
PRODUCT_COUNT = 80
MIN_PRICE_RANGE = 100
MAX_PRICE_RANGE = 20_000
SALE_ERROR_RANGE = 5_000
AVERAGE_SALE_PER_CUSTOMER = 15_000
import heapq
class PriorityQueue:
def __init__(self):
self.elements = []
def empty(self):
return len(self.elements) == 0
\documentclass[12pt, a4paper]{article}
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage[spanish]{babel}
\usepackage{listings}
\lstset{basicstyle=\fontsize{10}{13}\selectfont\ttfamily}
\begin{document}
\begin{titlepage}
# frozen_string_literal: true
class DFA
require 'matrix'
class << self
def optimize(dfa)
states = dfa[:states]
initial = dfa[:initial]
final = dfa[:final]
<!DOCTYPE html>
<html>
<head>
<title>Ray Tracing</title>
</head>
<body>
<div style="width:1280px; margin:0 auto;">
<canvas id="img" width="1280" height="720" style="border:1px solid #000000;">
</canvas>
</body>

I personally consider "debugging" (figuring out how something works and how is it broken) a very important skill as a software developer and one that I don't think it is taught explicitly. It is simply left for us to figure it out.

For this reason I wanted to write about it for a while. Specially with examples of real life problems and debugging sessions as I find they are far more useful that simple made up examples.

@ebobby
ebobby / gist:1df3ace4ebb2cd9cfbb503672438a4b9
Last active September 5, 2017 20:38
Heroes of the Storm: My Advice to Silver players
Advice for players in Silver
Morale:
- Don't despair. You'll get to where you belong and learn along the way.
Awareness:
- WATCH THE MINIMAP, never be past half the lane unless you are very sure of
where the enemy team is. If every game you end with more than 3-4 deaths work
on keeping this number down. Specially if these deaths are you getting caught
and not you dying valiantly during a team fight.
/**
* @author Francisco Soto <ebobby@gmail.com>
*/
function Chromosome (genes, fitness) {
this.genes = genes;
this.fitness = fitness;
}
function Genetics (problem, options) {