Skip to content

Instantly share code, notes, and snippets.

@salader
salader / preprocessor_fun.h
Created March 10, 2021 19:56 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@salader
salader / .block
Last active November 18, 2018 19:32
D3 Exercices
license: mit
@salader
salader / d3.slider.css
Created November 18, 2018 16:41 — forked from cmdoptesc/d3.slider.css
D3: Map Timeline
.d3-slider {
position: relative;
font-family: Verdana,Arial,sans-serif;
font-size: 1.1em;
border: 1px solid #aaaaaa;
z-index: 2;
}
.d3-slider-horizontal {
height: .8em;
@salader
salader / index.html
Created October 30, 2018 16:49
Demo 2 SVG // source https://jsbin.com/qivoxo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Demo 2 SVG</title>
</head>
<body>
<svg width='500' height='500'>
<rect width='100' height='100' fill='#7b3294' x='0' y='0' opacity='.2'></rect>
<rect width='100' height='100' fill='#7b3294' x='0' y='50' opacity='.4'></rect>
@salader
salader / .block
Created October 30, 2018 16:00
Chord Diagram d3.v5 with self-wrapping text
license: gpl-3.0
@salader
salader / .block
Created October 30, 2018 15:59
Chord Diagram d3.v5 with self-wrapping text
license: gpl-3.0
@salader
salader / .block
Created October 30, 2018 15:59
Chord Diagram d3.v5 with self-wrapping text
license: gpl-3.0
@salader
salader / .block
Created October 30, 2018 15:54
noun&noun chord diagram multiple cities
license: gpl-3.0