[ Launch: Tributary inlet ] 1dff67684274d7fd68d0 by seliopou
[ Launch: Tributary inlet ] 069b8d52819c00165d37 by seliopou
[ Launch: Tributary inlet ] 24d7b6b862a94ecf655f by seliopou
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
-- Boilerplate module for dynamic compilation, loading, and evaluation of | |
-- modules using the GHC API, v. 7.4.1. Note that the GHC API is subject to | |
-- change, so this file may not work for future versions. | |
-- | |
-- Load and play around with this file using: | |
-- | |
-- ghci -package ghc -XCPP GhcAPI.hs | |
-- | |
-- or | |
-- |
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
-- Boilerplate module for dynamic compilation, loading, and evaluation of | |
-- modules using hint. | |
-- | |
-- Load and play around with this file using: | |
-- | |
-- ghci -package hint HintExample.hs | |
-- | |
module HintExample where | |
import Language.Haskell.Interpreter |
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 dates = [...], | |
width = ..., | |
height = ...; | |
var xscale = d3.scale.linear().domain([0, dates.length]).range([0, width]); | |
var canvas = d3.select('#canvas') | |
.append('svg:svg') | |
.attr('width', width) | |
.attr('height', height); |
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> | |
<script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
rect { |
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>d3.js animation pattern</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script> | |
<script type="text/javascript" src="vis.js"></script> | |
<style type="text/css"> | |
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
<form> | |
<input id="back_detect" type="hidden" name="back_detect" value="" /> | |
</form> | |
<script type="text/javascript"> | |
/* Render vis, animating only if value is set to "" */ | |
vis("#canvas", $("#back_detect").val() == ""); | |
/* | |
* Set the value of the form field to "visited". Most browsers will |
[ Launch: Tributary inlet ] 779ac8390111bed1b5d2 by seliopou