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
;; -*- coding:utf-8; mode:emacs-lisp; lexical-binding: t -*- | |
(require 'cl) | |
(defconst ragnarok-process "ragnarok-process") | |
(defvar ragnarok-service-port 1743) | |
(defun ragnarok-process-filter (process string) | |
"外部プロセスからのデータ取得" | |
(message "%s : %s" (process-name process) string)) |
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
NS_DEPRECATED_IOS | |
API_DEPRECATED_WITH_REPLACEMENT | |
WK_DEPRECATED_WATCHOS | |
NS_CLASS_DEPRECATED_IOS | |
NS_ENUM_DEPRECATED_IOS | |
API_DEPRECATED | |
__OSX_AVAILABLE_BUT_DEPRECATED | |
NS_DEPRECATED | |
__OSX_DEPRECATED | |
DEPRECATED_IN_MAC_OS_X |
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
$ find . -type f -exec grep -nH -e NS_DEPRECATED_IOS\(.*,\ 10_2 {} + | |
./AVFoundation.framework/Headers/AVCaptureDevice.h:481:AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDuoCamera NS_DEPRECATED_IOS(10_0, 10_2, "Use AVCaptureDeviceTypeBuiltInDualCamera instead") __TVOS_PROHIBITED; |
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
NSMutableArray<id> *items = [NSMutableArray array]; | |
NSURL *url = [NSURL URLWithString:@"https://www.google.co.jp"]; | |
NSString *text = @"hello world"; | |
[items addObject:url]; | |
[items addObject:text]; | |
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:items | |
applicationActivities:nil]; | |
// select copy action | |
[self presentViewController:activityViewController |
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
#!/usr/bin/env python3 | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
class MyHandler(BaseHTTPRequestHandler): | |
def do_GET(self): | |
print("headers : \n", self.headers) | |
self.send_response(200) | |
self.end_headers() |
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
target_end=$(($(cat "/sys/block/mmcblk0/size") - 1)) | |
sudo parted -m /dev/mmcblk0 u s resizepart 2 $target_end | |
sudo resize2fs /dev/mmcblk0p2 |
OlderNewer