Skip to content

Instantly share code, notes, and snippets.

let rtcConnection = null;
let rtcLoopbackConnection = null;
let loopbackStream = new MediaStream(); // this is the stream you will read from for actual audio output
const offerOptions = {
offerVideo: true,
offerAudio: true,
offerToReceiveAudio: false,
offerToReceiveVideo: false,
};
Sub GenerateSummary()
'Keep track of current sheet
Dim ws As Worksheet
'Keep a reference to the Summary sheet
Dim summarySheet As Worksheet
summarySheet = Sheets("Summary")
'Disable screen updates to make this run faster
@alexciarlillo
alexciarlillo / custom.json
Created November 30, 2018 22:34
VSCode customizations for Nord color theme
// color customizations for Nord
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"settings": {
"foreground": "#d1d5dc",
"background": "#2f343f"
}
},
{
@alexciarlillo
alexciarlillo / artisan-runner.js
Created August 29, 2018 03:16
Artisan Runner Plugin For Angular
let exec = require('child_process').exec;
function ArtisanRunnerPlugin(options) {
this.startTime = Date.now();
this.prevTimestamps = {};
this.firstRun = true;
}
function puts(error, stdout, stderr) {
if (error) {
'use strict';
var express = require('express'),
morgan = require('morgan'),
bodyParser = require('body-parser');
var tasksArray = ['Groceries', 'Take the dog out', 'Something else'];
// Create the express application object
var app = express();
[2015-09-10T09:50:45] DEBUG2: reading secure socket
[2015-09-10T09:50:45] DEBUG2: reading secure socket
[2015-09-10T09:50:45] DEBUG2: reading secure socket
[2015-09-10T09:50:45] DEBUG2: reading secure socket
[2015-09-10T09:50:45] DEBUG2: reading secure socket
[2015-09-10T09:50:45] DEBUG2: reading secure socket
[2015-09-10T09:50:45] DEBUG2: reading secure socket
[2015-09-10T09:50:45] DEBUG2: reading secure socket
[2015-09-10T09:50:45] DEBUG2: reading secure socket
[2015-09-10T09:50:45] DEBUG2: reading secure socket
PHP Fatal error: Call to undefined method Illuminate\Foundation\Application::missing() in /home/ciarlill/Development/environments/vagrant-boxes/docker/proxy-config-new/www/app/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 210
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Foundation\Application::missing()
var myApp = angular.module("myApp", [ 'ngRoute', 'myAppControllers', 'myAppServices', 'chartjs']);
myApp.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$routeProvider.when('/', {
templateUrl: '/partials/dashboard.html',
controller: 'DashboardCtrl'
});
}]);
@alexciarlillo
alexciarlillo / common.min.css
Created September 11, 2014 18:23
Common Navigation
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin
@alexciarlillo
alexciarlillo / cuwqn.markdown
Created September 5, 2014 14:40
A Pen by Alex Ciarlillo.