Skip to content

Instantly share code, notes, and snippets.

# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
[user]
useConfigOnly = true
[push]
default = simple
[color]
ui = true
[core]
editor = vim
excludesfile = /Users/juhwon/.gitignore_global
ui = true
@JuHwon
JuHwon / styles.less
Created May 23, 2017 10:50
atom styles
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
@JuHwon
JuHwon / Dockerfile
Last active April 27, 2020 02:51
react-boilerplate dockerfile example
FROM containership/alpine-node-yarn
COPY internals/scripts myappname/internals/scripts
COPY package.json myappname/package.json
COPY yarn.lock myappname/yarn.lock
COPY build myappname/build
COPY server myappname/server
WORKDIR myappname/
@JuHwon
JuHwon / OverridableButton.tsx
Created November 5, 2020 15:21
Overridable React Component Example
import * as React from "react";
import "./styles.css";
type OverrideComponentProps<C extends React.ElementType, P = {}> = P &
Omit<React.ComponentProps<C>, keyof P>;
type OverridableComponentProps<C extends React.ElementType, P = {}> = {
component?: C;
} & OverrideComponentProps<C, P>;
const req = require('request-promise')
const getVercelLoginHeaders = async (url, vercelDeploymentPassword) => {
const options = {
uri: url,
simple: false,
resolveWithFullResponse: true,
};
const response = await req
.post(options)