[Server] GStreamer ---> HTML [Client]
- gstreamer-1.x
- Browser which supports video tag of HTML5
| #!/usr/local/bin/python3 | |
| tags = { | |
| "Rechnung": "Rechnung", | |
| "Beleg": "Rechnung" | |
| } | |
| ocrLanguage = "deu" | |
| verbose = False | |
| import sys, subprocess |
| ### An example of building a TensorFlow model from R using rPython ### | |
| # For this script you need to | |
| # 1. Have python 2.7 installed. | |
| # 2. Install the rPython package in R. | |
| # 3. Install Google's TensorFlow library as per these instructions: | |
| # http://www.tensorflow.org/get_started/os_setup.md#binary_installation | |
| ### Here is how to setup and run a trivial TensorFlow model ### | |
| # Load TensorFlow (I couldn't get this to work without setting sys.argv... ) |
| /* | |
| * This sketch sends ads1115 current sensor data via HTTP POST request to thingspeak server. | |
| * It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE): | |
| * | |
| * - https://github.com/adafruit/Adafruit_ADS1X15 | |
| * | |
| * designed to run directly on esp8266-01 module, to where it can be uploaded using this marvelous piece of software: | |
| * | |
| * https://github.com/esp8266/Arduino | |
| * |
| #include "FastLED.h" | |
| // ColorWavesWithPalettes | |
| // Animated shifting color waves, with several cross-fading color palettes. | |
| // by Mark Kriegsman, August 2015 | |
| // | |
| // Color palettes courtesy of cpt-city and its contributors: | |
| // http://soliton.vm.bytemark.co.uk/pub/cpt-city/ | |
| // | |
| // Color palettes converted for FastLED using "PaletteKnife" v1: |
| # Voices available to `say` on OS X | |
| # "*" indicates new additions since 10.8 | |
| Agnes (en_US) | |
| Albert (en_US) | |
| Alex (en_US) | |
| *Alice (it_IT) | |
| *Alva (sv_SE) | |
| *Amelie (fr_CA) | |
| *Anna (de_DE) |
| #include <DmxReceiver.h> | |
| #include <FastLED.h> | |
| #define DMX_NUM_CHANNELS 15 | |
| #define NUM_LEDS 15 | |
| #define DATA_PIN 11 | |
| #define LED_TYPE WS2811 | |
| #define COLOUR_ORDER | |
| #define CLOCK_PIN 13 // Clock pin only needed for SPI based chipsets when not using hardware SPI |
| #include <FastLED.h> | |
| #define LED_PIN 3 | |
| #define NUM_LEDS 30 | |
| #define BRIGHTNESS 96 | |
| #define LED_TYPE WS2811 | |
| #define COLOR_ORDER GRB | |
| CRGB leds[NUM_LEDS]; | |
| #define UPDATES_PER_SECOND 100 |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
| ''' | |
| This script will attempt to open your webbrowser, | |
| perform OAuth 2 authentication and print your access token. | |
| It depends on two libraries: oauth2client and gflags. | |
| To install dependencies from PyPI: | |
| $ pip install python-gflags oauth2client |