-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContents.elm
More file actions
164 lines (138 loc) · 4.05 KB
/
Contents.elm
File metadata and controls
164 lines (138 loc) · 4.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
module Contents exposing (..)
-- Todo
-- Fix typos
title =
"Lambda study group!"
description =
"""
O intuito do grupo é a participação coletiva de todos e o aprendizado de
cada um. No grupo do telegram você pode tirar dúvidas, sugerir projetos e
conversar sobre temas relacionados à programação funcional. Para praticar
temos alguns repositórios em que você pode resolver alguns exercicios.
"""
invite =
"Entre no nosso grupo do "
telegramLinkData =
{ url = "https://t.me/lambdastudygroup"
, label = "Telegram"
}
githubLinkData =
{ url = "https://github.com/lambda-study-group"
, label = "GitHub"
}
languages =
( [ { label = "OCaml"
, rot = 15
, scale = 1
, translate = ( 0, -5 )
, url = "https://ocaml.org/"
}
, { label = "SML"
, rot = -15
, scale = 1.3
, translate = ( -30, 15 )
, url = "https://en.wikipedia.org/wiki/Standard_ML"
}
, { label = "Erlang"
, rot = -5
, scale = 1.2
, translate = ( -30, 15 )
, url = "https://www.erlang.org/"
}
, { label = "F#"
, rot = -2
, scale = 1.4
, translate = ( -20, -5 )
, url = "https://fsharp.org/"
}
, { label = "Elixir"
, rot = 10
, scale = 1.3
, translate = ( -20, 20 )
, url = "https://elixir-lang.org/"
}
]
, [ { label = "Clojure"
, rot = -7
, scale = 1.18
, translate = ( 10, 0 )
, url = "https://clojure.org/"
}
, { label = "Elm"
, rot = 15
, scale = 1.4
, translate = ( 10, 10 )
, url = "https://elm-lang.org/"
}
, { label = "Scala"
, rot = -20
, scale = 1.2
, translate = ( 10, 0 )
, url = "https://www.scala-lang.org/"
}
, { label = "Scheme"
, rot = -4
, scale = 1.3
, translate = ( -30, 20 )
, url = "https://en.wikipedia.org/wiki/Scheme_(programming_language)"
}
, { label = "Haskell"
, rot = 10
, scale = 1.5
, translate = ( -20, 15 )
, url = "https://www.haskell.org/"
}
]
)
projects =
{ title = "Projetos Atuais"
, content =
[ [ "https://github.com/lambda-study-group/telegram-bot"
, "Telegram Bot"
]
, [ "https://github.com/lambda-study-group/awesome-functional-studies"
, "Juntar conteúdo acadêmico e prático de várias linguagens em um awesome"
]
, [ "https://github.com/lambda-study-group/dicionario-termos-funcionais"
, "Dicionário de tradução de termos funcionais"
]
, [ "https://github.com/lava-jato-the-game/lava_jato"
, "Desenvolvimento do jogo da Lava Jato com Phoenix(Absinthe) / ClojureScript"
]
]
}
exercices =
{ title = "Resolução de Exercícios"
, content =
[ [ "https://github.com/lambda-study-group/desafios"
, "Desafios"
]
, [ "https://github.com/lambda-study-group/sicp"
, "Exercícios do livro SICP em várias linguagens diferentes"
]
, [ "https://github.com/lambda-study-group/hacker-rank"
, "Exercícios da trilha de programação funcional do HackerRank"
]
, [ "https://github.com/lambda-study-group/exercism"
, "Exercícios de linguagens funcionais no Exercism"
]
]
}
translations =
{ title = "Traduções"
, content =
[ [ "https://github.com/lambda-study-group/Functional-Light-JS"
, "Tradução do Functional Light Programming"
]
]
}
toLinkData list =
case list of
[ url, label ] ->
{ url = url, label = label }
_ ->
{ url = "", label = "" }
convertRepository ({ content } as data) =
{ title = data.title, content = List.map toLinkData content }
repositories =
List.map convertRepository [ projects, exercices, translations ]