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
| #!/bin/sh | |
| # Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh | |
| set -e | |
| # Must be a valid filename | |
| NAME=foo | |
| PIDFILE=/var/run/$NAME.pid | |
| #This is the command to be run, give the full pathname | |
| DAEMON=/usr/local/bin/bar |
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
| mkcdir () { | |
| mkdir -p -- "$1" && | |
| cd -P -- "$1" | |
| } |
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
| """ | |
| markdownedit.py | |
| copyright (c) 2014 by Stefan Lehmann, licensed under the MIT license | |
| """ | |
| import markdown2 | |
| from PyQt5.QtCore import QEvent | |
| from PyQt5.QtGui import QCursor | |
| from PyQt5.QtWidgets import QWidget, QTextEdit, QVBoxLayout, \ |
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
| """ | |
| Python3 Script for installing all wheels in the given directory to the given | |
| virtual environment. | |
| Target Platform: Windows | |
| """ | |
| VENV_PATH = 'venv' | |
| WHEELS_PATH = 'required_packages' |
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
| #!/usr/bin/env python | |
| import os | |
| import cv2 | |
| from PyQt5.QtWidgets import * | |
| CASCADE_PATH = "/usr/local/share/OpenCV/haarcascades" | |
| CASCADE_FILENAME = "haarcascade_frontalface_default.xml" |
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
| def add_rm_rows(old, new): | |
| """ | |
| Get row, count pairs where new items have been added / removed to the ordered list. | |
| :old_list: list of items | |
| :new_list: list of items | |
| :return: list of [row, count] pairs where items have been added, | |
| list of [row, count] pairs where items have been deleted | |
| """ |
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
| P=mycprogram | |
| OBJECTS=mycprogram.c | |
| CFLAGS=$(shell python3.4-config --cflags) | |
| LDFLAGS=$(shell python3.4-config --ldflags) | |
| LDLIBS=$(shell python3.4-config --libs) | |
| CC=C99 | |
| $(P): $(OBJECTS) | |
| clean: |
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
| from PyQt5.QtWidgets import QWidget | |
| import matplotlib | |
| matplotlib.use("Qt5agg") | |
| from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas | |
| import pylab | |
| class MathTextLabel(QWidget): | |
| def __init__(self, mathText, parent=None, **kwargs): | |
| super().__init__(parent, **kwargs) |
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
| """ | |
| Setup for Sensordb. | |
| :author: Stefan Lehmann <stlm@posteo.de> | |
| :license: MIT, see license file or https://opensource.org/licenses/MIT | |
| :created on 2018-06-14 13:15:51 | |
| :last modified by: lehmann | |
| :last modified time: 2018-06-14 13:21:47 |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>WorkingDirectory</key> | |
| <!-- CHANGE THIS TO YOUR HOME DIRECTORY --> | |
| <string>/Users/stefanlehmann</string> | |
| <key>Label</key> |