I hereby claim:
- I am diejmon on github.
- I am s2ler (https://keybase.io/s2ler) on keybase.
- I have a public key ASCTpGgttv5gAJZjmj695dMJfp8y_jPZzUhnZ2eTxGXz0go
To claim this, I am signing this object:
#import "AirPrintingViewController.h" | |
@implementation AirPrintingViewController | |
-(void)printItem { | |
NSString *path = [[NSBundle mainBundle] pathForResource:@"demo" ofType:@"png"]; | |
NSData *dataFromPath = [NSData dataWithContentsOfFile:path]; | |
UIPrintInteractionController *printController = [UIPrintInteractionController sharedPrintController]; |
bool isLidClosed(void) | |
{ | |
bool isClosed = false; | |
io_registry_entry_t rootDomain; | |
mach_port_t masterPort; | |
CFTypeRef clamShellStateRef = NULL; | |
// Retrieve the IOKit's master port so a notification port can be created | |
IOReturn ioReturn = IOMasterPort(MACH_PORT_NULL, &masterPort); |
function buildWorkLog(timers) { | |
var worklog = '' | |
for (t in timers) { | |
worklog += timers[t].pause_date() + ': ' + timers[t].name() + ' ' + timers[t].formatted_time() + '\n' | |
} | |
return worklog | |
} | |
function saveWorkLog(worklog) { | |
finder = Application("Finder") |
I hereby claim:
To claim this, I am signing this object:
#include <math.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <limits.h> | |
#include <stdbool.h> | |
void permute(int *, int, int); |
OTHER_SWIFT_FLAGS= $(inherited) -Xfrontend -warn-long-function-bodies=120 -Xfrontend -debug-time-expression-type-checking -Xfrontend -debug-time-function-bodies |
import Foundation | |
public final class ObjectObserver<Object: NSObject>: NSObject { | |
private var observationContext = 0 | |
// MARK: - Init | |
public typealias KeyPath = String | |
private let observers: [KeyPath: (KeyPath, Object) -> Void] |
import Foundation | |
extension URLComponents { | |
public mutating func whyThisFails() { | |
guard let currentComponentString = components.string, | |
let components = URLComponents(string: currentComponentString) else { return } | |
self = components | |
} |