Skip to content

Instantly share code, notes, and snippets.

View manzyun's full-sized avatar
🐄
Returning to society like a ox walking.

TAKAHASHI Hidetsugu manzyun

🐄
Returning to society like a ox walking.
View GitHub Profile
@TakesxiSximada
TakesxiSximada / .gitignore
Last active January 8, 2023 13:04
change-case.el - Transform a string between camelCase, PascalCase, snake_case, kebab-case, doted.case and others by Emacs Lisp.
*.elc
@blhsrwznrghfzpr
blhsrwznrghfzpr / udonarium-2d.patch
Last active August 19, 2021 17:35
Udonarium v1.13.2 平面化パッチ
diff --git a/src/app/component/dice-symbol/dice-symbol.component.css b/src/app/component/dice-symbol/dice-symbol.component.css
index aca62fdd..b46d4afe 100644
--- a/src/app/component/dice-symbol/dice-symbol.component.css
+++ b/src/app/component/dice-symbol/dice-symbol.component.css
@@ -98,7 +98,7 @@
bottom: 0;
left: 0;
right: 0;
- transform: rotateX(-90deg) translateY(-50%);
+ /* transform: rotateX(-90deg) translateY(-50%); */
@curioswati
curioswati / flatpak-dmenu.md
Last active March 12, 2024 13:24
To run flatpak installed apps from dmenu.

To run a flatpak app from dmenu, you can create a symlink for the app in /usr/bin. You can find the flatpak apps binary link in /var/lib/flatpak/exports/bin/ on ubuntu. E.g. to run Rocket Chat (installed from flatpak via software center), you can do something like this:

sudo ln -s /var/lib/flatpak/exports/bin/chat.rocket.RocketChat /usr/bin/rocket-chat

This way you will be able to find it in the dmenu.

Resources:

@hidao80
hidao80 / MentionReactionToot.gs
Last active June 6, 2020 06:48
【Mastodon】実行時、メンションされていたらDMを返す
/**
* リアクションtootスクリプト
*
* メンションを発見したら直ちにリプライ
*
* アクセストークンとインスタンスのAPI URLはプロジェクトのプロパティに設定しておく。
* ソースコードとトークンおよびインスタンスを切り離すことにより、スクリプトの再利用性が高まった。
*
* リアクションtootスクリプト © @hidao80 クリエイティブ・コモンズ・ライセンス(表示4.0 国際)https://creativecommons.org/licenses/by/4.0/
*/
@chuntaro
chuntaro / image-tooltip.el
Created October 1, 2018 05:11
Emacs でポイントの下の画像ファイル名をツールチップに表示
;;; -*- lexical-binding: t; -*-
(defun image-tooltip-at-point ()
"ポイントやマウスカーソルの下の画像ファイルをツールチップ内に表示します。
使い方:
(define-key c-mode-map \"\\C-co\" 'image-tooltip-at-point)
(define-key c-mode-map [mouse-1] 'image-tooltip-at-point)
./very-sorry.png
@kakakaya
kakakaya / learn.py
Last active September 9, 2023 07:14
Learn from aozora bunko and output markov chain
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
from glob import iglob
import re
import MeCab
import markovify
def load_from_file(files_pattern):
anonymous
anonymous / conky_orange_4k.lua
Created October 27, 2017 17:11
conky orange 4k resolution config files
--==============================================================================
-- conky_orange.lua
--
-- author : SLK
-- version : v2011062101
-- license : Distributed under the terms of GNU GPL version 2 or later
--
-- modified: me
-- version : v20171027
-- notes : works on 4k screen. uses conky conf newer >v1.1
@todays-mitsui
todays-mitsui / main.md
Last active April 15, 2020 01:43
[SQL]レコードが存在していたら上書き, レコードが存在していなかったら登録

レコードが存在していなかったら新規登録、存在していれば上書き

INSERT INTO `posts`(
    `id`
    ,`title`
    ,`body`
    ,`created_at`
    ,`updated_at`
)
@yymm
yymm / want_to_ergodox.md
Last active May 27, 2020 00:44
Ergodox買おうの会

この記事のあの画像を見てビビッと来てしまったので, 周りにいる人とErgodoxの購入検討をはじめました(随時更新)

購入できるところ

➜ FalbaTech

ErgoDox - FalbaTech

選んでいくスタイル。

@c000
c000 / fizz.rs
Created November 23, 2015 07:24
fn fizz(n: i32) -> String {
match n {
n if n % 15 == 0 => format!("{}", "FizzBuzz"),
n if n % 3 == 0 => format!("{}", "Fizz"),
n if n % 5 == 0 => format!("{}", "Buzz"),
n => format!("{}", n),
}
}