Skip to content

Instantly share code, notes, and snippets.

View irbisadm's full-sized avatar

Igor Sheko irbisadm

  • Yerevan, Armenia
View GitHub Profile
vox.connect();
vox.addEventListener(VoxImplant.Events.ConnectionEstablished, handleConnectionEstablished);
vox.addEventListener(VoxImplant.Events.ConnectionFailed, handleConnectionFailed);
vox.addEventListener(VoxImplant.Events.ConnectionClosed, handleConnectionClosed);
function handleConnectionEstablished() {
if (typeof console != "undefined") console.log("Connected to VoxImplant:" +vox.connected());
}
function handleConnectionFailed(e) {
var vox = VoxImplant.getInstance();
vox.init({micRequired: true});
vox.addEventListener(VoxImplant.Events.SDKReady, handleSDKReady);
<script type="text/javascript" src="//cdn.voximplant.com/edge/voximplant.min.js"></script>
@irbisadm
irbisadm / test-deploy.sh
Created September 24, 2013 23:35
symfony2 git test-deploy script
#!/bin/bash
git pull
app/console cache:clear --env=dev
app/console cache:clear --env=prod
chmod -R 777 app/cache/
chmod -R 777 app/logs/