Skip to content

Instantly share code, notes, and snippets.

Lucas Nelaupe lucas34

View GitHub Profile
let input = 7
let half = input / 2
for j in 1...half {
for _ in 0..<half {
print(" ", terminator:"")
for i in 0..<j {
lucas34 / URL+Open.swift
Last active Mar 2, 2018
Open url on any Apple os
View URL+Open.swift
import Foundation
#if os(macOS)
import Cocoa
#if os(iOS) || os(tvOS)
extension URL {
public func canOpen() -> Bool {
You can’t perform that action at this time.