https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04
sudo adduser deploy
Give a nice password, enter name and leave all other fields blank.
# YOLOv5 requirements | |
# Usage: pip install -r requirements.txt | |
# Base ---------------------------------------- | |
matplotlib>=3.2.2 | |
numpy>=1.18.5 | |
opencv-python>=4.1.1 | |
Pillow>=7.1.2 | |
PyYAML>=5.3.1 | |
requests>=2.23.0 |
# Copyright (c) OpenMMLab. All rights reserved. | |
import argparse | |
import time | |
from collections import deque | |
from operator import itemgetter | |
from threading import Thread | |
import cv2 | |
import numpy as np | |
import torch |
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04
sudo adduser deploy
Give a nice password, enter name and leave all other fields blank.
// What is the output ? | |
function greet (person) { | |
if (person == { name: 'amy' }) { | |
return 'hey amy' | |
} else { | |
return 'hey arnold' | |
} | |
} | |
console.log(greet({ name: 'amy' })) |
// Consider the code snippet below. What will the console output be and why? | |
(function(x) { | |
return (function(y) { | |
console.log(x); | |
})(2) | |
})(1); |
// What will the code below output to the console and why ? | |
var myObject = { | |
foo: "bar", | |
func: function() { | |
var self = this; | |
console.log("outer func: this.foo = " + this.foo); | |
console.log("outer func: self.foo = " + self.foo); | |
(function() { | |
console.log("inner func: this.foo = " + this.foo); | |
console.log("inner func: self.foo = " + self.foo); |
// Consider the following code. What will the output be, and why? | |
(function () { | |
try { | |
throw new Error(); | |
} catch (x) { | |
var x = 1, y = 2; | |
console.log(x); | |
} | |
console.log(x); | |
console.log(y); |
// The following code has a compile time error. Can you spot where and why it happens? | |
struct Kitten { | |
} | |
func showKitten(kitten: Kitten?) { | |
guard let k = kitten else { | |
print("There is no kitten") | |
} | |
print(k) |
class Star { | |
class func spin() {} | |
static func illuminate() {} | |
} | |
class Sun : Star { | |
override class func spin() { | |
super.spin() | |
} | |
override static func illuminate() { |
import UIKit | |
var view1 = UIView() | |
view1.alpha = 0.5 | |
let view2 = UIView() | |
view2.alpha = 0.5 // Will this line compile? |