Skip to content

Instantly share code, notes, and snippets.

Hi there!

Dayvson Silva userddssilva

Hi there!
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


nnm-t / ConvertToSprite.cs
Last active Dec 5, 2022
Convert Texture2D To Sprite
View ConvertToSprite.cs
using UnityEngine;
public static class ConvertToSpriteExtensiton
public static Sprite ConvertToSprite(this Texture2D texture)
return Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height),;
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)