Macのみで動作確認。
- Makefile
- test.cc
- mainのプログラム
- myclass.hh
- myclass.cc
#!/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 |
Macのみで動作確認。
以下転載:
対応バージョン: 3.7.2218.55
import asyncio | |
import random | |
class Hub(): | |
def __init__(self): | |
self.subscriptions = set() | |
def publish(self, message): |
#!/usr/bin/env python | |
""" | |
The Needleman-Wunsch Algorithm | |
============================== | |
This is a dynamic programming algorithm for finding the optimal alignment of | |
two strings. | |
Example | |
------- |
"rules": [ | |
{ | |
"description": "Ctrl-j to Kana on PowerPoint", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.microsoft\\.Powerpoint" | |
], |