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
diff --git a/Classes/SMEUser.m b/Classes/SMEUser.m | |
index c9c89f2..f02d339 100644 | |
--- a/Classes/SMEUser.m | |
+++ b/Classes/SMEUser.m | |
@@ -569,10 +569,10 @@ | |
- (NSURL *)editingController:(TKModelEditingController *)controller confirmationContentURLForKey:(NSString *)key; | |
{ | |
if ([key isEqual:@"hasAcceptedPrivacyStatement"]) { | |
- return [NSURL URLWithString:@"https://www.samedi.de/de/terms_of_service/patient?layout=iphone"]; | |
+ return [NSURL URLWithString:@"https://www.samedi.de/de/privacy_statement/patient?layout=iphone"]; |
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
- (void)awakeFromNib; | |
{ | |
[super awakeFromNib]; | |
_webView.policyDelegate = self; // you can also do this in the XIB and save you this method | |
} | |
- (void)webView:(WebView *)webView decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id < WebPolicyDecisionListener >)listener; | |
{ | |
NSURL *redirectURL = [NSURL URLWithString:VCOAuthRedirectURLString]; | |
if ([request.URL.scheme isEqual:redirectURL.scheme] && |
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 ruby | |
require "webrick" | |
port = ARGV.count > 0 ? ARGV.last.to_i : 8080 | |
STDERR.puts "Starting WEBRick server on http://localhost:#{port}" | |
server = WEBrick::HTTPServer.new :Port => port | |
server.mount "/", WEBrick::HTTPServlet::FileHandler, './' | |
trap('INT') do | |
STDERR.puts "Stopping WEBRick" | |
server.stop | |
end |
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
# -reexport_framework and -umbrella for 10.4 | |
mkdir -p Bar.framework Foo.framework | |
${CC} ${CCFLAGS} -dynamiclib bar.c -o Bar.framework/Bar -install_name "`pwd`/Bar.framework/Bar" -umbrella Foo -mmacosx-version-min=10.5 | |
${FAIL_IF_BAD_MACHO} Bar.framework/Bar | |
${CC} ${CCFLAGS} -dynamiclib foo.c -o Foo.framework/Foo -F. -Wl,-reexport_framework,Bar -mmacosx-version-min=10.5 | |
${FAIL_IF_BAD_MACHO} Foo.framework/Foo | |
otool -lv Bar.framework/Bar | grep LC_SUB_FRAMEWORK | ${FAIL_IF_EMPTY} | |
otool -lv Foo.framework/Foo | grep LC_REEXPORT_DYLIB | ${FAIL_IF_EMPTY} | |
${PASS_IFF} /usr/bin/true |
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
/** | |
* Berechnet zu einem gegebenen Pfad dessen Fitnesswert | |
* | |
* @param subPfad | |
* der Pfad, dessen Fitnesswert bestimmt werden soll | |
* @return Fitnesswert des Pfades | |
*/ | |
private ArrayList<scoredPath> getPfadFitness(ArrayList<scoredPath> pathesToScore, Boolean hasUwkt) { | |
// … | |
} |
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
require 'pp' | |
require 'net/http' | |
require 'net/https' | |
require 'rubygems' | |
require 'json' | |
def bssid_to_api(bssidstr) | |
bssidstr.gsub(':', '-').gsub(/(\-|\A)(\d)(\-|\Z)/) {|match| "#{match[0]}0#{match[1]}#{match[2]}"} | |
end |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.xsane.saned</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/sbin/saned</string> | |
</array> |
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
POST /reverse HTTP/1.1 | |
Upgrade: PTTH/1.0 | |
Connection: Upgrade | |
Content-Length: 0 | |
User-Agent: MediaControl/1.0 | |
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
require 'rubygems' | |
require 'pp' | |
require 'json' | |
require 'httparty' | |
url = "http://www.adgonline.de/adg_online/phoenix/searchalyzr.jspx" | |
class Loader | |
include HTTParty | |
end |
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/Foundation.h> | |
int main (int argc, const char * argv[]) { | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
NSArray *tests = [NSArray arrayWithObjects: [NSMutableDictionary dictionary], [NSDictionary dictionary], nil]; | |
SEL sel = @selector(setObject:forKey:); | |
for(id obj in tests) { |