Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { | |
if (!self.isUserInteractionEnabled || self.isHidden || self.alpha <= 0.01) { | |
return nil; | |
} | |
if ([self pointInside:point withEvent:event]) { | |
for (UIView *subview in [self.subviews reverseObjectEnumerator]) { | |
CGPoint convertedPoint = [subview convertPoint:point fromView:self]; | |
UIView *hitTestView = [subview hitTest:convertedPoint withEvent:event]; | |
if (hitTestView) { | |
return hitTestView; |
// | |
// PSPDFFastEnumeration.h | |
// PSPDFFoundation | |
// | |
// PSPDFKit is the leading cross-platform solution for integrating PDFs into your apps: https://pspdfkit.com. | |
// Try it today using our free PDF Viewer app: https://pdfviewer.io/ | |
// | |
// This file is MIT licensed. | |
@protocol PSPDFFastEnumeration <NSFastEnumeration> |
#ifndef dispatch_main_sync_safe | |
#define dispatch_main_sync_safe(block)\ | |
if ([NSThread isMainThread]) {\ | |
block();\ | |
} else {\ | |
dispatch_sync(dispatch_get_main_queue(), block);\ | |
} | |
#endif | |
#ifndef dispatch_main_async_safe |
#ifndef TTD_SWITCH_STRING | |
#define TTD_SWITCH_STRING | |
#define TTD_CASE(str) if ([__s__ isEqualToString:(str)]) | |
#define TTD_SWITCH(s) for (NSString *__s__ = (s); ; ) | |
#define TTD_DEFAULT | |
#endif |
var readline = require('readline'), | |
fs = require('fs'); | |
var LinkMap = function(filePath) { | |
this.files = [] | |
this.filePath = filePath | |
} | |
LinkMap.prototype = { | |
start: function(cb) { |
// | |
// SpinlockTestTests.swift | |
// SpinlockTestTests | |
// | |
// Created by Peter Steinberger on 04/10/2016. | |
// Copyright © 2016 PSPDFKit GmbH. All rights reserved. | |
// | |
import XCTest |
#!/bin/bash | |
# | |
# Restart Bluetooth Module on Mac OS X | |
# | |
# Requires Blueutil to be installed: http://brewformulas.org/blueutil | |
BT="/usr/local/bin/blueutil" | |
log() { | |
echo "$@" |
<?xml version='1.0' encoding='UTF-8' standalone='yes'?> | |
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'> | |
<application xmlns="urn:schemas-microsoft-com:asm.v3"> | |
<windowsSettings> | |
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware> | |
</windowsSettings> | |
</application> | |
</assembly> |
#! /bin/sh | |
# /etc/init.d/thunder | |
### BEGIN INIT INFO | |
# Provides: thunder | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start Thunder Server at boot time |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)