Skip to content

Instantly share code, notes, and snippets.

View bentosilva's full-sized avatar
💭
I may be slow to respond.

Bento Carlos Dias da Silva bentosilva

💭
I may be slow to respond.
View GitHub Profile
@bentosilva
bentosilva / script.py
Created October 22, 2024 12:11 — forked from efonte/script.py
Disco Elysium texts
import re
strings = set()
with open('texts.txt', mode='r', encoding='utf-8') as file_input:
content = file_input.read()
regExStr = r'^\s*\d string title = "(?:tooltip\d+|Name|Dialogue Text)"\n\s*\d string value = "((?!(START|input|\w+\(\)|\!\(\w+\(\)\))).+)"$'
compiled = re.compile(regExStr, re.MULTILINE)
matched = compiled.finditer(content)
@bentosilva
bentosilva / understanding-word-vectors.ipynb
Created July 5, 2019 22:08 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bentosilva
bentosilva / l10n_IETF_Language_tags.md
Created January 18, 2019 16:11 — forked from traysr/l10n_IETF_Language_tags.md
Commonly used IETF language tags
@bentosilva
bentosilva / rm_mysql.md
Last active December 15, 2018 18:25 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

brew remove mysql