Assuming you have Python installed on your system:
pip install twisted
pip install pyOpenSSL
pip install service_identity
server = GstRtspServer.RTSPServer() | |
auth = GstRtspServer.RTSPAuth() | |
token = GstRtspServer.RTSPToken() | |
token.set_string('media.factory.role', "user") | |
basic = GstRtspServer.RTSPAuth.make_basic("user", "password") | |
auth.add_basic(basic, token) | |
server.set_auth(auth) | |
factory = RtspFactory() | |
permissions = GstRtspServer.RTSPPermissions() |
#!/usr/bin/env bash | |
rm -rf "${HOME}/Library/Caches/CocoaPods" | |
rm -rf "`pwd`/Pods/" | |
pod update |
import paho.mqtt.client as paho | |
import os | |
import socket | |
import ssl | |
from time import sleep | |
from random import uniform | |
import json | |
import logging | |
logging.basicConfig(level=logging.INFO) |
#!/usr/bin/env bash | |
# Reset routing table on OSX | |
# display current routing table | |
echo "********** BEFORE ****************************************" | |
netstat -r | |
echo "**********************************************************" | |
for i in {0..4}; do | |
sudo route -n flush # several times |
if __name__ == "__main__": | |
reactor_args = {} | |
def run_twisted_wsgi(): | |
from twisted.internet import reactor | |
from twisted.web.server import Site | |
from twisted.web.wsgi import WSGIResource | |
resource = WSGIResource(reactor, reactor.getThreadPool(), app) | |
site = Site(resource) |
Convolutional neural networks for emotion classification from facial images as described in the following work:
Gil Levi and Tal Hassner, Emotion Recognition in the Wild via Convolutional Neural Networks and Mapped Binary Patterns, Proc. ACM International Conference on Multimodal Interaction (ICMI), Seattle, Nov. 2015
Project page: http://www.openu.ac.il/home/hassner/projects/cnn_emotions/
If you find our models useful, please add suitable reference to our paper in your work.
pragma solidity ^0.4.7; | |
contract CommitRevealElection { | |
// The two choices for your vote | |
string public choice1; | |
string public choice2; | |
// Information about the current status of the vote | |
uint public votesForChoice1; | |
uint public votesForChoice2; |