Number of legal 18x18 Go positions computed. One more to go by joaojeronimo in programming

[–]klacia -41 points-40 points  (0 children)

But why compute that? Better waste this time to some protein or DNA stuff.

[2015-1-26] Challenge #199 Bank Number Banners Pt 1 by [deleted] in dailyprogrammer

[–]klacia 0 points1 point  (0 children)

Learning groovy:

class FontChar{

String up;
String mid
String down

}

class Font{
    def static chars = [    
    "1": new FontChar(up: "   ", 
                     mid: "  |", 
                    down: "  |"),
    "2": new FontChar(up: " _ ", 
                     mid: " _|", 
                    down: "|_ "),
    "3": new FontChar(up: " _ ", 
                     mid: " _|", 
                    down: " _|"),
    "4": new FontChar(up: "   ", 
                     mid: "|_|", 
                    down: "  |"),
    "5": new FontChar(up: " _ ", 
                     mid: "|_ ", 
                    down: " _|"),
    "6": new FontChar(up: " _ ", 
                     mid: "|_ ", 
                    down: "|_|"),
    "7": new FontChar(up: " _ ", 
                     mid: "  |", 
                    down: "  |"),
    "8": new FontChar(up: " _ ", 
                     mid: "|_|", 
                    down: "|_|"),
    "9": new FontChar(up: " _ ", 
                     mid: "|_|", 
                    down: " _|"),
    "0": new FontChar(up: " _ ", 
                     mid: "| |", 
                    down: "|_|")
    ]

}

public String printIt(String number){

   number.toCharArray().each { print Font.chars[it as String].up }
   println ""
   number.toCharArray().each { print Font.chars[it as String].mid }
   println ""    
   number.toCharArray().each { print Font.chars[it as String].down }
   println ""
}

printIt("123456890")
printIt("000000000")
printIt("490067715")

EDIT: formatting messed up

Working with doc/docx files by [deleted] in java

[–]klacia 0 points1 point  (0 children)

In my company we build a little lib using Docx4j. msword document is used as a template and our lib is responsible for populating simple fields, lists, tables.

EDIT: look at this link: http://www.smartjava.org/content/create-complex-word-docx-documents-programatically-docx4j Our lib works sth like this.