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
version: '3' | |
volumes: | |
db: | |
name: ${DB_CONTAINER:-postgres} | |
services: | |
postgres: | |
image: postgres:alpine | |
container_name: ${DB_CONTAINER:-postgres} |
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
name: Greeting from Mona | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Deploy To Server |
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
version: "3" | |
services: | |
app: | |
image: 'jc21/nginx-proxy-manager:latest' | |
restart: unless-stopped | |
ports: | |
- '80:80' | |
- '443:443' | |
- '81:81' | |
environment: |
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
version: "3.1" | |
services: | |
vscode: | |
container_name: vscode | |
image: codercom/code-server | |
ports: | |
- "8080:8080" | |
volumes: | |
- ./.config:/home/coder/.config |
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
version: '3.8' | |
services: | |
ghost: | |
image: ghost:4-alpine | |
restart: always | |
container_name: ghost | |
ports: | |
- 8080:2368 |
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
# uji satu sampel | |
ujiSatuSampel <- function(data_1, miu, sigma = NULL, alpha = 0.05){ | |
X_bar = apply(data_1, 2, mean) | |
n = nrow(data_1) | |
p = ncol(data_1) | |
hasSigma = !is.null(sigma) | |
if(length(miu) != p) stop("data tidak sama") | |
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
vectorLength <- function(x) { | |
if(!is.vector(x)) stop("x is not a vector") | |
return(sqrt(sum(x^2))) | |
} | |
vectorAngelCos <- function(x, y){ | |
if(!is.vector(x) || !is.vector(y)) stop("x or y is not a vector") | |
if(length(x) != length(y)) stop("x and y are not the same length") | |
# cos value of vector angel of x and y is x'y/(L_x * L_y) |