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 threading | |
# Based on tornado.ioloop.IOLoop.instance() approach. | |
# See https://github.com/facebook/tornado | |
class SingletonMixin(object): | |
__singleton_lock = threading.Lock() | |
__singleton_instance = None | |
@classmethod |
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
A fix that enables Pymol and the OSX native Aqua windowing system | |
to play nicely together. By Max Klein, [email protected] | |
The complete code for this patch can be found on GitHub at | |
https://github.com/telamonian/pymol/tree/osx_gui_fix_-_invert_threads | |
Notes: | |
* Low level Apple libraries (Core Services) strictly enforce a rule | |
that only a program's main thread may initialize/interact with Tkinter | |
Aqua application windows. |
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
Today I tried to install latexit using brew cask but couldn't: | |
$ brew cask install latexit | |
... | |
curl: (60) SSL certificate problem: Invalid certificate chain | |
... | |
Error: Download failed on Cask 'latexit' with message: Download failed: https://www.chachatelier.fr/latexit/downloads/LaTeXiT-2_8_1.dmg | |
Turns out that https://www.chachatelier.fr let their SSL certificate expire about a week ago. I still wanted to install latexit using brew, so here's what I did: |
NewerOlder