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
try: | |
URL = "https://data.gov.il/api/3/action/datastore_search?resource_id=c8b9f9c8-4612-4068-934f-d4acd2e3c06e" | |
plate_filled = plate.zfill(8) | |
dictionary = { | |
"MISPAR RECHEV": plate_filled | |
} | |
json_object = json.dumps(dictionary, indent=4) | |
PARAMS = {'filters': json_object} |
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
לבריאות או לבריאות | |
https://www.youtube.com/watch?v=rnc4ReF3Y3E | |
מה נשתנה או מה השתנה | |
https://hebrew-academy.org.il/2018/07/24/%D7%94%D7%AA%D7%91%D7%A7%D7%A9%D7%A0%D7%95-%D7%90%D7%95-%D7%A0%D7%AA%D7%91%D7%A7%D7%A9%D7%A0%D7%95-%D7%A2%D7%9C-%D7%94%D7%AA%D7%A4%D7%A2%D7%9C-%D7%95%D7%A0%D7%AA%D7%A4%D7%A2%D7%9C/ | |
מלל | |
https://static.wixstatic.com/media/a4557f_3603fa0b100848c6893602483f0d4fee~mv2.png/v1/fill/w_1580,h_1142,al_c/a4557f_3603fa0b100848c6893602483f0d4fee~mv2.png |
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 SwiftUI | |
extension Animation { | |
public static func easeInSin(duration: Double) -> Animation { | |
return self.timingCurve(0.47, 0, 0.745, 0.715, duration: duration) | |
} | |
public static var easeInSin: Animation = Animation.timingCurve(0.47, 0, 0.745, 0.715) |
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 PlaygroundSupport | |
import SwiftUI | |
struct LiveView: View { | |
var body: some View { | |
VStack(alignment: .leading) { | |
Text("Hello World 999") | |
.font(.system(.title, design: .monospaced)) | |
Text("Hello World 111") | |
.font(.system(.title, design: .monospaced)) |
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
func foo(_ boo: String) { | |
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) { | |
self.goo() | |
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) { //Swift 4.2 Compiler Error: Cannot invoke 'asyncAfter' with an argument list of type '(deadline: DispatchTime, @convention(block) () | |
self.bar(nil) | |
} | |
} | |
} | |
func bar(_ sender:Any) { |
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
myLabel.font = UIFont.monospacedDigitSystemFont(ofSize: 42.0, weight: UIFontWeightMedium) |
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 UIFont { | |
/// Returns a font with monospaced digits, preserving other font attributes. | |
var withMonospacedDigits: UIFont { | |
let monospacedDescriptor = fontDescriptor.withMonospacedDigits | |
return UIFont(descriptor: monospacedDescriptor, size: 0) // Size 0 preserves the original font size. | |
} | |
} |
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
- (void)addInterruptionNotification { | |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleInterruption:) name:@"AVAudioSessionInterruptionNotification" object:nil]; | |
} | |
- (void)handleInterruption:(NSNotification *) notification{ | |
if (notification.name != AVAudioSessionInterruptionNotification || notification.userInfo == nil) { | |
return; | |
} | |
NSDictionary *info = notification.userInfo; |