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
disabled_rules: # rule identifiers turned on by default to exclude from running | |
- colon | |
- comma | |
- control_statement | |
- trailing_whitespace |
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
// | |
// ColorPalette.swift | |
// Monotone | |
// | |
// Created by Xueliang Chen on 2020/10/31. | |
// | |
import Foundation | |
import UIKit | |
import Hue |
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 | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { | |
// Manually creates the window and makes it visible. | |
window = UIWindow(frame: UIScreen.main.bounds) |
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
/** | |
* Open an input stream and read the header. The codecs are not opened. | |
* The stream must be closed with avformat_close_input(). | |
* | |
* @param ps Pointer to user-supplied AVFormatContext (allocated by avformat_alloc_context). | |
* May be a pointer to NULL, in which case an AVFormatContext is allocated by this | |
* function and written into ps. | |
* Note that a user-supplied AVFormatContext will be freed on failure. | |
* @param url URL of the stream to open. | |
* @param fmt If non-NULL, this parameter forces a specific input format. |
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
typedef struct AVCodecParameters { | |
/** | |
* General type of the encoded data. | |
*/ | |
enum AVMediaType codec_type; | |
/** | |
* Specific type of the encoded data (the codec used). | |
*/ | |
enum AVCodecID codec_id; | |
/** |
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 Thread{ | |
public func join(){ | |
while(!self.isFinished){ | |
usleep(10) | |
} | |
} | |
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
module.exports = { | |
config: { | |
// rest of the config | |
activeTab: '🚀' | |
} | |
// rest of the file | |
} |
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
typedef struct AVFrame { | |
#define AV_NUM_DATA_POINTERS 8 | |
/** | |
* pointer to the picture/channel planes. | |
* This might be different from the first allocated byte | |
* | |
* Some decoders access areas outside 0,0 - width,height, please | |
* see avcodec_align_dimensions2(). Some filters and swscale can read | |
* up to 16 bytes beyond the planes, if these filters are to be used, | |
* then 16 extra bytes must be allocated. |
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
protocol Character { | |
func getHealth() -> Int | |
} |
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
// new file |
NewerOlder