Omnimaga

General Discussion => Introduce Yourself! => Topic started by: Converge on January 10, 2014, 02:11:03 pm

Title: New User
Post by: Converge on January 10, 2014, 02:11:03 pm
Hi everyone

I am a first year high school math teacher in the US.  Since I was fortunate enough to have a set of NSpires and a Navigator system in my classroom, I have started coding scripts in Lua to create activites for my classes.  I am hoping to contribute to this forum, as well as learn more about coding in Lua for the NSpire.  I have a few "finished products" that I could share, but I'm not sure how or where I would do so. 

I have been coding for a long time, but only as a hobby.  In high school I did the USACO contests, and in college I worked through about 100 problems on Project Euler.  The language I am most familiar with is Python, but I have also worked with C++, Java, and Mathematica. 

So far I have been writing code in the Script editor built into the NSpire software.  I would prefer to use a fancier text editor (Notepad++) so that I can collapse blocks of code.  Is there any way that I can edit code inside a separate text editor and still be able to easily see the result in the NSpire software?  I thought about "importing" the file into a page of a .tns file, but could not find a way.
Title: Re: New User
Post by: TheCoder1998 on January 10, 2014, 02:12:31 pm
Hi converge welcome on the forum :)

i'll be the first:
have some peanuts :D
(http://www.omnimaga.org/index.php?action=dlattach;topic=1256.0;attach=410;image)
Title: Re: New User
Post by: Jim Bauwens on January 10, 2014, 02:16:08 pm
Hi there!

Glad to see yet another Lua code join the forums! :)
You can use Luna for that: http://www.ticalc.org/archives/files/fileinfo/441/44113.html. It's a command line based tool that will just do the job. Also, you can use my buildtools to have the ability to include files, making life sometimes a bit easier: https://github.com/jimbauwens/ETK/tree/master/buildtools.

Looking forward to your projects :)

Edit: sorry, misread the fact that you want to view the files. You can just keep the software open and issue a command to open the tns file that is build using Luna.
Title: Re: New User
Post by: Juju on January 10, 2014, 02:16:40 pm
Ooh, a teacher! Welcome to Omnimaga and have some peanuts!

!peanuts
Title: Re: New User
Post by: Matrefeytontias on January 10, 2014, 02:16:48 pm
Hello Converge, welcome to Omnimaga :)

Unfortunately, I don't know much about Lua in general. I use to use OCLua to code Lua on-calc via the classic Notes tab, but it's pretty outdated. If you want to have the features of Notepad++ (or nearly) on your TI-Nspire, you should take a look at Jen's Script Editor, which is an on-calc editor including block collapse for instance.
Title: Re: New User
Post by: Converge on January 10, 2014, 02:26:43 pm
Ah, I should clarify!

I want to be able to use Notepad++ while coding on my computer.  I just don't want to copy/paste my code into the NSpire script editor every time I want to run it.

Thanks for the link, Jim.  I will check it out.  Admittedly, I have never used any thing "command line" for my programming; somehow always been intimidated by it and sought more user-friendly options.
Title: Re: New User
Post by: Sorunome on January 10, 2014, 02:55:33 pm
Hey, welcome to the forum!
A teacher O.O
You could post your nSpire lua projects here: http://www.omnimaga.org/index.php?board=174.0
and your general programming projects here (use the appropriate sub-board): http://www.omnimaga.org/index.php?board=22.0

Anyways, have some peanuts:
!peanuts

I hope you'll enjoy your stay! :D
Title: Re: Re: New User
Post by: DJ Omnimaga on January 10, 2014, 05:26:38 pm
Heya and welcome here! :)
Title: Re: New User
Post by: bb010g on January 10, 2014, 08:47:41 pm
Welcome to σmπimαgα! Glad to see another Lua programmer. Have some peanuts.
(http://omnimaga.org/Smileys/classic/peanut-bag.gif)
Title: Re: New User
Post by: The_King on January 10, 2014, 09:43:13 pm
w3lc0m3 to omnimaga Converge

I hope help from omnimaga enhances your teaching

and help from you enhances omnimaga

once again welcome