Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Sandbox ====== All sorts how to include example code and files for documentation purposes. <html><div align="center"></html> ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | Row 2 Col 1 | some colspan (note the double pipe) || | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | <html></div></html> ==== Files with direct download ==== <file bash dummy.sh> #!/bin/bash echo "ich bin ein dummy BASH skript" </file> ==== Code highlighting ==== <code C> #include "stdio.h" int main(int argc, char *argv[]) { printf("Hello world !!!\n\n"); return 0; } </code> ==== In-line Text ==== apt-get install blabla ==== Source direct from file ==== Keep your wiki updated with newest source you reference to. <source huce/microlab/struct_ex.c # c|structure example > ==== Downloaded a C file ==== Nice mime type to file suffixes like C or VHDL {{:huce:microlab:struct_ex.c| Download struct_ex.c}} ===== Graphic Stuff ===== ==== Note boxes ==== <note>Microlab Wiki under construction</note> <note tip>tip</note> <note important>important</note> <note warning>warning</note> ==== Symbols ==== Some available symbols i_yes_icon i_linux_icon \\ i_alert_icon i_windows_icon\\ i_yes_icon i_apple_icon ==== Graph-Wizard ==== <graphviz dot middle 500x200> digraph finite_state_machine { rankdir=LR; size="10,5" node [shape = doublecircle]; LR_0 LR_3 LR_4 LR_8; node [shape = circle]; LR_0 -> LR_2 [ label = "SS(B)" ]; LR_0 -> LR_1 [ label = "SS(S)" ]; LR_1 -> LR_3 [ label = "S($end)" ]; LR_2 -> LR_6 [ label = "SS(b)" ]; LR_2 -> LR_5 [ label = "SS(a)" ]; LR_2 -> LR_4 [ label = "S(A)" ]; LR_5 -> LR_7 [ label = "S(b)" ]; LR_5 -> LR_5 [ label = "S(a)" ]; LR_6 -> LR_6 [ label = "S(b)" ]; LR_6 -> LR_5 [ label = "S(a)" ]; LR_7 -> LR_8 [ label = "S(b)" ]; LR_7 -> LR_5 [ label = "S(a)" ]; LR_8 -> LR_6 [ label = "S(b)" ]; LR_8 -> LR_5 [ label = "S(a)" ]; } </graphviz> ==== Box examples ==== <box 80% round orange|a title> the box contents</box> <box 50% left blue>the box contents</box|a caption> <box 60% round #f99 #fc9 #fff #f60|title>the box contents</box|caption> ==== Progress bar element ==== <progress=0> <progress=70> <progress=100> ===== Organisation ===== ==== Quick and dirty ToDo ==== <todo>ToDo action</todo> <todo #>tick meeee</todo> <todo>list of todo</todo> <todo>list of todo</todo> <todo>list of todo</todo> ==== HuCE doodle ==== <doodle [login]| HuCE test doodle>{{sos>protocol:ip_addr:port:img(y/n)|Description}} ^ first choice ^ second choice ^ third choice ^ </doodle> ==== Math Plug-in ==== <m>S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}</m> <m 8>delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ }</m> <m 32>delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= epsilon/3</m> ==== LaTex Plug-in ==== **A simple example** \\ $ a^2 + b^2 = c^2 $ **Some fancy LaTex string** \\ <latex> I use \LaTeXe! </latex> **A more advanced formula** \\ \begin{eqnarray*} & & \frac{3}{2 \pi} \sqrt{4 \cdot x^2 12}\\ & & \lim_{n \to \infty} \sum_{k=1}^n \frac{1}{k^2} = \frac{\pi^2}{60}\\ & & {\it f}(x) = \frac{1}{\sqrt{x} x^2}\\ & & e^{i \pi} + 1 = 0\; \end{eqnarray*} **Super fancy LaTex drawing** \\ <latex>\setlength{\unitlength}{1mm} \begin{picture}(93,46) \put( 0,14){\vector(1,0){60}} \put(61,13){$x$} \put(20,4){\vector(0,1){37}} \put(19,43){$y$} \put(50,34){\circle*{2}} \put(52,35){$P$} \multiput(20,34)(4,0){8}{\line(1,0){2}} \put(14.5,33.5){$y_P$} \multiput(50,14)(0,4){5}{\line(0,1){2}} \put(48,11){$x_P$} \put( 2,8){\vector(3,1){56}} \put(59,26.5){$x'$} \multiput(50,34)(1.9,-5.7){2} {\line(1,-3){1.2}} \put(52,22){$x_P'$} \multiput(50,34)(-5.8,-1.933){6} {\line(-3,-1){3.6}} \put(12,21){$y_P'$} \put(22,8){\vector(-1,3){10.5}} \put(10,41){$y'$} \end{picture}</latex> ==== Under construction extension ==== UNDER_CONST ==== Tip plugin ==== <tip c h> This is a help Text </tip> <tip c i> This is an additional information </tip> <tip c n> This is a note </tip> <tip c w> This is a warning </tip> <tip [c|l|r] [u|e|d] [h|i|n|w]> ... </tip> /opt/bitnami/dokuwiki/data/pages/wiki/sandbox.txt Last modified: 2020/04/17 15:30by 127.0.0.1