To create an anchor to a heading in github flavored markdown.
Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading) so your link should look like so:
[create an anchor](#anchors-in-markdown)
Is AppKit causing you frustration? Instead of just complaining about it, lets try to make it better by compiling a list of specific problems with AppKit. Leave a comment below, and I'll include it in the list.
##NSView##
NSView does not have the ability to set an affine transform (rdar://15608609)NSTextField) do not respond properly when layer-backed. Take NSButton as an example. When not layer-backed, it will animate properly using the animator proxy. When layer-backed, using the animator proxy breaks focus rings (they jump to destination immediately). Currently, directly manipulating the layer of a cell-based control is not supported (and will lead to a broken interface), but is much needed. (rdar://15608822)##NSViewController##
NSViewController could be more useful. It has -loadView but no other lifecycle methods. (rdar://15608948)| ///Returns the input value clamped to the lower and upper limits. | |
| func clamp<T: Comparable>(value: T, lower: T, upper: T) -> T { | |
| return min(max(value, lower), upper) | |
| } | |
| //----------------------------------------------- | |
| // Example usage | |
| let proposedIndex = 6 |
| //: Playground - noun: a place where people can play | |
| /* | |
| README | |
| just copy & paste the code into an iOS playground of Xcode 7.3+ | |
| click display timeline to play in the liveview | |
| */ | |
| import UIKit | |
| import SpriteKit |
| // Turn on Developer Mode under User Settings > Appearance > Developer Mode (at the bottom) | |
| // Then open the channel you wish to delete all of the messages (could be a DM) and click the three dots on the far right. | |
| // Click "Copy ID" and paste that instead of LAST_MESSAGE_ID. | |
| // Copy / paste the below script into the JavaScript console. | |
| // If you're in a DM you will receive a 403 error for every message the other user sent (you don't have permission to delete their messages). | |
| var before = 'LAST_MESSAGE_ID'; | |
| clearMessages = function(){ | |
| const authToken = document.body.appendChild(document.createElement`iframe`).contentWindow.localStorage.token.replace(/"/g, ""); | |
| const channel = window.location.href.split('/').pop(); |
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| import SpriteKit | |
| import GameplayKit | |
| enum NoiseTileType: CustomStringConvertible { | |
| case ocean | |
| case grass | |
| case mountain |
| // Swift Playgrounds Beta 1.0 | |
| import AVFoundation | |
| import AVKit | |
| import Accelerate | |
| import Accounts | |
| import AudioToolbox | |
| import AudioUnit | |
| import CFNetwork | |
| import CoreAudio | |
| import CoreAudioKit |
Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.
And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.
If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.
| import Foundation | |
| struct EquatableValueSequence<T: Equatable> { | |
| static func ==(lhs: EquatableValueSequence<T>, rhs: T) -> Bool { | |
| return lhs.values.contains(rhs) | |
| } | |
| static func ==(lhs: T, rhs: EquatableValueSequence<T>) -> Bool { | |
| return rhs == lhs | |
| } |
| import UIKit | |
| @UIApplicationMain | |
| class AppDelegate: UIResponder, UIApplicationDelegate { | |
| var window: UIWindow? | |
| func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
| let window = UIWindow(frame: UIScreen.main.bounds) |