Coding Language Examples

Author: Stephen Schleising

Python

from test import testing

print('Hello')

HTML

<html>
<head>
</head>
<body>
<div class="container">
    <div class="header" id="page-heading">
        <h2>Heading</h2>
    </div>
</div>
</body>
</html>

CSS

.container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 0.25rem;
}

.header {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    padding: 0.25rem;
}

Javascript

document.getElementById("page-heading").addEventListener( "click", event => {
    sendMessage();
});

C++

#include <iostream>

int main(void)
{
    std::cout << "Hello";

    return 0;
}