This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| /** | |
| Valida el número y la(s) letra(s) de un cualquier documento nacional de identidad | |
| español (NIF o NIE) utilizando una implementación del algoritmo oficial. | |
| - parameter nationalID: El DNI que se validará. No distingue mayúsculas y minúsculas. | |
| - returns: `true` si el DNI proporcionado es válido o `false` si no lo es. | |
| */ | |
| func validateSpanishNationalIdentifier(nationalID: String) -> Bool { | |
| guard nationalID.characters.count == 9 else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/bash | |
| curl -s https://developer.apple.com/videos/wwdc/2015/ -o source.html | |
| grep "?id=" source.html | grep -v "video center" | sed -E 's/(.*)(\?id=[0-9]+).*/\2/g' | sort | uniq > video_links.txt | |
| rm source.html | |
| cat video_links.txt | while read line | |
| do | |
| url="https://developer.apple.com/videos/wwdc/2015/$line" | |
| curl -s $url -o video.html | |
| title=$(grep "<h3>" video.html | sed -E 's/<h3>|<\/h3>//g' | sed -e 's/^[ \t]*//') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ -f Podfile ] && command -v pod install >/dev/null | |
| then | |
| OUT=$(unset GIT_DIR; exec pod install) | |
| if echo "$OUT" | grep -q "Integrating client project" | |
| then | |
| echo "$OUT" | |
| true | |
| else | |
| echo "$OUT" >&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ -f Podfile ] && command -v pod install >/dev/null | |
| then | |
| (unset GIT_DIR; exec pod install) | |
| true | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // CustomDynamicAlertView.h | |
| // Week3_inclass | |
| // | |
| // Created by Victor Baro on 18/02/2015. | |
| // Copyright (c) 2015 Produkt. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> |