Skip to content

Instantly share code, notes, and snippets.

View matheusnicolas's full-sized avatar
🏡
Working from Home

Matheus Nícolas matheusnicolas

🏡
Working from Home
  • Campina Grande, Paraiba, Brazil
  • 06:04 (UTC -03:00)
View GitHub Profile
@joyrider3774
joyrider3774 / Playdate_DrawText_patterns
Last active July 22, 2025 11:59
Playdate DrawText using patterns
void drawTextColor(LCDBitmap* BitmapContext, LCDFont *font, const void* text, size_t len, PDStringEncoding encoding, int x, int y, LCDColor color, bool inverted)
{
//grab width & height of our to be rendered text
pd->graphics->pushContext(BitmapContext);
int h = pd->graphics->getFontHeight(font);
pd->graphics->setFont(font);
int w = pd->graphics->getTextWidth(font, text, len, encoding, 0);
//create new bitmap and fillrect with our color / pattern
@phollyer
phollyer / setup.sh
Last active August 15, 2024 18:20
Setup Ubuntu 18.04 server for Elixir Apps behind Nginx
# Some of the steps might seem obvious, but I've included every step taken to help any noobs that come across this.
#
# Add & Create Sudo User: (https://linuxconfig.org/how-to-create-sudo-user-on-ubuntu-18-04-bionic-beaver-linux )
sudo adduser username
# Add the user to the sudo group
sudo usermod -aG sudo username
# SSH Keys: (https://linuxize.com/post/how-to-set-up-ssh-keys-on-ubuntu-1804/)
ssh-copy-id remote_username@server_ip_address
@sidneyspe
sidneyspe / .gitconfig
Last active July 21, 2023 05:00
alias for git
[user]
email = your@email.com
name = Your Name
[credential]
helper = store
[color]
branch = auto
diff = auto
status = auto
ui = auto
@lusingander
lusingander / test.kt
Last active July 1, 2025 19:37
Kotlin + JUnit5 + Nested classes
fun value(str: String): Int {
println(str)
return 0
}
fun test(str: String) {
println("【Executed Test: $str】")
}
class Test1 {
@thiamsantos
thiamsantos / db-conventions.md
Last active June 17, 2025 17:07
Convenções de nomenclatura para banco de dados

Convenções de nomenclatura para banco de dados

Geral

Os nomes das tabelas e colunas devem estar minúsculas e as palavras devem ser separadas por underscore, seguindo o padrão snake case. E todos os termos devem estar em inglês, exceto alguns termos que não há tradução apropriada para o inglês. Sempre prefira nomes descritivos, evitando ao máximo contrações.

Tabelas

Os nomes das tabelas devem estar no plural.

@carloschavez9
carloschavez9 / nlp_en_stop_words.txt
Created September 18, 2017 23:47
English stop words for NLP
a
able
about
above
according
accordingly
across
actually
after
afterwards
@squarism
squarism / iterm2.md
Last active September 29, 2025 18:50
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So + D does not mean hold shift. + Shift + D does of course.

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
@alopes
alopes / stopwords.txt
Created April 10, 2013 20:32
Portuguese stop words
de
a
o
que
e
do
da
em
um
para
@entaroadun
entaroadun / gist:1653794
Created January 21, 2012 20:10
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation: