Skip to content

Instantly share code, notes, and snippets.

View maddievision's full-sized avatar
always sparkly

maddie lim ✨ maddievision

always sparkly
View GitHub Profile
C major Completely pure. Its character is: innocence, simplicity, naïvety, children's talk.
Koji Kondo - Theme of Super Mario 64
Sega - Star Light Zone (Sonic The Hedgehog)
Sega - Green Hill Zone (...)
Pauer text: A pure, certain and decisive manner, full of innocence, earnestness, deepest religious feeling.
C minor Declaration of love and at the same time the lament of unhappy love. All languishing, longing, sighing of the love-sick soul lies in this key. "complaining"
Koji Kondo - Dark World (The Legend of Zelda - A Link to the Past)
Koji Kondo - Fortress (Super Mario World, chorus)
@maddievision
maddievision / callback.md
Last active August 8, 2023 14:43
callback - A simple small module for Pythonista (http://omz-software.com/pythonista) which aims to make an easy callback URL handling & argument passing system.

callback

A simple small module for Pythonista (http://omz-software.com/pythonista) which aims to make an easy callback URL handling & argument passing system.

Usage

  1. import callback
  2. Create a handler instance handler = callback.InfoHandler(sys.argv)
  3. Decorate command handlers with @handler.cmd(cmdname)
  4. Call handler.handle() (and if it returns False, there was nothing to handle!)
##
# Below is a template for implementing the "OAuth Dance" with Twitter using the Ruby OAuth gem in a Rails app.
# Ruby OAuth gem is required by grackle and is found here: http://github.com/oauth/oauth-ruby
##
# Step 1: User clicks "Sign in with Twitter" button
# Step 2: User is routed to your controller action that looks like the method below
def start_oauth