Skip to content

Instantly share code, notes, and snippets.

View joltguy's full-sized avatar

Jeff M joltguy

View GitHub Profile
@joltguy
joltguy / Spacedust X13.xccolortheme
Last active November 24, 2021 16:42
My customized version of the original Spacedust theme for Xcode (original: https://github.com/hallski/spacedust-theme)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.052 0.489 0.482 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 13.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0.432 0.325 0.276 1</string>
@joltguy
joltguy / StrikethroughString.swift
Created April 13, 2018 16:01
Swift String extension for Unicode strikethrough text
extension String {
func strikeThrough() -> String {
var struck = ""
let strikeChar: Character = "\u{0336}"
self.forEach { (char) in
var xchar = UnicodeScalarView(char.unicodeScalars)
xchar.append(strikeChar.unicodeScalars.first!)
struck.append(String(xchar))
}
return struck
@joltguy
joltguy / NotationHelper.swift
Created August 26, 2015 15:09
Handy little Swift extensions for String and Int to simplify notation conversion
// A slick little number conversion extension
// Original source: http://stackoverflow.com/a/26811354/771460
extension String {
var hexToInt : Int { return Int(strtoul(self, nil, 16)) }
var hexToDouble : Double { return Double(strtoul(self, nil, 16)) }
var hexToBinary : String { return String(hexToInt, radix: 2) }
var intToHex : String { return String(toInt()!, radix: 16) }
var intToBinary : String { return String(toInt()!, radix: 2) }
var binaryToInt : Int { return Int(strtoul(self, nil, 2)) }
@joltguy
joltguy / keybase.md
Created February 9, 2015 15:56
My Keybase.io proof

Keybase proof

I hereby claim:

  • I am joltguy on github.
  • I am joltguy (https://keybase.io/joltguy) on keybase.
  • I have a public key whose fingerprint is C61D EE65 03B6 3362 792F F102 17BA 3D0D F266 D683

To claim this, I am signing this object: