This file contains 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
'use strict'; | |
var url = require('url'); | |
var target = 'http://www.yourwebsite.com'; // Change this one | |
exports.handler = function(event, context, callback) { | |
var urlObject = url.parse(target); | |
var mod = require( | |
urlObject.protocol.substring(0, urlObject.protocol.length - 1) | |
); |
This file contains 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
let routingNumber = "026009593" | |
func isRoutingValid(routingNumber: String) -> Bool { | |
let t = String(routingNumber.characters.filter { "1234567890".characters.contains($0) }) | |
let count = t.characters.count | |
guard count == 9 else { return false } | |
var n = 0 | |
// Run through each digit and calculate the total. |
This file contains 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
postgres: | |
image: postgres:9.4 | |
container_name: kong-database | |
ports: | |
- "5432:5432" | |
environment: | |
- POSTGRES_USER=kong | |
- POSTGRES_DB=kong | |
web: | |
image: mashape/kong |