Skip to content

Commit 25eec09

Browse files
committed
updates for deploy
1 parent cead2d3 commit 25eec09

2,606 files changed

Lines changed: 6441 additions & 430211 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

content/post/glsl.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: GLSL Shaders
2+
title: Working with GLSL Shaders
33
author: John
44
date: '2020-04-01'
55
draft: false
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Terrain
2+
title: Visualizing Terrain in SveltR
33
author: John
44
date: '2020-04-07'
55
draft: false

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{{ with $stylesheet.css }}<link href="{{ relURL . }}" rel="stylesheet">
1313
{{ end }}
1414

15-
<script src="js-demos/scripts/debugger.js"></script>
15+
<script src="scripts/debugger.js"></script>
1616
</head>
1717

1818
<body>

layouts/index.html

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
{{ define "main" }}
22

3-
<a href="{{ "revealing/" | relURL }}">Revealing...</a>
4-
&nbsp;<br /><br />
3+
<p>
4+
This site is a showcase of possibilities in the space of Information Experience Design (IxD).
5+
</p>
6+
<p>
7+
The emphasis of each post is on different ways to process and prepare data with the R programming language, while using the Svelte reactive web app framework to present interactive insights into the informative implications of that data.
8+
</p>
9+
<p>
10+
The foundational methods of this technological synthesis (tech stack) have been distilled into <a href="https://github.com/Real-Currents/SveltR" target="_blank">SveltR</a>, a template for interactive data analysis and visualization.
11+
</p>
12+
13+
<a href="{{ "tech/" | relURL }}">Check out the tech</a>
14+
<br /><br />
515

616
{{ if .Content }}
717
<article class="article">
@@ -19,7 +29,7 @@ <h1 class="article-title">{{ .Title }}</h1>
1929
{{ $pages = .Site.RegularPages }}
2030
{{ end }}
2131
{{ range (where $pages "Section" "!=" "").GroupByDate "2006" }}
22-
{{ range .Pages }}
32+
{{ range (.Pages).Reverse }}
2333
<article class="archive-item">
2434
<a href="{{ .RelPermalink }}" class="archive-item-link">{{ .Title }}</a>
2535
<span class="archive-item-date">
@@ -30,7 +40,8 @@ <h1 class="article-title">{{ .Title }}</h1>
3040
{{ end }}
3141
</div>
3242

33-
<a href="{{ "tech/" | relURL }}">Check out the tech</a>
43+
<a href="{{ "revealing/" | relURL }}">Revealing...</a>
44+
&nbsp;<br /><br />
3445

3546
{{ end }}
3647

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"repository": "Real-Currents/www",
77
"main": "index.js",
88
"scripts": {
9-
"build": "npm run build:_rollup",
9+
"build": "npm run build:_rollup && npm run build:blogdown",
1010
"build:preview": "npm run build:_rollup && npm run build:_preview",
1111
"build:blogdown": "Rscript src/build.R; echo 'done'",
1212
"build:_preview": "Rscript src/build_preview.R; echo 'done'",

rollup.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ export default {
6262

6363
copy({
6464
targets: [
65-
{ src: 'content/js-demos', dest: 'public/' },
66-
{ src: 'content/js-dmeos/stymaps', dest: 'public/' },
65+
{ src: 'content/js-demos/data', dest: 'public/' },
66+
{ src: 'content/js-demos/images', dest: 'public/' },
67+
{ src: 'content/js-demos/scripts', dest: 'public/' },
68+
{ src: 'content/js-demos/stymaps', dest: 'public/' },
6769
{ src: 'src/images', dest: 'public/' },
68-
{ src: 'static/*', dest: 'public/' }
70+
{ src: 'src/styles/imports', dest: 'public/' }
6971
]
7072
}),
7173

static/class.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
3+
<meta name="viewport" content="user-scalable=no,width=640" />
4+
<title>JS Class</title>
5+
6+
<script type="text/javascript" src="scripts/debugger.js"></script>
7+
<script type="text/javascript" src="scripts/range2.js"></script>
8+
</head>
9+
<body>
10+
<p id="plog"></p>
11+
12+
<p id="vstatus"></p>
13+
<p id="license" style="color:#fff">
14+
<img src="http://i.creativecommons.org/l/by-sa/3.0/nz/88x31.png" alt="Creative Commons Licence"><br />
15+
<em>These demos by <a href="mailto:john@real-currents.com">John </a> are licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/nz/deed.en_GB">Creative Commons Attribution-ShareAlike 3.0 License, 2009-2020 </a></em>
16+
</p>
17+
18+
<script type="text/javascript" >
19+
Debugger.on = true;
20+
Debugger.out = document.getElementById('plog');
21+
Debugger.log = function ( m, r) {
22+
if( r !== undefined ) m = r.replace(/\$1/, m);
23+
if(Debugger.on) Debugger.out.innerHTML += "<br /><br />\n"+ m;
24+
};
25+
26+
Debugger.log( "Range is a "+ typeof Range );
27+
Debugger.log( "Range.prototype is an "+ typeof Range.prototype );
28+
var rng1 = new Range(1,3);
29+
Debugger.log( "rng1 is an "+ typeof rng1 );
30+
Debugger.log( "rng1 has "+ typeof rng1.includes );
31+
Debugger.log( "rng1 is "+ rng1 );
32+
Debugger.log( "Does rng1 include 2? "+ rng1.includes(2) );
33+
rng1.foreach( Debugger.log, "The number $1 is within rng1." );
34+
var rng2 = new Range(10,13);
35+
Debugger.log( "rng2 is an "+ typeof rng2 );
36+
Debugger.log( "rng2 is "+ rng2 );
37+
Debugger.log( "Does rng2 include 2? "+ rng2.includes(2) );
38+
rng2.foreach( Debugger.log );
39+
Debugger.log( "Is rng1 the same kind as rng2? "+
40+
(rng1 instanceof Range && rng2 instanceof Range) );
41+
Debugger.log( "Is rng1 the same as rng2? "+ (rng1 === rng2) );
42+
var rng3 = new Range(100,103);
43+
Debugger.log( "rng3 is an "+ typeof rng3 );
44+
Debugger.log( "rng3 is "+ rng3 );
45+
Debugger.log( "Does rng3 include 2? "+ rng3.includes(2) );
46+
rng3.foreach( Debugger.log );
47+
Debugger.log( "Is rng1 the same kind as rng3? "+
48+
(rng1 instanceof Range && rng3 instanceof Range) );
49+
Debugger.log( "Is rng1 the same as rng3? "+ (rng1 === rng3) );
50+
51+
</script>
52+
53+
</body></html>

static/fathers.html

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
4+
<title>Cube Fathers</title>
5+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
6+
<meta name="viewport" content="width=800" />
7+
8+
<link rel="stylesheet" type="text/css" href='stymaps/styles/mapscripts.css' />
9+
10+
</head>
11+
<body>
12+
13+
<div id="header-canvas">
14+
<canvas id="fathers" width="1280" height="720" style="display: inline-block; image-rendering:optimizespeed ! important;">
15+
<div id='main-header'>
16+
<h1>Happy Birthday, Dad!</h1>
17+
Please play in a new web browser, like Firefox or Chrome.
18+
</div>
19+
</canvas>
20+
</div>
21+
<div style="text-align: center;">
22+
<br /><a id="aud1_play" href="#" onclick="(function(evt) { playVideo(); aud1.currentTime=0; aud1.muted=false; evt.target.innerHTML='Now Playing'; userTriggered=true; } (event));" style="text-align: center">Play</a>
23+
<br /><a href="http://www.w3.org/2010/05/video/mediaevents.html" target="_blank">Media Help</a>
24+
</div>
25+
26+
<h1 id="text_title">Fathers</h1>
27+
<p id="text_copy" style="display:none;">
28+
29+
Don't Give Up
30+
31+
On Yourself
32+
33+
On Your Dreams
34+
35+
This is the moment
36+
37+
Your power has never been greater
38+
39+
Your priviledge has never stood higher
40+
41+
Your influence is without measure
42+
43+
Only your fear
44+
45+
Only your lost spirit
46+
47+
Can keep you from the promised land
48+
49+
The land of your ancestors
50+
51+
The land of your children
52+
53+
Where you would join them
54+
55+
If you would lead and follow
56+
57+
As your heart demands
58+
</p>
59+
60+
<div id="stream" style="display:none; text-align:center">
61+
<video id="aud1" poster="images/fathers.jpg" preload="auto" muted="true" controls="true">
62+
<source src="video/fathers.mp4" />
63+
<source src="video/fathers.ogv" />
64+
</video>
65+
</div>
66+
67+
<a href="http://www.w3.org/2010/05/video/mediaevents.html" target="_blank">Media Help</a>
68+
69+
<p id="vstatus"></p>
70+
<p id="license" style="color:#fff">
71+
<img src="http://i.creativecommons.org/l/by-sa/3.0/nz/88x31.png" alt="Creative Commons Licence"><br />
72+
<em>These demos by <a href="mailto:john@real-currents.com">Revlin John </a> are licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/nz/deed.en_GB">Creative Commons Attribution-ShareAlike 3.0 License, 2009-2020 </a></em>
73+
</p>
74+
75+
<script type="text/javascript" src="scripts/inner-video-cube.js"></script>
76+
77+
</body></html>

static/fft-simple.html

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
4+
<title>FFT Visualizing</title>
5+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
6+
<meta name="viewport" content="width=800" />
7+
8+
<link rel="stylesheet" type="text/css" href='stymaps/styles/mapscripts.css' />
9+
10+
</head>
11+
<body>
12+
13+
<div id="header-canvas">
14+
<canvas id='cv' width='640' height='360' style="image-rendering:optimizespeed ! important;">
15+
<div id='main-header'>
16+
<h1>FFT Visualization Tests</h1>
17+
<h4>Please play in a new web browser, like Firefox or Chrome.</h4>
18+
</div>
19+
</canvas>
20+
</div>
21+
22+
<div id="stream" style="text-align: center">
23+
<br />
24+
<audio id="aud1" preload="auto" controls="true">
25+
<source src="audio/tones001.mp3" />
26+
<source src="audio/tones001.ogg" />
27+
</audio>
28+
</div>
29+
30+
<a href="http://www.w3.org/2010/05/video/mediaevents.html" target="_blank">Media Help</a>
31+
32+
<p id="vstatus"></p>
33+
<p id="license" style="color:#fff">
34+
<img src="http://i.creativecommons.org/l/by-sa/3.0/nz/88x31.png" alt="Creative Commons Licence"><br />
35+
<em>These demos by <a href="mailto:john@real-currents.com">John </a> are licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/nz/deed.en_GB">Creative Commons Attribution-ShareAlike 3.0 License, 2009-2020 </a></em>
36+
</p>
37+
38+
<script type="text/javascript" src="scripts/debugger.js"></script>
39+
<script type="text/javascript" src="scripts/fft-visualizer.js"></script>
40+
<script type="text/javascript">
41+
(function() {
42+
window.onload = function(){
43+
canvasApp(window.cv);
44+
};
45+
if (typeof Debugger === "function") {
46+
Debugger.on = true;
47+
return;
48+
} else {
49+
window.Debugger = {
50+
log: function() {
51+
/* no debugger.js */
52+
}
53+
};
54+
}
55+
Debugger.log( "Because I know very little about sound visualization with fft data, this is an attempt to explore that using HTML5 audio & canvas\n" );
56+
} )();
57+
</script>
58+
59+
</body></html>

0 commit comments

Comments
 (0)