Simple Way of Saving Code Snippets?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
TodayIsTheDay
Posts: 56
Joined: Sat Jun 20, 2009 2:41 pm

Simple Way of Saving Code Snippets?

Post by TodayIsTheDay » Wed Oct 14, 2009 2:17 am

I'm sure there are tons of ways but can you guys recommend a good way to store little snippets of code I can add notes to and keyword tags?


Thanks!

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Wed Oct 14, 2009 6:31 am

Take a look at the Scripter's Scrapbook: http://www.flexiblelearning.com/ssbk.htm
Written in Revolution, allows sharing of snippets online,...
Great work by Hugh Senior of FLexible Learning.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Wed Oct 14, 2009 5:27 pm

Scripter's Scrapbook is amazing, inspiring in its scope.

This revJournal article is a good introduction:
http://www.revjournal.com/features/scri ... pbook.html

But better still, download it and play with it yourself.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Wed Oct 14, 2009 7:21 pm

Scripter's Scrapbook is certainly amazing and inspiring in its scope, as Richard wrote.

I created a Rev plug-in called My Script Collector which is neither amazing or inspiring; but it is free! It's a basic script collector to put snippets into different categories. If that's all you need then you can download via:

Forum Index>Announcements>My first app: free plugin

There's a catch though. As I can't seem to upload to Rev 3.5's RevOnline, it can only be downloaded from RevOnline via Rev 2.5 to 3.0. (Although if you do really want a copy, and you haven't an earlier version than 3.5, I can always email it to you if you wish).

:)

PS Much credit must go to Bernd especially as well as SparkOut and Mark for My Script Collector. Without their scripting contributions I wouldn't have been able to produce it.
Last edited by gyroscope on Tue Oct 27, 2009 11:52 am, edited 1 time in total.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Thu Oct 15, 2009 5:55 am

Dave, I'm glad you posted about your tool - I saw it in RevOnline a couple weeks ago and it's very nice indeed, one of the better such implementations I've seen.

I noticed from your sig links you're a musician - do you have a page at SoundClick.com? Much of my listening is to ambient, and sometimes keep a SoundClick channel running while I'm working. Really liked the tracks I heard at your MySpace page.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Thu Oct 15, 2009 3:23 pm

Dave, I'm glad you posted about your tool - I saw it in RevOnline a couple weeks ago and it's very nice indeed, one of the better such implementations I've seen.
Thank you Richard, that's appreciated.
I noticed from your sig links you're a musician - do you have a page at SoundClick.com? Much of my listening is to ambient, and sometimes keep a SoundClick channel running while I'm working. Really liked the tracks I heard at your MySpace page.
Glad you like my music! I've checked out SoundClick; it looks a good site, thanks for the link. Although before I upload stuff, I really must get my tracks (120+) to a particular music library which I promised myself over a year ago I'd do...I wish I had three brains and six pairs of arms sometimes!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Thu Oct 15, 2009 4:26 pm

Please drop me a PM with the link to your SoundClick page when you get it up. I love SoundClick, and look forward to adding some of your recordings to my playlist.

Back on the original topic, I thought of another quick-n-dirty solution:

Make a stack with a few fields and use that. It's not nearly as cool as some of the existing solutions, but or the person learning Rev may make a useful exercise. While I don't recommend storing data on cards for large data sets, something like this isn't like to exceed more than a few hundred so it might do reasonably well as a learning exercise that's also useful.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply