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
// package.json file | |
//////////////////// | |
{ | |
"name": "test", | |
"version": "0.0.1", | |
"dependencies": { | |
"mongoose": "3.1.2" | |
} | |
} |
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 a = [1, 2, 3, 4, 5]; | |
// standard for loop | |
for (let i = 0; i < a.length; i++) { | |
console.log(a[i]); | |
} | |
// from ES5 | |
a.forEach(function(item) { | |
console.log(item); |
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
license: mit |
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
license: mit |
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
#include <string.h> | |
#include <gst/gst.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
// v4l2src ! tee name=t t. ! x264enc ! mp4mux ! filesink location=/home/rish/Desktop/okay.264 t. ! videoconvert ! autovideosink | |
static GMainLoop *loop; |
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
gcc -Wall `pkg-config --cflags --libs gstreamer-audio-1.0` -fPIC -c plugin.c -o build/passthrough-plugin.o | |
gcc -Wall `pkg-config --cflags --libs gstreamer-audio-1.0` -fPIC -c passthrough.c -o build/passthrough.o | |
g++ -shared -Wall `pkg-config --cflags --libs gstreamer-audio-1.0` -lssl -lcrypto -o build/libpassthrough.so build/passthrough.o build/passthrough-plugin.o |
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
UASV-FZZE-SNRN-VWE5-Z2EK-GUH9 | |
RX25-KM7Q-AYTM-A5CH-5Y2G-Q647 | |
MGDJ-XD9D-V7G4-SUVX-T6GM-B3GH | |
afb47-645bz-11ee-b472 | |
b9b6e-645b3-11ee-bbae | |
be1cf-645b4-11ee-ae8d |