Skip to content

Instantly share code, notes, and snippets.

# so definiert man eine Funktion
def permutations(numbers):
# wenn die Liste nur eine Zahl enthält,
# können wir sie direkt zurückgeben
if len(numbers) == 1:
return [numbers]
# die leere Liste hier benutzen wir
# um die Ergebnisse zwischenzuspeichern
result = []
prices = [9, 9, 12, 12, 12, 15, 16, 20]
new_prices = []
# The lowest price has to be a reduces price
# Then calculate the original price from that
# remove both from the prices list and do it again
def solve (prices, new_prices):
if len(prices) == 0:
return new_prices
import itertools
import math
items = [10, 3, 4, 10]
steps = 10
def make(a, b):
print(a, b)
result = []
'use strict'
var tags = {
'a': ['b', 'c', 'd'],
'b': ['c', 'd'],
'c': ['d'],
'd': [],
'e': [],
'f': ['a']
}
'use strict'
const tags = {
'1': ['2'],
'2': ['1', '5'],
'3': ['4'],
'4': ['3', '5'],
'5': ['6'],
'6': ['7'],
'7': ['8'],
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Animation</title>
<meta name="description" content="FDSAnimation">
<meta name="author" content="katze">

.vimrc

set columns=80 set encoding=utf-8

im Terminal

defaults write com.googlecode.iterm2 HotkeyTermAnimationDuration -float 0.00001

@danieldiekmeier
danieldiekmeier / gist:efd38967f388ad465ff8
Last active August 29, 2015 14:11
Wörter, die auf -al enden
Aal
Abbaumaterial
Abdeckmaterial
Abwehrpotential
Admiral
Aermelkanal
Alarmsignal
Alpenpokal
Analogsignal
Anklagematerial
@danieldiekmeier
danieldiekmeier / gist:ef9f105937e27a28fa0c
Created December 11, 2014 11:23
Sublime Test Settings 141211
{
"caret_style": "phase",
"color_scheme": "Packages/User/earthsong-light.tmTheme",
"draw_white_space": "all",
"file_exclude_patterns":
[
"*.ctxt",
"*.class",
"bluej.*",
".DS_Store",
# Use Cases & Scenarios
## Use Cases
- Searching for product
- Listing the available products with further information
- Updating existing products
- Creating new products
- Buying a product
- Choosing a language