- Catalina
- Big Sur
- Monterey
- Ventura
- Sonoma
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
from string import Template | |
class DefaultTemplateTag(Template): | |
delimiter = '{{' | |
pattern = ''' | |
\{\{(?: | |
(?P<escaped>\{\{)| | |
(?P<named>[_a-z][_a-z0-9]*)\}\}| | |
(?P<braced>[_a-z][_a-z0-9]*)\}\}| |
Olá, Pessoal,
a Python Sul começa amanhã. Na sexta e no sábado, as palestras do evento serão na sede da Softplan, localizada no Sapiens Parque, em Canasvieiras, norte da ilha. Os tutoriais, serão nas Faculdades Cesusc, em Santo Antônio de Lisboa.
Palestras: Softplan, Sapiens Parque - Canasvieiras - Florianópolis
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
""" | |
Autores: | |
Tiago Henrique da Cruz Pereira | |
João Felipe de Moraes Borges | |
""" | |
import threading | |
import time | |
import os | |
from urllib.request import urlopen |
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
def mimimi(frase): | |
""" | |
Função que mimimiza frases | |
>>> mimimi('Por que você não tá estudando pra sua prova de amanhã?') | |
'Pir qii vici nii ti istidindi pri sii privi di iminhi?' | |
""" | |
n = ('ã', 'a', 'e', 'o', 'u', 'á', 'é', 'ê', 'í', 'ó') | |
for letra in n: | |
frase = frase.replace(letra, 'i') | |
return frase |
A quick guide on how to setup Node.js development environment.
nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.
- Open new Terminal window.
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 | |
# Sublime Text 3 Install (last update: Monday 13 March 2017) | |
# | |
# No need to download this script, just run it on your terminal: | |
# | |
# curl -L git.io/sublimetext | sh | |
# Detect the architecture |
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
<!-- Specific path, only when visiting /accounts/ --> | |
<li class="{% active request "^/accounts/$" %}"><a href="/accounts/">Accounts</a></li> | |
<!-- Glob path, when visiting /blog/* example /blog/, /blog/post1/, /blog/post2/, /blog/post2/subitem/, ... --> | |
<li class="{% active request "^/blog/" %}"><a href="/blog/">Blog</a></li> |
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 sys | |
from robotide.controller.chiefcontroller import ChiefController | |
from robotide.controller.commands import NullObserver | |
from robotide.controller.filecontrollers import DirectoryController | |
from robotide.namespace import Namespace | |
from robotide.spec.iteminfo import LibraryKeywordInfo | |
from robotide.usages.commands import FindUsages | |
def construct_chief_controller(datapath): |
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
from django.template.defaultfilters import floatformat | |
from django.contrib.humanize.templatetags.humanize import intcomma | |
from django.utils.encoding import force_unicode | |
def decimal_to_real(value, precision=2): | |
''' | |
Receives a Decimal instance and returns a string formatted as brazilian Real currency: | |
12,234.00. Without the "R$". | |
''' | |
value = floatformat(value, precision) |
NewerOlder