Skip to content

Instantly share code, notes, and snippets.

View wonism's full-sized avatar
👨‍💻
undefined !== null

Jaewon wonism

👨‍💻
undefined !== null
View GitHub Profile
@wonism
wonism / coc-settings.json
Created December 31, 2020 02:10
.vim/coc-settings.json
{
"coc.preferences.jumpCommand": "split",
"coc.preferences.formatOnType": true,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"eslint.autoFixOnSave": true,
@wonism
wonism / .gitconfig
Last active December 31, 2020 17:36
.gitconfig
[color]
ui = true
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
@wonism
wonism / pr.sh
Last active August 24, 2020 04:02
Command for opening a gh link to create a pull request from current working branch.
#!/bin/bash
function pr() {
url=$(git config --get remote.origin.url)
if [[ $url =~ "http" ]]; then
url=$(echo $url | sed -e "s/\.git//")
else
url=$(echo $url | sed -e "s/\:/\//" -e "s/git@/https:\/\//" -e "s/\.git//")
fi
@wonism
wonism / .vimrc
Last active February 23, 2022 06:10
vimrc
""
"" Basic Setup
""
syntax enable
filetype off
set encoding=UTF-8
set nocompatible
set number
set ruler
set errorformat+=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%#
@wonism
wonism / cloudSettings
Last active November 5, 2019 04:50
vscode settings for vim user
{"lastUpload":"2019-11-05T04:50:43.737Z","extensionVersion":"v3.4.3"}
@wonism
wonism / .vimrc
Last active September 20, 2019 15:06
.vimrc
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'tpope/vim-fugitive'
Plugin 'isRuslan/vim-es6'
@wonism
wonism / 001-Tradingview-Watchlist.md
Created January 9, 2018 04:04 — forked from cryppadotta/001-Tradingview-Watchlist.md
Tradingview Watchlist Import Files for Crypto Exchanges

Tradingview Watchlist Import Files for Crypto Exchanges

Below you'll find Tradingview import files for Bittrex and Binance BTC-base markets

Ordered by CMC's Market Cap

I use Tradingview and I like to quickly click through all coins on a particular exchange. The files below can be imported into a Tradingview watchlist.

★ ★ ★ If you use these, leave a comment or a star above ★ ★ ★

@wonism
wonism / index.html
Created January 3, 2017 16:32
Svelte example - 2
<!DOCTYPE html>
<html>
<head>
<title>Svelte example</title>
</head>
<body>
<div id="svelte-app"></div>
<script src='./HelloWorld.js'></script>
<script>
const app = new HelloWorld({
@wonism
wonism / HelloWorld.html
Last active January 3, 2017 16:32
Svelte example - 1
<!--
If you want to execute this example..
1. install svelte-cli via npm.
2. then, create HelloWorld.html (Recommend to name file name as PascalCase)
3. and, compile it! => command `svelte compile --format iife HelloWorld.html > HelloWorld.js`
4. If you did above 3 things, create index.html (https://gist.github.com/wonism/c5c11df61d0a6354fdc5f34ba184a835)
-->
<h1>Hello, {{name}}!</h1>
<button on:click="reverseName()">Click Me!</button>
@wonism
wonism / simple-cache-busting-with-nginx.md
Created September 21, 2016 06:48 — forked from nepsilon/simple-cache-busting-with-nginx.md
Simple cache busting with Nginx — First published in fullweb.io issue #66

Simple cache busting with Nginx

You update your app.js or styles.css, but have a caching of 30 days and none of the clients will get the latest version? 😟

While the best would be to use a build mechanism to generate new filenames on the server, here is how to ensure clients get your last updates:

1. Change the name of the files in the HTML, for example styles.css to styles.123.css

2. Add this cache busting snippet in your nginx conf: