Skip to content

Instantly share code, notes, and snippets.

View DoubleMalt's full-sized avatar

Christoph Witzany DoubleMalt

View GitHub Profile
@DoubleMalt
DoubleMalt / technical-due-diligence.md
Last active October 4, 2019 18:20
A checklist what you should ask when talking over a code base

Technical Due Diligence

Architecture

  • Component Overview
  • Technologies (DB, Languages, Frameworks)

Functionalities

import re
from urllib2 import urlopen
import BeautifulSoup as BS
def main():
url = "http://quotes.yourdictionary.com/theme/marriage/"
page = urlopen(url).read()
soup = BS.BeautifulSoup(page)
all_quotes = soup.findAll(attrs={"class": "QuotesAndNotes"})
@DoubleMalt
DoubleMalt / menu.py
Last active November 16, 2017 21:38 — forked from kiwiBBC/menu.py
print "Welcome to our fabulous menu creator!"
menu_dict = {}
while True:
dish = raw_input("Please enter a dish: ")
price = raw_input("Please enter a price for the dish: ")
menu_dict[dish] = price
new = raw_input("Would you like to enter another dish? (yes/no) ").lower()
if new == "no" or new == "n":
break
@DoubleMalt
DoubleMalt / fizzbuzz.py
Last active November 14, 2017 17:44 — forked from kiwiBBC/fizzbuzz.py
answer = int(raw_input("select a number between 1 and 100: "))
if answer < 1 or answer > 100:
print "Wrong number!"
else:
for x in range (1, answer + 1):
if x % 5 == 0 and x % 3 == 0:
print "fizzbuzz"
elif x % 5 == 0:
print "buzz"
elif x % 3 == 0:
@DoubleMalt
DoubleMalt / converter.py
Last active November 15, 2017 07:33 — forked from Manuela82/converter.py
converter
print "Hello, I'm converting kilometers into miles.\n"
answer = "yes"
while answer == "yes" or answer == "y":
kilometres = raw_input("Please enter the amount of kilometres: ")
miles = float(kilometres) * 0.621372
print miles
answer = raw_input("Do you want to do another conversion? ").lower()
from urllib2 import urlopen
from BeautifulSoup import BeautifulSoup
import re
url = 'https://scrapebook22.appspot.com'
response = urlopen(url).read()
soup = BeautifulSoup(response)
https://github.com/moccadroid/hello_bot/tree/openshift
http://tutorial.djangogirls.org/en/index.html
@DoubleMalt
DoubleMalt / keybase.md
Created February 11, 2016 14:59
keybase.md

Keybase proof

I hereby claim:

  • I am DoubleMalt on github.
  • I am doublemalt (https://keybase.io/doublemalt) on keybase.
  • I have a public key whose fingerprint is 6A1C 463C A4CE 9772 CF1B 3E08 CE52 2B04 4E4E 2481

To claim this, I am signing this object:

[Unit]
Description=Docker registry mirror
After=docker.service
Requires=docker.service
[Service]
Environment=UNIT=docker-registry-mirror
TimeoutStartSec=0
ExecStartPre=/usr/bin/docker pull registry
ExecStartPre=-/usr/bin/docker run --name ${UNIT}-dvc -v /tmp/registry busybox true
%*************************************************************************%
%%------------A SHORT INTRODUCTION TO MATLAB VIA EXAMPLES----------------%%
%*************************************************************************%
%This short introduction to Matlab will take you through the essentials you
%will need for your problem sets. There will be times when you will need
%to look up stuff on your own. To that end, the INTERNET is useful, but
%also the command: help. Here's how you use it:
help sum