Skip to content

Instantly share code, notes, and snippets.

@moemoe89
moemoe89 / random_google_meet.js
Last active March 27, 2022 04:45
random choose google meet participant
var exclude = [
'(You)',
'Bismo Baruno'
]
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds) {
break;
@moemoe89
moemoe89 / main.go
Created April 15, 2020 05:33
Example Mux Swagger
package main
import (
"encoding/json"
"net/http"
"time"
"github.com/gorilla/mux"
"github.com/swaggo/http-swagger"
_ "swagger-mux/docs"
@moemoe89
moemoe89 / Dockerfile
Created May 2, 2017 03:15
Dockerfile for Go-Lang binary only
FROM golang:1.8.1
ENV GO_PROJECT /go/src/gitlab.com/go-practice-ci
ENV BIN_NAME go-practice-ci
RUN mkdir -p ${GO_PROJECT}
WORKDIR ${GO_PROJECT}
COPY ${BIN_NAME} ${GO_PROJECT}
@moemoe89
moemoe89 / .gitlab-ci.yml
Created May 2, 2017 03:13
Example Gitlab CI Setup for Go-Lang
image: golang:1.8.1
variables:
BIN_NAME: go-practice-ci
ARTIFACTS_DIR: artifacts
GO_PROJECT: gitlab.com/go-practice-ci
stages:
- build
- test

SIMPLE WEBRTC VIDEO CHAT USING PEERJS

Operating System Ubuntu 14.04 via Koding.com

Install node.js

sudo apt-get update
sudo apt-get install nodejs

Check node.js version