Note: This is the guide for v 2.x.
For the v3, please follow this url: https://blog.csdn.net/sam_shan/article/details/80585240 Thanks @liy-cn for contributing.
Download: StarUML.io
Source: jorgeancal
// UserDefaults KVO observation with AsyncSequence/AsyncStream | |
// Ole Begemann, 2023-04 | |
// https://gist.github.com/ole/fc5c1f4c763d28d9ba70940512e81916 | |
import Foundation | |
extension UserDefaults { | |
func observeKey<Value>(_ key: String, valueType _: Value.Type) -> AsyncStream<Value?> { | |
var continuation: AsyncStream<Value?>.Continuation? = nil | |
let stream = AsyncStream(Value?.self) { |
#!/bin/bash | |
if [ "$SKIP_SWIFTLINT" = "true" ]; then | |
exit 0 | |
fi | |
if which swiftlint >/dev/null; then | |
if [ "$1" = "buildphase" ]; then | |
swiftlint lint | |
elif [ "$1" = "postcommit" ]; then |
import Foundation | |
import AudioToolbox | |
class KKSimplePlayer: NSObject { | |
var URL: NSURL | |
var URLSession: NSURLSession! | |
var packets = [NSData]() | |
var audioFileStreamID: AudioFileStreamID = nil | |
var outputQueue: AudioQueueRef = nil | |
var streamDescription: AudioStreamBasicDescription? |
Note: This is the guide for v 2.x.
For the v3, please follow this url: https://blog.csdn.net/sam_shan/article/details/80585240 Thanks @liy-cn for contributing.
Download: StarUML.io
Source: jorgeancal
// | |
// AssetRecorderView.swift | |
// Snowball | |
// | |
// Created by Le Tai on 7/20/16. | |
// Copyright © 2016 Snowball. All rights reserved. | |
// | |
import UIKit | |
import AVFoundation |
#!/bin/bash | |
#Path to swiftlint | |
SWIFT_LINT=/usr/local/bin/swiftlint | |
#if $SWIFT_LINT >/dev/null 2>&1; then | |
if [[ -e "${SWIFT_LINT}" ]]; then | |
count=0 | |
for file_path in $(git ls-files -m --exclude-from=.gitignore | grep ".swift$"); do | |
export SCRIPT_INPUT_FILE_$count=$file_path |
// | |
// MyMetalWaterfall.swift | |
// version 0.1.105 (updated for Swift 5) | |
// | |
// Demonstrates using a MetalKit compute shader to render a live waterfall RGB bitmap | |
// into a UIView | |
// | |
// This is a single file iOS app | |
// | |
// It includes AppDelegate for a minimal demonstration app |
// | |
// RecordAudio.swift | |
// | |
// This is a Swift class (updated for Swift 5) | |
// that uses the iOS RemoteIO Audio Unit | |
// to record audio input samples, | |
// (should be instantiated as a singleton object.) | |
// | |
// Created by Ronald Nicholson on 10/21/16. | |
// Copyright © 2017,2019 HotPaw Productions. All rights reserved. |
A Dashing widget to display the number of passing, ignored and failing tests from a test result file in the JUnit XML format.
The following dependencies are required. Please add them to your dashing gemfile.
gem 'nokogiri'
##Preview
Simple Dashing widget that displays all currently open pull requests across a GitHub organization.
##Usage