- Rebased with current master
- There are tests for new feature/bugfix
- Tests pass
- Changes arm relevant only to the current feature/bugfix[URC]
- Does it have proper logging?
- Does it use network? what if there's a network error?
- Does it write to disk? what if the disk is full?
- Have you considered other edge cases, other than "happy paths"? What is the edge case?
This file contains hidden or 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
s = filterM (const [True, False]) |
This file contains hidden or 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
queue_directory = /private/var/spool/postfix | |
command_directory = /usr/sbin | |
daemon_directory = /usr/libexec/postfix | |
data_directory = /var/lib/postfix | |
mail_owner = _postfix | |
inet_interfaces = $myhostname, localhost | |
mydestination = $myhostname, localhost.$mydomain, localhost | |
unknown_local_recipient_reject_code = 550 | |
debug_peer_level = 2 | |
debugger_command = |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
### NOTE: you need to run | |
# vagrant plugin install vagrant-docker-compose | |
# before running this to make docker-compose provisioner work | |
Vagrant.configure("2") do |config| | |
config.vm.box = "cbednarski/ubuntu-1604-large" | |
# Create a forwarded port mapping which allows access to a specific port |
This file contains hidden or 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
# Toiminnallisuus tiiviisti: peli lukee komentoriviltä käytettyjen kirjainten | |
# määrän. Ohjelma arpoo sen jälkeen näin monta kirjainta. Pelaaja muodostaa | |
# näistä mahdollisimman monta sanaa syöttämällä joko sanan tai pisteen (.) jos | |
# ei enää kykene muodostamaan sanoja. | |
# | |
# Sana pisteytetään vain, jos se löytyy annetusta sanastosta. Pisteyttämiseen on | |
# annettu valmiiksi oma funktio. Sanan pitää olla ainakin 2 merkkiä pitkä, jotta | |
# siitä saa pisteitä. | |
# | |
# Kunkin syötteen jälkeen ja lopetettaessa peli kertoo, montako pistettä |
This file contains hidden or 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
AAKKOSET = ('a'..'z').to_a | |
AAKKOS_LKM = 20 | |
def jaa_aakkoset | |
taulukko = [] | |
AAKKOS_LKM.times do | |
taulukko.push(AAKKOSET.sample) | |
end | |
taulukko |
This file contains hidden or 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
AAKKOSET = ('a'..'z').to_a | |
AAKKOS_LKM = 7 | |
def jaa_aakkoset | |
taulukko = [] | |
AAKKOS_LKM.times do | |
taulukko.push(AAKKOSET.sample) | |
end | |
taulukko |
This file contains hidden or 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
NIMI_INDEKSI = 0 | |
PITUUS_INDEKSI = 1 | |
MASSA_INDEKSI = 2 | |
SUKUPUOLI_INDEKSI = 3 | |
ihmiset = [ | |
["Ed", 1.84, 90, 'm'], | |
["Jaakko", 1.75, 62, 'm'], | |
["Anne", 1.65, 53, 'f'], | |
["Pertti", 1.9, 95, 'm'] |
This file contains hidden or 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
jäsenet = ["Ed", "Liisa", "Pertti"] | |
jäsenet.each do |nimi| | |
puts nimi | |
end | |
# Yleinen muoto käydä läpi taulukkoja: | |
# taulukko.each do |alkio| | |
# .. tee jotain muuttujalla 'alkio' | |
# end |
This file contains hidden or 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
# Rekursiosta: kertoma | |
# | |
# n! = n * n-1 * n-2 * .. * 1 | |
# | |
# Esim. | |
# 2! = 2 * 1 | |
# 3! = 3 * 2 * 1 = 6 | |
# 4! = 4 * 3 * 2 * 1 = 24 | |
# 5! = 5 * 4 * 3 * 2 * 1 = 120 | |
# 6! = 6 ... = 720 |