Accessible Pygments Themes Demo 🎨

Bash

#!/bin/bash
# Counting the number of lines in a list of files
# function version

# function storing list of all files in variable files
get_files () {
    files="`ls *.[ch]`"
}

# function counting the number of lines in a file
count_lines () {
    f=$1  # 1st argument is filename
    l=`wc -l $f | sed 's/^\([0-9]*\).*$/\1/'` # number of lines
}

# the script should be called without arguments
if [ $# -ge 1 ]
then
    echo "Usage: $0 "
    exit 1
fi

# split by newline
IFS=$'\012'

echo "$0 counts the lines of code"
# don't forget to initialise!
l=0
n=0
s=0
# call a function to get a list of files
get_files
# iterate over this list
for f in $files
do
    # call a function to count the lines
    count_lines $f
    echo "$f: $l"loc
    # store filename in an array
    file[$n]=$f
    # store number of lines in an array
    lines[$n]=$l
    # increase counter
    n=$[ $n + 1 ]
    # increase sum of all lines
    s=$[ $s + $l ]
done

echo "$n files in total, with $s lines in total"
i=5
echo "The $i-th file was ${file[$i]} with ${lines[$i]} lines"

###### CONFIG
ACCEPTED_HOSTS="/root/.hag_accepted.conf"
BE_VERBOSE=false

if [ "$UID" -ne 0 ]
then
    echo "Superuser rights required"
    exit 2
fi

genApacheConf(){
    echo -e "# Host ${HOME_DIR}$1/$2 :"
}

Javascript

function main(){
    var lastScrollTop = 0;
    var animationEnd = 'animationend oAnimationEnd mozAnimationEnd webkitAnimationEnd';
    $(document).scroll( _.throttle(function() {
        var st = $(this).scrollTop();
        if ( st > lastScrollTop )
        {
            runAnimation("#home-header", "slideOutUp faster");
        }
        else
        {
            runAnimation("#home-header", "slideInDown faster");
        }
        lastScrollTop = st;
    }, 500
));

function runAnimation(element, animationName) {
    $(element).removeClass("animated slideInDown slideOutUp");
    $(element).addClass("animated " +animationName).one(animationEnd, function() {
        animationRunning = false;
    });
    }

}

$(document).ready(main);
    

CSS

.top-title{
    font-size: 1.5rem;
    font-family: 'Leckerli One', cursive;
  }

  header {
    position: relative;
    z-index: 999;
  }

  .bg-blue {
    background-color: rgba(135, 212, 230, 0.70);
    border-color: #87d4e6;
    padding: 0;
  }

  .bg-bottom-dark{
    background-color: #454545;
    border-color: #454545;
  }

  .bottom-firm{
    font-size: 3rem;
    color: #e2eb98;
    font-family: 'Leckerli One', cursive;
  }

  .sky-blue-header{
    background-color: #87d4e6;
    height: 70px;
    min-width: 100%;
    clear: both;
    margin: 0;
    padding: 0;
  }

  .balloons-main{
    min-width: 100%;
    width:100%;
    clear: both;
    margin: 0;
    padding: 0;
    position: relative;
  }

  .center-text{
    position: absolute;
    top: 20%;
    left: 40%;
    transform: translate(-50%, -50%);
    color: #F1FAEE;
    font-family: 'Delius Swash Caps', cursive;
  }

  .h1 #welcome-text{
    font-size: 5em;
  }

  .center-bottom-medium{
    position: absolute;
    top: 40%;
    left: 70%;
    transform: translate(-50%, -50%);
    color: #F1FAEE;
    font-family: 'Delius Swash Caps', cursive;
  }

  .center-bottom{
    position: absolute;
    top: 58%;
    left: 70%;
    transform: translate(-50%, -50%);
    color: #F1FAEE;
    font-family: 'Delius Swash Caps', cursive;
  }

  .about-me{
    position: relative;
    margin-top: 5%;
  }

  .available{
    position: relative;
  }

  .hire-me{
    position: relative;
    margin-top: 3%;
    margin-bottom: 3%;
  }

  .paragraph-block{
    margin-top: 3%;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
  }

  .paragraph-block-text{
    margin-top: 3%;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #818181;
  }

  .title-block{
    margin-top: 3%;
    margin-bottom: 3%;
    font-family: 'Montserrat', cursive;
    font-size: 2rem;
    color: #0FA3B1;
  }

  .sep{
    margin-top:3%;
    margin-bottom: 3%;
  }

  .my-button{
    color: #ffffff;
    background-color: #a385bd;
    border-color: #a385bd;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
  }

  .highlight{
    color: #0FA3B1;
    font-size: 1.5rem;
  }

  .highlight-link{
    color: #0FA3B1;
    font-size: 1.2rem;
  }

  .caption-text-skills{
    font-size: 1.3rem;
  }

  .even{
    flex-wrap: wrap;
  }

  .machinel-block{
    background-color: #7A306C;
    color: white;
    padding: 4em 0;
  }

  .machinel-block p {
    letter-spacing: 1px;
  }

  .machinel-block .p-2 {
    margin: 0.7em 0;
  }


  .titleML{
    font-size: 1.6rem;
    font-family: 'Delius Swash Caps', cursive;
  }

  .mandible-block{
    background-color: #7FC6A4;
    color: white;
    padding: 4em 0;
  }

  .mandible-block p {
    letter-spacing: 1px;
  }

  .mandible-block .p-2 {
    margin: 0.7em 0;
  }

  .math-exp-block{
    background-color: #F25F5C;
    color: white;
    padding: 4em 0;
  }

  .math-exp-block p {
    letter-spacing: 1px;
  }

  .math-exp-block .p-2 {
    margin: 0.7em 0;
  }

  video{
    width: 100%;
  }

HTML

<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
  <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
    <link href="https://fonts.googleapis.com/css?family=Delius+Swash+Caps|Leckerli+One|Short+Stack|Kosugi+Maru|Montserrat" rel="stylesheet">
    <link rel="stylesheet" href="./css/main.css" />
    <link rel="shortcut icon" type="image/png" sizes="128x128" href="./files/favicon.png"/>
    <title>Tefa's Web Page</title>
</head>

<body class="animated fadeIn">
    <!-- header of the web page -->
    <nav class="navbar navbar-expand-lg navbar-light bg-blue d-flex fixed-top" id="home-header">
        <!--fixed-top-->
        <div class="container nav-bar-space">
        <div class="flex-grow-1">
            <ul class="navbar-nav mr-auto">
            <li class="nav-item active">
                <img class="img-fluid" src="./files/main_icon.png" height="130" width="130" />
            </li>
            </ul>
        </div>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggler" aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
            </button>
        <div class="navbar-collapse collapse flex-grow-0" id="navbarToggler">
            <div class="justify-content-between mr-auto">
            <ul class="navbar-nav ml-auto">
                <li class="nav-item top-title">
                <a class="nav-link" href="#toptoppage">About!</a>
                </li>
                <li class="nav-item">
                <a class="nav-link top-title" href="#projects">Projects!</a>
                </li>
                <li class="nav-item">
                <a class="nav-link top-title" href="#skills">More!</a>
                </li>
            </ul>
            </div>
        </div>
        </div>
    </nav>
    <!-- Fake header -->
    <div class="container sky-blue-header" id="toptoppage">
    </div>
    <!-- Section for the welcome homepage -->
    <section id="home-welcome">
    <div class="container balloons-main">
        <img src="./files/main_background.png" class="img-fluid main-background" />
    </div>
    </section>
    <!-- Photo section plus important info.-->
    <section id="me">
    <div class="container about-me">
        <div class="row paragraph-block">
        <div class="flex-row justify-content-center mx-auto text-center">
            <p>From <span class="highlight">cat</span> to <span class="highlight">cat</span> and <span class="highlight">cat</span> applications.</p>
        </div>
        </div>
        <div class="container">
        <div class="d-flex flex-row justify-content-around paragraph-block-text even">
            <div class="p-2 text-center">
            <img src="./files/web.png" class="img-fluid" height="150" width="150" />
            <h4><span class="highlight">Web Cat and CatApp Development<span></h4>
            <p>Freelance cat work.</p>
            </div>
            <div class="p-2 text-center">
            <img src="./files/ml.png" class="img-fluid" height="150" width="150" />
            <h4><span class="highlight">Cat Learning<span></h4>
            <p>Use of cat signals for world control.</p>
            </div>
            <div class="p-2 text-center">
            <img src="./files/robot.png" class="img-fluid" height="150" width="150" />
            <h4><span class="highlight">Cat Vision Research<span></h4>
            <p>Active member of the Cat Vision Research group <a href="https://biomedicalcomputervision.edu.co/" target="_blank" class="highlight-link">@Universidad de los Andes</a></p>
            </div>
        </div>
        </div>
    </div>
    </section>
    <!--Separator between sections-->
    <section>
    <div class="container sep">
        <div class="row">
        <div class="flex-row justify-content-center mx-auto">
            <img src="./files/separator.png" class="img-fluid" height="50" width="200" />
        </div>
        </div>
    </div>
    </section>
    <!-- Project.-->
    <section id="projects">
    <div class="container projects-info">
        <div class="row">
        <div class="flex-row justify-content-center mx-auto">
            <img src="./files/projects.png" class="img-fluid" height="200" width="200" />
        </div>
        </div>
    </div>
    </section>
    <!--Projects section -->
    <section>
    <div class="container">
        <div class="row">
        <div class="justify-content-center mx-auto title-block">
            <h1> Projects </h1>
        </div>
        </div>
    </div>
    </section>
    <!--New parts for the Projects section!-->
    <!--Projects of Machine Learning-->
    <section id="machine-learning" class="machinel-block color-panel">
    <div class="container self-align">
        <div class="d-flex justify-content-center">
        <div class="p-2">
            <video controls>
            <source src="./videos/willy.mp4" type="video/mp4">
            </video>
        </div>
        </div>
        <div class="d-flex justify-content-center">
        <div class="p-2 text-center">
            <h4><span class="titleML">Cats!</span></h4>
        </div>
        </div>
        <div class="d-flex justify-content-center">
        <div class="p-2 text-center font-weight-light">
            <p><span class="textML">Development of a cat robot.</span></p>
            <p><span class="textML">Franchesca can move forward and jump.</span></p>
        </div>
        </div>
    </div>
    <div class="self-align">
        <img src="./files/down-arrow-gif.gif" class="img-fluid" height="25" width="100" />
    </div>
    </section>
    <!-- Detection of mandibles -->
    <section id="detection-mandibles" class="mandible-block color-panel">
    <div class="container self-align">
        <div class="d-flex justify-content-center">
        <div class="p-2">
            <img src="./files/mandibles.png" class="img-fluid">
        </div>
        </div>
        <div class="d-flex justify-content-center">
        <div class="p-2 text-center">
            <h4><span class="titleML">Give more treats!</span></h4>
        </div>
        </div>
        <div class="d-flex justify-content-center">
        <div class="p-2 text-center font-weight-light">
            <p>
            <span class="textML">
                An automatic cat segmentation algorithm
            </span>
            </p>
        </div>
        </div>
    </div>
    <div class="self-align">
        <img src="./files/down-arrow-gif.gif" class="img-fluid" height="25" width="100" />
    </div>
    </section>
    <!-- Handwritten math expressions -->
    <section id="math-expressions" class="math-exp-block color-panel">
    <div class="container self-align">
        <div class="d-flex justify-content-center">
        <div class="p-2">
            <img src="./files/neural-net.png" class="img-fluid">
        </div>
        </div>
        <div class="d-flex justify-content-center">
        <div class="p-2 text-center">
            <h4><span class="titleML">Cute Cats</span></h4>
        </div>
        </div>
        <div class="d-flex justify-content-center">
        <div class="p-2 text-center font-weight-light">
            <p>
            <span class="textML">
                A cute cat sleeping while watching tv and screaming MIAU!
            </span>
            </p>
        </div>
        </div>
    </div>
    <div class="self-align">
        <img src="./files/down-arrow-gif.gif" class="img-fluid" height="25" width="100" />
    </div>
    </section>
    <!--Separator between sections-->
    <section>
    <div class="container sep">
        <div class="row">
        <div class="flex-row justify-content-center mx-auto">
            <img src="./files/separator.png" class="img-fluid" height="50" width="200" />
        </div>
        </div>
    </div>
    </section>
    <!-- Content section can do-->
    <section>
    <div class="container can-do">
        <img src="./files/skills.png" class="img-fluid mx-auto d-block" />
    </div>
    </section>
    <!--Separator between sections-->
    <section>
    <div class="container sep">
        <div class="row">
        <div class="flex-row justify-content-center mx-auto">
            <img src="./files/separator.png" class="img-fluid" height="50" width="200" />
        </div>
        </div>
    </div>
    </section>
    <!-- Tefa is available -->
    <section id="available">
    <div class="container available">
        <div class="row paragraph-block">
        <div class="flex-row justify-content-center mx-auto">
            <p>Looking forward to <span class="highlight"> develop </span> your cat? </p>
        </div>
        </div>
    </div>
    </section>
    <!-- Hire me!-->
    <section id="hire-me">
    <div class="container hire-me">
        <div class="row paragraph-block">
        <div class="flex-row justify-content-center mx-auto">
            <button type="button" class="btn my-button"><a target="_blank" style="color: inherit" href="https://www.linkedin.com/in/stephannie-jimenez-44b378164/"> Hire me! </a></button>
        </div>
        </div>
    </div>
    </section>
    <script src="https://cdn.jsdelivr.net/npm/lodash@4.17.10/lodash.min.js"></script>
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
    <script src='./main.js'></script>
</body>

</html>

Markdown

---
__Advertisement :)__

- __[pica](https://nodeca.github.io/pica/demo/)__ - high quality and fast image
  resize in browser.
- __[babelfish](https://github.com/nodeca/babelfish/)__ - developer friendly
    i18n with plurals support and easy syntax.

You will like those projects!

---

# h1 Heading 8-)
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading


## Horizontal Rules

___

---

***


## Typographic replacements

Enable typographer option to see result.

(c) (C) (r) (R) (tm) (TM) (p) (P) +-

test.. test... test..... test?..... test!....

!!!!!! ???? ,,  -- ---

"Smartypants, double quotes" and 'single quotes'


## Emphasis

**This is bold text**

__This is bold text__

*This is italic text*

_This is italic text_

~~Strikethrough~~


## Blockquotes


> Blockquotes can also be nested...
>> ...by using additional greater-than signs right next to each other...
> > > ...or with spaces between arrows.


## Lists

Unordered

+ Create a list by starting a line with `+`, `-`, or `*`
+ Sub-lists are made by indenting 2 spaces:
    - Marker character change forces new list start:
    * Ac tristique libero volutpat at
    + Facilisis in pretium nisl aliquet
    - Nulla volutpat aliquam velit
+ Very easy!

Ordered

1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
3. Integer molestie lorem at massa


1. You can use sequential numbers...
1. ...or keep all the numbers as `1.`

Start numbering with offset:

57. foo
1. bar


## Code

Inline `code`

Indented code

    // Some comments
    line 1 of code
    line 2 of code
    line 3 of code


Block code "fences"

```
Sample text here...
```

Syntax highlighting

``` js
var foo = function (bar) {
    return bar++;
};

console.log(foo(5));
```

## Tables

| Option | Description |
| ------ | ----------- |
| data   | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext    | extension to be used for dest files. |

Right aligned columns

| Option | Description |
| ------:| -----------:|
| data   | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext    | extension to be used for dest files. |


## Links

[link text](http://dev.nodeca.com)

[link with title](http://nodeca.github.io/pica/demo/ "title text!")

Autoconverted link https://github.com/nodeca/pica (enable linkify to see)


## Images

![Minion](https://octodex.github.com/images/minion.png)
![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")

Like links, Images also have a footnote style syntax

![Alt text][id]

With a reference later in the document defining the URL location:

[id]: https://octodex.github.com/images/dojocat.jpg  "The Dojocat"


## Plugins

The killer feature of `markdown-it` is very effective support of
[syntax plugins](https://www.npmjs.org/browse/keyword/markdown-it-plugin).


### [Emojies](https://github.com/markdown-it/markdown-it-emoji)

> Classic markup: :wink: :crush: :cry: :tear: :laughing: :yum:
>
> Shortcuts (emoticons): :-) :-( 8-) ;)

see [how to change output](https://github.com/markdown-it/markdown-it-emoji#change-output) with twemoji.


### [Subscript](https://github.com/markdown-it/markdown-it-sub) / [Superscript](https://github.com/markdown-it/markdown-it-sup)

- 19^th^
- H~2~O


### [\<ins>](https://github.com/markdown-it/markdown-it-ins)

++Inserted text++


### [\<mark>](https://github.com/markdown-it/markdown-it-mark)

==Marked text==


### [Footnotes](https://github.com/markdown-it/markdown-it-footnote)

Footnote 1 link[^first].

Footnote 2 link[^second].

Inline footnote^[Text of inline footnote] definition.

Duplicated footnote reference[^second].

[^first]: Footnote **can have markup**

    and multiple paragraphs.

[^second]: Footnote text.


### [Definition lists](https://github.com/markdown-it/markdown-it-deflist)

Term 1

:   Definition 1
with lazy continuation.

Term 2 with *inline markup*

:   Definition 2

        { some code, part of Definition 2 }

    Third paragraph of definition 2.

_Compact style:_

Term 1
    ~ Definition 1

Term 2
    ~ Definition 2a
    ~ Definition 2b


### [Abbreviations](https://github.com/markdown-it/markdown-it-abbr)

This is HTML abbreviation example.

It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on.

*[HTML]: Hyper Text Markup Language

### [Custom containers](https://github.com/markdown-it/markdown-it-container)

::: warning
*here be dragons*
:::

Python

import package
from package import (Class1, Class2, func_1, func_2)
from package3 import *


class TestClass(BaseClass1, BaseClass2):
    """ Hola! """
    def __init__(self, x: int, y: List[Union[None, str]], z='default',
                    *args, **kwargs):
        super().__init__()
        self.x = x  # type: int

    def method1(self):
        pass


@decorator
async def test2(x, y, z):
    async for i in x:
        yield y
    with open('text', 'r', encoding='utf-8') as f:
        while True:
            x += 1

@requires_authorization
def somefunc(param1='', param2=0):
    r'''A docstring'''
    if param1 > param2: # interesting
        print('Gre\'ater')
    return (param2 - param1 + 1 + 0b10l) or None

class SomeClass:
    pass

>>> message = '''interpreter
... prompt'''