Goal: Connect to MSSQL using FreeTDS / ODBC in Python.
Host: Ubuntu 11.10 x86_64
Install:
sudo apt-get install freetds-dev freetds-bin unixodbc-dev tdsodbc
pip install pyodbc sqlalchemy
In /etc/odbcinst.ini:
import sys | |
if sys.stdin.isatty(): | |
print('you are a tty') | |
else: | |
print('you are not a tty') |
#!/bin/bash | |
# Produce CSV of each installed package and full copyright of each package. (Debian) | |
# | |
# Sample CSV: | |
# Package,Version,Section,Homepage,Source | |
# bash,4.1-2ubuntu3,shells,http://tiswww.case.edu/php/chet/bash/bashtop.html, | |
# git-core,1:1.7.0.4-1ubuntu0.2,vcs,, | |
# python,2.6.5-0ubuntu1,python,,python-defaults | |
AUDIT_DIR="${HOSTNAME}-package-audit/`date +'%Y-%m-%d'`" |
Goal: Connect to MSSQL using FreeTDS / ODBC in Python.
Host: Ubuntu 11.10 x86_64
Install:
sudo apt-get install freetds-dev freetds-bin unixodbc-dev tdsodbc
pip install pyodbc sqlalchemy
In /etc/odbcinst.ini:
Demonstrate use of fixture
with Flask-SQLAlchemy and Flask-Testing. February 13, 2011 Ron DuPlain <ron.duplain@gmail.com>
Post any feedback to: flask@librelist.org
Get this gist:
git clone git://gist.github.com/824472.git Flask-SQLAlchemy-Fixture
cd Flask-SQLAlchemy-Fixture
package com.willowtreeapps.demo; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.view.KeyEvent; | |
import android.view.Window; | |
import android.webkit.WebView; | |
import android.webkit.WebViewClient; | |
public class MainActivity extends Activity { |
This is a demonstration of the Python [code][1] module, which allows for an interactive interpreter to be embedded into a Python program.
Convenience function to run a read-eval-print loop. This creates a new instance
of [InteractiveConsole
][2] and sets readfunc to be used as the
from flask import Flask, send_from_directory | |
app = Flask(__name__) | |
@app.route('/base/<path:filename>') | |
def base_static(filename): | |
return send_from_directory(app.root_path + '/../static/', filename) |
blueprint: | |
name: Zooz Paddle Scene Control (Z-Wave JS) | |
description: Zooz Dimmer/Switch Paddle Scene Control (ZEN21/ZEN22/ZEN27/...) | |
domain: automation | |
input: | |
switch: | |
name: Zooz Device | |
description: Paddle supporting up/down 1-5x presses. Note that scene control adds actions to run alongside default behavior (and does not replace defaults). | |
selector: | |
device: |
# Copied from blhoward2 at https://community.home-assistant.io/t/zen32-scene-controller-z-wave-js/292610/8?u=mattmattmattmatt | |
# Modified by MattMattMattMatt for clarity on button / scene associations. | |
blueprint: | |
name: ZEN32 (Z-Wave JS) | |
description: Create automations for the Zooz ZEN32 switch using the Z-Wave JS integration. | |
domain: automation | |
input: | |
zooz_switch: | |
name: Zooz Switch | |
description: List of available Zooz ZEN32 switches. |