-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
2,009 additions
and
571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
all: | ||
docco -t custom.jst --css=src/custom.css ./src/*.js --output=./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Javascript Data | ||
|
||
Data manipulation, data munging, and data processing in JavaScript. | ||
|
||
### About | ||
|
||
A repo of commonly used tools and tips for dealing with data. | ||
|
||
Specifically geared around preparing data for further analysis and visualization. | ||
|
||
As such, we will focus on using [d3.js](http://d3js.org/) and [lodash](http://lodash.com/) for many of these task. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "js_data", | ||
"version": "0.0.0", | ||
"homepage": "https://github.com/vlandham/js_data", | ||
"authors": [ | ||
"Jim Vallandingham" | ||
], | ||
"description": "Data Processing in JavaScript", | ||
"keywords": [ | ||
"visualization", | ||
"data", | ||
"processing", | ||
"munging", | ||
"manipulation" | ||
], | ||
"license": "MIT", | ||
"private": true, | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"lib" | ||
], | ||
"dependencies": { | ||
"d3": "~3.5.5", | ||
"lodash": "~3.3.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,333 @@ | ||
/*--------------------- Layout ----------------------------*/ | ||
html { height: 100%; } | ||
body { | ||
font-family: "Helvetica Neue", "Helvetica"; | ||
font-size: 14px; | ||
line-height: 18px; | ||
color: #30404f; | ||
margin: 0; padding: 0; | ||
height:100%; | ||
} | ||
#container { | ||
min-height: 100%; | ||
margin:0 auto; | ||
width:640px; | ||
} | ||
|
||
img { | ||
max-width:100%; | ||
} | ||
|
||
a { | ||
color: #000; | ||
} | ||
|
||
b, strong { | ||
font-weight: normal; | ||
} | ||
|
||
p, ul, ol { | ||
margin: 15px 0 15px 0; | ||
} | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
color: #112233; | ||
line-height: 1em; | ||
font-weight: normal; | ||
margin: 30px 0 15px 0; | ||
} | ||
|
||
h1 { | ||
margin-top: 40px; | ||
} | ||
|
||
hr { | ||
border: 0; | ||
background: 1px solid #ddd; | ||
height: 1px; | ||
margin: 20px 0; | ||
} | ||
|
||
pre, tt, code { | ||
font-size: 12px; line-height: 16px; | ||
font-family: 'M+ 1mn', Menlo, Monaco, Consolas, "Lucida Console", monospace; | ||
margin: 0; padding: 0; | ||
} | ||
.annotation pre { | ||
display: block; | ||
margin: 0; | ||
padding: 7px 10px; | ||
background: #fcfdfc; | ||
overflow-x: auto; | ||
} | ||
.annotation pre code { | ||
border: 0; | ||
padding: 0; | ||
background: transparent; | ||
} | ||
|
||
|
||
blockquote { | ||
border-left: 5px solid #ccc; | ||
margin: 0; | ||
padding: 1px 0 1px 1em; | ||
} | ||
.sections blockquote p { | ||
font-family: Menlo, Consolas, Monaco, monospace; | ||
font-size: 12px; line-height: 16px; | ||
color: #999; | ||
margin: 10px 0 0; | ||
white-space: pre-wrap; | ||
} | ||
|
||
ul.sections { | ||
list-style: none; | ||
padding:0 0 5px 0;; | ||
margin:0; | ||
} | ||
|
||
/* | ||
Force border-box so that % widths fit the parent | ||
container without overlap because of margin/padding. | ||
More Info : http://www.quirksmode.org/css/box.html | ||
*/ | ||
ul.sections > li > div { | ||
-moz-box-sizing: border-box; /* firefox */ | ||
-ms-box-sizing: border-box; /* ie */ | ||
-webkit-box-sizing: border-box; /* webkit */ | ||
-khtml-box-sizing: border-box; /* konqueror */ | ||
box-sizing: border-box; /* css3 */ | ||
} | ||
|
||
|
||
/*---------------------- Jump Page -----------------------------*/ | ||
#jump_to, #jump_page { | ||
margin: 0; | ||
background: white; | ||
-webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777; | ||
-webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; | ||
font: 16px Arial; | ||
cursor: pointer; | ||
text-align: right; | ||
list-style: none; | ||
} | ||
|
||
#jump_to a { | ||
text-decoration: none; | ||
} | ||
|
||
#jump_to a.large { | ||
display: none; | ||
} | ||
#jump_to a.small { | ||
font-size: 22px; | ||
font-weight: bold; | ||
color: #676767; | ||
} | ||
|
||
#jump_to, #jump_wrapper { | ||
position: fixed; | ||
right: 0; top: 0; | ||
padding: 10px 15px; | ||
margin:0; | ||
} | ||
|
||
#jump_wrapper { | ||
display: none; | ||
padding:0; | ||
} | ||
|
||
#jump_to:hover #jump_wrapper { | ||
display: block; | ||
} | ||
|
||
#jump_page { | ||
padding: 5px 0 3px; | ||
margin: 0 0 25px 25px; | ||
} | ||
|
||
#jump_page .source { | ||
display: block; | ||
padding: 15px; | ||
text-decoration: none; | ||
border-top: 1px solid #eee; | ||
} | ||
|
||
#jump_page .source:hover { | ||
background: #f5f5ff; | ||
} | ||
|
||
#jump_page .source:first-child { | ||
} | ||
|
||
/*---------------------- Low resolutions (> 320px) ---------------------*/ | ||
.pilwrap { display: none; } | ||
|
||
ul.sections > li > div { | ||
display: block; | ||
padding:5px 10px 0 10px; | ||
} | ||
|
||
ul.sections > li > div.annotation ul, ul.sections > li > div.annotation ol { | ||
padding-left: 30px; | ||
} | ||
|
||
ul.sections > li > div.content { | ||
background: #f5f5f8; | ||
overflow-x:auto; | ||
margin:5px 10px 5px 10px; | ||
padding-bottom: 5px; | ||
} | ||
|
||
ul.sections > li > div.annotation pre { | ||
margin: 7px 0 7px; | ||
padding-left: 15px; | ||
} | ||
|
||
ul.sections > li > div.annotation p tt, .annotation code { | ||
background: #f8f8ff; | ||
border: 1px solid #dedede; | ||
font-size: 12px; | ||
padding: 0 0.2em; | ||
} | ||
|
||
/*---------------------- Syntax Highlighting -----------------------------*/ | ||
|
||
td.linenos { background-color: #f0f0f0; padding-right: 10px; } | ||
span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; } | ||
/* | ||
github.com style (c) Vasily Polovnyov <vast@whiteants.net> | ||
*/ | ||
|
||
pre code { | ||
display: block; padding: 0.5em; | ||
color: #000; | ||
background: #f8f8ff | ||
} | ||
|
||
pre .comment, | ||
pre .template_comment, | ||
pre .diff .header, | ||
pre .javadoc { | ||
color: #408080; | ||
font-style: italic | ||
} | ||
|
||
pre .keyword, | ||
pre .assignment, | ||
pre .literal, | ||
pre .css .rule .keyword, | ||
pre .winutils, | ||
pre .javascript .title, | ||
pre .lisp .title, | ||
pre .subst { | ||
color: #954121; | ||
/*font-weight: bold*/ | ||
} | ||
|
||
pre .number, | ||
pre .hexcolor { | ||
color: #40a070 | ||
} | ||
|
||
pre .string, | ||
pre .tag .value, | ||
pre .phpdoc, | ||
pre .tex .formula { | ||
color: #219161; | ||
} | ||
|
||
pre .title, | ||
pre .id { | ||
color: #19469D; | ||
} | ||
pre .params { | ||
color: #00F; | ||
} | ||
|
||
pre .javascript .title, | ||
pre .lisp .title, | ||
pre .subst { | ||
font-weight: normal | ||
} | ||
|
||
pre .class .title, | ||
pre .haskell .label, | ||
pre .tex .command { | ||
color: #458; | ||
font-weight: bold | ||
} | ||
|
||
pre .tag, | ||
pre .tag .title, | ||
pre .rules .property, | ||
pre .django .tag .keyword { | ||
color: #000080; | ||
font-weight: normal | ||
} | ||
|
||
pre .attribute, | ||
pre .variable, | ||
pre .instancevar, | ||
pre .lisp .body { | ||
color: #008080 | ||
} | ||
|
||
pre .regexp { | ||
color: #B68 | ||
} | ||
|
||
pre .class { | ||
color: #458; | ||
font-weight: bold | ||
} | ||
|
||
pre .symbol, | ||
pre .ruby .symbol .string, | ||
pre .ruby .symbol .keyword, | ||
pre .ruby .symbol .keymethods, | ||
pre .lisp .keyword, | ||
pre .tex .special, | ||
pre .input_number { | ||
color: #990073 | ||
} | ||
|
||
pre .builtin, | ||
pre .constructor, | ||
pre .built_in, | ||
pre .lisp .title { | ||
color: #0086b3 | ||
} | ||
|
||
pre .preprocessor, | ||
pre .pi, | ||
pre .doctype, | ||
pre .shebang, | ||
pre .cdata { | ||
color: #999; | ||
font-weight: bold | ||
} | ||
|
||
pre .deletion { | ||
background: #fdd | ||
} | ||
|
||
pre .addition { | ||
background: #dfd | ||
} | ||
|
||
pre .diff .change { | ||
background: #0086b3 | ||
} | ||
|
||
pre .chunk { | ||
color: #aaa | ||
} | ||
|
||
pre .tex .formula { | ||
opacity: 0.5; | ||
} | ||
|
Oops, something went wrong.