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
| // | |
| // User.swift | |
| // WaterLand | |
| // | |
| // Created by fujiwara on 2016/12/15. | |
| // Copyright © 2016年 fujiwara. All rights reserved. | |
| // | |
| import UIKit | |
| import KeychainAccess |
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 | |
| class User: NSObject, NSCoder { | |
| static let sharedInstance = User() | |
| var name: String = "" | |
| var email: String = "" |
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 Accounts | |
| import Social | |
| class SNSLinkManager: NSObject { | |
| static func linkTwitterAccount(viewController: UIViewController, completion: @escaping (ACAccount?) -> ()) { | |
| let accountStore = ACAccountStore() | |
| let accountType = accountStore.accountType(withAccountTypeIdentifier: ACAccountTypeIdentifierTwitter) | |
| accountStore.requestAccessToAccounts(with: accountType, options: nil) { (succes, error) in |
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
| ~/.ssh/config | |
| Host * | |
| UseKeychain yes | |
| AddKeysToAgent yes |
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
| # provisioning 場所 | |
| cd ~/Library/MobileDevice/Provisioning\ Profiles | |
| # project_nameを含むprovisioning | |
| find ./ -type f -print | xargs grep 'project_name' | |
| # project_nameを含むprovisioanig削除 |
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 | |
| sudo rm -rf ~/Library/Developer/Xcode/DerivedData/* | |
| echo "clean Xcode/DerivedData!" | |
| sudo rm -rf ~/Library/Developer/Xcode/Archives/* | |
| echo "clean Xcode/Archives!" | |
| sudo rm -rf ~/Library/Caches/* | |
| echo "clean Library/Caches!" | |
| sudo rm -rf ~/Library/Logs/iOS\ Simulator | |
| echo "clean iOS logs" |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
| http://zakuzaku911.com/archives/4770579.html?jprank=5&cat=46 | |
| http://click.amanad.adtdp.com/3QtIobHlkFT0BMKDIQMIAQ/click?tk=B6tcbK-f6NnOM73k6lZoK34iHhIRuS17PIsg9lVG8NZvUVGkes08LCtEhPNwRdXQRtYnwp7nb2QAiZ0of_wFkQS2xdGhPEMHbbv-7lbNQ-rObGFw1obEwSMKDwDcMOK1eJpaqQsrSN10wwkKHW7mrCvS8BkaTDfeC4coo1gZiFOx-HlcammkZEF4uAPtUjxXpsrtLFaDKtqTL0xWjcHRUN434vwzBq9T4vfsP8jWiuDLrvOrqW8PFaQqLg6FTCRS1lJ5Q7YJKhP4Saw38bJuRipmsFUpVH7HBqbhCiKHQ5Y0P3QXLmczi5aP9QTen8wVMMZTHDYx0NFMvpjalebIRkjJ-l0xFIY-VEWnur_-QqFKnFq1mifPTZcBRi7ApO14M1TlHaGqLu7RWYQUihh33-CL9Jc3NTFJM535qWg4cVpZGPwZMLcIFYt-ySFB7i_giyeqbJDH14PlyLn1LlI7i8vclUQ4-gjjxgNuNyO66Tg538Ekhon47nnLwu6SS-zxTsSPR9QHn17i3dMnxMTTBaM1Bz8ZAZ2E1ArjKvJ8yd66XMZrQ-Xrfl01TbOlxXA1zFCusidYYbGeZhlqLdKk3puWhSHDQuJ12lgznuKdfa_ogGOCS3FirdwyCDPdNwDjhOEEZatzg8JmdGRR1PWqlcCOGegvN1w47Col9mLd2DzXyMLCmzAzrDtBCd-1oIB2OruhmGWVhYyoaNUiecXGDdt73mRFijMHaRyGhm8akW6swgi1OC2ay-O4N0n_uC38b6fBJekXePbL3JVEOPoI40c_8DY9kQolDH8RvKtzmw3J1j13lfoJEi-MfI20SKwNI9oWx-9cbD7LTihze1LN8VZ23LnnhruROjuvw8KlPgCQlq-oVSl-Vg734OxR3Ifcag5W_ |
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
| <!DOCTYPE html> | |
| <html lang="en" class=""> | |
| <head> | |
| <link href="http://vjs.zencdn.net/4.2.0/video-js.css" rel="stylesheet"> | |
| <script src="http://vjs.zencdn.net/4.2.0/video.js"></script> | |
| </head> | |
| <body> | |
| <video id="rtmp live test" class="video-js vjs-default-skin" controls | |
| preload="auto" width="640" height="264" data-setup='{}'> | |
| <source src="rtmp://192.168.33.10/live/test" type='rtmp/mp4'> |
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
| ``` swift | |
| class ViewController: UIViewController { | |
| @IBOutlet weak var textView: UITextView! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| let baseText = "apple https://www.apple.com/jp/ thanks https://qiita.com/shtnkgm/items/3c8b6b794219fbf087ba" | |
| let words: [String] = baseText | |
| .components(separatedBy: .whitespacesAndNewlines) |
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
| require "prawn" | |
| f_name = File.basename(__FILE__, ".rb")+".pdf" | |
| Prawn::Document.generate(f_name) { | |
| stroke_axis | |
| } | |
| binary_text = IO.read("#{f_name}", mode: 'rb').force_encoding("utf-8") | |
| #text.encode("UTF-8") | |
| puts("#{binary_text}") |