I hereby claim:
- I am Fogh on github.
- I am fogh (https://keybase.io/fogh) on keybase.
- I have a public key whose fingerprint is 8BEA 1A32 F0B3 5CAE 2354 AE6A D9F9 58B0 4088 5AE1
To claim this, I am signing this object:
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<clear /> | |
<rule name="Allow LetsEncrypt" patternSyntax="Wildcard" stopProcessing="true"> | |
<match url=".well-known/*" /> | |
<action type="None" /> | |
</rule> |
I hereby claim:
To claim this, I am signing this object:
post_install do | installer | | |
require 'fileutils' | |
pods_acknowledgements_path = 'Pods/Target Support Files/Pods/Pods-Acknowledgements.plist' | |
settings_bundle_path = Dir.glob("**/*Settings.bundle*").first | |
if File.file?(pods_acknowledgements_path) | |
puts 'Copying acknowledgements to Settings.bundle' | |
FileUtils.cp_r(pods_acknowledgements_path, "#{settings_bundle_path}/Acknowledgements.plist", :remove_destination => true) | |
end | |
end |
cd "$PROJECT_DIR" | |
cd "$BUILT_PRODUCTS_DIR/$WRAPPER_NAME" | |
RELEASE_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Info.plist) | |
/usr/libexec/PlistBuddy -c "Set :PreferenceSpecifiers:0:DefaultValue $RELEASE_VERSION" Settings.bundle/Root.plist |
import Cocoa | |
let baseUrl = "http://cvrapi.dk/api" | |
func getCompanyName(vat: String, country: String) -> String { | |
let urlString = baseUrl + "?search=\(vat)&country=\(country)" | |
let url = NSURL.URLWithString(urlString, relativeToURL: nil) | |
var error: NSError? | |
let data = NSData.dataWithContentsOfURL(url, options: nil, error: &error) | |
let response = NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.MutableContainers, error: nil) as NSDictionary |
- (NSString *)dateToJSONDate:(NSDate *)date | |
{ | |
NSDateFormatter *formatter = [NSDateFormatter new]; | |
[formatter setDateFormat:@"Z"]; | |
return [NSString stringWithFormat:@"/Date(%.0f000%@)/", [date timeIntervalSince1970], [formatter stringFromDate:date]]; | |
} |
- (NSDate *)deserializeJsonDateString:(NSString *)jsonDateString | |
{ | |
NSInteger offset = [[NSTimeZone defaultTimeZone] secondsFromGMT]; | |
NSInteger startPosition = [jsonDateString rangeOfString:@"("].location + 1; | |
NSTimeInterval unixTime = [[jsonDateString substringWithRange:NSMakeRange(startPosition, 13)] doubleValue] / 1000; | |
return [[NSDate dateWithTimeIntervalSince1970:unixTime] dateByAddingTimeInterval:offset]; | |
} |
- (NSString *)getCompanyName | |
{ | |
NSURL *url = [NSURL URLWithString:@"http://cvrapi.dk/10150817"]; | |
NSData *data = [NSData dataWithContentsOfURL:url]; | |
NSError *error; | |
NSDictionary *response = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; | |
NSString *companyName = [response objectForKey:@"navn"]; | |
return companyName; | |
} |
#ifdef DEBUG | |
#define DLog(...) NSLog(@"%s(%p) %@", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__]) | |
#else | |
#define DLog(...) do { } while (0) | |
#endif |
<script> | |
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; | |
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; | |
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; | |
s.parentNode.insertBefore(g,s)}(document,'script')); | |
</script> |