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
31
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.

http://mothereff.in/byte-counter

32
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.

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

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

35
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.)

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

37
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.

38
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.

http://hackspire.unsads.com/wiki/index.php/Keypads

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

import math
OR
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

40
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 X.org (poorly) More information about that can be found here: http://www.omnimaga.org/ti-nspire-projects/calling-all-linux-kernel-developers!/


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.

41
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.

42
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.

43
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?

44
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.

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

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