Difference between revisions of "User talk:Ctsolakis"

From crtc.cs.odu.edu
Jump to: navigation, search
(Extension SyntaxHighlight test)
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
test text
+
==collapse text ==
 +
https://www.mediawiki.org/w/index.php?title=Manual:Collapsible_elements
  
== test section ==
+
<syntaxhighlight lang="wiki" line='line'>
 +
<!-- overflow:auto; to fix collapsed display, because the toggle link has float:right; -->
 +
<div class="toccolours mw-collapsible" style="width:400px; overflow:auto;">
 +
This text is collapsible. test text
 +
</div>
 +
</syntaxhighlight>
 +
<!-- overflow:auto; to fix collapsed display, because the toggle link has float:right; -->
 +
<div class="toccolours mw-collapsible" style="width:400px; overflow:auto;">
 +
This text is collapsible. test text
 +
</div>
 +
 
 +
== collapse tables ==
 +
<syntaxhighlight lang="wiki" line='line'>
 +
{| class="mw-collapsible mw-collapsed wikitable"
 +
! The header || remains visible
 +
|-
 +
| This  content || is hidden
 +
|-
 +
| at first || load time
 +
|}
 +
</syntaxhighlight>
 +
 
 +
{| class="mw-collapsible mw-collapsed wikitable"
 +
! The header || remains visible
 +
|-
 +
| This  content || is hidden
 +
|-
 +
| at first || load time
 +
|}
  
test text
 
  
 
== Extension SyntaxHighlight test ==
 
== Extension SyntaxHighlight test ==
  
 
[https://www.mediawiki.org/wiki/Extension:SyntaxHighlight https://www.mediawiki.org/wiki/Extension:SyntaxHighlight]
 
[https://www.mediawiki.org/wiki/Extension:SyntaxHighlight https://www.mediawiki.org/wiki/Extension:SyntaxHighlight]
 +
 +
<syntaxhighlight lang="python" line='line'>
 +
def quickSort(arr):
 +
less = []
 +
pivotList = []
 +
more = []
 +
if len(arr) <= 1:
 +
return arr
 +
else:
 +
pass
 +
</syntaxhighlight>
 +
<syntaxhighlight lang="C++">
 +
template<typename Fn, Fn fn, typename... Args>
 +
typename std::result_of<Fn(Args...)>::type
 +
wrapper(Args&&... args) {
 +
    return fn(std::forward<Args>(args)...);
 +
}
 +
#define WRAPPER(FUNC) wrapper<decltype(&FUNC), &FUNC>
 +
</syntaxhighlight>
 +
 +
== cite extension test ==
 +
[[https://www.mediawiki.org/wiki/Extension:Cite#Usage https://www.mediawiki.org/wiki/Extension:Cite#Usage]]
 +
 +
The Sun is pretty big.<ref>E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23-5.</ref> The Moon, however, is not so big.<ref>''R. Smith, "Size of the Moon", ''Scientific American'', 46 (April 1978): 44-6.</ref>
 +
 +
==Notes==
 +
<references />
 +
 +
== Dockerfile for matplotlib and jupyter ==
 +
 +
Dockerfile
 +
 +
<source>
 +
FROM jupyter/scipy-notebook
 +
 +
USER $NB_UID
 +
 +
RUN conda install --quiet --yes cartopy
 +
</source>
 +
 +
===Instructions===
 +
First build
 +
 +
<source>
 +
docker build . -t <TAG>
 +
</source>
 +
 +
Then run on local storage
 +
<source>
 +
docker run -it --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -e NB_UID=$(id -u) -e GRAND_SUDO=yes --user=root  -v $(pwd):/home/jovyan/work <TAG>
 +
</source>
 +
 +
=== bar ===
 +
[[MediaWiki:Sidebar|MediaWiki:Sidebar]]

Latest revision as of 19:28, 29 August 2019

collapse text

https://www.mediawiki.org/w/index.php?title=Manual:Collapsible_elements

<!-- overflow:auto; to fix collapsed display, because the toggle link has float:right; -->
<div class="toccolours mw-collapsible" style="width:400px; overflow:auto;">
This text is collapsible. test text
</div>

This text is collapsible. test text

collapse tables

{| class="mw-collapsible mw-collapsed wikitable"
! The header || remains visible
|-
| This  content || is hidden
|-
| at first || load time
|}
The header remains visible
This content is hidden
at first load time


Extension SyntaxHighlight test

https://www.mediawiki.org/wiki/Extension:SyntaxHighlight

def quickSort(arr):
	less = []
	pivotList = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass
template<typename Fn, Fn fn, typename... Args>
typename std::result_of<Fn(Args...)>::type
wrapper(Args&&... args) {
    return fn(std::forward<Args>(args)...);
}
#define WRAPPER(FUNC) wrapper<decltype(&FUNC), &FUNC>

cite extension test

[https://www.mediawiki.org/wiki/Extension:Cite#Usage]

The Sun is pretty big.[1] The Moon, however, is not so big.[2]

Notes

  1. E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.
  2. R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44-6.

Dockerfile for matplotlib and jupyter

Dockerfile

FROM jupyter/scipy-notebook

USER $NB_UID

RUN conda install --quiet --yes cartopy

Instructions

First build

docker build . -t <TAG>

Then run on local storage

docker run -it --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -e NB_UID=$(id -u) -e GRAND_SUDO=yes --user=root  -v $(pwd):/home/jovyan/work <TAG>

bar

MediaWiki:Sidebar