Skip to content

Instantly share code, notes, and snippets.

View kristoferdoman's full-sized avatar

Kristofer Doman kristoferdoman

  • Canada
View GitHub Profile
@nrollr
nrollr / MySQL_macOS_Sierra.md
Last active September 19, 2024 08:26
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@mitchellporter
mitchellporter / Glow.swift
Created December 16, 2015 19:22
Glow Effect for UILabel and UIButton
self.layer.shadowColor = UIColor.redColor().CGColor
self.layer.shadowRadius = 4.0
self.layer.shadowOpacity = 0.9
self.layer.shadowOffset = CGSizeZero
self.layer.masksToBounds = false
@alskipp
alskipp / encrypt_xor1.swift
Last active November 1, 2018 11:10
Swift encrypt/decrypt string using XOR
import Foundation
extension Character {
func utf8() -> UInt8 {
let utf8 = String(self).utf8
return utf8[utf8.startIndex]
}
}
func encrypt(c:Character, key:Character) -> String {