I hereby claim:
- I am nullkal on github.
- I am nullkal (https://keybase.io/nullkal) on keybase.
- I have a public key ASDz0H8xzkQzZT_EtqFE3dENdOsM77nZAu0W99QnzjISeQo
To claim this, I am signing this object:
| BoldAsFont=yes | |
| Term=xterm-256color | |
| BoldAsColour=yes | |
| BackgroundColour=22,23,25 | |
| ForegroundColour=183,188,186 | |
| CursorColour=183,188,186 | |
| Black=42,46,51 | |
| BoldBlack=29,31,34 | |
| Red=184,77,81 | |
| BoldRed=141,46,50 |
| /* | |
| * mstdn2birdsite.ts - The filter code of "Mastodon → Twitter" | |
| * Written in 2017 by nullkal <nullkal@nil.nu> | |
| * | |
| * To the extent possible under law, the author(s) have dedicated all copyright | |
| * and related and neighboring rights to this software to the public domain | |
| * worldwide. This software is distributed without any warranty. | |
| * You should have received a copy of the CC0 Public Domain Dedication along | |
| * with this software. If not, see | |
| * <http://creativecommons.org/publicdomain/zero/1.0/>. |
| /* | |
| * mstdn2birdsite.ts - The filter code of "Mastodon → Twitter" | |
| * Written in 2017 by nullkal <nullkal@nil.nu> | |
| * | |
| * To the extent possible under law, the author(s) have dedicated all copyright | |
| * and related and neighboring rights to this software to the public domain | |
| * worldwide. This software is distributed without any warranty. | |
| * You should have received a copy of the CC0 Public Domain Dedication along | |
| * with this software. If not, see | |
| * <http://creativecommons.org/publicdomain/zero/1.0/>. |
| { | |
| "title": "AquaSKK", | |
| "rules": [ | |
| { | |
| "description": "Ctrl-J to Kana on Apple Terminal/iTerm2", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "j", |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| # -*- encoding: utf-8 -*- | |
| ColorNames = [ | |
| 'aliceblue', | |
| 'antiquewhite', | |
| 'aqua', | |
| 'aquamarine', | |
| 'azure', | |
| 'beige', |
| #include <Wire.h> | |
| #include "rgb_lcd.h" | |
| const char MORSE_TABLE[][16] = { | |
| /* ア */ "\xb1__.__", | |
| /* イ */ "\xb2._", | |
| /* ウ */ "\xb3.._", | |
| /* エ */ "\xb4_.___", | |
| /* オ */ "\xb5._...", | |
| /* カ */ "\xb6._..", |
| From ead74bca51c4cccec09219a36dd316970f2eda1a Mon Sep 17 00:00:00 2001 | |
| From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | |
| Date: Tue, 14 Apr 2015 02:25:27 +0000 | |
| Subject: [PATCH] printf.c: uint_to_str | |
| * ext/-test-/printf/printf.c (uint_to_str): renamed to get rid of | |
| conflict on cygwin. [ruby-core:68877] [Bug #11065] | |
| git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e | |
| --- |
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| require 'base64' | |
| table = Hash[*"䷀䷪䷍䷡䷈䷄䷙䷊䷉䷹䷥䷵䷼䷻䷨䷒䷌䷰䷝䷶䷤䷾䷕䷣䷘䷐䷔䷲䷩䷂䷚䷗䷫䷛䷱䷟䷸䷯䷑䷭䷅䷮䷿䷧䷺䷜䷃䷆䷠䷞䷷䷽䷴䷦䷳䷎䷋䷬䷢䷏䷓䷇䷖䷁".split("").zip("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("")).flatten] | |
| puts Base64.decode64((gets.split("").map {|c| table[c]}).join) |
| # 01 | |
| p $<.drop(1).map(&:to_i).inject(&:+) | |
| # 02 | |
| p $<.drop(1).inject(0){|m,n|t,s,p=n.split.map(&:to_i);m+=p.*t>s ?t-s :0} | |
| # 03 | |
| t,m,*p=gets.to_i,c=0;$<.each{|n|c+=l=n.to_i;p<<l;p.size<t||(m>c||m=c)&&c-=p.shift};p m |