Skip to content

Instantly share code, notes, and snippets.

View xycool's full-sized avatar

CheolWoong xycool

  • Seoul
  • 08:07 (UTC +09:00)
View GitHub Profile
@xycool
xycool / duckdb_postgres_pyspark_tutorial
Created July 12, 2024 12:53 — forked from Databracket9/duckdb_postgres_pyspark_tutorial
Data Engineering with DuckDb Tutorial
#library import
import duckdb
import configparser
from duckdb.experimental.spark.sql import SparkSession as session
from duckdb.experimental.spark.sql.functions import col, when, lit
#read configs from secrets file
config = configparser.ConfigParser()
config.read('duck_db_demo/secrets.ini')
user = config['POSTGRES']['USER']
@xycool
xycool / LazyVIM.md
Created March 2, 2024 05:49 — forked from danielkec/LazyVIM.md
LazyVIM

Default shortcuts

Ctrl+h        select file tree
Ctrl+l        select file editor
Shift+h       left editor tab
Shift+l       right editor tab
Alt+j         move current line up
Alt+k         move current line down
double space  filename search(telescope) - `Ctrl+d` and `Ctrl+u` to scroll preview
@xycool
xycool / .vimrc
Created March 25, 2022 13:26 — forked from miguelgrinberg/.vimrc
My .vimrc configuration for working in Python with vim
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let need_to_install_plugins = 1
endif
call plug#begin()
Plug 'tpope/vim-sensible'