Skip to content

Commit 0a7953f

Browse files
committed
added emoticons
1 parent 41f0787 commit 0a7953f

File tree

4 files changed

+85
-58
lines changed

4 files changed

+85
-58
lines changed

emoticons.json

+1
Large diffs are not rendered by default.

people.json

+21-12
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"Linux",
2121
"Emacs"
2222
],
23-
"preferences": ["🌱", "🫖", "🍜", "👥", "💻"]
23+
"emojis": ["🌱", "🫖", "🍜", "👥", "💻"],
24+
"emoticons": [":clsource:", ":elixir:", ":emacs:"]
2425
},
2526
{
2627
"name": "Ivan Mir",
@@ -33,7 +34,8 @@
3334
"scheduling": "https://devschile.slack.com/team/UDBJAJTCL",
3435
"online-only": false,
3536
"topics": ["aplicaciones", "macOS", "iOS", "Android", "C#", ".NET"],
36-
"preferences": ["👥", "💻"]
37+
"emojis": ["👥", "💻"],
38+
"emoticons": []
3739
},
3840
{
3941
"name": "David Lay",
@@ -59,7 +61,8 @@
5961
"Software Teams",
6062
"Node.js"
6163
],
62-
"preferences": ["👥", "💻", "🤖", "🏡", "🔨", "🧰", "🪚"]
64+
"emojis": ["👥", "💻", "🤖", "🏡", "🔨", "🧰", "🪚"],
65+
"emoticons": []
6366
},
6467
{
6568
"name": "Pedro Araya",
@@ -78,7 +81,8 @@
7881
"React",
7982
"Rock climbing / Bouldering"
8083
],
81-
"preferences": ["🍕", "🧗‍♂️", "🍜", "💻", "🥂"]
84+
"emojis": ["🍕", "🧗‍♂️", "🍜", "💻", "🥂"],
85+
"emoticons": []
8286
},
8387
{
8488
"name": "Héctor Palma Téllez",
@@ -99,7 +103,8 @@
99103
"Languages",
100104
"Communication"
101105
],
102-
"preferences": ["🌱", "🫖", "🍜", "👥", "💻", "🚭"]
106+
"emojis": ["🌱", "🫖", "🍜", "👥", "💻", "🚭"],
107+
"emoticons": []
103108
},
104109
{
105110
"name": "Ignacio Rodriguez",
@@ -130,7 +135,7 @@
130135
"LoRa / LoRaWAN & descentralized communications (mesh networking)",
131136
"Smart cities and weather monitoring"
132137
],
133-
"preferences": [
138+
"emojis": [
134139
"🍖",
135140
"🍺",
136141
"🍩",
@@ -143,7 +148,8 @@
143148
"🍜",
144149
"🫖",
145150
"💻"
146-
]
151+
],
152+
"emoticons": []
147153
},
148154
{
149155
"name": "Rodrigo Carmona",
@@ -166,7 +172,8 @@
166172
"Software Development",
167173
"Team Building"
168174
],
169-
"preferences": ["👥", "💻", "🍺", "🚭", "🍕", "🫖", "", "🌭"]
175+
"emojis": ["👥", "💻", "🍺", "🚭", "🍕", "🫖", "", "🌭"],
176+
"emoticons": []
170177
},
171178
{
172179
"name": "Iván Nawrath",
@@ -186,7 +193,7 @@
186193
"Database",
187194
"React"
188195
],
189-
"preferences": [
196+
"emojis": [
190197
"🍖",
191198
"🍺",
192199
"🍩",
@@ -197,7 +204,8 @@
197204
"🚭",
198205
"🌯",
199206
"🍜"
200-
]
207+
],
208+
"emoticons": []
201209
},
202210
{
203211
"city": "Copenhagen",
@@ -208,10 +216,11 @@
208216
"linkedin": "https://www.linkedin.com/in/salgadoadrian/",
209217
"mastodon": "https://devschile.social/@lasagnaandroid",
210218
"name": "Adrián Salgado (Lasagna)",
211-
"preferences": ["💻", "🚭"],
212219
"scheduling": "https://devschile.slack.com/team/U0RA46KCP",
213220
"title": "Software Engineer",
214-
"topics": ["De todo lo que quieran hablar"]
221+
"topics": ["De todo lo que quieran hablar"],
222+
"emojis": ["💻", "🚭"],
223+
"emoticons": []
215224
}
216225
]
217226
}

scripts/README-TEMPLATE.md

+27-24
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,37 @@ El archivo `README.md` se genera automáticamente, no se debe modificar.
1919

2020
Si necesitas ayuda puedes preguntar en el [Slack](https://join.slack.com/t/devschile/shared_invite/zt-28po3lsc2-XZd7gJzd_sKl6RJqnYqFkw).
2121

22-
### Preferencias
22+
### Emojis / Emoticons
2323

2424
En la columna preferencias puedes usar emojis que definan lo que te gusta, si es que se juntan en persona.
2525
Puede ser cualquier emoji pero se recomiendan los siguientes.
2626

27-
- 👥 : Modalidad Presencial
28-
- 💻 : Modalidad Online
29-
- 🌱 : Vegano
30-
- 🍖 : No Vegano
31-
- 🍺 : Cerveza
32-
- 🍷 : Vino
33-
- 🚭 : No Fumador
34-
- 🍜 : Comida Asiática
35-
- 🍕 : Pizzas
36-
- 🌯 : Wraps
37-
- 🫖 : Té
38-
- ☕ : Café
39-
- 🧉 : Mate
40-
- 🍹 : Jugo
41-
- 🥂 : Alcohol
42-
- 🚰 : Agua
43-
- 🍩 : Donas
44-
- 🍟 : Papitas
45-
- 🌭 : Completos
46-
- 🍿 : Cine
47-
- 🍔 : Hamburguesa
48-
- 😶‍🌫️ : 420
49-
27+
- 👥 : Modalidad Presencial
28+
- 💻 : Modalidad Online
29+
- 🌱 : Vegano
30+
- 🍖 : No Vegano
31+
- 🍺 : Cerveza
32+
- 🍷 : Vino
33+
- 🚭 : No Fumador
34+
- 🍜 : Comida Asiática
35+
- 🍕 : Pizzas
36+
- 🌯 : Wraps
37+
- 🫖 : Té
38+
- ☕ : Café
39+
- 🧉 : Mate
40+
- 🍹 : Jugo
41+
- 🥂 : Alcohol
42+
- 🚰 : Agua
43+
- 🍩 : Donas
44+
- 🍟 : Papitas
45+
- 🌭 : Completos
46+
- 🍿 : Cine
47+
- 🍔 : Hamburguesa
48+
- 😶‍🌫️ : 420
49+
50+
También la lista disponible de **Emoticons**:
51+
52+
- [https://github.com/devschile/emoticons](https://github.com/devschile/emoticons)
5053

5154
## 🌿 ¿Cómo me quito?
5255

scripts/write-readme.js

+36-22
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ let path = require("path");
77
path = path.parse(appRoot.path);
88
parentFolderPath = path.dir.split(path.sep).pop();
99
const data = fs.readFileSync(`${parentFolderPath}/people.json`);
10+
const emoticons = JSON.parse(
11+
fs.readFileSync(`${parentFolderPath}/emoticons.json`),
12+
);
1013
const json = JSON.parse(data);
1114

1215
// Order by name
@@ -19,34 +22,45 @@ const header = `|Nombre|Social|Ocupación|Temas|Ubicación|Preferencias|
1922
|---|---|---|---|---|---|
2023
`;
2124

25+
const word2emoticon = (word) => {
26+
return `<img src="${emoticons[word.trim()].url}" style="width:30px;height:30px;">`;
27+
};
28+
2229
const peopleList = json.people
23-
.map(
24-
(person) => {
25-
26-
const socials = [];
27-
['LinkedIn', 'Twitter', 'Mastodon', 'Github', 'Gitlab', 'Codeberg'].forEach(social => {
28-
if (person.hasOwnProperty(social.toLowerCase()) && person[social.toLowerCase()].length > 0) {
29-
socials.push(`[${social}](${person[social.toLowerCase()]})`);
30+
.map((person) => {
31+
const socials = [];
32+
[
33+
"LinkedIn",
34+
"Twitter",
35+
"Mastodon",
36+
"Github",
37+
"Gitlab",
38+
"Codeberg",
39+
].forEach((social) => {
40+
if (
41+
person.hasOwnProperty(social.toLowerCase()) &&
42+
person[social.toLowerCase()].length > 0
43+
) {
44+
socials.push(`[${social}](${person[social.toLowerCase()]})`);
3045
}
31-
});
32-
33-
const flags = {
34-
"chile": "🇨🇱",
35-
"dinamarca": "🇩🇰",
36-
"portugal": "🇵🇹",
37-
"brasil": "🇧🇷"
38-
};
39-
40-
const location = `${person.city} / ${person.country} ${flags[person.country.trim().toLowerCase()]}`;
41-
42-
return `|**[${person.name}](${person.scheduling})**|${socials.join(', ')}|${person.title} en ${person.company}|${person.topics.join(", ")}.|${location}|${person.preferences.join(", ")}|`;
43-
}
44-
)
46+
});
47+
48+
const flags = {
49+
chile: "🇨🇱",
50+
dinamarca: "🇩🇰",
51+
portugal: "🇵🇹",
52+
brasil: "🇧🇷",
53+
};
54+
55+
const location = `${person.city} / ${person.country} ${flags[person.country.trim().toLowerCase()]}`;
56+
57+
return `|**[${person.name}](${person.scheduling})**|${socials.join(", ")}|${person.title} en ${person.company}|${person.topics.join(", ")}.|${location}|${person.preferences.join(", ")} ${person.emoticons.map((item) => word2emoticon(item)).join(",")}|`;
58+
})
4559
.join("\n");
4660

4761
// Write README.md
4862
const template = fs.readFileSync(`${appRoot}/README-TEMPLATE.md`, "utf8");
4963
fs.writeFileSync(
5064
`${parentFolderPath}/README.md`,
51-
template.replace("PLACEHOLDER", [header, peopleList].join(""))
65+
template.replace("PLACEHOLDER", [header, peopleList].join("")),
5266
);

0 commit comments

Comments
 (0)