[ANN] WeCode Paste: Share your code snippets

Joe F. joef1 at mac.com
Fri Apr 2 04:02:02 EDT 2010

Hi Andre,
Cute, but the links on the web page are all wrong.
The download is: http://wecode.org/%22wecodepaste.rev.gz/%22

Maybe I'm missing the point but, if the web page was just a plain text  
file you could use it in a script as an "include" without parsing it.
Then you could do:
set myVar to URL "http://wecode.org/paste/BF01527"

As is now it returns this in HTML:

WeCode Paste


  if the platform = "MacOS" or the platform  "Win32" then
       put "/" into PathDelimit
       put "\" into PathDelimit
    end if
To add code to WeCode Paste, just post your text to http://wecode.org/paste/ 
  (remember the trailing slash)
WeCode Paste © 2010 Andre Alves Garzia var gaJsHost = (("https:" ==  
document.location.protocol) ? "https://ssl." : "http://www.");  
document.write(unescape("%3Cscript src='" + gaJsHost + "google- 
analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));   try  
{ var pageTracker = _gat._getTracker("UA-2032015-5");  
pageTracker._trackPageview(); } catch(err) {}

On Apr 2, 2010, at 12:44 AM, Andre Garzia wrote:

> Hello Folks,
> A simple 5 minutes web service to our community. Everyone here had  
> those
> moments when you wanted to share just a single function, or a tiny  
> piece of
> code? Well, now you can! Introducing WeCode Paste, our tiny little  
> service
> just for that.
> http://wecode.org/paste/
> Basically if you post some text to the above URL, the server will  
> return a
> unique url that will display that piece of text, not unlike those url
> shortning services. A plugin is also provided that will post the  
> contents of
> the clipboard, so you can just copy your piece of code and press  
> "Paste!",
> the url will appear in the message box. The plugin is located at:
> http://wecode.org/paste/wecodepaste.rev.gz
> This was just a 5 minutes task but I think it is useful. The code  
> for the
> plugin itself is available at:
> http://wecode.org/paste/AJJ19J7
> Cheers
> andre
> -- 
> http://www.andregarzia.com All We Do Is Code.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

More information about the Use-livecode mailing list