Shortcodes for ReFresh Hugo Theme

All shortcodes


Shortcode: tabsCode.html

    def my_function(a, b):
        
        ...
        ...

        return a+b
    int myFunction(int a, int b){    

        ...

        return a+b;
    }
    public class Example {        
        public static int myFunction(int a, int b) {
            ...
            return a + b;
        }
    }
The code:
{{< tabsCode
    file1="/content/miscellaneous/example/tab_contents/python.md" language1="python" title1="Python" icon1="python"
    file2="/content/miscellaneous/example/tab_contents/c.md" language2="c" title2="C" icon2="c"  
    file3="/content/miscellaneous/example/tab_contents/java.md" language3="Java" title3="Java" icon3="java" 
>}}

Shortcode: tabs.html

This is the content of the FIRST tab.

  • One
  • Two
  • Three

This is the content of the SECOND tab.

  • Four
  • Five
  • Six

This is the content of the THIRD tab.

  • Seven
  • Eight
  • Nine

The code:
{{< tabs
    file1="/content/miscellaneous/example/tab_contents/one.md" title1="First Tab" 
    file2="/content/miscellaneous/example/tab_contents/two.md" title2="Second Tab"  
    file3="/content/miscellaneous/example/tab_contents/three.md" title3="Third Tab"  
>}}

Shortcode: box.html

We are inside the box

The code:
{{< box >}}
    We are inside the box
{{< /box >}}

Shortcode: notificationBlue.html

The code:
{{% notificationBlue %}}
    This is an example of notification blue.
{{% /notificationBlue %}}

Shortcode: siteRed.html

It offers many reverse challenges dividing them in categories as OS, architecture and levels. It does not provide solutions.


The code:
{{< siteRed "Reverse" "https://challenges.re" >}}
    <p>It offers many reverse challenges dividing them in categories as OS, architecture and levels. 
    It does not provide solutions.</p>
{{< /siteRed >}}

Shortcode: figure.html

The code:
    {{% figure src="images/overflow_1.png" width="400" %}}

Shortcode: twoFigure.html

The code:
    {{% twoFigure src1="images/overflow_1.png" width1="400" src2="images/overflow_2.png" width2="400" %}}

Shortcode: book.html

Book image

Tangled Web, A Guide to Securing Modern Web Applications.

Michal Zalewski

A fantastic guide to understand the web and the browser. It starts from a historic view of the web and evolves to cover the modern world.

The code:
{{< book title="Tangled Web, A Guide to Securing Modern Web Applications." authors="Michal Zalewski" image="images/web_img.jpg" size="300x" >}}
    A fantastic guide to understand the web and the browser. It starts from a historic view of the web and evolves to cover the modern world. 
{{< /book >}}

Shortcode: exercise.html

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.

You may assume the two numbers do not contain any leading zero, except the number 0 itself.

Example:
Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
Output: 7 -> 0 -> 8
Explanation: 342 + 465 = 807.

The code:
{{< exercise >}}
    You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.

    You may assume the two numbers do not contain any leading zero, except the number 0 itself.

    **Example:**<br>
    **Input:** (2 -> 4 -> 3) + (5 -> 6 -> 4)<br>
    **Output:** 7 -> 0 -> 8<br>
    **Explanation:** 342 + 465 = 807.<br>
{{< /exercise >}}

Shortcode: codeWide.html

    $ dmesg | tail
    ......
    [13747.451995] traps: overflow64[16766] general protection ip:555555554697 sp:7fffffffdda8 error:0 in overflow64[555555554000+1000]
The code:
{{< codeWide >}}
    $ dmesg | tail
    ......
    [13747.451995] traps: overflow64[16766] general protection ip:555555554697 sp:7fffffffdda8 error:0 in overflow64[555555554000+1000]
{{< /codeWide >}}

Shortcode: code.html

    $ dmesg | tail
    ......
    [13747.451995] traps: overflow64[16766] general protection ip:555555554697 sp:7fffffffdda8 error:0 in overflow64[555555554000+1000]
The code:
{{< code >}}
    $ dmesg | tail
    ......
    [13747.451995] traps: overflow64[16766] general protection ip:555555554697 sp:7fffffffdda8 error:0 in overflow64[555555554000+1000]
{{< /code >}}

Shortcode: twoVideos.html

The code:
    {{% twoVideos id2="pKRzfdIJUZE" id1="Ncv2KmhVgyU" autoplay1=true ratio1="4:3" ratio2="16:9" %}}