Skip to content

Instantly share code, notes, and snippets.

@sebastianhaas
sebastianhaas / .bootstraprc.yaml
Created January 30, 2017 10:21
.bootstraprc for bootstrap@4.0.0-alpha.6 with bootstrap-loader@2.0.0-beta.20
---
# Output debugging info
# loglevel: debug
# Major version of Bootstrap: 3 or 4
bootstrapVersion: 4
# If Bootstrap version 4 is used - turn on/off flexbox model
useFlexbox: true
@sebastianhaas
sebastianhaas / pbshare.html
Last active October 30, 2017 09:09
Examplary Practice Session Result
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Sebastian's Practice Bird Score</title>
<meta property="og:title" content="Sebastian's Practice Bird Score" />
<meta property="og:description" content="Sebastian's just finished playing Air by Johann Sebastian Bach" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://your localtunnel/pst share url" />
<meta property="og:image" content="https://targetjobs.co.uk/sites/targetjobs.co.uk/files/public/field_ad_org_logo/birdandbird-logo.gif" />
@sebastianhaas
sebastianhaas / fridge.md
Last active April 11, 2018 13:52
Tapkey

Unfortunately, the mini fridge for our coffee machine seems to have either a broken power switch or a broken cable. If you move it, it will likely stop working and our milk will turn sour which I find particularly unpleasant. So, if you feel like replacing the milk, take some extra care not to displace the fridge.

@sebastianhaas
sebastianhaas / aoc1.py
Created December 3, 2019 13:41
Advent of Code 2019 Day 1
import math
def calc_total_fuel(masses):
fuel_sum = 0
for x in masses:
fuel_sum += calc_fuel(x)
return fuel_sum
def calc_fuel(mass):
fuel = math.floor(mass / 3.0) - 2