##Available
###NSFileManager
+ (NSString *)libraryPath+ (NSString *)documentsPath+ (NSString *)cachesPath+ (NSString *)preferencesPath+ (NSString *)tmpPath
##Available
###NSFileManager
+ (NSString *)libraryPath+ (NSString *)documentsPath+ (NSString *)cachesPath+ (NSString *)preferencesPath+ (NSString *)tmpPath| string = ARGV.first | |
| string = string.gsub(/\n/,"\\n") | |
| file = File.new("output.txt", "w") | |
| file.write(string) | |
| file.close |
| + (NSURL *)calabashAPIURL | |
| { | |
| NSString *apiURLString = nil; | |
| NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"server_config" ofType:@"plist"]; | |
| NSDictionary *serverConfig = [NSDictionary dictionaryWithContentsOfFile:plistPath]; | |
| NSString *urlString = [serverConfig objectForKey:(NSString *)kURLPreference]; | |
| if(urlString.length > 0) |
| <?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>port_preference</key> | |
| <string></string> | |
| <key>url_preference</key> | |
| <string></string> | |
| </dict> | |
| </plist> |
| def qsort(list, f): | |
| if len(list) <= 1: | |
| return list | |
| pivot = list.pop(0) | |
| less = [] | |
| more = [] | |
| for x in list: | |
| if f(x, pivot): |
| extension Array { | |
| func mapFilter<U>(transform: (T) -> U?) -> [U] { | |
| var array: [U] = [] | |
| for element in self { | |
| if let mapped: U = transform(element) { | |
| array.append(mapped) | |
| } | |
| } |
I hereby claim:
To claim this, I am signing this object:
| // Sound | |
| windows_speaker_config "1" | |
| snd_mixahead "0.05" | |
| snd_musicvolume "0" | |
| //snd_headphone_pan_exponent "2" | |
| //snd_front_headphone_position "45.0" | |
| //snd_rear_headphone_position "135.0" | |
| dsp_enhance_stereo "0" | |
| snd_legacy_surround "0" | |
| snd_pitchquality "1" |