.
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
| openapi: 3.0.0 | |
| info: | |
| title: Dropbox API Reference | |
| description: >+ | |
| The powerful, yet simple, Dropbox API allows you to manage and control | |
| content and team settings programmatically and extend Dropbox capabilities | |
| in new and powerful ways. This is a collection that includes requests to all | |
| endpoints in the Dropbox API. | |
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 | |
| /** | |
| Guarantee the wrapped value is only ever accessed from one thread at a time. | |
| Inspired from: https://github.com/RougeWare/Swift-Atomic/blob/master/Sources/Atomic/Atomic.swift | |
| */ | |
| @propertyWrapper | |
| public struct Atomic<DataType: Any> { | |
| fileprivate let exclusiveAccessQueue = DispatchQueue(label: "Atomic \(UUID())", qos: .userInteractive) |
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 androidx.databinding.Observable | |
| import androidx.databinding.ObservableBoolean | |
| import kotlinx.coroutines.channels.awaitClose | |
| import kotlinx.coroutines.flow.Flow | |
| import kotlinx.coroutines.flow.callbackFlow | |
| import kotlinx.coroutines.flow.distinctUntilChanged | |
| /** | |
| * Converts an ObservableBoolean to a Kotlin Flow. | |
| * |
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
| // ==UserScript== | |
| // @name GitHub PR Review Mode Improvements. Credit: https://github.com/orgs/community/discussions/10197#discussioncomment-14710611 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description Automatically advances to next file after marking a file as viewed, outlines the active file, and focuses the "Viewed" checkbox for keyboard navigation | |
| // @author You | |
| // @match https://github.com/* | |
| // ==/UserScript== | |
| (function() { |
OlderNewer