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
| 10.3 (Panther): | |
| https://swscan.apple.com/scanningpoints/scanningpointX.xml | |
| 10.4 (Tiger): | |
| https://swscan.apple.com/content/catalogs/index.sucatalog | |
| https://swscan.apple.com/content/catalogs/index-1.sucatalog | |
| 10.5 (Leopard): | |
| https://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog |
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
| struct Regex { | |
| let pattern: String | |
| let options: NSRegularExpressionOptions! | |
| private var matcher: NSRegularExpression { | |
| return NSRegularExpression(pattern: self.pattern, options: self.options, error: nil) | |
| } | |
| init(pattern: String, options: NSRegularExpressionOptions = nil) { | |
| self.pattern = pattern |
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
| #!/usr/bin/env python | |
| """Functions to convert IPv4 address to integer and vice-versa. | |
| Written by Christian Stigen Larsen, http://csl.sublevel3.org | |
| Placed in the public domain by the author, 2012-01-11 | |
| Example usage: | |
| $ ./ipv4 192.168.0.1 3232235521 | |
| 192.168.0.1 ==> 3232235521 |
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 sys | |
| def can_make(word, letters): | |
| """ Return True if <word> can be generated using only the letters in the | |
| list <letters>. """ | |
| if len(word) > len(letters): return False | |
| l = letters[:] |
NewerOlder