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
// ==UserScript== | |
// @name Poland Visa Script | |
// @namespace e-konsulat.gov.pl | |
// @include https://*.e-konsulat.gov.pl/* | |
// @grant none | |
// @author Intekhab Alam (Intek13x_) | |
// @description Useless to me, may be useful to you.. | |
// @version 0.07 | |
// ==/UserScript== |
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
import PlaygroundSupport | |
import Foundation | |
class Worker { | |
private let queue = DispatchQueue.global(qos: .background) | |
private let serialQueue = DispatchQueue(label: "com.acme.serial") | |
public private(set) var count = 0 | |
func incrementCount() { |
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
import ComposableArchitecture | |
import Dependencies | |
import SwiftUI | |
// Based on Isowords's `ComposableGameCenter.LiveKey.LocalPlayerClient.live`: | |
// https://github.com/pointfreeco/isowords/blob/main/Sources/ComposableGameCenter/LiveKey.swift#L80 | |
struct AuthClient { | |
enum AuthStatus { | |
case loggedIn |
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
import Combine | |
import ComposableArchitecture | |
import KeyboardShortcuts | |
public struct KeyboardShortcutManager { | |
public enum Action: Equatable { | |
case onKeyDown(UUID) | |
case onKeyUp(UUID) | |
} |
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
import Foundation | |
extension URL { | |
/// 返回不带有任何参数的 URL | |
/// let anURLString = "https://127.0.0.1:8080/search/index.html?type=ios&version=1.0" | |
/// let anURL = URL.init(string: anURLString)! | |
/// print(anURL.bareURL) | |
/// Optional(https://127.0.0.1:8080/search/index.html) | |
var bareURL: URL? { |
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
import SwiftUI | |
import Foundation | |
import CoreGraphics | |
import AVFoundation | |
import VideoToolbox | |
import ComposableArchitecture | |
struct ContentView: View { | |
let store: Store<CameraState, CameraAction> | |
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
#!/bin/bash | |
# Generate list of arguments to pass to Sourcery | |
function sourceryArguments { | |
# Environment variables from BuildConfig to map into AppSecrets | |
local arguments=( | |
"CHAT_API_CLIENT_SECRET" "ANALYTICS_WRITE_KEY" | |
) | |
local combinedArgs |
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
env > env.txt | |
instruments -s devices > devices.txt | |
#! /bin/sh -e | |
# This script demonstrates archive and create action on frameworks and libraries | |
# Based on script by @author Boris Bielik | |
# Release dir path | |
OUTPUT_DIR_PATH="${PROJECT_DIR}/XCFramework" | |
function archivePathSimulator { |
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
import UIKit | |
extension UIStoryboard { | |
/// Main storyboard | |
public var main: UIStoryboard { | |
return UIStoryboard(name: "Main", bundle: nil) | |
} | |
/// Instantiates and returns the view controller with the specified identifier. | |
/// | |
/// - Parameter identifier: uniquely identifies equals to Class name |
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
//First commit any outstanding code changes, and then, run this command: | |
git rm -r --cached . | |
//This removes any changed files from the index(staging area), then just run: | |
git add . | |
//Commit | |
git commit -m "Atualizando .gitignore para..." |
NewerOlder