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
#!/bin/bash | |
# $1 vai ser o corpo da resposta a ser enviada | |
http_response() { | |
content_length=$(echo -n "$1" | wc -c) # calcula o número de bytes no corpo da resposta | |
printf $'HTTP/1.1 200 ok\r\n' | |
printf $'Content-Length: %s\r\n' "$content_length" | |
printf $'Content-Type: text/plain\r\n' | |
printf $'Connection: close\r\n' | |
printf $'\r\n' |
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
representations = { | |
'0': ('---', '- -', '- -', '- -', '---'), | |
'1': (' - ', ' - ', ' - ', ' - ', ' - '), | |
'2': ('---', ' -', '---', '- ', '---'), | |
'3': ('---', ' -', '---', ' -', '---'), | |
'4': ('- -', '- -', '---', ' -', ' -'), | |
'5': ('---', '- ', '---', ' -', '---'), | |
'6': ('---', '- ', '---', '- -', '---'), | |
'7': ('---', ' -', ' -', ' -', ' -'), | |
'8': ('---', '- -', '---', '- -', '---'), |
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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.barra_de_buscas"> | |
<!-- Required to fetch data from the internet. --> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application | |
android:label="last_test_searchbar" | |
android:name="${applicationName}" | |
android:icon="@mipmap/ic_launcher"> | |
<activity | |
android:name=".MainActivity" |
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
## O que é markdown | |
Se você usa o github, já deve ter formatado algum texto em markdown. | |
O markdown em si se trata de uma [ferramenta de conversão de texto em html](https://daringfireball.net/projects/markdown/), | |
e agiliza bastante o processo de quem edita textos direto pra web. | |
O github usa, notoriamente, uma versão incrementada, onde o markdown que você sobe \(geralmente no README.md\) passa por | |
uma etapa de processamento extra antes de ser transformado no html na página do seu repositório. |