Skip to content

Instantly share code, notes, and snippets.

View uobikiemukot's full-sized avatar
😇
rest in peace

uobikiemukot uobikiemukot

😇
rest in peace
View GitHub Profile
@uobikiemukot
uobikiemukot / emoji.go
Created December 11, 2018 07:58
emoji and text renderer
package main
import (
"bufio"
"bytes"
"fmt"
"image"
"image/jpeg"
_ "image/png"
"io"

% Goと端末制御シーケンス % haru % 2018/12/03

自己紹介

  • @uobikiemukot
  • 業務
    • Ruby (サーバーサイド)
  • 趣味の開発
@uobikiemukot
uobikiemukot / yaft_rotate.diff
Last active March 12, 2018 02:11
yaft rotated screeen support
diff --git a/ChangeLog b/ChangeLog
index 49a59d5..1d75b60 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -83,3 +83,11 @@
ex)
$ ./mkfont alias-file your/favorite/bdf > glyph.h
$ make yaft
+
+2014-03-07 haru
@uobikiemukot
uobikiemukot / rev2_jam.md
Last active March 10, 2018 03:16
rev2 jam memo

GGXrd Rev2 ジャムのメモ

ロケテストでの変更点

第二回ロケテストPDFには記載のない変更点

6P

@uobikiemukot
uobikiemukot / vgm.h.diff
Created September 9, 2015 16:13
diff of vgm.h in yasp
--- vgm.h.orig 2015-09-10 01:12:19.019687382 +0900
+++ vgm.h 2015-09-10 01:12:42.259665862 +0900
@@ -224,7 +224,7 @@
spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x10, 0x13);
spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x10, 0x80);
spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x00, 0x60);
- spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x01, 0x02);
+ spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x01, 0x00);
spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x02, low_byte(start_addr));
@uobikiemukot
uobikiemukot / rua.sh
Last active August 31, 2015 05:55
simple bash script for Archlinux AUR search/download
#!/bin/bash
BUILD_DIR="$HOME/build"
SEARCH_URL="https://aur.archlinux.org/rpc.php?type=search"
GIT_URL="https://aur.archlinux.org"
error()
{
echo $1
exit
@uobikiemukot
uobikiemukot / s98_to_spfm.c
Created August 26, 2015 20:55
s98 player for SPFM Light
#define _XOPEN_SOURCE 600
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@uobikiemukot
uobikiemukot / mpv_fbdev.patch
Last active November 26, 2020 18:20
add fbdev video output to mpv
commit de7e2edc14a5418abd5298e0cc76caa3d3bb5faa
Author: uobikiemukot <[email protected]>
Date: Wed Aug 26 20:14:34 2015 +0900
add framebuffer video output
diff --git a/video/out/vo.c b/video/out/vo.c
index de79fb0..d7d909c 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@uobikiemukot
uobikiemukot / tiff.patch
Created July 28, 2015 15:39
w3m patch for image/tiff
--- old/url.c 2015-07-28 23:57:42.144375057 +0900
+++ new/url.c 2015-07-28 23:57:34.394271277 +0900
@@ -107,6 +107,7 @@
{"jpg", "image/jpeg"},
{"png", "image/png"},
{"xbm", "image/xbm"},
+ {"tiff", "image/tiff"},
{"au", "audio/basic"},
{"gz", "application/x-gzip"},
{"Z", "application/x-compress"},
@uobikiemukot
uobikiemukot / linux_input.c
Last active November 3, 2023 12:12
test program of reading /dev/input/event*
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <linux/input.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdint.h>