Skip to content

Instantly share code, notes, and snippets.

# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
# font_family monospace
# bold_font auto
@m-dango
m-dango / init.vim
Last active December 12, 2019 18:14
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.local/share/nvim/plugged')
Plug 'chrisbra/NrrwRgn'
Plug 'chrisbra/unicode.vim'
Plug 'dracula/vim', { 'as': 'dracula' }
#!/usr/bin/env perl
use strict;
use warnings;
use feature qw(say);
use if $^O eq 'MSWin32', 'Win32::API';
use if $^O eq 'linux', 'Linux::Perl::getrandom';
my $bytes = int( $ARGV[0] // 8 );
my $buffer = "\0" x $bytes;
#!/usr/bin/env perl6
use NativeCall;
my %*SUB-MAIN-OPTS =
:named-anywhere,
;
#| http://man7.org/linux/man-pages/man2/getrandom.2.html
#| https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom
sub MAIN (
version: '3.7'
networks:
caddy:
services:
echo:
image: hashicorp/http-echo
command: -listen=:80 -text='echo'
networks:
@m-dango
m-dango / langenv.sh
Last active September 6, 2018 16:30
Loop for rbenv and its various forks
for i in ~/.langenv/*; do
PATH="$i/bin:$PATH"
bin=$(printf "$i" | rev | cut -d '/' -f 1 | rev)
export $(printf "$bin" | tr a-z A-Z)_ROOT="$i"
eval "$($bin init -)"
done
@m-dango
m-dango / main.p6
Last active December 12, 2018 13:12
Internet Café Concurrency Exercise in Perl 6
# http://whipperstacker.com/2015/10/05/3-trivial-concurrency-exercises-for-the-confused-newbie-gopher/
unit sub MAIN (
UInt :$tourists where * > 0 = 25,
UInt :$computers where * > 0 = 8,
);
my @computers is Channel;
@computers.send(++$) xx $computers;
loop {
// ==UserScript==
// @name Emoji One Color Font
// @namespace http://dango.space
// @description Insert Emoji One Color font into css on all pages
// @match *://*/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js
// @grant none
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);

Keybase proof

I hereby claim:

  • I am mienaikage on github.
  • I am mienaikage (https://keybase.io/mienaikage) on keybase.
  • I have a public key ASAqn5C3oj0XQbTDcLLuXt6OrpF1Bdeo_2RkF-9TekCxoQo

To claim this, I am signing this object: