Sandbox: Difference between revisions

From NixOS Wiki
imported>Samueldr
m test
No edit summary
 
(62 intermediate revisions by 8 users not shown)
Line 1: Line 1:
= Sandbox =
{{DISPLAYTITLE:The amazing SANDBOX!}}== Sandbox ==
== What is a sandbox? ==
=== What is a sandbox? ===
The sandbox page in this wiki is intended to test thing and toy around with syntax and features.
The sandbox page in this wiki is intended to test things and toy around with syntax and features.
Do not expect your content to stay here very long as any registered user can overwrite it at any time.
Do not expect your content to stay here very long as any registered user can overwrite it at any time.


Please keep this header intact and do all you testing below :)
Please keep this header intact and do all your testing below :)
 
<hr />
= test =
 
{{warning}}
{{warning|text=Here is a long warning, which is sufficiently wordy to run onto a second line (unless you have a really large screen!), which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight.}}
 
{{Notice|text=test}}
This is a link to the meta-article Discussion: [[:Category:Discussion|Discussion]]
{{outdated}}
Sand that box
Shoop da whoop!
Herp Derp <syntaxhighlight lang="python" inline>shop</syntaxhighlight> da whoop
 
== Pything highlighting test ==
<syntaxhighlight lang="python" line='line'>
def quickSort(arr):
less = []
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pass
</syntaxhighlight>
 
{{file|test.py|python|<nowiki>
def quickSort(arr):
less = []
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pass
</nowiki>}}


{{#if: | yes | no}}
<!--
{{#if: string | yes | no}}
Cleaned up last 2023-09-09--><syntaxHighlight lang=shell>
{{#if:      | yes | no}}
ls -al ${date}
{{#if: | yes | no}}
</syntaxHighlight>
{{#if: string | yes | no}}
{{#if:      | yes | no}}
{{#if: | yes | no}}
{{#if: string | yes | no}}
{{#if:      | yes | no}}
 
test
 
 
 
 
 
= Title that won't be used (h1) =
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum et libero vestibulum, elementum ex quis, auctor mauris. Pellentesque tincidunt non massa non hendrerit. Vivamus tempor vehicula tellus vel maximus. Aenean scelerisque pulvinar luctus. Duis dapibus semper tortor, vel lobortis leo ultricies sit amet. Curabitur convallis ullamcorper ipsum ultrices pretium. Vivamus dolor est, interdum vel euismod sit amet, sodales ut leo.
 
== Main sections (h2) ==
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum et libero vestibulum, elementum ex quis, auctor mauris. Pellentesque tincidunt non massa non hendrerit. Vivamus tempor vehicula tellus vel maximus. Aenean scelerisque pulvinar luctus. Duis dapibus semper tortor, vel lobortis leo ultricies sit amet. Curabitur convallis ullamcorper ipsum ultrices pretium. Vivamus dolor est, interdum vel euismod sit amet, sodales ut leo.
 
=== Sub-sections (h3) ===
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum et libero vestibulum, elementum ex quis, auctor mauris. Pellentesque tincidunt non massa non hendrerit. Vivamus tempor vehicula tellus vel maximus. Aenean scelerisque pulvinar luctus. Duis dapibus semper tortor, vel lobortis leo ultricies sit amet. Curabitur convallis ullamcorper ipsum ultrices pretium. Vivamus dolor est, interdum vel euismod sit amet, sodales ut leo.
 
==== Deep knowledge (h4) ====
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum et libero vestibulum, elementum ex quis, auctor mauris. Pellentesque tincidunt non massa non hendrerit. Vivamus tempor vehicula tellus vel maximus. Aenean scelerisque pulvinar luctus. Duis dapibus semper tortor, vel lobortis leo ultricies sit amet. Curabitur convallis ullamcorper ipsum ultrices pretium. Vivamus dolor est, interdum vel euismod sit amet, sodales ut leo.
 
===== Deeper knowledge (h5) =====
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum et libero vestibulum, elementum ex quis, auctor mauris. Pellentesque tincidunt non massa non hendrerit. Vivamus tempor vehicula tellus vel maximus. Aenean scelerisque pulvinar luctus. Duis dapibus semper tortor, vel lobortis leo ultricies sit amet. Curabitur convallis ullamcorper ipsum ultrices pretium. Vivamus dolor est, interdum vel euismod sit amet, sodales ut leo.
 
====== Never that deep hopefully (h6) ======
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum et libero vestibulum, elementum ex quis, auctor mauris. Pellentesque tincidunt non massa non hendrerit. Vivamus tempor vehicula tellus vel maximus. Aenean scelerisque pulvinar luctus. Duis dapibus semper tortor, vel lobortis leo ultricies sit amet. Curabitur convallis ullamcorper ipsum ultrices pretium. Vivamus dolor est, interdum vel euismod sit amet, sodales ut leo.
 
<hr />


{{File|/etc/nixos/configuration.nix|nix|
<syntaxHighlight lang=nix>
{...}
{ config, lib, pkgs, ... }:
{
{
# Comment
  imports = [
}
    ./hardware-configuration.nix
}}
    # We rely on `nixos-hardware` to deal with HW quirks. This requires the `nixos-hardware` channel to be configured.
</syntaxHighlight>put sand in the box today. Retrieve it in years of scarcity

Latest revision as of 23:39, 2 April 2024

Sandbox

What is a sandbox?

The sandbox page in this wiki is intended to test things and toy around with syntax and features. Do not expect your content to stay here very long as any registered user can overwrite it at any time.

Please keep this header intact and do all your testing below :)


ls -al ${date}
{ config, lib, pkgs, ... }:
{
  imports = [
    ./hardware-configuration.nix
    # We rely on `nixos-hardware` to deal with HW quirks. This requires the `nixos-hardware` channel to be configured.

put sand in the box today. Retrieve it in years of scarcity