User photos: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 6: | Line 6: | ||
[[User_photos_guys|The Guys]]<br> | [[User_photos_guys|The Guys]]<br> | ||
[[User_photos_girls|The Girls]] | [[User_photos_girls|The Girls]] | ||
==Adding & Updating Photos== | ==Adding & Updating Photos== | ||
Line 11: | Line 12: | ||
Please add/update yourself, but upload the image and use the following syntax: <br> | Please add/update yourself, but upload the image and use the following syntax: <br> | ||
<nowiki>[[Image:mypic.jpg|left|100px]] [User:myname|myname]</nowiki> | <nowiki>[[Image:mypic.jpg|left|100px]] [User:myname|myname]</nowiki> | ||
==How the hell I made this== | |||
Well, for anyone who is curious | |||
public class Photos{ | |||
public static void main(String [] args){ | |||
String temp = " "; | |||
while(!Console.EndOfFile()){ | |||
String stIn = Console.readToken(); | |||
if(stIn.charAt(0)!=temp.charAt(0)){ | |||
System.out.println(""); | |||
System.out.println("==" + stIn.charAt(0) + "=="); | |||
} | |||
if(!stIn.equalsIgnoreCase(temp)){ | |||
System.out.println("http://www.redbrick.dcu.ie/~magluby/pics/" + stIn +".jpg [[User:"+ stIn +"|" + stIn + "]]"); | |||
System.out.println(""); | |||
} | |||
temp=stIn; | |||
} | |||
} | |||
} | |||
not exactly my best work ;) |
Revision as of 04:35, 28 February 2007
Idea (and the actual photos) stolen directly and blatently from magluby (who claimed to have stolen it from bubble), but I thought it'd be cool to wiki this anyway.
Receive 04:27, 28 Feb 2007 (UTC)
The Photos
Adding & Updating Photos
Please add/update yourself, but upload the image and use the following syntax:
[[Image:mypic.jpg|left|100px]] [User:myname|myname]
How the hell I made this
Well, for anyone who is curious
public class Photos{ public static void main(String [] args){ String temp = " "; while(!Console.EndOfFile()){ String stIn = Console.readToken(); if(stIn.charAt(0)!=temp.charAt(0)){ System.out.println(""); System.out.println("==" + stIn.charAt(0) + "=="); } if(!stIn.equalsIgnoreCase(temp)){ System.out.println("http://www.redbrick.dcu.ie/~magluby/pics/" + stIn +".jpg " + stIn + ""); System.out.println(""); } temp=stIn; } } }
not exactly my best work ;)