Skip to content

Instantly share code, notes, and snippets.

#+OPTIONS: num:nil toc:nil
#+Title: Kubernetes as a Cluster Operating System
#+Author: A
#+Email: alaarmann@gmx.net
#+REVEAL_ROOT: https://cdn.jsdelivr.net/npm/reveal.js
#+REVEAL_HLEVEL: 2
#+REVEAL_PLUGINS: (highlight)
* Kubernetes
.AlternativeView-Content {
width: 100%;
height: 150px;
background-color: lightgrey;
position: relative;
}
.AlternativeView-Content_first {
background-color: lightgreen;
height: 100%;
% Frontend Unitests mit Jest und Enzyme
% 20.11.2019
# Jest
## Komplettes Testing Framework
- Test Runner
- Mocks
- Matchers (Assertions)
(require 'package)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ansi-color-faces-vector
[default default default italic underline success warning error])
'(ansi-color-names-vector
["black" "red3" "ForestGreen" "yellow3" "blue" "magenta3" "DeepSkyBlue" "gray50"])
@alaarmann
alaarmann / ValidatingForm.jsx
Created June 17, 2018 22:51
Validate a form with connected inputs
import React, {Component} from 'react'
import PropTypes from 'prop-types';
import {stringValueMandatoryValidator} from './validators.js'
import './ValidatingForm.css'
class ValidatingForm extends Component {
static propTypes = {
onValidSubmit: PropTypes.func.isRequired
}
state = {
@alaarmann
alaarmann / setup_python_virtual_env.txt
Created May 16, 2017 22:02
Setup a Python virtual environment
pip3 install --user --upgrade virtualenv
# create virtual environment
virtualenv env
# activate virtual environment
source env/bin/activate
@alaarmann
alaarmann / main.html
Created March 9, 2017 18:52
Center Block Vertically
<!DOCTYPE html>
<head>
<style type="text/css" media="screen">
html, body{
margin:0;
padding:0;
height:100%;
background: #ddd;
}
.header {
@alaarmann
alaarmann / main.html
Created November 10, 2016 20:54
Table with fixed header and footer - pure CSS solution
<!DOCTYPE html>
<head>
<style type="text/css" media="screen">
html, body{
margin:0;
padding:0;
height:100%;
background: #ddd;
}
div.section {
@alaarmann
alaarmann / main.html
Created October 20, 2016 21:04
Scrollable Table with Fixed Header and Footer
<!DOCTYPE html>
<head>
<script src='jquery-2.1.3.js' type='text/javascript'></script>
<script src='tableHeadFixer.js' type='text/javascript'></script>
<link type="text/css" rel="stylesheet" href="main.css">
<script>
$(document).ready(function() {
$('#myTable').tableHeadFixer({'foot' : true});
});
</script>