Download an ISO installation image from one of the mirrors.
e.g. West coast: mirrors.ocf.berkeley.edu
| # Adapted from https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile | |
| # Install dependencies only when needed | |
| FROM node:16-alpine AS deps | |
| # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | |
| RUN apk add --no-cache libc6-compat | |
| WORKDIR /app | |
| COPY package.json package-lock.json ./ | |
| RUN npm ci | |
| # Rebuild the source code only when needed |
| import React, { useEffect, useState } from 'react'; | |
| import { useParams } from "react-router-dom"; | |
| const FORM_ID = 'payment-form'; | |
| export default function Product() { | |
| const { id } = useParams(); // id de producto | |
| const [preferenceId, setPreferenceId] = useState(null); | |
| useEffect(() => { |
| # vim:fileencoding=utf-8:ft=conf:foldmethod=marker | |
| #: Fonts {{{ | |
| #: kitty has very powerful font management. You can configure | |
| #: individual font faces and even specify special fonts for particular | |
| #: characters. | |
| font_family JetBrains Mono | |
| bold_font auto |
| const config = require('../config.json'); | |
| const fs = require('fs'); | |
| const _ = require('lodash'); | |
| const path = require('path'); | |
| const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path; | |
| const ffmpeg = require('fluent-ffmpeg'); | |
| ffmpeg.setFfmpegPath(ffmpegPath); | |
| const AWS = require('aws-sdk'); | |
| const s3 = new AWS.S3({ |
Download an ISO installation image from one of the mirrors.
e.g. West coast: mirrors.ocf.berkeley.edu
We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.
Let’s create our table driven test, for convenience, I chose to use t.Log as the test function.
Notice that we don't have any assertion in this test, it is not needed to for the demonstration.
func TestTLog(t *testing.T) {
t.Parallel()| set nocompatible " Use Vim defaults (much better!) | |
| set runtimepath=~/.neovim/,$VIMRUNTIME | |
| syntax on | |
| filetype off " required! | |
| if !has("unix") | |
| " Vundle on Windows | |
| set rtp+=~/vimfiles/bundle/Vundle.vim/ |