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/sh | |
# | |
# A simple command line utility to send an image to VMX For this | |
# example to work, make sure the VMX variable points to the location | |
# of your server. | |
# | |
# Tom Malisiewicz [email protected] | |
# vision.ai 2015 | |
#The location of the VMX server |
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
var SERVER = "http://localhost:3000/" | |
$vmx.config = injector.get('vmxconfig'); | |
$vmx.streamProvider = injector.get('vmxVideoStreamProvider'); | |
var YOUR_VIDEO_ELEMENT = document.getElementById("id of the video you want to use"); | |
var stream = $vmx.streamProvider.getInstance(YOUR_VIDEO_ELEMENT); | |
$vmx.config.setVideoSrc(stream); | |
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
--use like eval(HRANDKEY, 2, key_for_set_with_keys, key_for_hash_with_keys) | |
local randkey = redis.call('srandmember', KEYS[1]) | |
local val = redis.call('hget', KEYS[2], randkey) | |
return val |
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
core@ztest01 ~ $ fleetctl load test.service | |
Unit test.service loaded on 96fb30af.../10.132.114.122 | |
core@ztest01 ~ $ fleetctl start test.service | |
Unit test.service launched on 96fb30af.../10.132.114.122 | |
core@ztest01 ~ $ cat test.service | |
[Unit] | |
Description=test | |
# Requirements | |
Requires=etcd.service |
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
[Unit] | |
Description=testthing | |
# Requirements | |
Requires=etcd.service | |
# Dependency ordering and binding | |
After=etcd.service | |
[Service] |
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
Description=My thing | |
# Requirements | |
Requires=etcd.service | |
Requires=docker.service | |
# Dependency ordering | |
After=etcd.service | |
After=docker.service | |
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
#cloud-config | |
coreos: | |
etcd: | |
discovery: https://discovery.etcd.io/27c1dc9184248bb4e84f60e587f776fc | |
addr: $private_ipv4:4001 | |
peer-addr: $private_ipv4:7001 | |
units: | |
- name: etcd.service | |
command: start |
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
<?php | |
header('Access-Control-Allow-Origin: *'); | |
require("twitter-php/src/twitter.class.php"); | |
#tokens for twitter api | |
$consumerKey = '123-xxx'; | |
$consumerSecret = 'yyyy'; | |
$accessToken = '123-abc'; | |
$accessTokenSecret = '123'; |
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
<div class="col-md-3 thumbnail-container magic-animate apositive" | |
ng-repeat="object in filteredpos = (container.objects | classIs: 1 | orderBy:'score' | scoreIs:'>':pos.lowest | scoreIs: '<': pos.highest)"> | |
<vmx-exemplar score="object.score" image="{{object.image}}" tyme="{{object.time}}" class="object.class_label"></vmx-exemplar> | |
</div> |
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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker ps -a -q) |