[ANN] WeCode Paste: Share your code snippets

Andre Garzia andre at andregarzia.com
Fri Apr 2 04:14:05 EDT 2010


Joe,

Fixed the broken link, thanks for the heads up.

The idea is not to use this programatically, it is just a simple way to show
code to someone, for example, instead of pasting a huge piece of code to an
email, you can just paste the url here and people can look it up.

Since you asked for a plain text solution, I just implemented one for you!

While http://wecode.org/paste/BF01527 will give you HTML,
http://wecode.org/paste/plain/BF01527 <http://wecode.org/paste/BF01527> will
get you plain text with no decorations.

This is intended for human use, like showing pieces of code. If you want to
load code remotely check out WeCode Libraries on my other email to the list,
or by going to:

http://wecode.org/libraries

It does all the nice stuff like library loading, installing, dependency
handling.

Cheers
andre


On Fri, Apr 2, 2010 at 5:02 AM, Joe F. <joef1 at mac.com> wrote:

> 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
>
>
>
> http://wecode.org/paste/BF01527
>
>  if the platform = "MacOS" or the platform  "Win32" then
>      put "/" into PathDelimit
>   else
>      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
>>
>
> _______________________________________________
> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.



More information about the Use-livecode mailing list