In order to get the most out of a post-mortem process it is imperative that it be run as inclusively as possible and in a blameless fashion. Always assume non-malicious intent because often the root cause of problems that happen are people making mistakes. The purpose of a post-mortem is for everyone involved to grow and to learn from each other's mistakes in a safe environment which can't happen if blame is being assigned.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gleam/dict.{type Dict} | |
import gleam/erlang/process | |
import gleam/list | |
import gleam/otp/actor | |
type RoomSubject = | |
process.Subject(Command) | |
type ClientSubject = | |
process.Subject(Message) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import multiprocessing | |
class CPU(multiprocessing.Process): | |
def __init__(self, memory, input=None, output=None): | |
super(CPU, self).__init__() | |
self.memory = memory | |
self.input = input | |
self.output = output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import collections | |
import urllib | |
import sys | |
sides = [arg.upper() for arg in sys.argv[1:]] | |
letters = set("".join(sides)) | |
word_list = urllib.urlopen("https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt") | |
# word_list = open("/usr/share/dict/words") |
Pipeline #1
stage("build") {
echo "in build"
}
stage("deploy to prod") {
input message: "Deploy to prod?"
milestone(ordinal: 20, label: "prod")
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
class Node(object): | |
def __init__(self, value): | |
self.value = value | |
self.left = self.right = None | |
self.first = self.last = self | |
def __repr__(self): | |
return "Node(value=%d, first=%d, last=%d)" % (self.value, self.first.value, self.last.value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bazaarvoice.jackson; | |
import com.fasterxml.jackson.annotation.JsonCreator; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonSubTypes; | |
import com.fasterxml.jackson.annotation.JsonTypeInfo; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.MappingJsonFactory; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.datatype.guava.GuavaModule; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Jenkins Swarm Client | |
# | |
# chkconfig: 2345 89 9 | |
# description: jenkins-swarm-client | |
source /etc/rc.d/init.d/functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o errexit | |
set -o nounset | |
function data() { | |
# f(x) = x^2 + noise(500) | |
# g(x) = x^2 + noise(2500) | |
for i in {1..100}; do | |
fx=$((i*i + $RANDOM%1000 - 500)) | |
gx=$((i*i + $RANDOM%5000 - 2500)) |
NewerOlder