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-US"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Toggle Password Visibility Demo</title> | |
<script | |
src="https://code.jquery.com/jquery-3.4.1.min.js" | |
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" | |
crossorigin="anonymous"></script> | |
</head> |
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
"""Reproduce SplitArrayField for no-psycopg2 environment. | |
See: | |
- 1.11.x/django/contrib/postgres/forms/array.py | |
- 1.11.x/django/forms/fields.py | |
- 1.11/ref/contrib/postgres/forms/ | |
- 1.11/ref/forms/validation/ | |
""" |
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
"""Boolean query parser.""" | |
import collections | |
import enum | |
import re | |
from typing import Generator, Iterable, List, Optional, Sequence, Tuple, Union | |
class BooleanOp(enum.Enum): | |
# Note: Enum defines __hash__ as hash(self._name_) |
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 logging | |
from typing import List, Tuple | |
import numpy as np | |
from scipy import sparse | |
from sklearn.decomposition import NMF | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
logging.basicConfig( | |
level=logging.DEBUG, format="%(created)f [%(levelname)s] %(message)s" |
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/bash | |
# | |
# Clone & make CPython for development on Mac OS X. | |
# | |
# - Clones CPython into your current directory | |
# - Installs developer tools & development headers if needed, via brew | |
# - Configures, makes, tests Python | |
# - Launches Python REPL | |
# | |
# The output is verbose by default. |
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 sh | |
# | |
# Miniature version of redis/utils/install_server.sh | |
# compatible across OS X + Linux | |
if [ "$(id -u)" -ne 0 ]; then | |
echo "Must run as root" | |
exit 1 | |
fi |
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
print(0xc0ffee) |
This file has been truncated, but you can view the full file.
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
https://www.kitchenertoday.com/world-news/trumps-ag-nominee-defends-memo-criticizing-mueller-probe-1194852 | |
http://www.bomboradyo.com/coa-resident-auditor-nasita-sa-kamara-dahil-sa-flood-control-scam/ | |
https://www.derbytelegraph.co.uk/news/local-news/live-a6-flood-traffic-delays-2430621 | |
http://showbizplus.com/index.php/blog/49735/home-insurance-five-ways-to-less/ | |
https://autoblog.com.ar/2019/01/15/proyecto-cyclone-ya-es-oficial-las-ford-ranger-y-vw-amarok-compartiran-plataforma-a-partir-de-2022/ | |
https://www.ft.com/content/7990545e-18c7-11e9-b93e-f4351a53f1c3?FTCamp=engage/CAPI/webapp/Channel_Moreover//B2B | |
http://blog.geogarage.com/2019/01/ocean-warming-is-accelerating-faster.html | |
https://liberal.com.br/cidades/nova-odessa/oab-de-nova-odessa-pede-intervencao-em-cobranca-da-taxa-de-lixo-943237/ | |
https://theopenview.in/2019/01/15/pongal-celebrated-in-tn-with-traditional-fervour/ | |
https://www.huffingtonpost.co.uk/entry/canada-issues-high-caution-travel-warning-for-china-amid-citizens-death-sentence_uk_5c3d9bd2e4b0922 |
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 asyncio | |
async def foo(): | |
await asyncio.sleep(1) | |
return 2 | |
async def bar(): | |
f1 = await foo() | |
f2 = await foo() | |
return f1, f2 |