View C-j2Kana-powerpoint.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"rules": [ | |
{ | |
"description": "Ctrl-j to Kana on PowerPoint", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.microsoft\\.Powerpoint" | |
], |
View needleman-wunsch.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
The Needleman-Wunsch Algorithm | |
============================== | |
This is a dynamic programming algorithm for finding the optimal alignment of | |
two strings. | |
Example | |
------- |
View pubsub.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import random | |
class Hub(): | |
def __init__(self): | |
self.subscriptions = set() | |
def publish(self, message): |
View vivaldi_keybord_shortcut.md
Vivaldiの設定晒し
対応バージョン: 3.7.2218.55
View 1SaveMyClassIntoTTree.md
自分つくったクラスをTTreeに入れるデモ
Macのみで動作確認。
ファイルリスト
- Makefile
- test.cc
- mainのプログラム
- myclass.hh
- myclass.cc
View imeoff.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
View markdown_spotlight.md
SpotlightでMarkdownを検索できるようにする
に色々載ってたけど
でやってみた。リッチテキストのひとつとしてMarkdownを加えてるっぽい。
View Geant4_install.md
Geant4.10.01インストールメモ
今後Mac上でGeant4のversionを上げるときに見るためのメモ。今回の環境は
- OS X Yosemite 10.10.2
- Homebrew 使用
Geant4 10.1以降だとG4AnalysisManagerでNtupleにvectorを入れられるようなのでversionを上げてみた。 手順はインストールするたびにお世話になっている奥村さんの
NewerOlder