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> | |
<head> | |
<script type="text/javascript"> | |
window.onload = function () { | |
var temperature = '[{"y": 22.125, "x": 1398788844000}, {"y": 21.875, "x": 1398789023000}, {"y": 21.9375, "x": 1398789056000}, {"y": 21.875, "x": 1398789067000}, {"y": 21.9375, "x": 1398789089000}, {"y": 21.9375, "x": 1398789213000}, {"y": 22.0, "x": 1398789224000}, {"y": 22.0625, "x": 1398789365000}, {"y": 22.0, "x": 1398789376000}, {"y": 22.0625, "x": 1398789431000}, {"y": 22.0, "x": 1398789442000}, {"y": 22.0625, "x": 1398789583000}, {"y": 22.0, "x": 1398789594000}, {"y": 21.9375, "x": 1398789605000}, {"y": 21.875, "x": 1398789616000}, {"y": 21.8125, "x": 1398789638000}, {"y": 21.75, "x": 1398789649000}, {"y": 21.6875, "x": 1398789660000}, {"y": 21.625, "x": 1398789682000}, {"y": 21.5625, "x": 1398789736000}, {"y": 21.625, "x": 1398789758000}, {"y": 21.5625, "x": 1398789780000}, {"y": 21.625, "x": 1398789791000}, {"y": 21.5625, "x": 1398789802000}, {"y": 21.5, "x": 1398789824000}, {"y": 21.4375, "x": 139878 |
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 | |
# -*- coding: utf-8 -*- | |
import sqlite3 | |
import sys | |
con = None | |
try: | |
con = sqlite3.connect(':memory:') |
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
in progress (#1046): re-focus this page on deployment of python on linux, esp. suse; perhaps move to PythonDeployment?. for developer set-up, see WritingQualityCode | |
virtualenv is a tool to create isolated Python environments: | |
The basic problem being addressed is one of dependencies and versions, and indirectly permissions. Imagine you have an application that needs version 1 of LibFoo , but another application requires version 2. How can you use both these applications? Or what if you want to install an application and leave it be ? If an application works, any change in its libraries or the versions of those libraries can break the application. ... In all these cases, virtualenv can help you. | |
Machine Set-Up | |
If your development machine runs ubuntu (or debian) linux, install with apt-get: |
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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true |
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 | |
. venv/bin/activate | |
echo "Executing $@ in venv" | |
exec "$@" | |
deactivate |
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 | |
from subprocess import call | |
for i in range(4, 25): | |
call(["avconv", "-i", "DFTV.Ipartment.S03E%02d.720p.HDTV.x264-NGB.mkv" % i, "-acodec", "aac", "-strict", "experimental", "DFTV.Ipartment.S03E%02d.720p.HDTV.x264-NGB.mp4" % i]) |
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/zsh | |
export {http,https,ftp}_proxy='http://localhost:7777' |
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
#include "Lpd6803.h" | |
Lpd6803 lpd(12, 13, 1); | |
// DIN - #12 | |
// SCK - #13 | |
// 1 pcs of lpd6803 in serial | |
void setup() | |
{ |
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
#include <Wire.h> | |
#include <math.h> | |
int BH1750address = 0x23; | |
byte buff[2]; | |
int mic_pin = 2; | |
int switch_pin = 13; | |
bool is_on = false; | |
void setup() |
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
-startup | |
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807 | |
-product | |
org.eclipse.epp.package.cpp.product | |
--launcher.defaultAction | |
openFile | |
-showsplash | |
org.eclipse.platform |
OlderNewer