-novid -high -language brazilian +exec krosky.cfg
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
#!/usr/bin/env python3 | |
import requests, re | |
from bs4 import BeautifulSoup | |
url = 'https://www.google.com/finance/quote/BTC-BRL' | |
headers = { | |
'Accept-Language': 'pt-BR' | |
} | |
response = requests.get(url, headers=headers) | |
if response.status_code == 200: | |
soup = BeautifulSoup(response.text, 'html.parser') |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Block Paragraph</title> | |
<style> | |
body { | |
width: 80%; |
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
#coding: utf-8 | |
score = int(0) | |
pointsh={"Rock":1, "Paper":2, "Scissors":3} | |
points={"Winner":6, "Draw":3, "Loser":0} | |
file = open("dataday.txt", "r") | |
for line in file: | |
if line in ['\n', '\r\n']: | |
pass | |
else: | |
tmp = line.split(' ') |
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
import android.text.Editable | |
import android.text.TextWatcher | |
import android.util.Log | |
import android.widget.EditText | |
import java.math.BigDecimal | |
import java.text.DecimalFormat | |
import java.text.NumberFormat | |
import java.util.* | |
class CurrencyMask(private val editText: EditText) : TextWatcher { |
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
# vim: noet ft=make: | |
JAVAC = javac | |
JAVA = java | |
SRC := $(wildcard *.java) | |
TARGET := $(SRC:%.java=%.class) | |
BIN := $(TARGET:%.class=%) | |
all: run |
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
#!/usr/bin/env bash | |
# Manter Horário Linux Sincronizado sem NTP | |
# ------------------------------------------------------------------ | |
sudo date +%s -s @$(curl -s http://pcdsh01.on.br/RelogioServidor.php) > /dev/null |
- Usar modo imperativo ("Adiciona feature" não "Adicionando feature" ou "Adicionada feature").
- Primeira linha deve ter no máximo 72 caracteres.
- Considere descrever com detalhes no corpo do commit.
- Considere usar um emoji no início da mensagem de commit.
Emoji | Code | Commit Type
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/sh | |
session=${1:-i3} | |
case $session in | |
i3|i3wm) exec i3;; | |
kde) exec startplasma-x11;; | |
*) exec $1;; | |
esac |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# vim: set fileencoding=utf-8 : | |
__author__ = "Felipe Oliveira" | |
__license__ = "MIT" | |
""" calc-media-parcial.py: | |
Cálculo de Nota Necessária na Recuperação para Atingir a Média do IFRJ. | |
""" | |
b = float(input("INFORME A NOTA PARCIAL NO BIMESTRE: ")) | |
x = (15 - b)/1.5 |
NewerOlder