Skip to content

Instantly share code, notes, and snippets.

View glutanimate's full-sized avatar
🎯
Focusing

Aristotelis glutanimate

🎯
Focusing
View GitHub Profile
#!/usr/bin/env python
# touchbar_demo.py
# dsandler@dsandler.org
# PyObjC proof of concept NSTouchBar implementation.
# Note that exceptions in the delegates will crash with "Illegal instruction: 4"
# rather than printing helpful stack traces; look in CrashReporter for the
# exception string.
import objc
from AppKit import \
#!/usr/bin/env python
# touchbar_demo.py
# dsandler@dsandler.org
# PyObjC proof of concept NSTouchBar implementation.
# Note that exceptions in the delegates will crash with "Illegal instruction: 4"
# rather than printing helpful stack traces; look in CrashReporter for the
# exception string.
import objc
from AppKit import \
@glutanimate
glutanimate / anki_mobile_card.html
Created November 12, 2016 14:04 — forked from redoPop/anki_mobile_card.html
HTML used by AnkiMobile to render card templates; a reference for creating advanced Anki card templates with special HTML/CSS. When used by AnkiMobile, the card's HTML replaces the `<!-- (Card contents) -->` comment in this gist, with the shared styles dropped inline inside a `<style>` tag.
<!doctype html>
<html class=" webkit safari mobile iphone js">
<head>
<meta name="viewport" content="width=device-width;">
<style id="ss"></style>
<style>
body {
text-align: center;
font-size: 1em;
-webkit-transform: translate3d(0,0,0);