Skip to content

Instantly share code, notes, and snippets.

View ayoub-9's full-sized avatar

AYOUB ayoub-9

  • N/A
  • SAUDI ARABIA
View GitHub Profile
1
00:00:00,320 --> 00:00:09,789
ROMANCE IS A BONUS BOOK
2
00:00:10,140 --> 00:00:14,039
Translated by Hyun-joo Choi at Netflix
3
00:00:14,148 --> 00:00:16,948
LOGIN
webView.evaluateJavaScript("document.getElementsByClassName('_0mzm- sqdOP L3NKy ')[0].click();")
set value to any website
func collectionView(_ collectionView: UICollectionView, didHighlightItemAt indexPath: IndexPath) {
UIView.animate(withDuration: 0.5) {
if let cell = collectionView.cellForItem(at: indexPath) as? ExploreWorldCell {
cell.postImage.isHidden = true
}
}
}
func collectionView(_ collectionView: UICollectionView, didUnhighlightItemAt indexPath: IndexPath) {
//
// Explore.swift
// IINII
//
// Created by Ayoub Alrshidi on 21/06/1440 AH.
// Copyright © 1440 Ayoub Alrshidi. All rights reserved.
//
import UIKit
var dbRef:DatabaseReference!
override func viewDidLoad() {
super.viewDidLoad()
dbRef = Database.database().reference()
import UIKit
import Speech
@available(iOS 10.0, *)
class SpeechToText: UIViewController {
@IBOutlet weak var startStopBtn: UIButton!
@IBOutlet weak var segmentCtr: UISegmentedControl!
@IBOutlet weak var textView: UITextView!
extension TextToSpeechVC1 {
func displayMsg(title : String?, msg : String,
style: UIAlertController.Style = .alert,
dontRemindKey : String? = nil) {
if dontRemindKey != nil,
UserDefaults.standard.bool(forKey: dontRemindKey!) == true {
return
}
import UIKit
import AVFoundation
class ViewController: UIViewController{
@IBOutlet weak var sliderVolume: UISlider! //for volume
let speechSynth = AVSpeechSynthesizer()
extension UIButton {
func pulsate() {
let pulse = CASpringAnimation(keyPath: "transform.scale")
pulse.duration = 0.2
pulse.fromValue = 0.95
///@IBOutlet var View: UIView!
@IBAction func Choose(_ sender: Any) {
let alertController = UIAlertController(title: "اختر المستوى", message: "", preferredStyle: .alert)
let action1 = UIAlertAction(title: "المستوى الاول", style: .default) { (action:UIAlertAction) in
//Here Code