-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
778 lines (503 loc) · 21.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="Open Research Bases for reproducible build, deploy, and publish">
<meta name="author" content="OpenBases Github Maintainers">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="lang:clipboard.copied" content="Copied to clipboard">
<meta name="lang:search.language" content="en">
<meta name="lang:search.pipeline.stopwords" content="True">
<meta name="lang:search.pipeline.trimmer" content="True">
<meta name="lang:search.result.none" content="No matching documents">
<meta name="lang:search.result.one" content="1 matching document">
<meta name="lang:search.result.other" content="# matching documents">
<meta name="lang:search.tokenizer" content="[\s\-]+">
<link rel="shortcut icon" href="./assets/images/favicon.png">
<meta name="generator" content="mkdocs-0.17.4, mkdocs-material-2.9.1">
<title>Open Research Bases</title>
<link rel="stylesheet" href="./assets/stylesheets/application.ba0fd1a6.css">
<link rel="stylesheet" href="./assets/stylesheets/application-palette.6079476c.css">
<meta name="theme-color" content="#2196f3">
<script src="./assets/javascripts/modernizr.1aa3b519.js"></script>
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700|Roboto+Mono">
<style>body,input{font-family:"Roboto","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
<link rel="stylesheet" href="./assets/fonts/material-icons.css">
<link rel="stylesheet" href="./assets/css/extra.css">
</head>
<body dir="ltr" data-md-color-primary="blue" data-md-color-accent="red">
<svg class="md-svg">
<defs>
<svg xmlns="http://www.w3.org/2000/svg" width="416" height="448"
viewBox="0 0 416 448" id="__github">
<path fill="currentColor" d="M160 304q0 10-3.125 20.5t-10.75 19-18.125
8.5-18.125-8.5-10.75-19-3.125-20.5 3.125-20.5 10.75-19 18.125-8.5
18.125 8.5 10.75 19 3.125 20.5zM320 304q0 10-3.125 20.5t-10.75
19-18.125 8.5-18.125-8.5-10.75-19-3.125-20.5 3.125-20.5 10.75-19
18.125-8.5 18.125 8.5 10.75 19 3.125 20.5zM360
304q0-30-17.25-51t-46.75-21q-10.25 0-48.75 5.25-17.75 2.75-39.25
2.75t-39.25-2.75q-38-5.25-48.75-5.25-29.5 0-46.75 21t-17.25 51q0 22 8
38.375t20.25 25.75 30.5 15 35 7.375 37.25 1.75h42q20.5 0
37.25-1.75t35-7.375 30.5-15 20.25-25.75 8-38.375zM416 260q0 51.75-15.25
82.75-9.5 19.25-26.375 33.25t-35.25 21.5-42.5 11.875-42.875 5.5-41.75
1.125q-19.5 0-35.5-0.75t-36.875-3.125-38.125-7.5-34.25-12.875-30.25-20.25-21.5-28.75q-15.5-30.75-15.5-82.75
0-59.25 34-99-6.75-20.5-6.75-42.5 0-29 12.75-54.5 27 0 47.5 9.875t47.25
30.875q36.75-8.75 77.25-8.75 37 0 70 8 26.25-20.5
46.75-30.25t47.25-9.75q12.75 25.5 12.75 54.5 0 21.75-6.75 42 34 40 34
99.5z" />
</svg>
</defs>
</svg>
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
<a href="#open-research-bases" tabindex="1" class="md-skip">
Skip to content
</a>
<header class="md-header" data-md-component="header">
<nav class="md-header-nav md-grid">
<div class="md-flex">
<div class="md-flex__cell md-flex__cell--shrink">
<a href="." title="Open Research Bases" class="md-header-nav__button md-logo">
<img src="./img/logo/color/openbases-shapes-color.png" width="24" height="24">
</a>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
</div>
<div class="md-flex__cell md-flex__cell--stretch">
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
<span class="md-header-nav__topic">
Open Research Bases
</span>
<span class="md-header-nav__topic">
Home
</span>
</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
<input type="text" class="md-search__input" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
<label class="md-icon md-search__icon" for="__search"></label>
<button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">

</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
<div class="md-search-result" data-md-component="result">
<div class="md-search-result__meta">
Type to start searching
</div>
<ol class="md-search-result__list"></ol>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">
<a href="https://github.com/openbases/openbases.github.io/" title="Go to repository" class="md-source" data-md-source="github">
<div class="md-source__icon">
<svg viewBox="0 0 24 24" width="24" height="24">
<use xlink:href="#__github" width="24" height="24"></use>
</svg>
</div>
<div class="md-source__repository">
openbases/openbases.github.io
</div>
</a>
</div>
</div>
</div>
</nav>
</header>
<div class="md-container">
<main class="md-main">
<div class="md-main__inner md-grid" data-md-component="container">
<div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary" data-md-level="0">
<label class="md-nav__title md-nav__title--site" for="__drawer">
<span class="md-nav__button md-logo">
<img src="./img/logo/color/openbases-shapes-color.png" width="48" height="48">
</span>
Open Research Bases
</label>
<div class="md-nav__source">
<a href="https://github.com/openbases/openbases.github.io/" title="Go to repository" class="md-source" data-md-source="github">
<div class="md-source__icon">
<svg viewBox="0 0 24 24" width="24" height="24">
<use xlink:href="#__github" width="24" height="24"></use>
</svg>
</div>
<div class="md-source__repository">
openbases/openbases.github.io
</div>
</a>
</div>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--active">
<input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
<label class="md-nav__link md-nav__link--active" for="__toc">
Home
</label>
<a href="." title="Home" class="md-nav__link md-nav__link--active">
Home
</a>
<nav class="md-nav md-nav--secondary">
<label class="md-nav__title" for="__toc">Table of contents</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="#resources" title="Resources" class="md-nav__link">
Resources
</a>
</li>
<li class="md-nav__item">
<a href="#templates" title="Templates" class="md-nav__link">
Templates
</a>
</li>
<li class="md-nav__item">
<a href="#development" title="Development" class="md-nav__link">
Development
</a>
<nav class="md-nav">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#local" title="Local" class="md-nav__link">
Local
</a>
</li>
<li class="md-nav__item">
<a href="#docker" title="Docker" class="md-nav__link">
Docker
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#support" title="Support" class="md-nav__link">
Support
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="bases/" title="Bases" class="md-nav__link">
Bases
</a>
</li>
<li class="md-nav__item">
<a href="about/" title="About" class="md-nav__link">
About
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary">
<label class="md-nav__title" for="__toc">Table of contents</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="#resources" title="Resources" class="md-nav__link">
Resources
</a>
</li>
<li class="md-nav__item">
<a href="#templates" title="Templates" class="md-nav__link">
Templates
</a>
</li>
<li class="md-nav__item">
<a href="#development" title="Development" class="md-nav__link">
Development
</a>
<nav class="md-nav">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#local" title="Local" class="md-nav__link">
Local
</a>
</li>
<li class="md-nav__item">
<a href="#docker" title="Docker" class="md-nav__link">
Docker
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#support" title="Support" class="md-nav__link">
Support
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content">
<article class="md-content__inner md-typeset">
<a href="https://github.com/openbases/openbases.github.io/edit/master/docs/index.md" title="Edit this page" class="md-icon md-content__icon"></a>
<h1 id="open-research-bases">Open Research Bases<a class="headerlink" href="#open-research-bases" title="Permanent link">¶</a></h1>
<p>This is the future home of the <a href="https://openbases.github.io">Open Research Bases</a>
Group! We create template bases for the <a href="https://www.github.com/openjournals">Open Journals</a>
organization of journals to drive reproducible, automated research and software
development.</p>
<h2 id="resources">Resources<a class="headerlink" href="#resources" title="Permanent link">¶</a></h2>
<p>The following open source projects form the open bases:</p>
<ul>
<li><a href="https://www.github.com/openjournals">Open Journals</a></li>
<li><a href="https://expfactory.github.io">The Experiment Factory</a></li>
<li><a href="https://labjs.readthedocs.io">LabJS</a></li>
<li><a href="https://www.jspsych.org/">JsPsych</a></li>
<li><a href="https://github.com/expfactory/expfactory-robots">Robots</a></li>
</ul>
<h2 id="templates">Templates<a class="headerlink" href="#templates" title="Permanent link">¶</a></h2>
<blockquote>
<p>Where are the bases?</p>
</blockquote>
<p>We are putting together the first toy examples that will put together a selection of components from above
to generate a fully reproducible generation to publication pipeline! Stay tuned.</p>
<h2 id="development">Development<a class="headerlink" href="#development" title="Permanent link">¶</a></h2>
<p>Documentation is done with <a href="https://www.mkdocs.org">mkdocs</a> because it's easy to write markdown files.
If you want to contribute, you can just change the content of the <a href="https://github.com/openbases/docs/tree/master/src">src</a> folder.
For details on customization and using the theme, please see the <a href="https://squidfunk.github.io/mkdocs-material/">material</a> theme pages.</p>
<h3 id="local">Local<a class="headerlink" href="#local" title="Permanent link">¶</a></h3>
<p>Here are the dependencies you should install:</p>
<div class="codehilite"><pre><span></span>pip install mkdocs mkdocs-material click-man
</pre></div>
<p>The resulting docs will be built from <a href="./src">src</a> into <a href="./docs">docs</a>. The build and serve happens
like this!</p>
<div class="codehilite"><pre><span></span>mkdocs serve
</pre></div>
<p>Then open your browser to <a href="http://127.0.0.1:8000">http://127.0.0.1:8000</a></p>
<h3 id="docker">Docker<a class="headerlink" href="#docker" title="Permanent link">¶</a></h3>
<p>If you want, you can also develop in the container!</p>
<div class="codehilite"><pre><span></span>docker build -t openbases/openbases.github.io .
docker run --rm -v --port 8000:8000 $PWD/:/code openbases/openbases.github.io
</pre></div>
<h2 id="support">Support<a class="headerlink" href="#support" title="Permanent link">¶</a></h2>
<p>Please don't hesitate to reach out and
<a href="https://www.github.com/openbases/openbases.github.io/issues">ask us a question</a>,
or contribute!</p>
<script src="assets/js/url.js"></script>
<script src="assets/js/jquery.js"></script>
<script src="assets/js/two.js"></script>
<div class="scripts">
<script>
$(function() {
var colors = [
'rgb(23, 86, 232)',
'brown',
'rgb(233, 171, 23)'
];
var type = /(canvas|webgl)/.test(url.type) ? url.type : 'svg';
var two = new Two({
type: Two.Types[type],
fullscreen: true,
autostart: true
}).appendTo(document.body);
var background = two.makeRectangle(two.width / 2, two.height / 2, two.width, two.height);
background.noStroke();
background.fill = 'transparent';
background.name = 'background';
var container = two.makeGroup(background);
var rows = Math.floor(two.height / 100);
var cols = Math.floor(two.width / 100);
var width = Math.round(two.height / Math.max(rows, cols));
for (var i = 0; i < rows; i++) {
var even = !!(i % 2);
var vi = i / (rows - 1);
for (var j = 0; j < cols; j++) {
var k = j;
if (even) {
k += 0.5;
if (j >= cols - 1) {
continue;
}
}
var hi = k / (cols - 1);
var type = !!(j % 2) ? 'Squiggle' : 'Nonagon';
var height = !!(j % 2) ? width / 3 : width;
var shape = two['make' + type](90, 90, Math.floor(Math.random() * 3) + 3);
var color = colors[Math.floor(Math.random() * colors.length)];
shape.rotation = Math.floor(Math.random() * 4) * Math.PI / 2 + Math.PI / 4;
shape.translation.set(hi * two.width, vi * two.height);
if (j % 2) {
shape.noFill();
shape.stroke = color;
shape.linewidth = 10;
shape.cap = 'round';
} else {
shape.noStroke();
shape.fill = color;
}
shape.step = (Math.floor(Math.random() * 8) / 8) * Math.PI / 60;
shape.step *= Math.random() > 0.5 ? - 1 : 1;
container.add(shape);
}
}
var cursor = two.makeCircle(0, 0, Math.min(two.height, two.width) / 3);
cursor.outline = two.makeCircle(0, 0, Math.min(two.height, two.width) / 3);
cursor.target = new Two.Vector();
cursor.outline.noFill();
cursor.outline.stroke = 'rgba(0, 100, 255, 0.1)';
cursor.outline.linewidth = 40;
container.mask = cursor;
cursor.target.set(two.width / 2, two.height / 2);
cursor.translation.copy(cursor.target);
var center = _.debounce(function() {
cursor.target.set(two.width, two.height);
}, 1000);
var drag = function(e) {
cursor.target.set(e.clientX, e.clientY);
center();
};
var touchDrag = function(e) {
e.preventDefault();
var touch = e.originalEvent.changedTouches[0];
drag({
clientX: touch.pageX,
clientY: touch.pageY
});
return false;
};
$(window)
.bind('mousemove', drag)
.bind('touchmove', touchDrag);
two.bind('update', function() {
cursor.translation.x += (cursor.target.x - cursor.translation.x) * 0.125;
cursor.translation.y += (cursor.target.y - cursor.translation.y) * 0.125;
cursor.outline.translation.copy(cursor.translation);
for (var k in container.children) {
var child = container.children[k];
if (child.name === 'background') {
continue;
}
child.rotation += child.step;
}
});
});
Two.prototype.makeSquiggle = function(width, height, phi) {
var amt = 64;
var squiggle = this.makeCurve(
_.map(_.range(amt), function(i) {
var pct = i / (amt - 1);
var theta = pct * Math.PI * 2 * phi + Math.PI / 2;
var x = width * pct - width / 2;
var y = height / 2 * Math.sin(theta);
return new Two.Anchor(x, y);
}),
true
);
return squiggle;
};
Two.prototype.makeNonagon = function(width, height, sides) {
width /= 2;
height /= 2;
var shape = this.makePath(
_.map(_.range(sides), function(i) {
var pct = i / sides;
var theta = Math.PI * 2 * pct - Math.PI / 2;
var x = width * Math.cos(theta);
var y = height * Math.sin(theta);
return new Two.Anchor(x, y);
})
);
return shape;
};
Two.prototype.makeTriangle = function(width, height, sides) {
width /= 2;
height /= 2;
sides /= 3;
var shape = this.makePath(
_.map(_.range(sides), function(i) {
var pct = i / sides;
var theta = Math.PI * 2 * pct - Math.PI / 2;
var x = width * Math.cos(theta);
var y = height * Math.sin(theta);
return new Two.Anchor(x, y);
})
);
return shape;
};
</script>
<script>
$(document).ready(function(){
$(document).click(function(){
$($('svg')[4]).remove();
$('body').css('overflow', 'scroll');
})
})
</script>
</article>
</div>
</div>
</main>
<footer class="md-footer">
<div class="md-footer-nav">
<nav class="md-footer-nav__inner md-grid">
<a href="bases/" title="Bases" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
<span class="md-flex__ellipsis">
<span class="md-footer-nav__direction">
Next
</span>
Bases
</span>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
</div>
</a>
</nav>
</div>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
Copyright © 2018 - Vanessa Sochat and OpenBases Maintainers
</div>
powered by
<a href="https://www.mkdocs.org">MkDocs</a>
and
<a href="https://squidfunk.github.io/mkdocs-material/">
Material for MkDocs</a>
</div>
<div class="md-footer-social">
<link rel="stylesheet" href="./assets/fonts/font-awesome.css">
<a href="https://github.com/openbases" target="_blank" class="md-footer-social__link fa fa-github"></a>
<a href="https://twitter.com/vsoch" target="_blank" class="md-footer-social__link fa fa-twitter"></a>
<a href="https://www.linkedin.com/in/vsochat" target="_blank" class="md-footer-social__link fa fa-linkedin"></a>
<a href="http://hub.docker.com/r/openbases" class="md-footer-social__link fa" target="_blank">
<img src="./img/icon/docker-clear.png" style="margin-left:10px" width="20px">
</a>
</div>
</div>
</div>
</footer>
</div>
<script src="./assets/javascripts/application.a59e2a89.js"></script>
<script>app.initialize({version:"0.17.4",url:{base:"."}})</script>
<script src="./assets/js/extra.js"></script>
</body>
</html>