$ adb kill-server
This file contains hidden or 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
| #!/bin/sh | |
| for num in $(seq -w 6000) | |
| do | |
| new=DSC9$num.JPG | |
| cp DSC09525.JPG $new | |
| chflags uchg $new | |
| done |
This file contains hidden or 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
| #!/bin/bash | |
| echo -E "${1}" | tr '\' '/' |
This file contains hidden or 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 Foundation | |
| import PlaygroundSupport | |
| /// A thread-safe array. | |
| public class SynchronizedArray<Element> { | |
| fileprivate let queue = DispatchQueue(label: "io.zamzam.ZamzamKit.SynchronizedArray", attributes: .concurrent) | |
| fileprivate var array = [Element]() | |
| } | |
| // MARK: - Properties |
This file contains hidden or 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 <Foundation/Foundation.h> | |
| @interface DateFormatterProvider : NSObject | |
| + (NSDateFormatter *)ISO8601DateFormatter; | |
| + (NSDateFormatter *)utcDateFormatter; | |
| + (NSDateFormatter *)exifDateFormatter; | |
| + (NSDateFormatter *)dateCalendarDateFormatter; | |
| + (NSDateFormatter *)monthCalendarDateFormatter; |
This file contains hidden or 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 Foundation | |
| // -------------------------------------------------- | |
| // Pool.swift | |
| // -------------------------------------------------- | |
| open class Pool<T> { | |
| // MARK: Initialization | |
| /** | |
| - parameter maxElementCount: Specifies the maximum number of element that the pool can manage. |
This file contains hidden or 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 Foundation | |
| import UIKit | |
| // -------------------------------------------------- | |
| // UIStoryboard+.swift | |
| // -------------------------------------------------- | |
| protocol StoryboardIdentifiable { | |
| // Stroryboardに定義されたStoryboard ID(= ViewControllerクラス名) | |
| static var storyboardIdentifier: String { get } |
This file contains hidden or 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 UIKit | |
| import Photos | |
| extension PHPhotoLibrary { | |
| // MARK: - PHPhotoLibrary+SaveImage | |
| // MARK: - Public | |
| func savePhoto(image:UIImage, albumName:String, completion:((PHAsset?)->())? = nil) { | |
| func save() { |
This file contains hidden or 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)runCriticalSection:(void (^)(void))func | |
| { | |
| static dispatch_semaphore_t sema; // The semaphore | |
| static dispatch_once_t onceToken; | |
| dispatch_once(&onceToken, ^{ | |
| // Initialize with count=1 (this is executed only once): | |
| sema = dispatch_semaphore_create(1); | |
| }); | |
| // Try to decrement the semaphore. This succeeds if the count is still 1 |
This file contains hidden or 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
| 【最初に】 | |
| Redmineは、使いこなせれば有用なプロジェクト管理ツールですが | |
| 全員がきっちり入力を行ってこそ力が発揮されます。ご協力よろしくお願いします。 | |
| 【Redmine閲覧】 | |
| ・メール通知は「ウォッチもしくは関係している事柄」以上のレベルで常時確認すること | |
| ・できれば「参加しているプロジェクトの全ての通知」を選択推奨 | |
| 【チケット登録】 | |
| ・依頼は、「すぐにチケット化する」こと |