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
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, | |
}; |
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
// color customizations for Nord | |
"editor.tokenColorCustomizations": { | |
"textMateRules": [ | |
{ | |
"settings": { | |
"foreground": "#d1d5dc", | |
"background": "#2f343f" | |
} | |
}, | |
{ |
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
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 |
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
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) { |
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 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(); |
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
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"] | |
} |
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
[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) |
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
" 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' |
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
// 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++; |
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
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 |
NewerOlder