Skip to content

Instantly share code, notes, and snippets.

View nathanqueija's full-sized avatar

Nathan Queija nathanqueija

View GitHub Profile
@nathanqueija
nathanqueija / times.js
Created June 22, 2019 15:27
Horas do dia
const horarios = Array.from({length: 48}).map((v,i) => {
const d = new Date();
d.setUTCHours(0,0,0,0);
d.setMinutes(d.getMinutes() + (30 * i));
return d.toISOString().substr(11, 5);
})
public void TakePicture(){
NatCam.CapturePhoto(OnPhotoCapture);
}
void OnPhotoCapture (Texture2D photo, Orientation orientation) {
//I tried this first and got that behaviour that rotates the picure ONLY in the first photo captured
// ImageViewer.GetComponent<NatCamPreview> ().Apply (picture, orientation);
//Then I tried this that rotates my picture correctly but ONLY in the first picture i get thatbstrange stretching behaviour
Utilities.RotateImage (picture, Orientation.Rotation_90, null, null, (rotated, unused) => {
const express = require('express');
const { parse } = require('url');
const next = require('next');
const dev = process.env.NODE_ENV !== 'production';
const app = next({ dev });
const handle = app.getRequestHandler();
app.prepare()
.then(() => {