Skip to content

Instantly share code, notes, and snippets.

@ma8ma
ma8ma / python-test.patch
Created November 27, 2016 08:33
mecab-python test.py patch
diff --git a/mecab/python/test.py b/mecab/python/test.py
index b8ba949..00f8473 100644
--- a/mecab/python/test.py
+++ b/mecab/python/test.py
@@ -1,26 +1,27 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
+from __future__ import print_function
-import MeCab

Note that this is varing, and is overwritten in unannounced.

Important versions about opaque WINDOW

5.6 (20070303)
add NCURSES_OPAQUE symbol
5.7 (20090906)
add is_pad() function
@ma8ma
ma8ma / pep-0539.rst
Last active July 2, 2021 05:10
PEP 539: Diff from first round to version 3

PEP: 539 Title: A New C-API for Thread-Local Storage in CPython Version: $Revision$ Last-Modified: $Date$ Author: Erik M. Bray, Masayuki Yamamoto BDFL-Delegate: Nick Coghlan Status: Draft Type: Informational Content-Type: text/x-rst Created: 20-Dec-2016

@ma8ma
ma8ma / firefox59-ui-lang-setting.md
Last active March 14, 2018 22:05
Firefox 59 で UIの表示を日本語にする

Firefox 59 で UIの表示を日本語にする

何が起こったか

Firefox 59 に更新したらメニューやコンテキストメニューが英語になった

日本語で表示する方法

参考にしたリンク

@ma8ma
ma8ma / gtknotebookdnd.py
Created August 4, 2018 21:04
Notebook Tab Drag and Drop Example (GTK+3 & Python3)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Notebook Tab Drag and Drop Example (GTK+3 & Python3)
#
# Requirements:
# * Python (>=3.5)
# https://www.python.org/
#
# * GTK+ (>=3.0)
@ma8ma
ma8ma / gtknotebook.c
Created October 3, 2018 11:20
[gtk3] History of gtk/gtknotebook.c
/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */
/* GTK - The GIMP Toolkit
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
@ma8ma
ma8ma / tabnote.cpp.diff
Last active October 17, 2018 14:14
[FAIL] jd-gtk3 feature-r2 tabnote patch
diff --git a/src/skeleton/tabnote.cpp b/src/skeleton/tabnote.cpp
index 2474c07..439eec8 100644
--- a/src/skeleton/tabnote.cpp
+++ b/src/skeleton/tabnote.cpp
@@ -1,6 +1,6 @@
// ライセンス: GPL2
-//#define _DEBUG
+#define _DEBUG
//#define _DEBUG_RESIZE_TAB
@ma8ma
ma8ma / jd-article-touch.patch
Last active January 12, 2019 10:07
JD タッチスクリーンによるスレビューのスクロール機能を追加するパッチ (実機で未テスト)
2ちゃんねるブラウザ JD のGTK3版に
タッチスクリーンによるスレビューのスクロール機能を追加するパッチです
ライセンス:GPL v2
要件:GTK+ 3.14以上
使い方
https://github.com/ma8ma/JD/tree/gtk3-preview にパッチを適用してビルド(--with-gtkmm3を付ける)
環境変数GDK_CORE_DEVICE_EVENTSは設定しないでJDを起動する
スレビューをタッチして上下にスワイプするとスクロールし、指を離すと減速して止まる(慣性スクロール)
@ma8ma
ma8ma / jd-thread-search-title.patch
Last active December 11, 2018 13:00
JD スレタイ検索結果のタイトルに含まれるタグを取り除くパッチ (概念実証)
2ちゃんねるブラウザ JD の
スレタイ検索結果のタイトルに含まれるタグを取り除くパッチです。
注意:繰り返しテストしていないので不具合が起こる可能性があります
ライセンス:GPL v2
使い方
https://github.com/yama-natuki/JD/tree/test にパッチを適用してビルド
変更の要約
@ma8ma
ma8ma / CONTRIBUTING-draft.md
Created February 9, 2019 13:36
JDim CONTRIBUTING.mdの草案

JDimへコントリビュートする

はじめに、ガイドを読む時間を取っていただきありがとうございます。:+1:
私達はJDimを開発・保守してくためにパッチを歓迎しています!:revolving_hearts:

JDimへのコントリビュート方法を案内します。

  • 🔰 まずはJDimproved/JDimをforkしてリポジトリを用意し、ローカルにcloneしてJDimをビルドしてみましょう。 → [README.md][readme-md]
  • 🔍 [Issues][issues]や[Pull requests][pull-requests]を確認すると興味関心のあるトピックが見つかるかもしれません。