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
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); | |
}) |
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
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) => { |
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
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(() => { |