Skip to content

Instantly share code, notes, and snippets.

View renecnielsen's full-sized avatar

René Clausen Nielsen renecnielsen

View GitHub Profile
@renecnielsen
renecnielsen / index.html
Last active October 6, 2023 00:06 — forked from bunkat/index.html
Swimlane
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Swimlane Chart</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<link rel="stylesheet" href="style.css" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
</head>
<body>
@renecnielsen
renecnielsen / README.md
Created September 8, 2015 08:43
Stamen Tiles - d3.carto.map
@renecnielsen
renecnielsen / README.md
Created April 5, 2016 16:06
Directed Graph Editor

Click in the open space to add a node, drag from one node to another to add an edge.
Ctrl-drag a node to move the graph layout.
Click a node or an edge to select it.

When a node is selected: R toggles reflexivity, Delete removes the node.
When an edge is selected: L(eft), R(ight), B(oth) change direction, Delete removes the edge.

To see this example as part of a larger project, check out Modal Logic Playground!

forked from rkirsling's block: Directed Graph Editor

@renecnielsen
renecnielsen / wide-width-style.css
Created July 11, 2019 20:30
CSS to enable .alignwide and .alignfull Gutenberg Blocks when I use Elementor page builder to create single posts templates
/* All I've done is a few edits to the brilliant walk-through on https://joshcollinsworth.com/adding-gutenberg-full-and-wide-width-image-support-to-your-wordpress-theme/ */
.alignfull {
max-width: 100vw !important;
margin: 2rem calc(50% - 50vw) !important;
}
.alignwide {
max-width: 100vw !important;
margin: 2rem calc(50% - 50vw) !important;
@renecnielsen
renecnielsen / facebook-contact-info-summary.rb
Created April 3, 2018 12:52 — forked from dylanmckay/facebook-contact-info-summary.rb
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
@renecnielsen
renecnielsen / .block
Last active October 8, 2017 18:26
Scatterplot with Voronoi
height: 550
@renecnielsen
renecnielsen / .block
Last active September 2, 2017 20:22
IFRC IMs
license: mit
@renecnielsen
renecnielsen / .block
Created August 6, 2017 18:33
d3-annotation v2.0
license: mit
@renecnielsen
renecnielsen / .block
Created August 2, 2017 09:51
Radar Chart Redesign
height: 600
license: mit
@renecnielsen
renecnielsen / .block
Created August 2, 2017 09:50
Draw a Text Path
license: mit