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
#!/usr/bin/env bash | |
sudo apt update -y | |
sudo apt install docker.io | |
sudo apt install docker-compose | |
sudo usermod -aG docker $USER |
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
int somar(int a, int b): | |
ret a + b | |
int soma <- somar(2, 40) | |
imprimir(soma) |
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
# | |
# PantanAL | |
# Linguagem de programação para ensinar. | |
# | |
# Função para somar dois valores. | |
int somar(int a, int b): | |
ret a + b | |
# Registra soma de 2 e 40 na variável 'soma'. |
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
Set WshShell = WScript.CreateObject("WScript.Shell") | |
WshShell.SendKeys "echo Hello!" | |
WshShell.SendKeys "{ENTER}" |
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
<table style="height: 50px; width: 464px;"> | |
<tbody> | |
<tr> | |
<td style="width: 230px;"><strong>Ramal (<em>não obrigatório</em>):</strong></td> | |
<td style="width: 230px;"> </td> | |
</tr> | |
<tr> | |
<td style="width: 230px;"><strong>TeamViewer (<em>não obrigatório</em>):</strong></td> | |
<td style="width: 230px;"> </td> | |
</tr> |
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
function otherMonthDayString(string) { | |
return `\x1b[36m${string}\x1b[0m` | |
} | |
function todayString(string) { | |
return `\x1b[42m${string}\x1b[0m` | |
} | |
function getCalendarArray(year, month) { |
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
/** | |
* A bookmarklet to generate a QR code from the current page URL. | |
* | |
* @author Matheus Alves | |
* @license MIT | |
*/ | |
(() => { | |
function getQrCodeUrl(value, size) { | |
const url = new URL('https://chart.googleapis.com/chart') |
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
<style> | |
.container { | |
width: 100%; | |
overflow: hidden; | |
} | |
.image { | |
width: 100%; | |
/*transform: scale(3);*/ | |
} | |
</style> |
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
function createRegex(string) { | |
const regexPrefix = '^'; | |
const regexSuffix = '$'; | |
const regexMain = string.replace(/(.)/g, '($1).*'); | |
const regexContent = `${regexPrefix}${regexMain}${regexSuffix}`; | |
const regex = RegExp(regexContent, 'g'); | |
return regex; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
@media print{ | |
@page { | |
size: landscape; | |
margin: 0mm; | |
} |