This file contains hidden or 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
initCamera(videoElement) { | |
// Grab elements, create settings, etc. | |
// var video = this.partial.querySelector('#video'); | |
// Get access to the camera! | |
if(navigator.mediaDevices && navigator.mediaDevices.getUserMedia) { | |
// Not adding `{ audio: true }` since we only want video now | |
navigator.mediaDevices.getUserMedia({ video: true }).then(function(stream) { | |
//video.src = window.URL.createObjectURL(stream); | |
videoElement.srcObject = stream; |
This file contains hidden or 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 main | |
import ( | |
"crypto/tls" | |
"encoding/base64" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/smtp" | |
"strings" |
This file contains hidden or 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 main | |
import ( | |
"crypto/tls" | |
"fmt" | |
"log" | |
"net/smtp" | |
"strings" | |
) |
This file contains hidden or 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 com.example.guinso.restclientdemo; | |
import android.os.AsyncTask; | |
import android.support.design.widget.FloatingActionButton; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import java.io.ByteArrayOutputStream; |
This file contains hidden or 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
/** | |
This web server serve 2 different type request: [static file] and [dynamic path] | |
[Static file] URL path: /* | |
[Dynamic Path] URL path: /api/* | |
Preparation: | |
1) Create "static-files" directory to place all static file like index.html | |
2) Create "dynamic-files" diectory to place all dynamic or hidden logical files, example invoice.pdf | |
3) Place "index.html" at root of "static-files" directory | |
4) Place "neon.jpg" (any kind of JPEG file) at root of "dynamic-files" directory |