![]() |
|
|
#1838 | |
|
"Forget I exist"
Jul 2009
Dumbassville
203008 Posts |
Code:
RLE(string)={
my(number=1,string=eval(Vec(Str(string))),Letter=string[1]);
for(x=2,#string,
if(string[x]==Letter,
number+=1,
print1("("number")"Letter);
Letter=string[x];
number=1)
);print1("("number")"Letter)
}
so it now becomes this and should work. Quote:
Last fiddled with by science_man_88 on 2010-11-30 at 19:25 |
|
|
|
|
|
|
#1839 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
|
|
|
|
|
|
#1840 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
|
|
|
|
|
|
|
#1841 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
|
|
|
|
|
|
#1842 | |
|
Aug 2006
10111010110112 Posts |
Quote:
http://www.techradar.com/news/softwa...r-makes-909424 |
|
|
|
|
|
|
#1843 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
Last fiddled with by science_man_88 on 2010-12-01 at 15:10 |
|
|
|
|
|
|
#1844 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
Suppressing exceptions:
never played with try and catch so never caught an error in my code to suppress lol. |
|
|
|
|
|
#1845 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Storing secrets in plain text
good luck i don't even make addhelp for most of my programs in Pari lol, I'm not necessarily going to leave something as a comment lol. |
|
|
|
|
|
#1846 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
Not being up to date:
probably my second worst one. my number 1 might be #1 lol |
|
|
|
|
|
#1847 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
|
|
#1848 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Yeah same with comment(s) like they say no passwords in plain text you may get lost trying to read uncommented code, But some random other person could have just as hard of a time until they figure it out.
Last fiddled with by science_man_88 on 2010-12-01 at 15:54 |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why do I sometimes see all the <> formatting commands when I quote or edit? | cheesehead | Forum Feedback | 3 | 2013-05-25 12:56 |
| Passing commands to PARI on Windows | James Heinrich | Software | 2 | 2012-05-13 19:19 |
| Ubiquity commands | Mini-Geek | Aliquot Sequences | 1 | 2009-09-22 19:33 |
| 64-bit Pari? | CRGreathouse | Software | 2 | 2009-03-13 04:22 |
| Are these commands correct? | jasong | Linux | 2 | 2007-10-18 23:40 |