Skip to content

Instantly share code, notes, and snippets.

View tumugin's full-sized avatar
🤍
NEW HORIZON

tumugin tumugin

🤍
NEW HORIZON
  • Tokyo, Japan
View GitHub Profile
@tumugin
tumugin / userstyle.css
Last active August 9, 2022 14:50
Pop'n'RollをまともにPCで閲覧するためのCSS(Stylusとかに入れて使ってください)
body {
background-color: #FBFCFC;
}
#app {
max-width: 75vw;
background-color: #FDFEFE;
}
section {
vpn {
ipsec {
esp-group ESP-RTX-1 {
compression disable
lifetime 3600
mode tunnel
pfs enable
proposal 1 {
encryption aes128
hash sha1
@tumugin
tumugin / taglib.diff
Last active September 23, 2018 01:12
diff --git a/taglib/CMakeLists.txt b/taglib/CMakeLists.txt
index 25041d25..3bcdce14 100644
--- a/taglib/CMakeLists.txt
+++ b/taglib/CMakeLists.txt
@@ -331,9 +331,12 @@ set(tag_LIB_SRCS
fileref.cpp
audioproperties.cpp
tagutils.cpp
+ swig/swigout/swig_taglib_wrap.cpp
)

TrueColor対応ターミナル沢志保

kitazawa

curl -L https://git.io/vhaOt

最近のターミナルエミュレータでは256色だけでなく、16ミリオン色表示することが可能ですがテスターとしてただ色がついたブロックを表示するのはあまりにもつまらないのでアイドルファイト北沢志保を表示させることで使っているターミナルが対応しているかどうか確認できるテスターをつくりました。

Windowsのmintty(wsltty)とmacOSのiTermで動作確認済みです。

using AppKit;
using Foundation;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using System.IO;
using ScriptingBridge;
namespace NowPlayingTest
{
require 'bundler/setup'
Bundler.require(:default)
require 'mastodon'
require 'highline/import'
require 'oauth2'
require 'dotenv'
require 'pp'
DEFAULT_APP_NAME = "mastodon-cli-sample"
@tumugin
tumugin / build.bat
Last active February 17, 2018 23:13
configure.bat -prefix C:\Users\tumugin\qt5basestatic -debug-and-release -confirm-license -opensource -static -nomake examples -no-angle -no-opengl
text = File.read("imas_dic.txt")
output = ""
TAB = "\t"
text.split("\n").each do |row|
rary = row.split("\t")
next if rary.count.zero?
wordtype = case rary[2]
when '人名'
'固有人名'
when '固有名詞'
@tumugin
tumugin / config
Created June 27, 2017 14:34
i3 config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@tumugin
tumugin / settings.json
Last active June 13, 2017 21:28
VSCode用設定
// 既定の設定を上書きするには、このファイル内に設定を挿入します
{
// Basic settings: turn linter(s) on
"ruby.lint": {
"reek": true,
"rubocop": true,
"ruby": true, //Runs ruby -wc
"fasterer": true,
"debride": true,
"ruby-lint": true