This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//在 ~/.bash_profile 放這個: | |
alias nuke="rm -rf ~/Library/Developer/Xcode/DerivedData/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
// siri 說出來的2進位字串 | |
let whatSirirSays = ["11100110", "10101001", "10011111", "11100101", "10101111", "10000110"] | |
extension Int8 { | |
init(string str: String){ | |
var rtn: Int8 = 0 | |
var i: Int = 0 | |
for anUnicodeScalar in str.unicodeScalars{ | |
//將字串型態的單一 bit 轉成 00000000, 或 00000001 |
NewerOlder