Skip to content

Instantly share code, notes, and snippets.

Python Dictionary Guide

Couple of notes:

  • If you want to get a better feel for how these things work, I highly recommend starting an interactive Python shell and trying these things out for yourself.
  • If you have any questions or feedback on anything in this guide, feel free to ping me on Discord and I'll be happy to respond!

Table of Contents

@sudoBash418
sudoBash418 / keybase.md
Created March 18, 2018 00:15
keybase.md

Keybase proof

I hereby claim:

  • I am sudobash418 on github.
  • I am sudobash (https://keybase.io/sudobash) on keybase.
  • I have a public key ASDy8250wTcEU6sQCAluV8H87OtVnkD4t5AR4Ekpj7_vVAo

To claim this, I am signing this object:

@sudoBash418
sudoBash418 / global-menu.patch
Created November 1, 2017 04:19
Patch for pamac-classic to change hamburger menu to global menu
diff --git a/data/interface/manager_window.ui b/data/interface/manager_window.ui
index d143e63..c8ef982 100644
--- a/data/interface/manager_window.ui
+++ b/data/interface/manager_window.ui
@@ -1025,17 +1025,17 @@
<property name="can_focus">False</property>
<property name="show_close_button">True</property>
<child>
- <object class="GtkButton" id="button_back">
+ <object class="GtkMenuButton" id="menu_button">
@sudoBash418
sudoBash418 / editWebsite.js
Created February 24, 2017 17:44
A bookmarklet that toggles the 'contenteditable' attribute of the body tag of a website.
javascript:document.body.setAttribute('contenteditable',!document.body.getAttribute('contentEditable'));