Created
November 9, 2015 00:19
-
-
Save zg/2093bd9da23113d344ee to your computer and use it in GitHub Desktop.
Used for Lobsters tag cloud generated at tagcrowd.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Map; | |
public class TagCloud { | |
private HashMap<String, Integer> tags; | |
public static void main(String[] args) { | |
TagCloud tagcloud = new TagCloud(); | |
} | |
public TagCloud(){ | |
tags = new HashMap<String,Integer>(); | |
tags.put("android",215); | |
tags.put("api",238); | |
tags.put("art",68); | |
tags.put("ask",196); | |
tags.put("assembly",133); | |
tags.put("audio",15); | |
tags.put("bitcoin",140); | |
tags.put("book",155); | |
tags.put("browsers",265); | |
tags.put("c",544); | |
tags.put("cogsci",58); | |
tags.put("compilers",176); | |
tags.put("compsci",1147); | |
tags.put("culture",612); | |
tags.put("databases",556); | |
tags.put("design",345); | |
tags.put("devops",395); | |
tags.put("distributed",474); | |
tags.put("dotnet",113); | |
tags.put("elixir",32); | |
tags.put("emacs",42); | |
tags.put("erlang",134); | |
tags.put("event",120); | |
tags.put("finance",76); | |
tags.put("freebsd",109); | |
tags.put("games",294); | |
tags.put("git",140); | |
tags.put("go",566); | |
tags.put("graphics",55); | |
tags.put("hardware",760); | |
tags.put("haskell",514); | |
tags.put("ios",199); | |
tags.put("ipv6",16); | |
tags.put("java",189); | |
tags.put("javascript",1034); | |
tags.put("job",26); | |
tags.put("law",241); | |
tags.put("linux",502); | |
tags.put("lisp",400); | |
tags.put("lua",41); | |
tags.put("mac",152); | |
tags.put("math",368); | |
tags.put("meta",188); | |
tags.put("ml",75); | |
tags.put("mobile",224); | |
tags.put("networking",505); | |
tags.put("openbsd",336); | |
tags.put("pdf",600); | |
tags.put("perl",18); | |
tags.put("person",215); | |
tags.put("philosophy",182); | |
tags.put("php",93); | |
tags.put("practices",921); | |
tags.put("privacy",454); | |
tags.put("programming",2842); | |
tags.put("python",420); | |
tags.put("rant",145); | |
tags.put("reversing",149); | |
tags.put("ruby",669); | |
tags.put("rust",182); | |
tags.put("satire",74); | |
tags.put("scala",154); | |
tags.put("scaling",266); | |
tags.put("science",316); | |
tags.put("security",1840); | |
tags.put("show",329); | |
tags.put("slides",109); | |
tags.put("software",824); | |
tags.put("swift",30); | |
tags.put("testing",6); | |
tags.put("unix",362); | |
tags.put("video",566); | |
tags.put("vim",84); | |
tags.put("virtualization",129); | |
tags.put("visualization",159); | |
tags.put("web",1305); | |
tags.put("windows",148); | |
for(Map.Entry<String,Integer> entry : tags.entrySet()) | |
for(int i = 0; i < entry.getValue(); i++) | |
System.out.print(entry.getKey()+" "); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment