I hereby claim:
- I am dubirajara on github.
- I am dubirajara (https://keybase.io/dubirajara) on keybase.
- I have a public key ASCZ4dux22GYRc8lVXbaAq35jVIJLB-eQj3tb35jg4mJCwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| from tkinter import * | |
| from tkinter import ttk | |
| from PIL import ImageTk, Image | |
| import random | |
| class MainApp(Tk): | |
| size = '475x600' | |
| def __init__(self): |
| def string_n_string(s, n): | |
| for _ in range(n): | |
| even = [char for i, char in enumerate(s) if i % 2 == 0] | |
| odd = [char for i, char in enumerate(s) if i % 2 != 0] | |
| s = ''.join(even + odd) | |
| return s | |
| assert string_n_string("Wow Example!", 1) == "WwEapeo xml!" # testcase | |
| assert string_n_string("qwertyuio", 2) == "qtorieuwy" # testcase |
| from itertools import chain | |
| from operator import itemgetter | |
| import re | |
| import string | |
| import requests | |
| urls = ['https://storage.googleapis.com/apache-beam-samples/shakespeare/kinglear.txt', | |
| 'https://storage.googleapis.com/apache-beam-samples/shakespeare/othello.txt', | |
| 'https://storage.googleapis.com/apache-beam-samples/shakespeare/romeoandjuliet.txt'] |
| import bleach | |
| @app.template_filter('linkify') | |
| def linkify(link): | |
| '''Flask custom template tag to convert urls in clickable links''' | |
| return bleach.linkify(link) |
| from django.core.management import utils | |
| CONFIG_ENV = f""" | |
| SECRET_KEY={utils.get_random_secret_key()} | |
| DEBUG=True | |
| ALLOWED_HOSTS=* | |
| [email protected] | |
| EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend |
| # coding: utf-8 | |
| import os | |
| import shutil | |
| import requests | |
| import re | |
| TOPIC_LIST = [ | |
| 'programming', | |
| 'web-platform', | |
| 'security', |