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
<header class="container"> | |
<div class="logo"> | |
<h1 class="logo__heading"> | |
<img class="logo__image" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/39255/jpng-logo.png" alt="JPNG.svg" /> | |
</h1> | |
<small class="logo__subtitle"><em>This logo was originally 300kb, but compressed down to 69kb using the tool below.</em></small> | |
</div> |
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/env python | |
''' | |
check_link.py | |
Parses a url, and checks links in it for validity. | |
Normally, does not check links to the source URL's pages. | |
Normally, only reports problem links. | |
Usage: | |
check_link.py [-i] [-v] [-b BASEURL] <url>... |
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
# coding: utf-8 | |
''' | |
Tried to bit-invert a CSS hex-encoded color using python, but | |
couldn't get expected output with bit-invert operator. | |
I.e. this didn't do what I expected: | |
print(f'#{old_color:x} => #{~old_color:x}') | |
Besides acting on an apparently arbitrary length integer (rather | |
than an unsigned (i.e. sign-not-interpreted) bit pattern, the operator |
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
# my build: (Ubuntu 20.04) | |
# see notes (2/12/2020): | |
# https://github.com/ycm-core/YouCompleteMe/wiki/Building-Vim-from-source | |
# be sure we have libgtk-3-dev installed | |
# sudo apt install libgtk-3-dev | |
./configure \ | |
--with-features=huge \ | |
--enable-multibyte \ | |
--enable-luainterp=yes \ | |
--enable-python3interp=yes \ |
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/env python | |
''' | |
separate_mbox [input_mbox] [filter_label] | |
''' | |
from collections import Counter | |
from pprint import pprint | |
from sys import argv, stdin, stdout, stderr | |
# write based on first label |
OlderNewer