Acesse o link oficial https://docs.microsoft.com/pt-br/windows/wsl/install.
Abra o PowerShell como Admin e execute o comando a seguir:
wsl --install
| // Documentaion https://developers.google.com/apps-script/guides/content | |
| const API_KEY = '03214fc6-dbf0-424f-8086-a7acde8c91af' | |
| // Request Get | |
| // curl -L URL_OF_YOUR_SCRIPT?apikey=03214fc6-dbf0-424f-8086-a7acde8c91af&phone=5599999999999 | |
| function doGet(event) { | |
| try { | |
| const data = event.parameters; |
| /** | |
| * 10 JavaScript array functions | |
| * | |
| * Insert | |
| * - push | |
| * | |
| * Retrieve/Search | |
| * - filter | |
| * - find | |
| * - includes(item) || includes(item, index) |
| FROM node:alpine | |
| WORKDIR /usr/app | |
| COPY ./Api/package*.json ./ | |
| RUN npm install | |
| COPY ./Api . |
| Array.prototype.verifyEven = function () { | |
| return this.filter((item) => { | |
| if (item % 2 === 0) { | |
| return item; | |
| } | |
| }); | |
| }; | |
| Array.prototype.verifyOdd = function () { | |
| return this.filter((item) => { |
| const form = { | |
| name: { value: 'Francisco Chaves' }, | |
| email: { value: '[email protected]' }, | |
| github: { value: 'https://github.com/franciscochaves' }, | |
| site: { value: 'https://franciscochaves.com.br' }, | |
| bio: { value: 'Software Engineer' }, | |
| avatar: { value: 'https://avatars.githubusercontent.com/u/13373569' }, | |
| }; | |
| const result = Object.keys(form).reduce((acc, key) => { |
| const fs = require('fs/promises'); | |
| const path = require('path'); | |
| const user = 'francisco'; | |
| const pathUserImages = `/home/${user}/Pictures/`; | |
| fs.readdir(path.join('/', 'home', user, 'Pictures')) | |
| .then((files) => { | |
| const acceptedExtensions = ['.jpg', '.jpeg', '.png', '.gif', '.svg']; |
| #!/bin/bash | |
| sudo apt update && \ | |
| sudo apt -y upgrade && \ | |
| sudo apt -y autoremove && \ | |
| sudo apt -y autoclean && \ | |
| sudo apt -y clean && \ | |
| sudo apt update && \ | |
| sudo apt -y upgrade && \ | |
| notify-send "Update System - OK" -i "gnome-terminal" |
| /** | |
| * Subject or Observable | |
| */ | |
| function Observable() { | |
| this.observers = []; | |
| } | |
| /** | |
| * Add observer to observable | |
| * @param {object} observer |
Acesse o link oficial https://docs.microsoft.com/pt-br/windows/wsl/install.
Abra o PowerShell como Admin e execute o comando a seguir:
wsl --install
| const ny = new Date().toLocaleString("en-US", {timeZone: "America/New_York"}) | |
| const sp = new Date().toLocaleString("pt-BR", {timeZone: "America/Sao_Paulo"}) | |
| console.log(ny); | |
| // 10/31/2021, 5:41:08 PM | |
| console.log(sp); | |
| // 31/10/2021 18:41:08 |