Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Dinesh Raja dinarajas

🎯
Focusing
View GitHub Profile
@viktorklang
viktorklang / §(Toggle Wi-Fi).app
Last active Jun 30, 2020
AppleScript to toggle Wi-Fi in OSX
View §(Toggle Wi-Fi).app
(*
Installation instructions
=========================
Run as an Application:
1) Open AppleScript Editor and create a new script
2) Paste this file into it
3) Save name it '§(Toggle Wi-Fi)'
- Or substitute '§' for a symbol that you can press with a single key
4) Put it in Applications/Utilities
@mattt
mattt / NSDecimalNumber.swift
Last active May 27, 2020
NSDecimalNumber Additions for Swift
View NSDecimalNumber.swift
import Foundation
// MARK: - Comparable
extension NSDecimalNumber: Comparable {}
public func ==(lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool {
return lhs.compare(rhs) == .OrderedSame
}
You can’t perform that action at this time.