This file contains 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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script> |
This file contains 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
OnClick='<%# Response.WriteFile(Eval("ItemNumber").ToString() + "_c.pdf") %>' |
This file contains 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)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error | |
{ | |
// Notifies users about errors associated with the interface | |
switch (result) | |
{ | |
case MFMailComposeResultCancelled: | |
break; | |
case MFMailComposeResultSaved: | |
break; | |
case MFMailComposeResultSent: |
This file contains 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
<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> |
This file contains 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
#ifdef DEBUG | |
#define DLog(...) NSLog(@"%s(%p) %@", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__]) | |
#else | |
#define DLog(...) do { } while (0) | |
#endif |
This file contains 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
- (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; | |
} |
This file contains 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
- (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]; | |
} |
This file contains 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
- (NSString *)dateToJSONDate:(NSDate *)date | |
{ | |
NSDateFormatter *formatter = [NSDateFormatter new]; | |
[formatter setDateFormat:@"Z"]; | |
return [NSString stringWithFormat:@"/Date(%.0f000%@)/", [date timeIntervalSince1970], [formatter stringFromDate:date]]; | |
} |
This file contains 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 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 |
This file contains 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
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 |
OlderNewer