Skip to content

Instantly share code, notes, and snippets.

View jesusjimsa's full-sized avatar
💳

Jesús Jiménez Sánchez jesusjimsa

💳
View GitHub Profile
@williamoconnorme
williamoconnorme / openTwitterFunc.swift
Last active July 18, 2023 19:32
Open the twitter app from your own app using Swift
func openOnTwitter() {
let screenName = "jack"
let appURL = URL(string: "twitter://user?screen_name=\(screenName)")!
let webURL = URL(string: "https://twitter.com/\(screenName)")!
let application = UIApplication.shared
if application.canOpenURL(appURL) {
application.open(appURL, options: [:], completionHandler: nil)
} else {
@iamnewton
iamnewton / bash-colors.md
Last active May 2, 2024 22:42
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple