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,
};
@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"
}
},
{
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 / 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();
file { "/etc/httpd/conf.d/vhost.conf":
owner => "root",
group => "root",
mode => 644,
replace => true,
ensure => present,
content => "/vagrant/conf/vhost.conf",
require => Package["httpd"],
notify => Service["httpd"]
}
[vagrant@vagrant-c5-x86_64 ~]$ sudo /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:92:BA:6E
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe92:ba6e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2407 errors:0 dropped:0 overruns:0 frame:0
TX packets:2332 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:159341 (155.6 KiB) TX bytes:145198 (141.7 KiB)
" setup pathogen
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim
call vundle#rc()
Bundle 'gmarik/vundle'
// change this
$row = pg_fetch_row($results);
$num = pg_num_rows($results);
$i=0;
while ($i < $num) {
echo "<pre>";
print_r (pg_fetch_assoc($results,$i));
echo "</pre>";
$i++;
Error detected while loading xmonad configuration file: /home/ciarlill/.xmonad/xmonad.hs
xmonad.hs:102:14:
No instance for (Read a0) arising from a use of `layoutN'
The type variable `a0' is ambiguous
Possible cause: the monomorphism restriction applied to the following:
myChatGrid :: LayoutN Grid (LayoutN Grid Full) a0
(bound at xmonad.hs:102:1)
Probable fix: give these definition(s) an explicit type signature
or use -XNoMonomorphismRestriction