Skip to content

Instantly share code, notes, and snippets.

@Loliver1224
Loliver1224 / C-j2Kana-powerpoint.json
Created December 5, 2021 04:32
Karabiner-Elements: Ctrl+j to Kana on PowerPoint for AquaSKK
"rules": [
{
"description": "Ctrl-j to Kana on PowerPoint",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.microsoft\\.Powerpoint"
],
@slowkow
slowkow / needleman-wunsch.py
Last active April 3, 2024 19:46
A simple version of the Needleman-Wunsch algorithm in Python.
#!/usr/bin/env python
"""
The Needleman-Wunsch Algorithm
==============================
This is a dynamic programming algorithm for finding the optimal alignment of
two strings.
Example
-------
@sifue
sifue / 無料で読めるポール・グレアムの「ハッカーと画家」+αの日本語訳のみのまとめ.md
Last active April 11, 2024 01:59
無料で読めるポール・グレアムの「ハッカーと画家」+αの日本語訳のみのまとめ
@appeltel
appeltel / pubsub.py
Last active July 29, 2023 21:17
asyncio pubsub example
import asyncio
import random
class Hub():
def __init__(self):
self.subscriptions = set()
def publish(self, message):
@mono0926
mono0926 / commit_message_example.md
Last active March 29, 2024 03:40
[転載] gitにおけるコミットログ/メッセージ例文集100
@pn11
pn11 / 1SaveMyClassIntoTTree.md
Last active June 1, 2019 10:20
ROOTで、自分つくったクラスをTTreeに入れるデモ
@hyuki0000
hyuki0000 / imeoff.rb
Last active April 19, 2016 04:30
自動的にIMEをオフにするスクリプト(実際に実行するのは10秒に一回)。
#!/bin/ruby
# Based on http://blog.teapla.net/2015/05/5444
TOUCH_FILE = ENV["HOME"] + "/.imeoff"
INTERVAL_SEC = 10
if not File.exists?(TOUCH_FILE) or Time.now - File.ctime(TOUCH_FILE) > INTERVAL_SEC
system("osascript -e 'tell application \"System Events\" to key code 102'")
system("touch #{TOUCH_FILE}")
end
@pn11
pn11 / markdown_spotlight.md
Last active June 1, 2019 10:14
SpotlightでMarkdownを検索できるようにする + クイックルックで見れるようにする
@pn11
pn11 / Geant4_install.md
Last active June 1, 2019 00:33
Geant4.10.01をMac OS X Yosemiteにインストールしたメモ。

Geant4.10.01インストールメモ

今後Mac上でGeant4のversionを上げるときに見るためのメモ。今回の環境は

  • OS X Yosemite 10.10.2
  • Homebrew 使用

Geant4 10.1以降だとG4AnalysisManagerでNtupleにvectorを入れられるようなのでversionを上げてみた。 手順はインストールするたびにお世話になっている奥村さんの