Skip to content

Instantly share code, notes, and snippets.

@muzy
muzy / index.html
Created March 10, 2018 15:52 — forked from tezzutezzu/index.html
Modifying a force layout
<!DOCTYPE html>
<meta charset="utf-8">
<title>Modifying a force layout v4</title>
<style>
.link {
stroke: #000;
stroke-width: 1.5px;
}
@muzy
muzy / .block
Created March 10, 2018 15:51 — forked from mbostock/.block
Modifying a Force Layout
license: gpl-3.0
@muzy
muzy / .block
Created March 10, 2018 15:49 — forked from mbostock/.block
Labeled Force Layout
license: gpl-3.0
@muzy
muzy / README.md
Created March 10, 2018 15:49 — forked from puzzler10/README.md
Zoomable Force Directed Graph d3v4

This graph combines force directed graphs, zooming and dragging, and the explanation behind the graph is available here.

@muzy
muzy / .block
Created March 10, 2018 15:43 — forked from FrissAnalytics/.block
zoomable, draggable force layout with labels
license: mit
border: yes
@muzy
muzy / latexstarmagic
Created October 23, 2013 14:17
LaTeX star rating magic
\usepackage{ifthen}
\usepackage{calc}
\usepackage{pifont}
\usepackage{forloop}
\newcounter{starnumber}
\newcommand{\stars}[1]{
\forloop{starnumber}{1}{\value{starnumber} < 6}{
\ifthenelse{#1 < \value{starnumber}}{\ding{73}}{\ding{72}}%
}
@muzy
muzy / senex.js
Created January 31, 2011 15:39 — forked from mxey/senex.js
var http = require('http');
var url = require('url');
var pattern = /4chan\.org/i;
function respond_censored(res) {
res.writeHead(403)
res.write('Censored');
res.end();
}