Skip to content

Instantly share code, notes, and snippets.

View rlugojr's full-sized avatar

Ray Lugo, Jr. rlugojr

View GitHub Profile
@rlugojr
rlugojr / reveal per-slide theme override.js
Created June 27, 2016 02:06 — forked from jbrown123/reveal per-slide theme override.js
Reveal.js - per-slide theme override using data-theme attribute
// the code below can be added to the end of your Reveal slide deck to implement
// per slide theme setting via the data-theme attribute
// I put this in right below the call to Reveal.initialize()
// the code is smart enough to restore the previous default theme
// (or slide specific theme) as you move forward and backward
// it also takes into account vertical slide stacks with a data-theme
// attribute on the outer <section> tag and allows individual vertical
// slides to specify their own override
@rlugojr
rlugojr / .block
Created June 26, 2016 08:04 — forked from mbostock/.block
Venn Diagram with Clipping
license: gpl-3.0
@rlugojr
rlugojr / .block
Created June 26, 2016 08:04 — forked from mbostock/.block
Venn Diagram with Opacity
license: gpl-3.0
@rlugojr
rlugojr / .block
Created June 26, 2016 07:21 — forked from mbostock/.block
Automatic Text Sizing
height: 760
license: gpl-3.0
@rlugojr
rlugojr / d3js layout scaling
Created June 26, 2016 07:20 — forked from plandem/d3js layout scaling
Correct zoom of layout
In some cases you want to handle zooming and rescale your layout.
But at all examples you can see something like this:
-------
var width = 640;
var height = 480;
var outer = d3.select('div')
.append("svg:svg")
.attr("width", width)
.attr("height", height)
@rlugojr
rlugojr / index.html
Created June 26, 2016 06:11 — forked from diethardsteiner/index.html
Simple D3JS Dashboard
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Testing Pie Chart</title>
<!--<script type="text/javascript" src="d3/d3.v2.js"></script>-->
<script src="http://d3js.org/d3.v2.js"></script>
<!-- Note: I made good use of the sample code provided by the D3JS community and extended it to fit my needs to create this simple dashboard -->
<style type="text/css">
@rlugojr
rlugojr / index.html
Created June 26, 2016 06:09 — forked from bunkat/index.html
Swimlane Chart using d3.js
<!--
The MIT License (MIT)
Copyright (c) 2013 [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@rlugojr
rlugojr / .block
Created June 26, 2016 06:05 — forked from mbostock/.block
Superformula Explorer
license: gpl-3.0
@rlugojr
rlugojr / README.md
Created June 24, 2016 03:03
Grid layout
@rlugojr
rlugojr / .block
Created June 24, 2016 02:56
Meetup Topic Adjacency Matrix
license: CC0-1.0