Skip to content

Commit

Permalink
added emoticons
Browse files Browse the repository at this point in the history
  • Loading branch information
clsource committed Apr 30, 2024
1 parent 41f0787 commit 0a7953f
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 58 deletions.
1 change: 1 addition & 0 deletions emoticons.json

Large diffs are not rendered by default.

33 changes: 21 additions & 12 deletions people.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"Linux",
"Emacs"
],
"preferences": ["🌱", "🫖", "🍜", "👥", "💻"]
"emojis": ["🌱", "🫖", "🍜", "👥", "💻"],
"emoticons": [":clsource:", ":elixir:", ":emacs:"]
},
{
"name": "Ivan Mir",
Expand All @@ -33,7 +34,8 @@
"scheduling": "https://devschile.slack.com/team/UDBJAJTCL",
"online-only": false,
"topics": ["aplicaciones", "macOS", "iOS", "Android", "C#", ".NET"],
"preferences": ["👥", "💻"]
"emojis": ["👥", "💻"],
"emoticons": []
},
{
"name": "David Lay",
Expand All @@ -59,7 +61,8 @@
"Software Teams",
"Node.js"
],
"preferences": ["👥", "💻", "🤖", "🏡", "🔨", "🧰", "🪚"]
"emojis": ["👥", "💻", "🤖", "🏡", "🔨", "🧰", "🪚"],
"emoticons": []
},
{
"name": "Pedro Araya",
Expand All @@ -78,7 +81,8 @@
"React",
"Rock climbing / Bouldering"
],
"preferences": ["🍕", "🧗‍♂️", "🍜", "💻", "🥂"]
"emojis": ["🍕", "🧗‍♂️", "🍜", "💻", "🥂"],
"emoticons": []
},
{
"name": "Héctor Palma Téllez",
Expand All @@ -99,7 +103,8 @@
"Languages",
"Communication"
],
"preferences": ["🌱", "🫖", "🍜", "👥", "💻", "🚭"]
"emojis": ["🌱", "🫖", "🍜", "👥", "💻", "🚭"],
"emoticons": []
},
{
"name": "Ignacio Rodriguez",
Expand Down Expand Up @@ -130,7 +135,7 @@
"LoRa / LoRaWAN & descentralized communications (mesh networking)",
"Smart cities and weather monitoring"
],
"preferences": [
"emojis": [
"🍖",
"🍺",
"🍩",
Expand All @@ -143,7 +148,8 @@
"🍜",
"🫖",
"💻"
]
],
"emoticons": []
},
{
"name": "Rodrigo Carmona",
Expand All @@ -166,7 +172,8 @@
"Software Development",
"Team Building"
],
"preferences": ["👥", "💻", "🍺", "🚭", "🍕", "🫖", "", "🌭"]
"emojis": ["👥", "💻", "🍺", "🚭", "🍕", "🫖", "", "🌭"],
"emoticons": []
},
{
"name": "Iván Nawrath",
Expand All @@ -186,7 +193,7 @@
"Database",
"React"
],
"preferences": [
"emojis": [
"🍖",
"🍺",
"🍩",
Expand All @@ -197,7 +204,8 @@
"🚭",
"🌯",
"🍜"
]
],
"emoticons": []
},
{
"city": "Copenhagen",
Expand All @@ -208,10 +216,11 @@
"linkedin": "https://www.linkedin.com/in/salgadoadrian/",
"mastodon": "https://devschile.social/@lasagnaandroid",
"name": "Adrián Salgado (Lasagna)",
"preferences": ["💻", "🚭"],
"scheduling": "https://devschile.slack.com/team/U0RA46KCP",
"title": "Software Engineer",
"topics": ["De todo lo que quieran hablar"]
"topics": ["De todo lo que quieran hablar"],
"emojis": ["💻", "🚭"],
"emoticons": []
}
]
}
51 changes: 27 additions & 24 deletions scripts/README-TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,37 @@ El archivo `README.md` se genera automáticamente, no se debe modificar.

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

### Preferencias
### Emojis / Emoticons

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

- 👥 : Modalidad Presencial
- 💻 : Modalidad Online
- 🌱 : Vegano
- 🍖 : No Vegano
- 🍺 : Cerveza
- 🍷 : Vino
- 🚭 : No Fumador
- 🍜 : Comida Asiática
- 🍕 : Pizzas
- 🌯 : Wraps
- 🫖 : Té
- ☕ : Café
- 🧉 : Mate
- 🍹 : Jugo
- 🥂 : Alcohol
- 🚰 : Agua
- 🍩 : Donas
- 🍟 : Papitas
- 🌭 : Completos
- 🍿 : Cine
- 🍔 : Hamburguesa
- 😶‍🌫️ : 420

- 👥 : Modalidad Presencial

Check failure on line 27 in scripts/README-TEMPLATE.md

View workflow job for this annotation

GitHub Actions / markdown-check

Spaces after list markers

scripts/README-TEMPLATE.md:27:1 MD030/list-marker-space Spaces after list markers [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md030.md
- 💻 : Modalidad Online

Check failure on line 28 in scripts/README-TEMPLATE.md

View workflow job for this annotation

GitHub Actions / markdown-check

Spaces after list markers

scripts/README-TEMPLATE.md:28:1 MD030/list-marker-space Spaces after list markers [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md030.md
- 🌱 : Vegano

Check failure on line 29 in scripts/README-TEMPLATE.md

View workflow job for this annotation

GitHub Actions / markdown-check

Spaces after list markers

scripts/README-TEMPLATE.md:29:1 MD030/list-marker-space Spaces after list markers [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md030.md
- 🍖 : No Vegano

Check failure on line 30 in scripts/README-TEMPLATE.md

View workflow job for this annotation

GitHub Actions / markdown-check

Spaces after list markers

scripts/README-TEMPLATE.md:30:1 MD030/list-marker-space Spaces after list markers [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md030.md
- 🍺 : Cerveza

Check failure on line 31 in scripts/README-TEMPLATE.md

View workflow job for this annotation

GitHub Actions / markdown-check

Spaces after list markers

scripts/README-TEMPLATE.md:31:1 MD030/list-marker-space Spaces after list markers [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md030.md
- 🍷 : Vino

Check failure on line 32 in scripts/README-TEMPLATE.md

View workflow job for this annotation

GitHub Actions / markdown-check

Spaces after list markers

scripts/README-TEMPLATE.md:32:1 MD030/list-marker-space Spaces after list markers [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md030.md
- 🚭 : No Fumador

Check failure on line 33 in scripts/README-TEMPLATE.md

View workflow job for this annotation

GitHub Actions / markdown-check

Spaces after list markers

scripts/README-TEMPLATE.md:33:1 MD030/list-marker-space Spaces after list markers [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md030.md
- 🍜 : Comida Asiática

Check failure on line 34 in scripts/README-TEMPLATE.md

View workflow job for this annotation

GitHub Actions / markdown-check

Spaces after list markers

scripts/README-TEMPLATE.md:34:1 MD030/list-marker-space Spaces after list markers [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md030.md
- 🍕 : Pizzas

Check failure on line 35 in scripts/README-TEMPLATE.md

View workflow job for this annotation

GitHub Actions / markdown-check

Spaces after list markers

scripts/README-TEMPLATE.md:35:1 MD030/list-marker-space Spaces after list markers [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md030.md
- 🌯 : Wraps

Check failure on line 36 in scripts/README-TEMPLATE.md

View workflow job for this annotation

GitHub Actions / markdown-check

Spaces after list markers

scripts/README-TEMPLATE.md:36:1 MD030/list-marker-space Spaces after list markers [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md030.md
- 🫖 : Té
- ☕ : Café
- 🧉 : Mate
- 🍹 : Jugo
- 🥂 : Alcohol
- 🚰 : Agua
- 🍩 : Donas
- 🍟 : Papitas
- 🌭 : Completos
- 🍿 : Cine
- 🍔 : Hamburguesa
- 😶‍🌫️ : 420

También la lista disponible de **Emoticons**:

- [https://github.com/devschile/emoticons](https://github.com/devschile/emoticons)

## 🌿 ¿Cómo me quito?

Expand Down
58 changes: 36 additions & 22 deletions scripts/write-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ let path = require("path");
path = path.parse(appRoot.path);
parentFolderPath = path.dir.split(path.sep).pop();
const data = fs.readFileSync(`${parentFolderPath}/people.json`);
const emoticons = JSON.parse(
fs.readFileSync(`${parentFolderPath}/emoticons.json`),
);
const json = JSON.parse(data);

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

const word2emoticon = (word) => {
return `<img src="${emoticons[word.trim()].url}" style="width:30px;height:30px;">`;
};

const peopleList = json.people
.map(
(person) => {

const socials = [];
['LinkedIn', 'Twitter', 'Mastodon', 'Github', 'Gitlab', 'Codeberg'].forEach(social => {
if (person.hasOwnProperty(social.toLowerCase()) && person[social.toLowerCase()].length > 0) {
socials.push(`[${social}](${person[social.toLowerCase()]})`);
.map((person) => {
const socials = [];
[
"LinkedIn",
"Twitter",
"Mastodon",
"Github",
"Gitlab",
"Codeberg",
].forEach((social) => {
if (
person.hasOwnProperty(social.toLowerCase()) &&
person[social.toLowerCase()].length > 0
) {
socials.push(`[${social}](${person[social.toLowerCase()]})`);
}
});

const flags = {
"chile": "🇨🇱",
"dinamarca": "🇩🇰",
"portugal": "🇵🇹",
"brasil": "🇧🇷"
};

const location = `${person.city} / ${person.country} ${flags[person.country.trim().toLowerCase()]}`;

return `|**[${person.name}](${person.scheduling})**|${socials.join(', ')}|${person.title} en ${person.company}|${person.topics.join(", ")}.|${location}|${person.preferences.join(", ")}|`;
}
)
});

const flags = {
chile: "🇨🇱",
dinamarca: "🇩🇰",
portugal: "🇵🇹",
brasil: "🇧🇷",
};

const location = `${person.city} / ${person.country} ${flags[person.country.trim().toLowerCase()]}`;

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(",")}|`;
})
.join("\n");

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

0 comments on commit 0a7953f

Please sign in to comment.