- Run
sudo chmod 666 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources//IDETextKeyBindingSet.plist
sudo chmod 777 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
| <animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:aapt="http://schemas.android.com/aapt"> | |
| <aapt:attr name="android:drawable"> | |
| <vector | |
| android:name="vector" | |
| android:width="20dp" | |
| android:height="20dp" | |
| android:viewportWidth="60" | |
| android:viewportHeight="60"> | |
| <path |
| struct DependencyInjector { | |
| private static var dependencyList: [String:Any] = [:] | |
| static func resolve<T>() -> T { | |
| guard let t = dependencyList[String(describing: T.self)] as? T else { | |
| fatalError("No povider registered for type \(T.self)") | |
| } | |
| return t | |
| } | |
| // | |
| // containerView.swift | |
| // WebviewApp | |
| // | |
| // Created by joon-ho kil on 8/28/19. | |
| // Copyright © 2019 길준호. All rights reserved. | |
| // | |
| import UIKit | |
| import WebKit |
| import Combine | |
| @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) | |
| extension Publisher { | |
| func removeDuplicates<Property>(by keyPath: KeyPath<Output, Property>) | |
| -> Publishers.RemoveDuplicates<Self> where Property: Equatable | |
| { | |
| return self.removeDuplicates { | |
| $0[keyPath: keyPath] == $1[keyPath: keyPath] | |
| } |
| package com.aniketkadam.sharevideoshortcut | |
| import org.junit.rules.TestWatcher | |
| import kotlinx.coroutines.Dispatchers | |
| import kotlinx.coroutines.ExperimentalCoroutinesApi | |
| import kotlinx.coroutines.test.TestCoroutineDispatcher | |
| import kotlinx.coroutines.test.resetMain | |
| import kotlinx.coroutines.test.setMain | |
| import org.junit.runner.Description |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| //runApp(IOSApp()); | |
| //runApp(AndroidApp()); | |
| runApp(defaultTargetPlatform == TargetPlatform.iOS ? IOSApp() : AndroidApp()); | |
| } |
| protocol ScopeFunc {} | |
| extension ScopeFunc { | |
| @inline(__always) func apply(block: (Self) -> ()) -> Self { | |
| block(self) | |
| return self | |
| } | |
| @inline(__always) func letIt<R>(block: (Self) -> R) -> R { | |
| return block(self) | |
| } | |
| } |
| --- | |
| - name: Capture files in path and register | |
| shell: > | |
| ls -1 /path/to/files | |
| register: files | |
| - name: Remove files except specified | |
| file: | |
| path: "/path/to/files/{{ item }}" | |
| state: absent |