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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
(* a simple echo server in ocaml | |
* ----------------------------- | |
* uses a high level networking function, similar to SocketServer | |
* in python, called 'establish_server', see here: | |
* http://caml.inria.fr/pub/docs/manual-ocaml/libref/Unix.html#VALestablish_server | |
*) | |
(* | |
our echo function | |
in -> out -> unit |
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
mkdir /tmp/poo | |
wget -q -O - http://some/mp3 | tee /tmp/poo | od | |
# In another shell, | |
mplayer - < /tmp/poo |
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> | |
<html> | |
<head> | |
<title>Streamgraph</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.29.1"></script> | |
</head> | |
<body> | |
<div id="chart"> | |
</div> |
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> | |
<html> | |
<head> | |
<title>Streamgraph</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.29.1"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.29.1"></script> | |
<script type="text/javascript" src="tech.js"></script> | |
<link type="text/css" rel="stylesheet" href="http://mbostock.github.com/d3/ex/button.css"/> | |
<link type="text/css" rel="stylesheet" href="http://mbostock.github.com/d3/ex/stream.css"/> |
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
library(doRedis) |
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
library(doRedis) | |
registerDoRedis() |
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
# Ok, so appending items to lists. | |
# I'm fine with this. | |
f <- list() | |
f <- c(f, 1) | |
f <- c(f, 2) | |
f <- c(f, 3) | |
# Ok, lets try something fancier, lists of lists. |
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
var moment = require('moment'); | |
var request = require('request'); | |
exports.formatDate = function(format, date) { | |
}; | |
// Takes NDBC Buoy ID, and returns | |
// series of readings | |
var fetchBuoy = function(buoyId) { | |
request('http://www.ndbc.noaa.gov/data/5day2/' + buoyId + '_5day.txt', function(err, response, body){ |
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
// Takes NDBC Buoy ID, and returns | |
// series of readings | |
// Just to generate a URL. | |
var BuoyURL = function(buoyId) { | |
return 'http://www.ndbc.noaa.gov/data/5day2/' + buoyId + '_5day.txt'; | |
}; | |
exports.parseBuoyData = function(buoy) { |
OlderNewer