This file contains hidden or 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
# Copyright 2024 James Teh | |
# License: GNU General Public License version 2.0 | |
"""App module for Phone Link. | |
This does the following: | |
1. Works around the Phone Link crash when tabbing into the messages list. | |
2. Makes alt+1 focus the Conversations list when the Conversations view is | |
already active. Without this, alt+1 does nothing in this case. This makes it | |
much easier to switch conversations. | |
3. Adds alt+d to focus the message input text box. This is useful if you've |
This file contains hidden or 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 os | |
import time | |
from collections import OrderedDict | |
import wx | |
import synthDriverHandler | |
from synthDriverHandler import synthIndexReached, synthDoneSpeaking | |
from speech.commands import IndexCommand | |
import globalVars | |
class SynthDriver(synthDriverHandler.SynthDriver): |
This file contains hidden or 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
/* | |
* spinCpu: Spin all threads of a CPU. | |
* This is useful for testing how things behave when the CPU is fully utilised. | |
* Copyright 2022 James Teh | |
* License: Mozilla Public License version 2.0 | |
*/ | |
#include <iostream> | |
#include <thread> | |
#include <vector> |
This file contains hidden or 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
; Play/Pause Multi Function | |
; Copyright 2022 James Teh | |
; License: GNU General Public License | |
#SingleInstance Force | |
; Ensure we don't intercept our own sending of play/pause. | |
#If (!sendingPlayPause) | |
Media_Play_Pause:: | |
{ |
This file contains hidden or 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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-purple; icon-glyph: magic; | |
// Author: James Teh <[email protected]> | |
// Copyright 2021 James Teh | |
// License: GNU General Public License version 2.0 | |
const fm = FileManager.iCloud(); | |
const docs = fm.documentsDirectory(); |
This file contains hidden or 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
; ZoomGlobalKeys.ahk: | |
; AutoHotkey script to control Zoom with global keyboard shortcuts | |
; Author: James Teh <[email protected]> | |
; Copyright 2017-2019 James Teh | |
; License: GNU General Public License version 2.0 | |
#!m:: | |
{ | |
ControlSend, , !a, ahk_class ZPContentViewWndClass | |
Return |
This file contains hidden or 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
; SpotifyGlobalKeys.ahk: | |
; AutoHotkey script to control Spotify with global keyboard shortcuts | |
; Author: James Teh <[email protected]> | |
; Copyright 2017-2018 James Teh | |
; License: GNU General Public License version 2.0 | |
DetectHiddenWindows, On | |
; Get the HWND of the Spotify main window. | |
getSpotifyHwnd() { |