Skip to content

Instantly share code, notes, and snippets.

View userddssilva's full-sized avatar
💭
Hi there!

Dayvson Silva userddssilva

💭
Hi there!
View GitHub Profile
@RodrigoCMoraes
RodrigoCMoraes / .vimrc
Last active September 1, 2021 18:55 — forked from wdsrocha/.vimrc
Minimal .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
@stefanthoss
stefanthoss / mysql-pandas-import.py
Last active December 26, 2023 19:48
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)
df.head()
@nnm-t
nnm-t / ConvertToSprite.cs
Last active February 13, 2024 11:41
Convert Texture2D To Sprite
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), Vector2.zero);
}
}
@userddssilva
userddssilva / git_cheat_sheets.md
Last active February 17, 2024 21:12
Git notes to remember

Git Cheat Sheets

Git commands

  • Create and a local branch from origin
git branch -t origin/branch-name
  • Create and swap the branch
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 24, 2024 18:21
Semantic Commit Messages

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

Example