A true time-waster. If it's any consolation, I wasted more time making it than you did watching it play out. :)
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
Example code for exporting data in a table to a csv file. |
This maze is a uniform spanning tree generated by Wilson’s algorithm. To illustrate this point, the maze is transformed into a Reingold–Tilford tree layout.
Forked from Mike Bostock's Gist.
Find all files named _somethingsomething_ yy _somethingsomething_ .csv
in all folders named xx
and get all of the data from the second row of each file.
cat "`find . -type d -iname "xx" | find . -type f -iname "*yy*csv" | head -1`" | sed -n 1p > SummaryOfYY.csv;
find . -type d -iname "xx" | find . -type f -iname "*yy*csv" -exec sed -n 2p {} \; >> SummaryOfYY.csv
The first line above gets the header from the first file.
The second line above grabs the second row from the files and adds it to the SummaryOfYY.csv
file.
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
# Examples | |
library(dplyr) | |
source("s_dplyr.R"); | |
# Original usage of dplyr | |
mtcars %>% | |
filter(gear == 3,cyl == 8) %>% | |
select(mpg, cyl, hp:vs) | |
# Select user specified cols. |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font-family: sans-serif; | |
color: #444; | |
} | |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<body> | |
<div id="svg-div"></div> | |
<script src="https://d3js.org/d3.v3.min.js"></script> | |
<script> | |
var DEG_TO_RADIAN = Math.PI / 180; // convert degrees to radian |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.