Suppose you insert a line of code below.
import sys
Here's what the one-line code is to be inserted into. (app.py)
1 import os
alias ls='lsd' | |
alias ll='ls -l' | |
alias la='ls -la' | |
alias lla='ls -la' | |
alias lt='ls --tree' | |
alias cat='bat --paging=never --theme=Dracula' |
const format = new Intl.NumberFormat('en-Us', { | |
style: 'currency', | |
currency: 'USD', | |
minimumFractionDigits: 2, | |
}).format | |
function formatCurrency(number) { | |
return format(number) | |
} |
Suppose you insert a line of code below.
import sys
Here's what the one-line code is to be inserted into. (app.py)
1 import os
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
mail_content = 'Hi there!' | |
sender_address = "[email protected]" | |
sender_password = "very_secret_password" | |
receiver_address = "[email protected]" |
#!/usr/bin/env python | |
from __future__ import print_function | |
import re | |
import sys | |
GIT_HEAD_REF = '.git/HEAD' | |
ticket_number = re.compile(r'\b[A-Z]{2,}-[0-9]+') | |
branch_ticket_number = re.compile(r'\b[a-z]{2,}-[0-9]+') |
# 💡 NOTE: This only works if you are pretend to using `Django Console` feature in Pycharm | |
# Paste codes below into `Build, Execution, Deployment > Console > Django Console > Starting Script` | |
# requirements: `django_extensions`, `IPython` | |
import sys | |
import django | |
from IPython.core.getipython import get_ipython | |
from django_extensions.management.notebook_extension import load_ipython_extension |
import sys | |
import logging | |
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) | |
class logger: | |
def __init__(self, function): | |
self.function = function | |
self.logger = logging.getLogger(__name__) |
import requests | |
import logging | |
from requests.exceptions import ReadTimeout, ConnectionError | |
logger = logging.getLogger(__name__) | |
url = 'https://www.google.com:81' | |
data = { 'username': 'DoonDoony', 'address': '...' } | |
retries = 3 |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Infinite Scrolling 🤞</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.css"> | |
<style> |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | |
name="viewport"> | |
<meta content="ie=edge" http-equiv="X-UA-Compatible"> | |
<title>Document</title> | |
<style> | |
div.image-box { |