Skip to content

Instantly share code, notes, and snippets.

View theniceboy's full-sized avatar
🥰

David Chen theniceboy

🥰
  • 16:15 (UTC -07:00)
View GitHub Profile
@delphinus
delphinus / colorwheel.vim
Last active October 18, 2020 13:02
Draw color wheel in NeoVim
const s:pi2 = 2 * 3.14159265
" pixel_ratio means the ratio of the character size.
const s:pixel_ratio = 2.0 / 1.0
" ColorWheel draws a color wheel
function! ColorWheel() abort
const [center_x, center_y] = [&columns / 2.0, &lines / 2.0]
const radius = min([&columns, &lines]) / 8.0 * 3
" loop over the distance multiplied by pixel_ratio in the horizontal
" direction because the character has a rectangular shape.
@joeblau
joeblau / git yolo
Created February 3, 2014 12:48
git yolo command
alias gityolo='git commit -am "DEAL WITH IT" && git push -f origin master'