This file contains hidden or 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
{% extends "admin/base_site.html" %} | |
{% load i18n l10n admin_urls %} | |
{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation | |
delete-selected-confirmation{% endblock %} | |
{% block content %} | |
<p>Are you sure you want to {{ action }}?</p> | |
<ul style="padding: 0"> | |
{% for object in queryset.all %} |
This file contains hidden or 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
# pip install speedtest-cli | |
import os | |
import csv, json | |
import subprocess | |
from datetime import datetime | |
res = subprocess.run(["speedtest-cli --server 6982 --json"], stdout=subprocess.PIPE, shell=True) | |
now = datetime.now() |
This file contains hidden or 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 PIL import Image, ImageFont, ImageDraw # Pillow==6.0.0 | |
WIDTH = 480 | |
HEIGHT = 640 | |
def get_font(size, is_bold=False): | |
"""https://fonts.google.com/specimen/Open+Sans""" | |
if is_bold: |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Print("Sonni kiriting: ") | |
var input string | |
fmt.Scanln(&input) |
This file contains hidden or 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/python | |
""" | |
Usage: | |
python swagger-yaml-to-html.py < /path/to/api.yaml > doc.html | |
""" | |
import yaml, json, sys | |
TEMPLATE = """ |