Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Gist() [AHK_L]


  • Please log in to reply
3 replies to this topic
GeekDude
  • Spam Officer
  • 391 posts
  • Last active: Oct 05 2015 08:13 PM
  • Joined: 23 Nov 2009
WARNING: WILL SEND PASSWORD IN PLAIN TEXT OVER THE NETWORK
 
My latest piece of art, Gist().
You can pass your login info as parameters to do a gist in your account, or leave it blank to do an anonymous gist.
There is a setting for public vs private gists
 
 
Credit to:
TLM for help on IRC, Esp with his efforts on SantizeJSON()
 
 
 
 
Examples:
Link := Gist("Test 1") ; Anonymous, public gist with the title "AutoHotkey"
Link := Gist("Test 2", "", "", "Gist.ahk", 0) ; Anonymous, private gist with the title "Gist.ahk"
Link := Gist("Test 3", "Username", "Password", "Apple", 1) ; Public gist linked to your account, with the title "Apple"
Link := Gist("Test 4", "User", "Pass") ; Public gist linked to your account with the title "AutoHotkey"
 
Code: (on github, because AHK code tags suck)


TLM
  • Administrators
  • 3864 posts
  • Last active:
  • Joined: 21 Aug 2006

Ty for posting this so quickly.

Glad my #ahk request was some inspiration  :D

Excellent work! This will def. be used a lot by me


Posted Image

don't duplicate, iterate!


hoppfrosch
  • Members
  • 399 posts
  • Last active: Feb 26 2016 05:31 AM
  • Joined: 25 Jan 2006

Very nice.

 

I'm also working on a AHK-class for working with gists: AHK_cGist. (WIP - should be refactored at some places)

 

Current features of my class:

* retrieving a gist from https://gist.github.com/ (supporting multifile-gists)

* creating a new gist

* deleting a gist

* Supports authorization via username & password

 

@geekdude: if you plan to provide further gist-specific functionality, we might do it in a joined project ...



GeekDude
  • Spam Officer
  • 391 posts
  • Last active: Oct 05 2015 08:13 PM
  • Joined: 23 Nov 2009

I don't know anything about classes, sorry.