https://github.com/chneau/anecdote
Ca donne une anecdote quoi !
https://github.com/chneau/anecdote
anecdote golang scmb
Last synced: 7 months ago
JSON representation
Ca donne une anecdote quoi !
- Host: GitHub
- URL: https://github.com/chneau/anecdote
- Owner: chneau
- License: mit
- Created: 2018-07-19T11:00:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-14T15:00:56.000Z (about 7 years ago)
- Last Synced: 2025-02-10T20:19:17.384Z (over 1 year ago)
- Topics: anecdote, golang, scmb
- Language: Go
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# anecdote
Ca donne une french anecdote !
# Install
You will need go installed. (`sudo apt install golang-go` or `choco install go` ...)
The following command will install the binary.
You can invoke the program by typing `anecdote`. (or `anecdote.exe` for windows)
```bash
go get -u -v github.com/chneau/anecdote
```
# Usage
To get an anecdote:
```bash
$ anecdote
En France, il est interdit de s'embrasser sur des rails.
```
The default source is SI which is "Savoir Inutile".
You can specify the source as SI or SCMB. ("Se Coucher Moins Bete")
```bash
$ anecdote SI
Dans le premier film Rambo, sorti en 1982, il n'y a qu'un seul mort, alors que dans le film Titanic de James Cameron sorti en 1997, on en dénombre 307.
```
SCMB shows the title followed by the content of the anecdote.
```bash
$ anecdote SCMB
Etre éboueur à New York est un job de rêve
Etre éboueur dans la ville de New-York est un bon poste, à cause du salaire et l'image positive qu'ils suscitent dans la population. En effet, ils peuvent gagner jusqu'à 70 000 dollars par an et sont considérés comme des « héros » du quotidien. Un métier tellement prisé qu'il existe une liste d'attente de 8 ans pour y postuler.
```