This file contains hidden or 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
| $ -> | |
| width = 900 | |
| height = 900 | |
| projection = d3.geo.albersUsa().scale(1).translate([0,0]) | |
| path = d3.geo.path().projection(projection) | |
| vis = d3.select("#vis") | |
| .append("svg") | |
| .attr("width", width) |
This file contains hidden or 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
| #!/usr/bin/env python2 | |
| """Script to download texts of a certain author from Project Gutenberg.""" | |
| from __future__ import absolute_import | |
| from __future__ import print_function | |
| from gutenberg.textsource import GutenbergEbooks | |
| from gutenberg.corpus import SqliteCorpus | |
| import logging | |
| import re |
This file contains hidden or 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
| require('dplyr') | |
| require("ggplot2") | |
| require('reshape2') | |
| data <- read.table("~/Downloads/pp_3_body_bytes.txt") | |
| names(data) <- c('bytes') | |
| big <- filter(data, bytes > 20000) | |
| sub <- filter(data, bytes < 20000) | |
| p <- ggplot(sub, aes(x = bytes)) | |
| p + geom_histogram() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| [class='motorway'] { | |
| line-join:round; | |
| line-color: @motorway_case; | |
| #road { line-cap: round; } | |
| #tunnel { line-dasharray:3,2; } | |
| [zoom>=6] { line-width:0.4; } | |
| [zoom>=7] { line-width:0.6; } | |
| [zoom>=8] { line-width:1.5; } | |
| [zoom>=9] { line-width: 1.75; } | |
| [zoom>=10] { line-width:2; } |
This file contains hidden or 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
| // -------- | |
| // types | |
| // -------- | |
| // falsy values | |
| function is_false(value) { return !(value); }; | |
| is_false(false); | |
| is_false(undefined); | |
| is_false(undefined); |
This file contains hidden or 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
| void setup() { | |
| size(500, 500); | |
| smooth(8); | |
| noStroke(); | |
| } | |
| float t, tt, ht, x, y; | |
| int N = 11; | |
| float l = 24; | |
| float sp = l*1.5; |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>[]</title> | |
| <style type="text/css"> | |
| .clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0;} | |
| .clearfix:after{clear:both;} | |
| .hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;} | |
| .input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;} |
This file contains hidden or 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
| source | target | weight | |
|---|---|---|---|
| sam | tully | 3 | |
| sam | pat | 8 | |
| sam | kim | 2 | |
| sam | pris | 1 | |
| roy | pris | 5 | |
| roy | sam | 1 | |
| tully | sam | 1 | |
| tully | pris | 5 | |
| tully | kim | 3 |