Skip to content

Instantly share code, notes, and snippets.

View grimurd's full-sized avatar

Grímur Daníelsson grimurd

  • Ísafjörður, Iceland
  • 05:47 (UTC)
View GitHub Profile
ðæöíjú
<?php
require __DIR__.'/vendor/autoload.php';
use RobRichards\XMLSecLibs\XMLSecurityDSig;
use RobRichards\XMLSecLibs\XMLSecEnc;
header('Content-type: application/json');
$response = new stdClass();
@grimurd
grimurd / gist:71fa65c892454edcde96
Created February 2, 2015 12:15
AngularJS Vartölu Directive
angular.module('moduleName')
.directive('ssn', function () {
return {
restrict: 'A',
require: 'ngModel',
scope: {
leyfaUndirAtjan: '=leyfaUndirAtjan',
leyfaFyrirtaeki: '=leyfaFyrirtaeki'
},
link: function (scope, elem, attr, ctrl) {