- Create and a local branch from origin
git branch -t origin/branch-name
- Create and swap the branch
| " 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 |
| 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); | |
| } | |
| } |
| 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() |