You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

166 lines
3.0 KiB

5 years ago
5 years ago
5 years ago
5 years ago
  1. <!DOCTYPE html>
  2. <html class="ocks-org do-not-copy">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Comprehensive Python Cheatsheet</title>
  6. <link rel="icon" href="web/favicon.png">
  7. <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
  8. <script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
  9. <script src="web/showdown.min.js"></script>
  10. <link rel="stylesheet" href="web/default.min.css">
  11. <script src="web/highlight.min.js"></script>
  12. <script src="web/script.js"></script>
  13. <meta name="twitter:card" content="summary">
  14. <meta name="twitter:title" content="Comprehensive Python Cheatsheet">
  15. <meta name="twitter:description" content="Exhaustive, simple, beautiful and concise. A truly pythonic cheat sheet about Python programming language.">
  16. <meta name="twitter:image" content="https://gto76.github.io/python-cheatsheet/web/image_twitter_card_2.jpeg">
  17. </head>
  18. <style>
  19. @import url(web/style.css);
  20. .join,
  21. .link,
  22. .node rect {
  23. fill: none;
  24. stroke: #636363;
  25. stroke-width: 1.5px;
  26. }
  27. .link {
  28. stroke: #969696;
  29. }
  30. .node rect {
  31. fill: white;
  32. }
  33. .link path,
  34. .node rect,
  35. .node text,
  36. .join {
  37. -webkit-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  38. -moz-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  39. -ms-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  40. -o-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  41. transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  42. }
  43. .node .element rect {
  44. fill: #bdbdbd;
  45. stroke: none;
  46. }
  47. .node .null rect {
  48. fill: none;
  49. stroke: none;
  50. }
  51. .node .null text {
  52. fill: #636363;
  53. }
  54. .node .selection rect {
  55. stroke: #e6550d;
  56. }
  57. .node .data rect {
  58. stroke: #3182bd;
  59. }
  60. .node .datum rect {
  61. fill: #d9d9d9;
  62. stroke: none;
  63. }
  64. .node .code text {
  65. font-family: monospace;
  66. }
  67. .node .key rect {
  68. fill: #a1d99b;
  69. stroke: none;
  70. }
  71. .link .to-key,
  72. .join {
  73. stroke: #a1d99b;
  74. }
  75. .join {
  76. stroke-dasharray: 2,2;
  77. }
  78. .link .to-null {
  79. stroke-dasharray: .5,3.5;
  80. stroke-linecap: round;
  81. }
  82. .link .from-data {
  83. stroke: #3182bd;
  84. }
  85. .play circle {
  86. fill: #fff;
  87. stroke: #000;
  88. stroke-width: 3px;
  89. }
  90. .play:hover path {
  91. fill: #f00;
  92. }
  93. .play.mousedown circle {
  94. fill: #f00;
  95. }
  96. .play.mousedown path {
  97. fill: #fff;
  98. }
  99. .play rect {
  100. fill: none;
  101. pointer-events: all;
  102. cursor: pointer;
  103. }
  104. code span {
  105. -webkit-transition: background 250ms linear;
  106. -moz-transition: background 250ms linear;
  107. -ms-transition: background 250ms linear;
  108. -o-transition: background 250ms linear;
  109. transition: background 250ms linear;
  110. }
  111. pre.prettyprint, code.prettyprint {
  112. background-color: #222;
  113. border-radius: 8px;
  114. font-size: 15px;
  115. }
  116. pre.prettyprint {
  117. width: 90%;
  118. margin: 0.5em;
  119. padding: 1em;
  120. white-space: pre-wrap;
  121. }
  122. </style>
  123. <body>
  124. <header>
  125. <aside>March 14, 2018</aside>
  126. <a href="../" rel="author">Jure Šorn</a>
  127. </header>
  128. <div id=main_container></div>
  129. <footer>
  130. <aside>March 14, 2018</aside>
  131. <a href="../" rel="author">Jure Šorn</a>
  132. </footer>
  133. <br>
  134. <br>
  135. <br>
  136. </body>
  137. </html>