Commit 86f8d789 authored by Thierry Martinez's avatar Thierry Martinez
Browse files

Exercise

parent 1e7fce48
all: slideshow.html
slideshow.html: slideshow.css README.md
markdown-to-slides -s $^ -o $@
# Coding-dojo @ Inria de Paris 2016-11-17: Gitlab
![Gitlab Home](gitlab-home.png)
---
## Documentation/Support: Read the doc!
Link on the front page:
https://gitlab.inria.fr/siteadmin/doc/wikis/home
TODO: How to access to the doc when logged in?
![Link to the doc](doc-link.png)
---
### wiki
### FAQ
### https://helpdesk.inria.fr (with an Inria account)
### sed-forge.helpdesk-prc@inria.fr
---
## Account
### iLDAP
### non-Inria users: https://gitlab-account.inria.fr
---
## Limits: 50 projects/user, 2Go data/project
![Gitlab Limits](limits.png)
---
## Security
### Two-factor authentication
### Tokens
## Emails on push
## Issue tracker
## Wiki
## Groups
Transfer project Namespace
## Pull request
## Automatic issue closing
## Keyboard shortcut
## Protected branches
## Rewrite history
## Continuous integration
.PHONY: all
all: test
.PHONY: test
test:
PYTHONPATH=. python test/wordcount_test.py
import unittest
import mock
import wordcount
class TestWordCount(unittest.TestCase):
@mock.patch("sys.stdin.readlines", create=True, new=mock.MagicMock(return_value=["a b c"]))
def test_one_line(self):
with mock.patch("sys.stdout") as stdout_mock:
wordcount.main()
stdout_mock.write.assert_any_call("3")
if __name__ == "__main__":
unittest.main()
import sys
def main():
data = sys.stdin.readlines()
print(len(" ".join(data).split(" ")))
if __name__ == "__main__":
main()
body {
font-family: sans-serif;
}
.remark-slide-content h1 {
font-size: 1.5em;
}
.remark-slide-content h2 {
font-size: 1.4em;
}
.remark-slide-content h3 {
font-size: 1.3em;
}
img {
width: 100%;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment