Skip to content

Instantly share code, notes, and snippets.

@relational
relational / app.js
Last active August 29, 2015 14:04
Sort fyrir íslenska stafi, einföld lausn
(function () {
var app = angular.module('store', []);
app.controller('ListController', function () {
this.list = ['Ísland', 'Þórshöfn', 'Hljómsveit', 'Æðibiti'];
this.is2ascii = (function () {
var is_ascii = {
"A": "AA",
"Á": "AB",
"B": "AC",
"D": "AD",