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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 | |
| */) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import heapq | |
| class PriorityQueue: | |
| def __init__(self): | |
| self.elements = [] | |
| def empty(self): | |
| return len(self.elements) == 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[12pt, a4paper]{article} | |
| \usepackage{graphicx} | |
| \graphicspath{ {images/} } | |
| \usepackage[spanish]{babel} | |
| \usepackage{listings} | |
| \lstset{basicstyle=\fontsize{10}{13}\selectfont\ttfamily} | |
| \begin{document} | |
| \begin{titlepage} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| class DFA | |
| require 'matrix' | |
| class << self | |
| def optimize(dfa) | |
| states = dfa[:states] | |
| initial = dfa[:initial] | |
| final = dfa[:final] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @author Francisco Soto <ebobby@gmail.com> | |
| */ | |
| function Chromosome (genes, fitness) { | |
| this.genes = genes; | |
| this.fitness = fitness; | |
| } | |
| function Genetics (problem, options) { |
NewerOlder