This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
warfar's profile picture

Pastebin RIP

Started by warfar, 09 February 2013 - 05:07 PM
warfar #1
Posted 09 February 2013 - 06:07 PM
I made a simple get program that is the same as the pastebin program but only with get functionality.
It also overrides files with the same name AND will accept 28 digit urls.
FOR EXAMPLE
You cannot use "pastebin get http://pastebin.com/kFtViiLE get"
You would need to use "pastebin get kFtViiLE get"
The get program works both ways!
get http://pastebin.com/kFtViiLE get works!
get kFtViiLE also works!
The code is: http://pastebin.com/kFtViiLE
Credits: CC team for the pastebin program
theoriginalbit #2
Posted 09 February 2013 - 06:17 PM
Get works perfectly fine in the default pastebin program all you do is give it the code of the pastebin, not the full URL…

EDIT: Also based on that code I don't understand how the full URL works. And I find it ironic that I used the pastebin program to get this program that gets pastebin code :P/>
warfar #3
Posted 09 February 2013 - 06:18 PM
Get works perfectly fine in the default pastebin program all you do is give it the code of the pastebin, not the full URL…
:P/> i'm lazy so this is easier than the normal pastebin program
theoriginalbit #4
Posted 09 February 2013 - 06:23 PM
:P/>/> i'm lazy so this is easier than the normal pastebin program
So am I. Take a look at the description of "Program 'd'" (link in my signature)

Also read my edit
warfar #5
Posted 09 February 2013 - 08:21 PM
:P/>/> i'm lazy so this is easier than the normal pastebin program
So am I. Take a look at the description of "Program 'd'" (link in my signature)

Also read my edit
When you select the full url through CHROME, it goes out like http://pastebin.com/12345678
so I asked irc and they told me the code i used