Skip to content

Instantly share code, notes, and snippets.

View Frikki's full-sized avatar
Welcome to the Thunder Dome

Frederik Krautwald Frikki

Welcome to the Thunder Dome
View GitHub Profile
#
# @author Jonathon byrd
#
############################################################
# first things first, set your iptables for a web server. If you jack these
# up you don't want to have to re-install your os after doing much more.
# @see http://www.thegeekstuff.com/2011/06/iptables-rules-examples/
# and
# @see https://help.ubuntu.com/community/IptablesHowTo
@Frikki
Frikki / dialogue.js
Last active October 3, 2017 08:34
Simple Cycle.js (Nested) Dialogue with MVI Example
/** @jsx hJSX */
import {hJSX} from '@cycle/dom';
const DIALOGUE_NAME = `dialogue`;
let idSuffix = 0;
function makeCycleId() {
return `${DIALOGUE_NAME}-${idSuffix++}`;
@Frikki
Frikki / gh-labels.sh
Last active January 28, 2018 18:07
Default issue labels for Github repos.
#!/usr/bin/env bash
echo -n "Username: "
read USER
echo -n "Password: "
read -s PASS
echo -n "Repo (e.g., foo/bar): "
read REPO
@Frikki
Frikki / esnextbin.md
Created November 12, 2016 18:00
esnextbin sketch
@Frikki
Frikki / esnextbin.md
Last active November 15, 2016 08:54
esnextbin sketch
@Frikki
Frikki / esnextbin.md
Last active November 21, 2016 11:12
esnextbin sketch
@Frikki
Frikki / esnextbin.md
Last active November 25, 2016 16:33
esnextbin sketch
@Frikki
Frikki / esnextbin.md
Last active May 1, 2017 15:53
esnextbin sketch
@Frikki
Frikki / esnextbin.md
Last active June 6, 2017 15:59
esnextbin sketch
@Frikki
Frikki / functional-typescript-naming-convention.md
Last active March 18, 2018 17:49
Functional TypeScript naming convention.

Functional TypeScript Naming Convention

Motivation

Giving names in a language that doesn't support function overloading is a challenging task. It is, however, important to follow some standards to avoid naming conflicts, misleading names, and also to maintain a unified style. The following rules were developed to encourage programming in a functional style in TypeScript, but can also be used anywhere else where it makes sense.

Disclaimer

The following rules are work in progress, and far from being complete, your questions and ideas are welcome. Please leave a comment.

Goals

  • Avoid naming conflicts and misleading names.