js-countries: Cool Country Lookups
I made this for the product I'm currently working on, because I got so fed up with how most engineers think about countries as alphabetical lists.
I realised, that most peope come from the countries with the most people in them (I know, profound), so if I'm making an auto-complete text field for inputting a country - I should probably weight the results by population – oh and people might like to type their country name in their own language? And once they've input the country, I'd like to know things like “what is the ISO-2 or ISO-3 code for that country?” or “What's the international extension for that country?” or even “What's the license plate code for that country?”. And it's all in there. I say “all”, but there are a lot of gaps. And I think that's how countries work. Some don't have license plate codes – some have more than one – some have multiple international extensions.
You can find it on Github and NPM and here's a demo:
JSON results will appear here ...
List of Projects
- Frøken KlokkenI mere end 80 år har nationalklenodiet frøken Klokken trofast forsynet danskerne med præcise klokkeslæt. Men mobiltelefoner, internettet og radiostyrede ure har gjort tjenesten så godt som overflødig. Sådan har det ikke altid været. Der var engang hvor Frøken Klokken var en teknisk revolution som tusindvis af mennesker dagligt tog kontakt til.
- Sophie Løhde GeneratorSophie Løhde is a Danish politician on the economic liberalist side. She recently posted a picture on Twitter calling out a rival politician. She did so in a much too meme-friendly way for me to resist.
- js-countriesA fairly comprehensive nugget of a JavaScript module that contains all the stuff you need when dealing with countries.
- Solver for gangetabel.dkA bookmarklet that will solve the 9 x 9 board of multiplication in no time at all. A hack I came up with to beat my 11 year old son. Yes ... I stoop that low.
- Bookmarklet that strips JS and CSSA bookmarklet that gives you the ability to turn off JavaScript and CSS on any site with the click of a button. It was made as an aid to help make better decisions about the actual structure of your markup - you could also just use it to reminisce about the 1990s.
- Frames/second Readout as a BookmarkletA bookmarklet that adds a very simple FPS readout meant to be used as a quick way to get a feel for a real time runtime performance gauge for a given website. It timestamps every animation frame and averages over the last 60 frames.