Skip to content

Instantly share code, notes, and snippets.

View Ichag's full-sized avatar

Max Hellwig Ichag

  • Bielefeld, Germany
View GitHub Profile
@Ichag
Ichag / machine.js
Created December 2, 2020 15:46
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Ichag
Ichag / Countdown.vue
Last active July 24, 2018 10:02
Countdown.vue component! Created in a vue-cli-3. In order to use it you need typescript ( https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-typescript ) and pug (https://github.com/jaeming/vue-cli-plugin-pug) plugins installed, otherwise you have to convert it to plain html and js. Usage: <Countdown date="June 07, 2019"/>
<template lang="pug">
.countdown-to
.container
.row
.col-sm
p.digit {{ days | two_digits }}
p.text(v-t="'days'")
.col-sm
p.digit {{ hours | two_digits }}
p.text(v-t="'hours'")
@Ichag
Ichag / file
Created October 22, 2016 14:04
freedom_public
{"0.34197018657234457":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMEbanrD3DprdCyViH0HveFvhSSLLM6k36W\r\nSw6cGdOAFPdd2spELfgacglGB5lWfsq9MsTREjVBihoZtl2eyLZ4F83/AAAACDxn\r\naXRodWI+wv8AAACOBBATCABA/wAAAAWCWAtx4v8AAAACiwn/AAAACZArStH+Rxn+\r\nq/8AAAAFlQgJCgv/AAAABJYDAQL/AAAAApsD/wAAAAKeAQAA20EBAIo9oOEXuvvC\r\nSFzTclXY7WfB9vXQsxzPz7we9KhVZAutAQCUCqd7Vjn0o57PEmIggAQdJywPmoXD\r\nSu0/cDhXpX/F7c7/AAAAVgQAAAAAEggqhkjOPQMBBwIDBNCG4XJ57mwKyjWgGYBq\r\naMj8IFem4LYOIr+2rZ1dH8PfdtcRO3mXda/nFgv6T9900jstYZhEIOVOd7U0d3ZQ\r\nYEIDAQgHwv8AAABtBBgTCAAf/wAAAAWCWAtx4v8AAAAJkCtK0f5HGf6r/wAAAAKb\r\nDAAAm3YBANWBpjKQWM0vfOR7XCpX2Vj3ZZ1mB4RAaYj4aD+kze+nAQCJ6SaQKiwY\r\nWn1SQDO+cUmckdlmHkoqnJPEtOxgS/FQSw==\r\n=kWub\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"}
@Ichag
Ichag / testinram.sh
Created August 5, 2016 12:43 — forked from foertel/testinram.sh
Run TYPO3 functional tests in ramdisk for speeeeeed ...
#!/bin/bash
#
# This script will
# * fire up a ramdisk
# * start a mysql server using it as storage
# * copying your typo3 database to ram
# * run the tests
# * clean up
#
# use -k as parameter to clean-up after a failed run
@Ichag
Ichag / preseed.cfg
Created December 17, 2013 19:19
Debian 7.2 preseed.cfg with focus on a virtualbox development environment.
## Options to set on the command line
d-i debian-installer/language string en
d-i debian-installer/country string US
d-i debian-installer/locale string en_GB.UTF-8
# Optionally specify additional locales to be generated.
d-i localechooser/supported-locales multiselect en_US.UTF-8, de_DE.UTF-8
# Keyboard selection.
# keymap is an alias for keyboard-configuration/xkb-keymap
d-i keymap select de
#!/bin/sh
### BEGIN INIT INFO
# Provides: openerp-server
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@Ichag
Ichag / Bundesland.java
Last active December 18, 2015 23:08
Laender und Staedte
/**
*
* @author max
*/
import java.util.ArrayList;
public class Bundesland extends Land {
public Bundesland(String name) {
super(name);
@Ichag
Ichag / Anwendung
Created June 19, 2013 08:38
A little Java-"Program"
import java.util.*;
public class Anwendung {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub