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
# https://github.com/openstack/mistral/blob/4.0.1/tools/docker/Dockerfile | |
FROM ubuntu:16.04 | |
RUN apt-get -qq update | |
RUN apt-get install -y sudo git | |
RUN git clone https://github.com/openstack/mistral.git /opt/stack/mistral | |
RUN cd /opt/stack/mistral && git checkout 4.0.1 | |
RUN /opt/stack/mistral/tools/docker/Dockerfile_script.sh |
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
sudo route -n add -net 192.168.59.0/24 -interface vboxnet1 | |
sudo route -n add -net 10.0.10.0/24 -interface vboxnet2 |
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/python3 | |
import cherrypy | |
import RPi.GPIO as GPIO | |
import time | |
RELAY_IO = 22 | |
SQUIRT_TIME = 0.5 | |
ON_MODE = GPIO.LOW | |
VALID_USER = "MATTYBE" |
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
warningTimeRow.addEventListener('click', function(e) { | |
try { | |
var root = Ti.UI.createView({}); | |
var dialog = Ti.UI.createOptionDialog({ | |
androidView:root, | |
options:null, | |
buttonNames: ['Set','Cancel'], | |
title:'Advanced warning' | |
}); | |
var view = Ti.UI.createView({ |
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
conditions = {:source => @source} | |
# conditions = {"source_id" => @source.id} | |
if classlist | |
conditions[:object_class] = classlist | |
end | |
puts conditions.inspect | |
unresolved_ids = UnresolvedId.find(:all, :select => "id", | |
:conditions => conditions) |