Skip to content

Instantly share code, notes, and snippets.

View mmazanec22's full-sized avatar
🚲

Melanie Mazanec mmazanec22

🚲
View GitHub Profile
@mmazanec22
mmazanec22 / index.html
Last active October 30, 2018 17:28
TRC Survey Response Analysis
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.4.2/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.4.2/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/semiotic/dist/semiotic.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.11.0/d3.min.js"></script>
<script src="./script.babel"></script>
<div id="main">
</div>
@mmazanec22
mmazanec22 / data.js
Created August 18, 2018 14:56
Community Network Mapping Example
// TODO: RECREATE THIS IN GOOGLE SHEET, EXPORT TO CSV FILES, PARSE WITH D3
const organizationsDetail = [
{
name: 'City of Asheville',
type: 'government',
numMembers: 1300,
yearFounded: 1797,
},
{
@mmazanec22
mmazanec22 / .block
Created July 12, 2018 19:09 — forked from mbostock/.block
Brush Handles
license: gpl-3.0
@mmazanec22
mmazanec22 / data.js
Created June 21, 2018 22:01
TRC Timeline
const trcData = {
2018: [
{
"Project Name": "Crayton Park",
"Record Number": "17-09935PZ",
"Street Address": "86 Crayton Road",
"Project Type": "Major Sub",
"Project Modifier": "",
"Planner": "Jessica Bernstein",
"Description": "A request for the review of a 16 lot subdivision on the property known as 86 Crayton Road and PIN 9657-46-3875. The project contact is Marty Kocot and the property owner is AMARX Construction, LLC.",
@mmazanec22
mmazanec22 / index.html
Last active June 10, 2018 02:02
Permit Types
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script type="text/javascript" src="./permits.js"></script>
<style type="text/css">
html, body {
height: 100vh;
width: 100vw;
@mmazanec22
mmazanec22 / index.html
Last active June 5, 2018 12:55
Semiotic Diverging Bar With Line
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3-color.v1.min.js"></script>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/[email protected]/dist/semiotic.min.js"></script>
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
<style>
body {
@mmazanec22
mmazanec22 / script.js
Last active May 1, 2018 20:30
ACA mobile jQuery experiment
// Add in Default.master file-- also see changes in Google Sheet
<script type="text/javascript">
$(function () {
$('font').attr('size', '')
$('span').css('line-height', 'unset')
.css('font-size', 'unset')
$('theForm')
.css('height', '100vh')
.css('letter-spacing', '0.12em')
@mmazanec22
mmazanec22 / README.md
Last active April 26, 2019 08:44
Intercom Accessibility Hack
@mmazanec22
mmazanec22 / FlowGraph.js
Last active March 28, 2018 21:28
FlowGraph Prototype - debugging node resize
class FlowGraph{
constructor(parentElement, inputData = levelOne) {
this.parentElement = d3.select(parentElement);
this.width = this.parentElement.style('width').replace('px', '');
this.height = this.parentElement.style('height').replace('px', '');
this.verticalMargins = this.height * 0.015;
this.horizontalMargins = this.width * 0.015;
this.data = inputData;
@mmazanec22
mmazanec22 / .block
Created February 16, 2018 20:25 — forked from tomshanley/.block
Sankey with Minard labels on the links
license: mit