Skip to content

Instantly share code, notes, and snippets.

@shawngraham
shawngraham / index.html
Created January 18, 2016 00:34 — forked from anonymous/index.html
January 18 hist5702w
<!DOCTYPE html>
<html>
<head>
<title>Foo</title>
<meta charset='utf-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
<style type='text/css'>
body {
font-family: 'Helvetica';
letter-spacing:-5px;
@shawngraham
shawngraham / README.md
Last active January 11, 2016 02:50 — forked from anonymous/index.html
Presentation

Jan 11

Opening slide deck, just to get things rolling.

# get data
setwd("C:/Downloads/html") # this folder has only the HTML files
html <- list.files()
# load packages
library(tm)
library(RCurl)
library(XML)
# get some code from github to convert HTML to text
writeChar(con="htmlToText.R", (getURL(ssl.verifypeer = FALSE, "https://raw.github.com/tonybreyal/Blog-Reference-Functions/master/R/htmlToText/htmlToText.R")))
<html>
<head>
<title>Topic Clouds</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script src="http://d3js.org/d3.v2.min.js?2.10.0"></script>
<script type="text/javascript" src="d3.layout.cloud.js"></script>
</head>
<body>
<script>
@shawngraham
shawngraham / README.md
Last active December 18, 2015 17:04 — forked from mbostock/.block
Cluster Dendrogram II

A variation of the cluster dendrogram using a different style of curved links to avoid intersection.

@shawngraham
shawngraham / index.html
Last active December 18, 2015 16:59 — forked from sfsheath/index.html
d3 bundled edges
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node {
font: 300 11px "Helvetica Neue", Helvetica, Arial, sans-serif;
fill: #bbb;
}
.node:hover {
@shawngraham
shawngraham / index.html
Created December 11, 2015 18:08 — forked from anonymous/index.html
Presentation
<!DOCTYPE html>
<html>
<head>
<title>Foo</title>
<meta charset='utf-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
<style type='text/css'>
body {
font-family: 'Helvetica';
letter-spacing:-5px;
@shawngraham
shawngraham / index.html
Created December 4, 2015 01:41 — forked from anonymous/index.html
Presentation
<!DOCTYPE html>
<html>
<head>
<title>Foo</title>
<meta charset='utf-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
<style type='text/css'>
body {
font-family: 'Helvetica';
letter-spacing:-5px;
@shawngraham
shawngraham / index.html
Created December 4, 2015 01:40 — forked from anonymous/index.html
Presentation
<!DOCTYPE html>
<html>
<head>
<title>Foo</title>
<meta charset='utf-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
<style type='text/css'>
body {
font-family: 'Helvetica';
letter-spacing:-5px;
@shawngraham
shawngraham / index.html
Last active December 4, 2015 01:39 — forked from anonymous/index.html
Presentation
<!DOCTYPE html>
<html>
<head>
<title>Foo</title>
<meta charset='utf-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
<style type='text/css'>
body {
font-family: 'Helvetica';
letter-spacing:-5px;