Skip to content

Instantly share code, notes, and snippets.

View BAProductions's full-sized avatar
💭
Making Test Build With Imported Repo

DJABHipHop BAProductions

💭
Making Test Build With Imported Repo
View GitHub Profile
@BAProductions
BAProductions / RichTextEditor.swift
Last active January 30, 2024 13:48 — forked from zentrope/RichTextEditor.swift
NSTextView wrapper for SwiftUI
//
// RichTextEditor.swift
// SwitDataApp
//
// Created by zentrope on 1/17/22.
//
import AppKit
import Combine
import SwiftUI
@BAProductions
BAProductions / SyntaxHighlighter.swift
Created January 12, 2023 00:08 — forked from martinpi/SyntaxHighlighter.swift
A simple Swift 4.0 class for syntax highlighting in an NSTextView
//
// SyntaxHighlighter.swift
// CardsCardsCards
//
// Created by Martin Pichlmair on 12/10/2018.
//
// Based on https://raw.githubusercontent.com/kuyawa/Macaw/master/Macaw/Macaw.swift
import Cocoa
cd /home/$user/public_html;
pwd;
wget http://wordpress.org/latest.zip;
unzip latest.zip;
mv ./wordpress/* ./ -f;
rm wordpress -rf;
cp wp-config-sample.php wp-config.php;
sed -i 's/database_name_here/'$user'/g' wp-config.php;
sed -i 's/username_here/'$user'/g' wp-config.php;
sed -i 's/password_here/'$password'/g' wp-config.php;