Skip to content

Instantly share code, notes, and snippets.


Dayvson Silva userddssilva

View GitHub Profile
RodrigoCMoraes / .vimrc
Last active Sep 1, 2021 — forked from wdsrocha/.vimrc
Minimal .vimrc
View .vimrc
" remap escape key to jk
imap jk <Esc>
" when possible cursor is in center of screen
nnoremap j jzz
nnoremap k kzz
nnoremap `` ``zz
" general settings
set rnu et ts=4 sw=4 sts=4 ai cindent nowrap noswapfile cursorline splitbelow splitright

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional


stefanthoss /
Last active Feb 10, 2022
Import data from a MySQL database table into a Pandas DataFrame using the pymysql package.
import pandas as pd
import pymysql
from sqlalchemy import create_engine
engine = create_engine("mysql+pymysql://USER:PASSWORD@HOST:PORT/DBNAME")
df = pd.read_sql_query("SELECT * FROM table", engine)