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
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls | |
# http://wiki.nginx.org/QuickStart | |
# http://wiki.nginx.org/Configuration | |
# | |
# Generally, you will want to move this file somewhere, and start with a clean | |
# file but keep this around for reference. Or just disable in sites-enabled. | |
# |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name _; # change this to your domain name | |
# 2 lines of code below to hide your server info. You have to install nginx-extras to enable it | |
# on Ubuntu run: sudo apt-get install nginx-extras | |
more_clear_headers Server; | |
server_tokens off; |
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
MONGO_ROOT_USERNAME=root | |
MONGO_ROOT_PASSWORD=ce2pFD2jJNmqNJkG | |
MONGO_HOST=localhost | |
MONGO_PORT=27017 | |
APP_MONGO_DB=sg-decoding-online | |
APP_MONGO_USER=user | |
APP_MONGO_PASS=ZfQDwQYN4T6PQARY |
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
MONGO_ROOT_USERNAME=root | |
MONGO_ROOT_PASSWORD=ce2pFD2jJNmqNJkG | |
MONGO_HOST=localhost | |
MONGO_PORT=27017 | |
APP_MONGO_DB=sg-decoding | |
APP_MONGO_USER=user | |
APP_MONGO_PASS=ZfQDwQYN4T6PQARY |
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 tmppath = URL.createObjectURL(file) // create temporary path of file | |
var img = new Image() | |
var offset = 0 | |
let self = this | |
img.onload = function() { | |
if(this.width < this.height) { | |
offset = this.width | |
} | |
else { | |
offset = this.height |
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
<template> | |
<div class="message"> | |
<div class="message-item user-name"> | |
MTD | |
</div> | |
<div class="message-item timestamp"> | |
| 11:21:32: | |
</div> | |
<div class="message-item text-message"> | |
Hello how are you |
NewerOlder