Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).![]() |
![]() |
|
Thread Tools |
![]() |
#21 | |
Guest
Posts: n/a
|
![]() Quote:
![]() |
|
![]() |
![]() |
#22 |
Guest
Posts: n/a
|
![]()
I was using these (Aim 65) in 1986 and I'm guessing they where probably obselete then.
I once got one to play "Layla" by connecting an amp and a speaker up to it, and varying the frequency on two pins of the serial port (or somthing like that, it was 20 years and about 1200 gallons of beer ago) I quite liked programming in assember, 68k mainly as I was quite good at that and absoulute crat at progaramming in everything else. I do a bit of ksh scripting now which I'm not bad at, if you can count that as programming. |
![]() |
![]() |
#23 | |
Member
Mega Poster
Join Date: Feb 2005
Location: Norfolk
Posts: 3,151
|
![]() Quote:
![]()
__________________
'81 Honda H100A '18 Honda MSX125 (Grom) |
|
![]() |
![]() |
![]() |
#24 |
Guest
Posts: n/a
|
![]()
***********************GEEK ALERT***********************************
I wrote this in the hope it would be the last one I ever wrote. I've removed the comments, see if you can work out what it does. ![]() ![]() #!/usr/bin/ksh main () { for ball in 1 2 3 4 5 6 do generate numbers[$ball]=$num done } generate () { num=`echo $RANDOM | cut -c 2,3` check if [ $num -eq 0 -o $num -gt 49 ] then generate fi } check () { echo ${numbers[*]} | grep $num >> /dev/null 2>&1 rc=$? if [ $rc -eq 0 ] then generate fi } sortball () { count=1 while [ $count -le 6 ] do for pos in 1 2 3 4 5 do ((nextpos=$pos+1)) if [ ${numbers[$pos]} -gt ${numbers[$nextpos]} ] then numbers[7]=${numbers[$pos]} numbers[$pos]=${numbers[$nextpos]} numbers[$nextpos]=${numbers[7]} fi done ((count=$count+1)) done } display () { for ball in 1 2 3 4 5 6 do echo "Ball $ball = ${numbers[$ball]}" done } clear main sortball display |
![]() |
![]() |
#25 |
Member
Mega Poster
Join Date: Feb 2005
Location: Norfolk
Posts: 3,151
|
![]()
Very good!
![]() I take it that it hasnt been the last one you ever wrote??! ![]() ![]() Oh and in case anyone is wondering - its a Lottery Number Generator ![]()
__________________
'81 Honda H100A '18 Honda MSX125 (Grom) |
![]() |
![]() |
![]() |
#26 |
Guest
Posts: n/a
|
![]()
I was going to say bingo
|
![]() |
![]() |
#27 |
The Sick Man
Mega Poster
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
|
![]()
Quite a simple prog realy. Not as if i could write it in KSH, i would do it in ASP.
__________________
OTR: KTM 690 Duke R 2015 Full Akro SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay. Forum Problems & Information / Site Suggestions |
![]() |
![]() |
![]() |
#28 |
Moderator
Mega Poster
Join Date: Jan 2004
Location: In the garage where I belong
Posts: 17,083
|
![]()
I've got a rubber keyed Speccy and a Vic 20 somewhere...
__________________
"We are the angry mob, we read the papers every day We like what we like, we hate what we hate But we're oh so easily swayed" |
![]() |
![]() |
![]() |
#29 | |
Guest
Posts: n/a
|
![]() Quote:
Jet Pac, Manic Miner, Trans Am, Attic Attack etc ![]() ![]() ![]() |
|
![]() |
![]() |
#30 |
Guest
Posts: n/a
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
First fall - and on a lesson | nik_nunez | Bikes - Talk & Issues | 13 | 08-07-08 08:59 AM |
teaching them a lesson | Wideboy | Bikes - Talk & Issues | 9 | 08-09-07 08:49 PM |
Another day, another lesson | veraliar | SV Talk, Tuning & Tweaking | 0 | 02-07-07 10:55 PM |
History lesson | cuffy | Idle Banter | 2 | 10-03-06 12:17 PM |
History lesson part one | Stingo | Idle Banter | 4 | 23-02-06 01:04 PM |