Skip to content
Myr

hacks.html

This file

Path

docs/_templates/hacks.html

110 lines · 2.9 KiB · HTML

Last changed by

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

History of this file

Take it

The walk stopped after 200 commits: lines older than 8546a15 point at it.

The library raises NoneType error when file-pointer (fp) resolves to None.Rajiv Mayanibefore adoption8546a15

lines 1–56why, one step back
1<!-- Alabaster (krTheme++) Hacks -->
23<!-- CSS Adjustments (I'm very picky.) -->4<style type="text/css">56 /* Rezzy requires precise alignment. */7 img.logo {margin-left: -20px!important;}89 /* "Quick Search" should be capitalized. */10 div#searchbox h3 {text-transform: capitalize;}1112 /* Make the document a little wider, less code is cut-off. */13 div.document {width: 1008px;}1415 /* Much-improved spacing around code blocks. */16 div.highlight pre {padding: 11px 14px;}1718 /* Remain Responsive! */19 @media screen and (max-width: 1008px) {20 div.sphinxsidebar {display: none;}21 div.document {width: 100%!important;}2223 /* Have code blocks escape the document right-margin. */24 div.highlight pre {margin-right: -30px;}25 }2627</style>282930<!-- Analytics tracking for Kenneth. -->31<script type="text/javascript">32 var _gauges = _gauges || [];33 (function() {34 var t = document.createElement('script');35 t.type = 'text/javascript';36 t.async = true;37 t.id = 'gauges-tracker';38 t.setAttribute('data-site-id', '56ca7a57c88d9011080024dd');39 t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif');40 t.src = 'https://d36ee2fcip1434.cloudfront.net/track.js';41 var s = document.getElementsByTagName('script')[0];42 s.parentNode.insertBefore(t, s);43 })();44</script>454647<!-- There are no more hacks. -->48<!-- இڿڰۣ-ڰۣ— -->49<!-- Love, Kenneth Reitz -->5051<script src="{{ pathto('_static/', 1) }}/konami.js"></script>52<script>53 var easter_egg = new Konami('http://fortunes.herokuapp.com/random/raw');54</script>5556<!-- That was not a hack. That was art. -->

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption79e28b7

lines 57–59why, one step back
57
58<!-- Native CPC by BuySellAds -->59

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

line 60why, one step back
60<script type="text/javascript" src="//m.servedby-buysellads.com/monetization.js"></script>

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption79e28b7

line 61why, one step back
61

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

lines 62–71why, one step back
62<div id="native-ribbon">
63</div>6465<script>66_bsa.init('custom', 'CK7D62JU', 'placement:pythonrequestsorg',67 {68 target: '#native-ribbon',69 template: `70<div class="native-sponsor">Sponsored by ##company## — Learn More</div>71 <a href="##link##" class="native-flex">

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption79e28b7

line 72why, one step back
72 <style>

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

lines 73–75why, one step back
73 #native-ribbon #_custom_ {
74 background: linear-gradient(-30deg, ##backgroundColor##E5, ##backgroundColor##E5 45%, ##backgroundColor## 45%) #fff;75 }

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption79e28b7

line 76why, one step back
76

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

lines 77–81why, one step back
77 .native-details,
78 .native-sponsor,79 .native-bsa {80 color: ##textColor## !important;81 }

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption79e28b7

line 82why, one step back
82

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

lines 83–85why, one step back
83 .native-details:hover {
84 color: ##textColorHover## !important;85 }

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption79e28b7

line 86why, one step back
86

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

lines 87–90why, one step back
87 .native-cta {
88 color: ##ctaTextColor##;89 background-color: ##ctaBackgroundColor##;90 }

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption79e28b7

line 91why, one step back
91

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

lines 92–95why, one step back
92 .native-cta:hover {
93 color: ##ctaTextColorHover##;94 background-color: ##ctaBackgroundColorHover##;95 }

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption79e28b7

lines 96–97why, one step back
96 </style>
97 <div class="native-main">

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

line 98why, one step back
98 <img class="native-img" src="##logo##">

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption79e28b7

line 99why, one step back
99 <div class="native-details">

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

lines 100–101why, one step back
100 <span class="native-company">##title##</span>
101 <span class="native-desc">##description##</span>

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption79e28b7

lines 102–103why, one step back
102 </div>
103 </div>

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

line 104why, one step back
104 <span class="native-cta">##callToAction##</span>

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption79e28b7

lines 105–106why, one step back
105 </a>
106</div>

Merge pull request #4978 from sayzlim/masterKenneth Reitzbefore adoption5eb7337

lines 107–110why, one step back
107`
108 }109 );110</script>