Skip to content

Instantly share code, notes, and snippets.

View dcustodio's full-sized avatar

David Custódio dcustodio

  • Portugal
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dcustodio on github.

  • I am dcustodio (https://keybase.io/dcustodio) on keybase.

  • I have a public key ASArLYtRU81ECu9mvBKSO22ICDr7y0kycABXermOjdpo0go

@dcustodio
dcustodio / prime-factors.js
Created March 22, 2018 08:25
Calculating prime factors - exercism
var primeFactors = function () {}
primeFactors.prototype.for = function (num) {
return calcPrimeFactor([], num)
}
var calcPrimeFactor = function (arr, num) {
for (var i = 2; i <= num; i++) {
@dcustodio
dcustodio / EU_VAT.json
Created February 16, 2015 22:29
EU VAT 2015 standard rate
/*standard rate as seen on http://ec.europa.eu/taxation_customs/resources/documents/taxation/vat/how_vat_works/rates/vat_rates_en.pdf*/
{
"BE": 21,
"BG": 20,
"CZ": 21,
"DK": 25,
"DE": 19,
"EE": 20,
"EL": 23,
"ES": 21,
@dcustodio
dcustodio / app.js
Last active August 29, 2015 14:06
angularjs spinner directive
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
$scope.loader= true
});
/**
* Created by David on 25/09/2014.