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
# Quick proof-of-concept add-on for Anki PR: | |
from anki.hooks import addHook | |
def addCSS(head, instance): | |
print(head, instance) | |
return head + "<style>.addition1{color:green;}</style>" | |
def addCSS2(head, instance): | |
print(head, instance) |
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 | |
# touchbar_demo.py | |
# [email protected] | |
# 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 \ |
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 | |
# touchbar_demo.py | |
# [email protected] | |
# 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 \ |
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
# -*- coding: utf-8 -*- | |
import os | |
from aqt.qt import * | |
from anki.hooks import addHook | |
from aqt.utils import shortcut | |
from aqt.editor import Editor | |
def _addButton(self, icon, cmd, tip="", label="", id=None, toggleable=False): |
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
<!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); |
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/bash | |
# | |
# toggle_ppa.sh | |
# | |
# created by souravc (http://askubuntu.com/users/127327/) | |
# modified by Glutanimate (http://askubuntu.com/users/81372/) | |
# | |
# originally released at http://askubuntu.com/q/383605/81372 | |
# | |
# DESCRIPTION: Detects if PPA is active/inactive and deactivates/activates it |