Skip to content

Instantly share code, notes, and snippets.

View rlugojr's full-sized avatar

Ray Lugo, Jr. rlugojr

View GitHub Profile
@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 / .block
Created June 26, 2016 07:21 — forked from mbostock/.block
Automatic Text Sizing
height: 760
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 08:04 — forked from mbostock/.block
Venn Diagram with Clipping
license: gpl-3.0
@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 / README.md
Created June 27, 2016 06:39 — forked from armollica/README.md
Icon Array
@rlugojr
rlugojr / .block
Created June 29, 2016 05:38 — forked from mbostock/.block
Line Transition
license: gpl-3.0
@rlugojr
rlugojr / .block
Created June 29, 2016 05:39 — forked from mbostock/.block
Spline Transition
license: gpl-3.0
@rlugojr
rlugojr / README.md
Created July 1, 2016 03:52 — forked from shancarter/.block
Mister Nester

DESCRIPTION

@rlugojr
rlugojr / CENTOS Linux Static IP
Last active July 1, 2016 18:39 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static