Skip to content

Instantly share code, notes, and snippets.

@AdamSanderz
AdamSanderz / checkIfPalindrome.swift
Created September 7, 2019 09:27 — forked from alimir1/checkIfPalindrome.swift
Check if string is palindrome Swift 3
func isPalindrome(_ word: String) -> Bool {
let word = word.lowercased().characters.filter{ $0 != " " }
for (i, character) in word.enumerated() {
if character != word[word.count-i-1] {
return false
}
}
return true
}
@AdamSanderz
AdamSanderz / printTime.swift
Created January 30, 2019 20:07 — forked from anvarazizov/printTime.swift
print time in swift with milliseconds
func printDate(string: String) {
let date = Date()
let formatter = DateFormatter()
formatter.dateFormat = "HH:mm:ss.SSSS"
print(string + formatter.string(from: date))
}
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use File;
class MakeViewCommand extends Command
{
/**