SELECT * FROM performance_schema.session_variables
WHERE VARIABLE_NAME IN (
'character_set_client', 'character_set_connection',
'character_set_results', 'collation_connection'
) ORDER BY VARIABLE_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
final class SyncOperation: OperationSuperclass { | |
public override func run() { | |
print("Sync has started") | |
Task { [weak self] in | |
guard let self else { | |
return | |
} | |
do { |
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
BEGIN:VCALENDAR | |
VERSION:2.0 | |
PRODID:-//Date iCal//NONSGML kigkonsult.se iCalcreator 2.20.2// | |
METHOD:PUBLISH | |
X-WR-CALNAME;VALUE=TEXT:Holiday Calendar | |
BEGIN:VTIMEZONE | |
TZID:Asia/Kolkata | |
BEGIN:STANDARD | |
DTSTART:19451015T000000 | |
TZOFFSETFROM:+0630 |
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
// | |
// DZShadowsView.swift | |
// | |
// | |
// Created by Nikhil Nigade on 16/12/21. | |
// | |
#if !os(watchOS) | |
#if os(iOS) |
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
@media (prefers-color-scheme: dark) { | |
body { | |
background: #101010; | |
} | |
.psst { | |
display: none; | |
overflow: hidden; | |
margin: -1; | |
} |
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 MapKit | |
extension MKCoordinateRegion { | |
init?(coordinates: [CLLocationCoordinate2D]) { | |
// first create a region centered around the prime meridian | |
let primeRegion = MKCoordinateRegion.region(for: coordinates, transform: { $0 }, inverseTransform: { $0 }) | |
// next create a region centered around the 180th meridian |
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
default_platform(:mac) | |
platform :mac do | |
before_all do | |
# Make sure we start off with a clean slate | |
ensure_git_status_clean | |
end | |
desc "Create a notarized build of the macOS App" | |
lane :notarized do |
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
private func someFunc() -> Bool { | |
guard let aClass = NSClassFromString("UIApplication") else { | |
return false | |
} | |
// fetch properties as necessary. | |
let layoutDirection = UIUserInterfaceLayoutDirection(rawValue: aClass.value(forKeyPath: "sharedApplication.userInterfaceLayoutDirection") as! Int) | |
// use runtime inspection to determine return value type. | |
let state = UIApplication.State(rawValue: aClass.value(forKeyPath: "sharedApplication.applicationState") as! 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
http://trailers.apple.com/trailers/home/feeds/studios/fox.json | |
http://trailers.apple.com/trailers/feeds/data/17602.json | |
http://trailers.apple.com/trailers/feeds/data/18029.json | |
<meta name="apple-itunes-app" content="app-id=471966214, app-argument=movietrailers://movie/detail/18029"> | |
http://trailers.apple.com/trailers/disney/pirates-of-the-caribbean-dead-men-tell-no-tales/images/poster.jpg | |
http://trailers.apple.com/trailers/disney/pirates-of-the-caribbean-dead-men-tell-no-tales/images/poster_2x.jpg |
NewerOlder