Skip to content

Instantly share code, notes, and snippets.

View b12e's full-sized avatar

Bram Vandeperre b12e

View GitHub Profile
@b12e
b12e / Javascript ISO country code to country name conversion
Created January 14, 2022 13:10 — forked from maephisto/Javascript ISO country code to country name conversion
ISO 3166-1 alpha-2 country code to country name conversion with a simple Javascript implementation, an array and a function.
var isoCountries = {
'AF' : 'Afghanistan',
'AX' : 'Aland Islands',
'AL' : 'Albania',
'DZ' : 'Algeria',
'AS' : 'American Samoa',
'AD' : 'Andorra',
'AO' : 'Angola',
'AI' : 'Anguilla',
'AQ' : 'Antarctica',
@b12e
b12e / dixa_customcard_template.tpl
Created September 17, 2020 09:52
Custom Card template
<html><head>
<link rel="stylesheet" href="https://toolkit.dixa.io/cards/v1/style.css" />
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/pure-min.css" integrity="sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47" crossorigin="anonymous" />
<style type="text/css">
body {
font-family: Open Sans, sans-serif;
-webkit-font-smoothing: antialiased
}