Skip to content

Instantly share code, notes, and snippets.

View joonhwan's full-sized avatar
🏠
Working from home

joonhwan joonhwan

🏠
Working from home
View GitHub Profile
@joonhwan
joonhwan / keybindings.json
Created October 8, 2024 01:39 — forked from wojukasz/keybindings.json
VsCode + Vim keybindings and settings - best of both worlds
[
//
// VIM NAVIGATION SHORTCUTS
//
{
// "ctrl+h": Focuses on the left editor group when the text editor is focused, Vim extension is active, and Vim is not in Insert mode.
"key": "ctrl+h",
"command": "workbench.action.focusLeftGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
@joonhwan
joonhwan / python_logging.c
Created August 16, 2024 21:58 — forked from hensing/python_logging.c
Python: Use 'logging' module from C extension
#include <Python.h>
/***********************************************************/
/* define logging function and logtypes for python.logging */
/* by H.Dickten 2014 */
/***********************************************************/
enum logtypes {info, warning, error, debug};
static void log_msg(int type, char *msg)
{
@joonhwan
joonhwan / 1-init.cmd
Created March 3, 2024 13:22 — forked from RobbiNespu/1-init.cmd
Portable postgre SQL on windows
@ECHO ON
:: Save the directory where we are
pushd %CD%
echo %CD%
:: Shift directories to the correct path
%~d0
cd %~dp0
@joonhwan
joonhwan / init_postgres_windows.md
Last active February 29, 2024 23:10 — forked from jctosta/init_postgres_windows.md
A simple guide on initializing the Windows version of Postgres using the zip file instead of msi installer
@joonhwan
joonhwan / flask_matplotlib.py
Created July 31, 2022 04:24 — forked from illume/flask_matplotlib.py
Shows how to use flask and matplotlib together.
""" Shows how to use flask and matplotlib together.
Shows SVG, and png.
The SVG is easier to style with CSS, and hook JS events to in browser.
python3 -m venv venv
. ./venv/bin/activate
pip install flask matplotlib
python flask_matplotlib.py
"""
{
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.sneak": true,
"vim.easymotionMarkerBackgroundColor": "#222",
"vim.normalModeKeyBindings": [
{
@joonhwan
joonhwan / Vagrantfile
Created December 5, 2018 23:44 — forked from mcharytoniuk/Vagrantfile
Vagrant + docker-compose
Vagrant.configure(2) do |config|
config.vm.box = "phusion/ubuntu-14.04-amd64"
config.vm.network "forwarded_port", guest: 3306, host: 3306
# If errors occur, try running "vagrant provision" manually
# after "vagrant up"
config.vm.provision :docker
# To use docker_compose as a provisioning tool, install
# vagrant-docker-compose plugin first. It should also solve the