This script loads an addressbook from a Baikal SQLite database file using SQLAlchemy,
and writes the contacts to a single baikal.vcf file.
Install dependencies:
pip3 install SQLAlchemy vobject
This script loads an addressbook from a Baikal SQLite database file using SQLAlchemy,
and writes the contacts to a single baikal.vcf file.
Install dependencies:
pip3 install SQLAlchemy vobject
| import os | |
| from flask import Flask, flash, request, redirect, url_for, render_template, send_from_directory | |
| from werkzeug import secure_filename | |
| UPLOAD_FOLDER = 'uploads' | |
| ALLOWED_EXTENSIONS = set(['webm', 'mp4', 'mp3', 'wav', 'jpeg', 'gif', 'png']) | |
| static_folder = os.path.abspath(os.path.dirname(__file__)) | |
| template_dir = os.path.join(static_folder, 'examples') |
| # Playback on USB audio device (the second soundcard's first device), | |
| # with omxplayer: | |
| # | |
| # $ ./play.sh myfile.mp4 | |
| # | |
| # Use 'aplay -l' to list available devices, e.g: | |
| # | |
| # $ aplay -l | |
| # card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio] | |
| # Subdevices: 1/1 |
| """ | |
| Parse fullOrders.csv downloaded from Bittrex account. | |
| Requirements:: | |
| pip install dateparser | |
| """ | |
| import csv |
This describes how to use a potentiometer with a MCP3008 chip.
Potentiometer from Ebay: http://www.ebay.com/itm/10PCS-6mm-3pin-Knurled-Shaft-Single-Linear-B-Type-B10K-ohm-Rotary-Potentiometer-/222445944546
MCP3008 from Adafruit: https://www.adafruit.com/products/856
| import sys | |
| import time | |
| import asyncio | |
| from PyQt5.QtWidgets import (QApplication, QProgressBar, QMainWindow, QSlider, | |
| QVBoxLayout, QWidget) | |
| from quamash import QEventLoop, QThreadExecutor | |
| import max7219.led as led |
| #!/usr/bin/env python | |
| """ | |
| PyQt example for seven segment displays. | |
| """ | |
| import sys | |
| import time | |
| from PyQt5 import QtWidgets |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| set -e | |
| set -o pipefail | |
| source ../../settings.sh | |
| export PATH=$PATH:$COMPILER_ROOT | |
| export CC="${PLAT}gcc -pthread" | |
| export AR="${PLAT}ar rcsv" | |
| echo `${PLAT}gcc --version` |
| < # Automatically generated make config: don't edit | |
| < # crosstool-NG 1.15.2 Configuration | |
| < # Tue Aug 7 15:36:12 2012 | |
| --- | |
| > # Automatically generated file; DO NOT EDIT. | |
| > # Crosstool-NG Configuration | |
| 5a5 | |
| > CT_CONFIGURE_has_make381=y | |
| 7d6 | |
| < CT_CONFIGURE_has_svn=y |