Skip to content

Instantly share code, notes, and snippets.

@tmiele
tmiele / peter_deutsch_quotes.txt
Created March 3, 2019 17:43
The Eight Fallacies of Distributed Computing
The Eight Fallacies of Distributed Computing
Essentially everyone, when they first build a distributed application, makes the following eight assumptions. All prove to be false in the long run and all cause big trouble and painful learning experiences.
1. The network is reliable
2. Latency is zero
3. Bandwidth is infinite
4. The network is secure
5. Topology doesn’t change
6. There is one administrator
@tmiele
tmiele / stereotype.go
Created January 31, 2017 13:27
golang slice range polymorphism interface
package main
import "fmt"
type Human interface {
myStereotype() string
sex() string
}
type Man struct {
@tmiele
tmiele / app.html
Last active August 30, 2016 20:41
AngularJS Todo list with Slim 3 PHP server
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
<body ng-app="myApp" >
<header ng-controller="JeanCtrl as jean">
<h1>Hello {{jean.name}}</h1>
@tmiele
tmiele / clean
Created August 4, 2014 16:28
epitech-clean-script
#!/bin/sh -e
clean()
{
rm -rfv $1/.*~
rm -rfv $1/*~
rm -rfv $1/*.default
rm -rfv $1/*.sample
}