Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - willrandship

Pages: 1 2 [3] 4 5 ... 208
Community Contests / Re: Code Golf Contest #2
« on: July 22, 2014, 04:56:51 pm »
Here's a handy tool to get your code size.

Here's my challenge for the pick:

Input: A string of any length, made up of clusters of characters and numbers separated by spaces.

Output: All non-numeric clusters, concatenated together in reverse order, with the sum of all numeric clusters following, all separated by spaces.

Input:"1 asdf 15 1fg Iamamazing 14"
Output:"Iamamazing 1fg asdf 30"

Well, the per-language win doesn't actually net you anything, so I don't think it's important to make a distinction.

Humour and Jokes / Re: Misc. Nuts
« on: July 19, 2014, 01:12:18 am »
Here's some almonds. I made two versions, one with a black infill and one with just the raise/lower effect. (Black infill has it too, for edging, but it's covered mostly.)

Having the winner choose would be more interesting in my opinion, since that leads to more of a variety, and provides a prize.

TI Calculators / Re: Have anybody hacked the Ti nSpire's Touchpad ?
« on: July 18, 2014, 11:08:42 pm »
That's all right. It's not particularly organized at the moment.

TI Calculators / Re: Have anybody hacked the Ti nSpire's Touchpad ?
« on: July 18, 2014, 10:47:20 pm »
You're in luck. The nspire's touchpad is a standard I2C device.

Check out this page. It should give you more information on the keypads' layouts and the I2C touchpad.

Unfortunately I doubt such a solution would be smaller in python, since getting logarithms takes:

import math
from math import *

for the first, log is math.log(), but for the second it is just log(). either way, it takes either 22 or 24 bytes for ONE log call.

Also, for python I can't think of a way to save with "UN" and "HAPPY" since that would require a variable.

I'm working on a new python version that might save a few bytes, and changes to "UNHAPPY" :P

ASM / Re: ASM on-calc TI-Nspire?
« on: July 15, 2014, 11:29:37 pm »
Well, if your goal is assembly you don't need to port GCC in its entirety, just GAS (the GNU assembler, commonly renamed 'as' on linux systems) or some other assembler and linker. That should fit into the 32 MB of greyscale nspires quite easily alongside the smaller kernel.

FYI there is already a fully functional linux port to the nspire. It can even run (poorly) More information about that can be found here:!/

The smallest running set should take up less than 4 MB, leaving plenty of room for programming. On the other hand, I seem to recall there being an issue about writing any new data, so you'd lose everything on reboot, unless they've got NAND support running.

You might be better off trying to port an assembler to ndless, if that's the case.

Community Contests / Re: Code Golf Contest #1
« on: July 15, 2014, 04:33:09 pm »
Looks like he's counting in windows line endings, which is why I added the disclaimer.

Community Contests / Re: Code Golf Contest #1
« on: July 15, 2014, 04:21:45 pm »
I've beaten Juju's score with python. Will PM shortly.

On my system it comes to 128 bytes, but that's with Unix line endings, so add another 10 bytes or so to that.

Edit: Sent another version saving another 5 bytes worth of spaces.

Other Calculators / Re: Who wants an Nspire CX?
« on: July 14, 2014, 06:22:17 pm »
I would love to take it off your hands, if you're sure you don't want it. If it's a corrupted Boot2 I could hook up an RS232 adapter and reflash it, same for the OS itself minus needing the adapter.

Have you checked if it's under warranty?

HP Calculators / Re: Let's hack the HP Prime!
« on: July 14, 2014, 05:18:46 pm »
Also @street, if they just include xcas as a program running on top of the HP Prime kernel, and don't modify it at all, they don't have to give anyone any code.

For the challenge of making something good in such a terrible language, of course!

Pages: 1 2 [3] 4 5 ... 208