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
# NOTE: Python must be invoked in 32-bit mode for ctypes to read the MathType lib. | |
# For example (OSX): | |
# arch -i386 /usr/bin/python2.6 mathtype_mathml.py | |
# | |
import sys | |
from ctypes import * | |
def main(): | |
# On OSX, use the following line instead: | |
# lib = cdll.LoadLibrary('/Library/Frameworks/MT6Lib.framework/MT6Lib') |
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
(function($) { | |
var rcaps = /[A-Z]/, | |
rspace = /\s+/, | |
rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i; | |
jQuery.fn.removeAttrI = function(value) { | |
return this.each(function() { | |
// Call normal `removeAttr` | |
if (! value.match(rcaps)) { | |
$(this).removeAttr(value); |
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
/** | |
* Model class | |
*/ | |
Model = function(url, attributes) { | |
this.url = url; | |
this.attributes = attributes; | |
}; | |
Model.prototype = { | |
set: function(data) { |
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
Traceback (most recent call last): | |
File "./server.py", line 22, in <module> | |
scheduler = Scheduler(root_path=ROOT_PATH, switches=switches) | |
File "/home/pi/Development/lightcontrol/lightcontrol/scheduler.py", line 12, in __init__ | |
self.refresh() | |
File "/home/pi/Development/lightcontrol/lightcontrol/scheduler.py", line 15, in refresh | |
self._crontab = CronTab('root') | |
File "/usr/local/lib/python2.7/dist-packages/crontab/_crontab.py", line 275, in __init__ | |
self.matchers = self._make_matchers(crontab) | |
File "/usr/local/lib/python2.7/dist-packages/crontab/_crontab.py", line 283, in _make_matchers |
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
.config(['$provide', function($provide) { | |
// Minification-safe hack. | |
var $$watchers = '$$watchers', | |
$$nextSibling = '$$nextSibling', | |
$$childHead = '$$childHead', | |
$$childTail = '$$childTail', | |
$$listeners = '$$listeners', | |
$$listenerCount = '$$listenerCount', | |
$id = '$id', |