Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Diekmeier danieldiekmeier

View GitHub Profile
View concatenated_integers.py
# 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 = []
View codys_jams.py
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
View rolling-average.py
import itertools
import math
items = [10, 3, 4, 10]
steps = 10
def make(a, b):
print(a, b)
result = []
View transitivity.js
'use strict'
var tags = {
'a': ['b', 'c', 'd'],
'b': ['c', 'd'],
'c': ['d'],
'd': [],
'e': [],
'f': ['a']
}
View tarjan.js
'use strict'
const tags = {
'1': ['2'],
'2': ['1', '5'],
'3': ['4'],
'4': ['3', '5'],
'5': ['6'],
'6': ['7'],
'7': ['8'],
View threesteep.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Animation</title>
<meta name="description" content="FDSAnimation">
<meta name="author" content="katze">
View gist:ad2db65f08eddfd3957d

.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 Aug 29, 2015
Wörter, die auf -al enden
View gist:efd38967f388ad465ff8
Aal
Abbaumaterial
Abdeckmaterial
Abwehrpotential
Admiral
Aermelkanal
Alarmsignal
Alpenpokal
Analogsignal
Anklagematerial
View gist:ef9f105937e27a28fa0c
{
"caret_style": "phase",
"color_scheme": "Packages/User/earthsong-light.tmTheme",
"draw_white_space": "all",
"file_exclude_patterns":
[
"*.ctxt",
"*.class",
"bluej.*",
".DS_Store",
View Info 3, Lab 2, Korrekturen
# 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
You can’t perform that action at this time.