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
diff --git core/plugin/photo/model/photo.rb core/plugin/photo/model/photo.rb
index b954ead..02c8ba7 100644
--- core/plugin/photo/model/photo.rb
+++ core/plugin/photo/model/photo.rb
@@ -21,7 +21,7 @@ module Plugin::Photo
when String
if uri.start_with?('http')
photos[uri.hash] ||= new(perma_link: uri)
- elsif uri.start_with?('/')
+ elsif uri.start_with?('/') || uri.match(/[A-Z]:\/.*/)
@tumugin
tumugin / 102_patch_file_chooser.rb
Last active February 19, 2017 15:41
暴力的なパッチ(mikutter-windows用)
module Gtk::FileChooser
alias filename_orig filename
alias filenames_orig filenames
def filename
orig_path = filename_orig
orig_path ? orig_path.tr('\\', '/') : nil
end
def filenames
@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
@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!
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 / 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
require 'bundler/setup'
Bundler.require(:default)
require 'mastodon'
require 'highline/import'
require 'oauth2'
require 'dotenv'
require 'pp'
DEFAULT_APP_NAME = "mastodon-cli-sample"
using AppKit;
using Foundation;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using System.IO;
using ScriptingBridge;
namespace NowPlayingTest
{

TrueColor対応ターミナル沢志保

kitazawa

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

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

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

@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
)