My default_spec.rb:
require "spec_helper"
describe "bemarionette::default" do
let(:chef_run) do
ChefSpec::Runner.new do |node|
# Create a new environment (you could also use a different :let block or :before block)
My default_spec.rb:
require "spec_helper"
describe "bemarionette::default" do
let(:chef_run) do
ChefSpec::Runner.new do |node|
# Create a new environment (you could also use a different :let block or :before block)
class Listener: | |
def __init__(self, gobject, gst): | |
self.failed = 0 | |
self.keyword_identified = 0 | |
self.recording = tempfile.mktemp(suffix='pi.wav') | |
self.lat = scarlett_config.gimmie('FORECAST_LAT') | |
self.lng = scarlett_config.gimmie('FORECAST_LNG') | |
self.api_key = scarlett_config.gimmie('FORECAST_API_KEY') | |
self.pipeline = gst.parse_launch(' ! '.join(['alsasrc device=' + scarlett_config.gimmie('audio_input_device'), |
#!/usr/bin/env python | |
import argparse | |
import serial | |
import os | |
import sys | |
import time | |
import subprocess | |
def dummy_meth(a): |
malcolm@malcolm-MacBookPro1 [feature-parse-launch*] ~/dev/scarlettPi/scripts: ./scarletttv_cli --help | |
usage: CLI tool to control Arduino IR signals. [-h] [--doctest] [-v] [-V] | |
[-d {frizzytv,appletv,toshiba}] | |
[-c COMMAND] [-t] [-p PORT] | |
optional arguments: | |
-h, --help show this help message and exit | |
--doctest perform doc tests | |
-v, --verbose be verbose in all things, go with god | |
-V, --version show version |
int | |
main(int argc, char *argv[]) | |
{ | |
ruby_init(); | |
ruby_init_loadpath(); | |
int error; | |
rb_protect( RUBY_METHOD_FUNC(rb_require), (VALUE) "./voice_control", &error); | |
if (error) { | |
printf("Error requiring voice_control.rb!: %d\n", error); | |
return 1; |
#!/bin/bash | |
cd /home/ndbroadbent/raspberry_picrowave/voice_control | |
/home/ndbroadbent/sphinx/pocketsphinx-0.8/src/programs/pocketsphinx_continuous -adcdev hw:1,0 -nfft 2048 -samprate 48000 -lm lmtool/4906.lm -dict lmtool/4906.dic |
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */ | |
/* ==================================================================== | |
* Copyright (c) 1999-2010 Carnegie Mellon University. All rights | |
* reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright |
[tox] | |
envlist=py27,lint | |
[testenv] | |
downloadcache={homedir}/.pipcache | |
distribute=True | |
sitepackages=False | |
[testenv:py27] | |
deps=nose |
d-i debian-installer/locale string en_US | |
d-i console-setup/ask_detect boolean false | |
d-i keyboard-configuration/modelcode string pc105 | |
d-i netcfg/choose_interface select auto | |
d-i netcfg/get_hostname string unassigned-hostname | |
d-i netcfg/get_domain string unassigned-domain | |
d-i netcfg/wireless_wep string | |
d-i mirror/country string Germany | |
d-i mirror/http/mirror select de.archive.ubuntu.com |
#!/bin/bash | |
###### | |
#LICENCE# | |
###### | |
#Released under the BSD license http://www.opensource.org/licenses/bsd-license | |
#Copyright (c) 2011, Rowan Wookey <admin@rwky.net> | |
#All rights reserved. | |
# | |
#Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
# |