--- title: "INIT 1" date: 2019-05-01 17:48:01 layout: post author: Jt3kt twitter: "https://twitter.com/Eric_23_Hart" permalink: blog/init.html tags: [examples, testing] --- # Here is a content drop. Testing out some of the markdown language for Jekyll with codeblock examples. Markdown source for this page is available [here](https://raw.githubusercontent.com/Jtekt/dc864.github.io/master/_posts/2019-05-01-INIT-1.md). Language | Jekyll Support | Status --- | :---: | ---: [Bash](https://www.gnu.org/software/bash/manual/bash.txt) | ![check](/images/checkmark.png){:height="70%" width="10%"} | yay Javascript | ![check](/images/checkmark.png){:height="70%" width="10%"} | boo [Lolcode](https://github.com/justinmeza/lolcode-spec) | ![X](/images/crossmark.png){:height="70%" width="13%"} | lul [Powershell](https://docs.microsoft.com/en-us/powershell/) | ![check](/images/checkmark.png){:height="70%" width="10%"} | meh [Python](https://docs.python.org/3/library/) | ![check](/images/checkmark.png){:height="70%" width="10%"} | l33t For a full list of supported language markdowns reference the [rouge wiki](https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers). ## Code Block Examples ### Bash ```bash declare -a colors=("Red" "Orange" "Yellow" "Green" "Blue" "Indigo" "Violet") for x in "${colors[@]}" do echo "$x" done ``` ### Javascript ```javascript var colors = {"Red","Orange","Yellow","Green","Blue","Indigo","Violet"}; for (x = 0; x < colors.length; i++) { text += colors[x] + "
"; } ``` ### Lolcode ```lolcode HAI 1.2 I HAS A COLORS ITZ A BUKKIT BTW DECLARYING AN ARRAY COLORS HAS A VAR1 ITZ "RED" COLORS HAS A VAR2 ITZ "ORANGE" COLORS HAS A VAR3 ITZ "YELLOW" COLORS HAS A VAR4 ITZ "GREEN" COLORS HAS A VAR5 ITZ "BLUE" COLORS HAS A VAR6 ITZ "INDIGO" COLORS HAS A VAR7 ITZ "VIOLET" BTW VAR1 IS A STRING VARIABLE THAT IS INSERTED INTO ARRAY COLORS BTW VAR2 IS A STRING VARIABLE THAT IS INSERTED INTO ARRAY COLORS BTW VAR3 IS A STRING VARIABLE THAT IS INSERTED INTO ARRAY COLORS BTW VAR4 IS A STRING VARIABLE THAT IS INSERTED INTO ARRAY COLORS BTW VAR5 IS A STRING VARIABLE THAT IS INSERTED INTO ARRAY COLORS BTW VAR6 IS A STRING VARIABLE THAT IS INSERTED INTO ARRAY COLORS BTW VAR7 IS A STRING VARIABLE THAT IS INSERTED INTO ARRAY COLORS BTW GET THE ELEMENT OF ARRAY I HAS A VER ITZ 0 IM IN YR LOOPY UPPIN YR VER TIL BOTH SAEM VER AN 7 I HAS A VAL ITZ SUM OF VER AN 1 MAEK VAL A YARN I HAS A KITTY ITZ SMOOSH "VAR" AN VAL MKAY VISIBLE COLORS'Z KITTY IM OUTTA YR LOOPY KTHXBYE ``` ### Powershell ```powershell $colors = @("Red","Orange","Yellow","Green","Blue","Indigo","Violet") For ($x=0; $x -lt $colors.Length; $x++) { $colors[$x] } ``` ### Python An example YouTube embed: {% include youtubePlayer.html id="_uQrJ0TkZlc" %} ```python colors = ["Red","Orange","Yellow","Green","Blue","Indigo","Violet"] for x in colors: print(x) ```