Skip to content
Myr

hacks.html

This file

Path

docs/_templates/hacks.html

86 lines · 2.3 KiB · HTML

Last changed by

Python 2 Death Sentence™Kenneth Reitzbefore adoption572d2f4

History of this file

Take it

The walk stopped after 200 commits: lines older than 52a3526 point at it.

Merge pull request #3981 from graingert/cache-pipCory Benfieldbefore adoption52a3526

line 1why, one step back
1<!-- Alabaster (krTheme++) Hacks -->

Python 2 Death Sentence™Kenneth Reitzbefore adoption572d2f4

lines 2–5why, one step back
2<aside id="python27">
3 Python 3, the new best practice, is here to stay.4 Python 2 will retire in only <time></time> months!5</aside>

Merge pull request #3981 from graingert/cache-pipCory Benfieldbefore adoption52a3526

line 6why, one step back
6

Python 2 Death Sentence™Kenneth Reitzbefore adoption572d2f4

lines 7–32why, one step back
7<!-- Python 2 Death Clock™ -->
8<style type="text/css">9 body { margin-top: 4em; }10 #python27 {11 position: fixed;12 top: 0;13 left: 0; right: 0;14 height: auto;15 text-align: center;16 color: white;17 background-color: black;18 font-size: larger;19 line-height: 3;20 }2122</style>23<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>24<script>25 var death = new Date('2020-04-12');2627 var diff = moment.duration(death - moment());2829 document.querySelector('#python27 time').innerText = (diff.years() * 12) + diff.months();30</script>3132

Merge pull request #3981 from graingert/cache-pipCory Benfieldbefore adoption52a3526

lines 33–58why, one step back
33<!-- CSS Adjustments (I'm very picky.) -->
34<style type="text/css">3536 /* Rezzy requires precise alignment. */37 img.logo {margin-left: -20px!important;}3839 /* "Quick Search" should be capitalized. */40 div#searchbox h3 {text-transform: capitalize;}4142 /* Make the document a little wider, less code is cut-off. */43 div.document {width: 1008px;}4445 /* Much-improved spacing around code blocks. */46 div.highlight pre {padding: 11px 14px;}4748 /* Remain Responsive! */49 @media screen and (max-width: 1008px) {50 div.sphinxsidebar {display: none;}51 div.document {width: 100%!important;}5253 /* Have code blocks escape the document right-margin. */54 div.highlight pre {margin-right: -30px;}55 }5657</style>58

Python 2 Death Sentence™Kenneth Reitzbefore adoption572d2f4

line 59why, one step back
59

Merge pull request #3981 from graingert/cache-pipCory Benfieldbefore adoption52a3526

lines 60–75why, one step back
60<!-- Analytics tracking for Kenneth. -->
61<script type="text/javascript">62 var _gauges = _gauges || [];63 (function() {64 var t = document.createElement('script');65 t.type = 'text/javascript';66 t.async = true;67 t.id = 'gauges-tracker';68 t.setAttribute('data-site-id', '56ca7a57c88d9011080024dd');69 t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif');70 t.src = 'https://d36ee2fcip1434.cloudfront.net/track.js';71 var s = document.getElementsByTagName('script')[0];72 s.parentNode.insertBefore(t, s);73 })();74</script>75

Python 2 Death Sentence™Kenneth Reitzbefore adoption572d2f4

line 76why, one step back
76

Merge pull request #3981 from graingert/cache-pipCory Benfieldbefore adoption52a3526

lines 77–86why, one step back
77<!-- There are no more hacks. -->
78<!-- இڿڰۣ-ڰۣ— -->79<!-- Love, Kenneth Reitz -->8081<script src="{{ pathto('_static/', 1) }}/konami.js"></script>82<script>83 var easter_egg = new Konami('http://fortunes.herokuapp.com/random/raw');84</script>8586<!-- That was not a hack. That was art. -->