Skip to content

Instantly share code, notes, and snippets.

@atweiden
atweiden / hiragana.p6
Created January 21, 2019 00:18
Practice hiragana
use v6;
=begin pod
=head Learn Hiragana
=head3 L<Tofugu: Learn Hiragana|https://www.tofugu.com/japanese/learn-hiragana/>
=begin markdown
letter | sound | kana | memorization
@atweiden
atweiden / AddInsertNewline.vim
Created September 13, 2019 00:15
Insert or append a new blank line in Vim
function! PutBlankLineAbove()
let l:count = v:count ? v:count : 1
normal m`
for i in range(1, l:count)
put! _
endfor
normal ``
execute ":normal \<Left>"
endfunction
@atweiden
atweiden / error-handling.raku
Last active August 27, 2022 07:02
Crash course on Raku error handling
use v6;
=head DESCRIPTION
=pod A crash course on Raku error handling.
# ------------------------------------------------------------------------------
('-' xx 78).join.say; ''.say;
# ------------------------------------------------------------------------------
=head2 Basic error handling