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
# Pull base image | |
FROM python:3 | |
# Set environment varibles | |
ENV PYTHONDONTWRITEBYTECODE 1 | |
ENV PYTHONUNBUFFERED 1 | |
# Set work directory | |
RUN mkdir /backend-challenge | |
COPY . /backend-challenge/ |
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
# Install ARCH Linux with encrypted file-system and UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
## Download the archiso image from https://www.archlinux.org/ | |
## Copy to a usb-drive | |
$ dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
## Set brazilian portuguese keymap |
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
// This is a "stub" file. It's a little start on your solution. | |
// It's not a complete solution though; you have to write some code. | |
// Package twofer should have a package comment that summarizes what it's about. | |
// https://golang.org/doc/effective_go.html#commentary | |
package twofer | |
import "fmt" | |
// ShareWith should have a comment documenting it. |
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
'use strict'; | |
const number = Math.trunc(Math.random() * 20) + 1; | |
// Math.trunc(Math.random() * 21) | |
//document.querySelector('.message').textContent = 'Hello World!'; | |
//document.querySelector('.score').textContent = 42; | |
document.querySelector('.number').textContent = number; |
OlderNewer