blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
625
content_id
stringlengths
40
40
detected_licenses
sequencelengths
0
47
license_type
stringclasses
2 values
repo_name
stringlengths
5
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
643 values
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
80.4k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
16 values
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_language
stringclasses
85 values
src_encoding
stringclasses
7 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
4
6.44M
extension
stringclasses
17 values
content
stringlengths
4
6.44M
duplicates
sequencelengths
1
9.02k
ad7abab07c7c65f9195ade16e1d7edd5a6d4abe9
996f7fbc7eafd7b70b801421b2cb4b1d95794801
/HandWashApp/HandWashApp WatchKit Extension/Persistance/WashDAO.swift
7e53985260b7eb4471126dd70f17f9bc098df965
[]
no_license
JPedroAmorim/apolares
a80e7d53a8b208e5f9854c947f52eb04a46a4a3b
ec420e9d228c22559a6bfcda44ee6f0ce5971ea7
refs/heads/master
2022-09-26T12:53:43.958234
2020-06-05T14:58:24
2020-06-05T14:58:24
248,371,968
0
0
null
null
null
null
UTF-8
Swift
false
false
5,714
swift
// // DAO.swift // HandWash WatchKit Extension // // Created by João Pedro de Amorim on 08/05/20. // Copyright © 2020 AndrePapoti. All rights reserved. // import Foundation import CoreData class WashDAO { static func mockWashEntry() { let context = CoreDataManager.shared.persistentContainer.viewContext let entity = NSEntityDescription.entity(forEntityName: "WashEntity", in: context) let firstWashEntry = NSManagedObject(entity: entity!, insertInto: context) let secondWashEntry = NSManagedObject(entity: entity!, insertInto: context) let thirdWashEntry = NSManagedObject(entity: entity!, insertInto: context) firstWashEntry.setValue("5/28/20", forKey: "date") firstWashEntry.setValue(2, forKey: "washes") secondWashEntry.setValue("5/29/20", forKey: "date") secondWashEntry.setValue(4, forKey: "washes") thirdWashEntry.setValue("6/4/20", forKey: "date") thirdWashEntry.setValue(3, forKey: "washes") do { try context.save() } catch { print("Failed saving mocks") } } static func createWashEntry() { let context = CoreDataManager.shared.persistentContainer.viewContext let fetchRequest: NSFetchRequest<NSFetchRequestResult> = NSFetchRequest(entityName: "WashEntity") let todaysDate = DateUtil.shared.formatter.string(from: Date()) fetchRequest.predicate = NSPredicate(format: "date == %@", todaysDate) do { let result = try context.fetch(fetchRequest) if result.count == 0 { let entity = NSEntityDescription.entity(forEntityName: "WashEntity", in: context) let newWashEntry = NSManagedObject(entity: entity!, insertInto: context) newWashEntry.setValue(todaysDate, forKey: "date") newWashEntry.setValue(1, forKey: "washes") } else { let washEntryUpdate = result[0] as! NSManagedObject let previousWashes = washEntryUpdate.value(forKey: "washes") as! Int16 let updateWashes = previousWashes + 1 washEntryUpdate.setValue(updateWashes, forKey: "washes") } try context.save() } catch { print("Failed saving") } } static func deleteAllWashEntries() { let context = CoreDataManager.shared.persistentContainer.viewContext let fetchRequest: NSFetchRequest<NSFetchRequestResult> = NSFetchRequest(entityName: "WashEntity") let deleteRequest = NSBatchDeleteRequest(fetchRequest: fetchRequest) do { try CoreDataManager.shared.persistentContainer.persistentStoreCoordinator.execute(deleteRequest, with: context) print("Deleted all entries!") } catch let error as NSError { print("Error! - \(error)") } } static func deleteAllPastWashEntries() { let context = CoreDataManager.shared.persistentContainer.viewContext let fetchRequest: NSFetchRequest<NSFetchRequestResult> = NSFetchRequest(entityName: "WashEntity") let todaysDate = DateUtil.shared.formatter.string(from: Date()) fetchRequest.predicate = NSPredicate(format: "date < %@", todaysDate) let deleteRequest = NSBatchDeleteRequest(fetchRequest: fetchRequest) do { try CoreDataManager.shared.persistentContainer.persistentStoreCoordinator.execute(deleteRequest, with: context) print("Deleted all entries from previous dates in the Database!") } catch let error as NSError { print("Error! - \(error)") } } static func numberOfWashesToday() -> Int { var numberOfWashes = Int16(0) let context = CoreDataManager.shared.persistentContainer.viewContext let request = NSFetchRequest<NSFetchRequestResult>(entityName: "WashEntity") let todaysDate = DateUtil.shared.formatter.string(from: Date()) request.predicate = NSPredicate(format: "date == %@", todaysDate) request.returnsObjectsAsFaults = false do { let result = try context.fetch(request) if result.count > 0 { let washEntry = result[0] as! NSManagedObject numberOfWashes = washEntry.value(forKey: "washes") as! Int16 } } catch { print("Failed") } return Int(numberOfWashes) } static func allWashesEntries() -> [String : Int] { var resultDict: [String : Int] = [:] let context = CoreDataManager.shared.persistentContainer.viewContext let request = NSFetchRequest<NSFetchRequestResult>(entityName: "WashEntity") request.returnsObjectsAsFaults = false do { let result = try context.fetch(request) for washEntry in result as! [NSManagedObject] { let numberOfWashesFromEntry = washEntry.value(forKey: "washes") as! Int16 let dateFromEntry = washEntry.value(forKey: "date") as! String resultDict.updateValue(Int(numberOfWashesFromEntry), forKey: dateFromEntry) } } catch { print("Error") } return resultDict } }
[ -1 ]
c4b74f325e80699775dbf9c87ce753bbea30a6ab
ba0a45981bd9a19ea2606b26988a6d2c0e0bbf98
/KeyboardDrummer/AppDelegate.swift
058e1c2bf32c1d82b071bac5be36b49a705f2968
[]
no_license
tomnvt/KeyboardDrummer
4df6a14fd7409086ecf1cd0851aa99ee1e684d14
1669bf554a1c368700a4c71a3120dea039d30fbd
refs/heads/master
2020-03-09T05:49:01.232731
2018-07-10T19:59:29
2018-07-10T19:59:29
128,623,230
0
0
null
null
null
null
UTF-8
Swift
false
false
495
swift
// // AppDelegate.swift // KeyboardDrummer // // Created by NVT on 08.04.18. // Copyright © 2018 NVT. All rights reserved. // import Cocoa @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate { func applicationDidFinishLaunching(_ aNotification: Notification) { // Insert code here to initialize your application } func applicationWillTerminate(_ aNotification: Notification) { // Insert code here to tear down your application } }
[ 293889, 333829, 153606, 326663, 175629, 340493, 384017, 236053, 175643, 361500, 235039, 332328, 330792, 200746, 324654, 212529, 289330, 243768, 44610, 188997, 288842, 196185, 322652, 310366, 326756, 323173, 287341, 416369, 288375, 175739, 131195, 344700, 66688, 244352, 291459, 402566, 323209, 239243, 184975, 116368, 323219, 296089, 330394, 327836, 339103, 62112, 358064, 165041, 164034, 286412, 265420, 3284, 333526, 313049, 275675, 383710, 119521, 302818, 294630, 187110, 234731, 275697, 237810, 306930, 34038, 237819, 242939, 117503, 348928, 317697, 171778, 352000, 320774, 336649, 138507, 352013, 201494, 295704, 334105, 259353, 113953, 44324, 237861, 200490, 333611, 295726, 245553, 326449, 351539, 351541, 216379, 351560, 349002, 225611, 351567, 250193, 325458, 351572, 307033, 389981, 182625, 321898, 310640, 243568, 224112, 288120, 436606, 357760, 296320, 200577, 293764, 306567, 183176, 236425, 293259, 349069, 368014, 349588, 333728, 175011, 333732, 253350, 222631, 329128, 38330, 240064, 229314, 415176, 289230, 234958, 193490, 337363, 234965, 327645, 144864, 327649, 183265, 313316, 306669, 329710, 168943, 291312, 249844, 325621, 308724, 313342 ]
7e6ccdfee10db7393771f8d2d254643e8d9cdc56
31f5db1d1b68a816b726faab1bda36ae20c2d8f1
/familyOffice/Notification.swift
260f564e787af92521974900e7e24039b832e045
[]
no_license
maiki11/familyOffice
0c886d1e836fb160cb9f6e980b5a18ab3f3bda12
3091991767d14acff95097681123d99819a13371
refs/heads/master
2021-01-01T06:02:42.150531
2017-07-15T19:41:22
2017-07-15T19:41:22
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,762
swift
// // Notification.swift // familyOffice // // Created by Leonardo Durazo on 15/02/17. // Copyright © 2017 Leonardo Durazo. All rights reserved. // import Foundation import Firebase struct NotificationModel { static let kNotificationIdkey = "id" static let kNotificationTitlekey = "title" static let kNotificationDatekey = "timestamp" static let kNotificationPhotokey = "photo" static let kNotificationSeenkey = "seen" let id: String! let title: String! let timestamp: Double! var seen: Bool! var photoURL: String! init(id: String, title: String, timestamp: Double, photoURL: String) { self.title = title self.timestamp = timestamp * -1 self.id = id self.photoURL = photoURL self.seen = false } init(snapshot: FIRDataSnapshot) { let snapshotValue = snapshot.value as! NSDictionary self.id = snapshot.key self.title = service.UTILITY_SERVICE.exist(field: NotificationModel.kNotificationTitlekey, dictionary: snapshotValue) self.timestamp = service.UTILITY_SERVICE.exist(field: NotificationModel.kNotificationDatekey, dictionary: snapshotValue) self.seen = snapshotValue.object(forKey: "seen") as! Bool self.photoURL = service.UTILITY_SERVICE.exist(field: NotificationModel.kNotificationPhotokey, dictionary: snapshotValue) } func toDictionary() -> NSDictionary { return [ NotificationModel.kNotificationDatekey : self.timestamp, NotificationModel.kNotificationTitlekey : self.title, NotificationModel.kNotificationPhotokey : self.photoURL, NotificationModel.kNotificationSeenkey : self.seen ] } }
[ -1 ]
935a03861d21e7422775ca2003039a9538c838e8
a8704e13b60d8e766a990c8707cab99f567b05c8
/group15_assignment5/GalleryCollectionViewCell.swift
367e0095d41fd3cb7c4a49fcb56d7956b61b0590
[]
no_license
Cathy-L/group15_assignment5
1be4310e8f9354d305a40108265854f90baea3e6
0e1cdf144fd41641dd3c42f8eab6fa93b93a1e66
refs/heads/master
2020-03-30T13:22:46.817205
2018-10-13T04:18:22
2018-10-13T04:18:22
151,269,469
0
0
null
null
null
null
UTF-8
Swift
false
false
519
swift
// // GalleryCollectionViewCell.swift // group15_assignment5 // // Created by Cathy Li on 10/12/18. // Copyright © 2018 CS329E. All rights reserved. // import UIKit class GalleryCollectionViewCell: UICollectionViewCell { @IBOutlet weak var image: UIImageView! @IBOutlet weak var caption: UILabel! var photo: Gallery? { didSet { if let photo = photo { image.image = photo.image caption.text = photo.caption } } } }
[ -1 ]
c997bdb37a1abf6159d02424611539af801b0be5
8c876a2c3ab9ed35f23a9f104cb1b80007c75006
/StopWatch/AppDelegate.swift
91105d442b2ee4d39466808c18bf7f16ffc1c997
[]
no_license
ngocbaomobile/Stopwatchbasic
a8afb58325781c8f6a207095c4648519b6939519
c8b1ff45243c6c745e83bf59e4a34854ffba0884
refs/heads/master
2023-05-14T20:13:32.114016
2019-11-20T01:44:25
2019-11-20T01:44:25
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,405
swift
// // AppDelegate.swift // StopWatch // // Created by Apple on 11/12/19. // Copyright © 2019 Apple. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
[ 350213, 393222, 393224, 354313, 268298, 393230, 350224, 354142, 350231, 333850, 346139, 350237, 405533, 350240, 393250, 350244, 344102, 350248, 178218, 350251, 393261, 350256, 430129, 393266, 350259, 213048, 376889, 385081, 393275, 350271, 243781, 421960, 376905, 378954, 395339, 327756, 350285, 374864, 286800, 338004, 180313, 342111, 180320, 368735, 376931, 430180, 100453, 329832, 286831, 342133, 374902, 286844, 381068, 225423, 432271, 250002, 250004, 225429, 356506, 329885, 225437, 135327, 286879, 225441, 438433, 346272, 225444, 362660, 438436, 225447, 286888, 438440, 225450, 354172, 100524, 258222, 225455, 387249, 225458, 377012, 225461, 379066, 334011, 387260, 225466, 225470, 327871, 256191, 381120, 260289, 372929, 225475, 389320, 350410, 260298, 346316, 377036, 225484, 180431, 350416, 225487, 225490, 225493, 350422, 377046, 211160, 350425, 411861, 268507, 225496, 334045, 411864, 411868, 225502, 225505, 356578, 379107, 377060, 387301, 217318, 225510, 338152, 346343, 327914, 225514, 205036, 350445, 387306, 225518, 372976, 387312, 393456, 346355, 358644, 393460, 375026, 381176, 436473, 350458, 418043, 321786, 350461, 336123, 411903, 350464, 385280, 336128, 325891, 350467, 262404, 389380, 180490, 350475, 194828, 368911, 350480, 262416, 379152, 387349, 350486, 338199, 262422, 387352, 325914, 350490, 377117, 325917, 182558, 350493, 356637, 350498, 338211, 356640, 356643, 262436, 350504, 356649, 358700, 350509, 391468, 356655, 332080, 358704, 340275, 356660, 336180, 397622, 262454, 358713, 332090, 358716, 332097, 201028, 425845, 362822, 262472, 348488, 332106, 436555, 190796, 334161, 213332, 332117, 348502, 250199, 383321, 250202, 332125, 262496, 418144, 250210, 262499, 383330, 213352, 391530, 246123, 262507, 383341, 262510, 354673, 321910, 332152, 248186, 334203, 268668, 213372, 250238, 389502, 194941, 356740, 385419, 332172, 393612, 420236, 366990, 379278, 391563, 262550, 262552, 340379, 268701, 342430, 416157, 385440, 385443, 354727, 375208, 326058, 385451, 262573, 389550, 393647, 338352, 375216, 385458, 334262, 262586, 324030, 344511, 262592, 334275, 326084, 358856, 330189, 338381, 338386, 360916, 257761, 369118, 334304, 338403, 334311, 338409, 375277, 127471, 334321, 328177, 328179, 248308, 328182, 340472, 199164, 328189, 324094, 328192, 266754, 324099, 350723, 164361, 330252, 324111, 410128, 186897, 342545, 393747, 340500, 199186, 334358, 342550, 420376, 342554, 334363, 330267, 254490, 188958, 385570, 324131, 332324, 33316, 197159, 354855, 350761, 377383, 324139, 356907, 381481, 324142, 252461, 334384, 383536, 358961, 356916, 324149, 352821, 334394, 324155, 188987, 348733, 324160, 252482, 324164, 219718, 334407, 348743, 356934, 324170, 369223, 10828, 324173, 381512, 385609, 324176, 199249, 385616, 334420, 332380, 369253, 174695, 262760, 248425, 352874, 375400, 191084, 381545, 338543, 346742, 254587, 377472, 334465, 334468, 148105, 377484, 162445, 330383, 326290, 340627, 184982, 373398, 342679, 98968, 342683, 260766, 354974, 332453, 150183, 361129, 332459, 389805, 332463, 385713, 381617, 434867, 164534, 332471, 248504, 244409, 328378, 342710, 336567, 260797, 223934, 260801, 328386, 332483, 350917, 332486, 344776, 373449, 352968, 418507, 352971, 154317, 332493, 357069, 355024, 357073, 385742, 273108, 385748, 264918, 391894, 154328, 416473, 361179, 183005, 332511, 189153, 338660, 369381, 64230, 332520, 361195, 264941, 342766, 375535, 203506, 363251, 332533, 155646, 342776, 348924, 340858, 344831, 391937, 207619, 336643, 344835, 373510, 344841, 338700, 361230, 326416, 375568, 336659, 418580, 418585, 434970, 369435, 199452, 418589, 418593, 336675, 328484, 346916, 418598, 389926, 326441, 418605, 215853, 355122, 326451, 152370, 340789, 326454, 348982, 336696, 361273, 355131, 375612, 244540, 326460, 398139, 326467, 328515, 336708, 127814, 244551, 355140, 326473, 328522, 328519, 336711, 355143, 326477, 336714, 355150, 330580, 326485, 416597, 426841, 326490, 389978, 197468, 361309, 355166, 430939, 254812, 361315, 326502, 355175, 433000, 361322, 201579, 326507, 355179, 201582, 326510, 349040, 340849, 330610, 211825, 201588, 381813, 430965, 211831, 324472, 351097, 119674, 324475, 392060, 328573, 340861, 324478, 359295, 351104, 398201, 373634, 342915, 324484, 369542, 324487, 324481, 381833, 377729, 324492, 236430, 324495, 361360, 342930, 324498, 355218, 324501, 252822, 430995, 330642, 392091, 400285, 324510, 422816, 324513, 252836, 201637, 359334, 324524, 211884, 340909, 222128, 400306, 324533, 412599, 324538, 324541, 207808, 351168, 359361, 326598, 398279, 379848, 340939, 345035, 340941, 345043, 386003, 359382, 330710, 248792, 386011, 340957, 248798, 383967, 431072, 347105, 398306, 386018, 340963, 386022, 209895, 359407, 257008, 183282, 435187, 349172, 244726, 381946, 330748, 383997, 328702, 431106, 330760, 328714, 330768, 361489, 209943, 386073, 336921, 359451, 261147, 336925, 345118, 248862, 250914, 396328, 158761, 328746, 357418, 209965, 359470, 345133, 209968, 199728, 330800, 209971, 345138, 386101, 209975, 339001, 388154, 209979, 388161, 209987, 347205, 209990, 248904, 330826, 341071, 189520, 345169, 248914, 349267, 250967, 156761, 210010, 343131, 412764, 339036, 361567, 257120, 384098, 341091, 384101, 210025, 367723, 384107, 210027, 187502, 345199, 210030, 343154, 210039, 386167, 420984, 361593, 410745, 210044, 349308, 212094, 160895, 152703, 349311, 361598, 210052, 214149, 351364, 210055, 330889, 386186, 210067, 351381, 210071, 337047, 339097, 248985, 210077, 345246, 214175, 210080, 251044, 210084, 380070, 185511, 210088, 339112, 337071, 210098, 337075, 367794, 249014, 210107, 351423, 210115, 332997, 326855, 244937, 343244, 330958, 333009, 146642, 386258, 210131, 330965, 333014, 343393, 210138, 328924, 66782, 388319, 359649, 222437, 343270, 351466, 328941, 386285, 218354, 386291, 351479, 218360, 251128, 275706, 388347, 275712, 275715, 275721, 343306, 261389, 359694, 175375, 261393, 349459, 333078, 251160, 245020, 159005, 345376, 345379, 175396, 245029, 171302, 208166, 410917, 349484, 376110, 351534, 245040, 347441, 372015, 349491, 199988, 251189, 345399, 378169, 369978, 415033, 425276, 155461, 437566, 175423, 120128, 437570, 212291, 343365, 337222, 437575, 251210, 357708, 337229, 212303, 331088, 437583, 337234, 437587, 262008, 331093, 365911, 396633, 175450, 437595, 259421, 367965, 175457, 333154, 208227, 175460, 251235, 343398, 175463, 345448, 402791, 333162, 374117, 367980, 343409, 234866, 378227, 390516, 175477, 154999, 249208, 333175, 327034, 175483, 253303, 343417, 175486, 249214, 175489, 249218, 181638, 245127, 353673, 181643, 249227, 384397, 136590, 245136, 181649, 112020, 181654, 245142, 175513, 245145, 343450, 245148, 175516, 245151, 357792, 396705, 245154, 175522, 245157, 181673, 245162, 327084, 380332, 337329, 181681, 396722, 181684, 359865, 384443, 146876, 361917, 415166, 388542, 181696, 327107, 372163, 216517, 327110, 337349, 216522, 327115, 327117, 359886, 372176, 415185, 366034, 343507, 359890, 337365, 208337, 339412, 413141, 339417, 249308, 271839, 339424, 333284, 339428, 329191, 366056, 361960, 339434, 329194, 366061, 343534, 249328, 116210, 343539, 210420, 337398, 368119, 343544, 69113, 368122, 372228, 329226, 359947, 208398, 419343, 380432, 175635, 359955, 419349, 345625, 419355, 370205, 419359, 394786, 419362, 144939, 359983, 339503, 419376, 210487, 206395, 349761, 214593, 265795, 415300, 396872, 419400, 333386, 353867, 419402, 265805, 419406, 343630, 419410, 333399, 366172, 333413, 345701, 394853, 372327, 423528, 327275, 423532, 245357, 222830, 257646, 210544, 372337, 138864, 224884, 155254, 224887, 370297, 224890, 415353, 224894, 333439, 403070, 224897, 403075, 126596, 267909, 216707, 421508, 198280, 224904, 155273, 345736, 11918, 224913, 126610, 224916, 345749, 224919, 126616, 224922, 345757, 224926, 224929, 345762, 245409, 224932, 419491, 425638, 345765, 224936, 419497, 257704, 419501, 224942, 370350, 411873, 257712, 224947, 419509, 337592, 419512, 333498, 155322, 411876, 257720, 257724, 337599, 425662, 155327, 257732, 419527, 419530, 339662, 419535, 272081, 358099, 253943, 224981, 153302, 155351, 394966, 181977, 345818, 212699, 155354, 224986, 333534, 419542, 419544, 224993, 419547, 366307, 419550, 155363, 245475, 366311, 224999, 419559, 337642, 245483, 419563, 337645, 366318, 370415, 210672, 366321, 339695, 431851, 225012, 366325, 409335, 257787, 337659, 225020, 339710, 225025, 155393, 210695, 339721, 210698, 155403, 257804, 395021, 366348, 257807, 362255, 210706, 225043, 372499, 245525, 399128, 225048, 116509, 225053, 345887, 155422, 360223, 225058, 184094, 378663, 257833, 225066, 413484, 225070, 358191, 155438, 225073, 155442, 345905, 372532, 257845, 366387, 399159, 397112, 155447, 225082, 358200, 225087, 325440, 247617, 354111, 366401, 354117, 360261, 370503, 46920, 325446, 323402, 341829, 257868, 370509, 341838, 257871, 329544, 341834, 345930, 397139, 341843, 247637, 225103, 225108, 415573, 337750, 376663, 257883, 313180, 155482, 341851, 261981, 350045, 155487, 257890, 259938, 399199, 425822, 155490, 155491, 257896, 399206, 274280, 327531, 261996, 257901, 376685, 268143, 399215, 261999, 262002, 327539, 358259, 341876, 147317, 358255, 257912, 403320, 345970, 243579, 257916, 262011, 155516, 225148, 257920, 325504, 155521, 333698, 339844, 225155, 155525, 360326, 376714, 247691, 155531, 225165, 333708, 345974, 337808, 262027, 225170, 262030, 262036, 380822, 329623, 225175, 262039, 225180, 155549, 436126, 333724, 262048, 118691, 436132, 262051, 327589, 155559, 337833, 382890, 155565, 362413, 337844, 184244, 372664, 350146, 346057, 333774, 346063, 247759, 384977, 393169, 354130, 155611, 372702, 329697, 358371, 155619, 253923, 327654, 155621, 190439, 253926, 354277, 350189, 247789, 356335, 350193, 393203, 360438, 393206, 380918, 350202, 393212, 350206 ]
6194e0850d052368a651d576f760fd9ac9ad9a04
dc4835b24c1382576be8dd61034379f88b61d291
/MySwiftHub/Managers/ThemeManager.swift
8980164e6690f48747e593b2ae159f727de5de8e
[]
no_license
AtmanChen/MySwiftHud
e76015e7549711d3e61374483f9408911c026ee4
7f01d09f6668752c65c1ebfeee1d1059084d1196
refs/heads/master
2020-04-12T14:50:13.323297
2018-12-20T10:25:00
2018-12-20T10:25:00
162,563,047
1
0
null
null
null
null
UTF-8
Swift
false
false
5,622
swift
// // ThemeManager.swift // MySwiftHub // // Created by 黄永乐 on 2018/12/19. // Copyright © 2018 黄永乐. All rights reserved. // import UIKit import RxSwift import RxCocoa import RxTheme import RAMAnimatedTabBarController import KafkaRefresh import ChameleonFramework let themeService = ThemeType.service(initial: ThemeType.currentTheme()) protocol Theme { var primary: UIColor { get } var primaryDark: UIColor { get } var secondary: UIColor { get } var secondaryDark: UIColor { get } var separatorColor: UIColor { get } var text: UIColor { get } var textGray: UIColor { get } var background: UIColor { get } var statusBarStyle: UIStatusBarStyle { get } var barStyle: UIBarStyle { get } var keyboardAppearance: UIKeyboardAppearance { get } var blurStyle: UIBlurEffect.Style { get } init(colorTheme: ColorTheme) } struct LightTheme: Theme { let primary = UIColor.white let primaryDark = UIColor.flatWhite var secondary: UIColor = .flatRed var secondaryDark: UIColor = .flatRedDark let separatorColor: UIColor = .flatWhite let text = UIColor.flatBlack let textGray = UIColor.flatGray let background: UIColor = .white let statusBarStyle: UIStatusBarStyle = .default let barStyle = UIBarStyle.default let keyboardAppearance: UIKeyboardAppearance = .light let blurStyle: UIBlurEffect.Style = .extraLight init(colorTheme: ColorTheme) { secondary = colorTheme.color secondaryDark = colorTheme.colorDark } } struct DarkTheme: Theme { let primary = UIColor.flatBlack let primaryDark = UIColor.flatBlackDark var secondary: UIColor = .flatRed var secondaryDark: UIColor = .flatRedDark let separatorColor: UIColor = .flatBlackDark let text = UIColor.flatWhite let textGray = UIColor.flatGray let background: UIColor = .flatBlack let statusBarStyle: UIStatusBarStyle = .lightContent let barStyle = UIBarStyle.black let keyboardAppearance: UIKeyboardAppearance = .dark let blurStyle: UIBlurEffect.Style = .dark init(colorTheme: ColorTheme) { secondary = colorTheme.color secondaryDark = colorTheme.colorDark } } enum ColorTheme: Int { case red, green, blue, skyBlue, magenta, purple, watermelon, lime, pink static let allValues = [red, green, blue, skyBlue, magenta, purple, watermelon, lime, pink] var color: UIColor { switch self { case .red: return .flatRed case .green: return .flatGreen case .blue: return .flatBlue case .skyBlue: return .flatSkyBlue case .magenta: return .flatMagenta case .purple: return .flatPurple case .watermelon: return .flatWatermelon case .lime: return .flatLime case .pink: return .flatPink } } var colorDark: UIColor { switch self { case .red: return .flatRedDark case .green: return .flatGreenDark case .blue: return .flatBlueDark case .skyBlue: return .flatSkyBlueDark case .magenta: return .flatMagentaDark case .purple: return .flatPurpleDark case .watermelon: return .flatWatermelonDark case .lime: return .flatLimeDark case .pink: return .flatPinkDark } } var title: String { switch self { case .red: return "Red" case .green: return "Green" case .blue: return "Blue" case .skyBlue: return "Sky Blue" case .magenta: return "Magenta" case .purple: return "Purple" case .watermelon: return "Watermelon" case .lime: return "Lime" case .pink: return "Pink" } } } enum ThemeType: ThemeProvider { case light(color: ColorTheme) case dark(color: ColorTheme) var associatedObject: Theme { switch self { case let .light(color): return LightTheme(colorTheme: color) case let .dark(color): return DarkTheme(colorTheme: color) } } var isDark: Bool { switch self { case .dark: return true default: return false } } func toggle() -> ThemeType { var theme: ThemeType switch self { case let .light(color): theme = ThemeType.dark(color: color) case let .dark(color): theme = ThemeType.light(color: color) } theme.save() return theme } func withColor(color: ColorTheme) -> ThemeType { var theme: ThemeType switch self { case let .light(color): theme = ThemeType.light(color: color) case let .dark(color): theme = ThemeType.dark(color: color) } theme.save() return theme } } extension ThemeType { static func currentTheme() -> ThemeType { let defaults = UserDefaults.standard let isDark = defaults.bool(forKey: "IsDarkKey") let colorTheme = ColorTheme(rawValue: defaults.integer(forKey: "ThemeKey")) ?? ColorTheme.red let theme = isDark ? ThemeType.dark(color: colorTheme) : ThemeType.light(color: colorTheme) theme.save() return theme } func save() { let defaults = UserDefaults.standard defaults.set(isDark, forKey: "IsDarkKey") switch self { case let .light(color): defaults.set(color.rawValue, forKey: "ThemeKey") case let .dark(color): defaults.set(color.rawValue, forKey: "ThemeKey") } } }
[ -1 ]
7654f44c2a9fc1f9b12a23839fda6cbc1548018d
7e7f99d22f254e72e9db0dbfa31a9691b041e60c
/Sources/Armature/Protocol/CGIRequest.swift
9616b16be1f69bda8333e8c5ff695cb91f30c1e8
[ "MIT" ]
permissive
tqtifnypmb/armature
20c71d5e29b28a8aad8b5ab51364a808b9fb179a
10b95d1e26416927bc2a1db82c3d5c7a57926855
refs/heads/master
2021-01-09T21:56:27.207661
2016-03-15T07:05:27
2016-03-15T07:05:27
52,977,574
3
0
null
2016-03-08T17:11:57
2016-03-02T16:20:53
Swift
UTF-8
Swift
false
false
2,108
swift
// // CGIRequest.swift // Armature // // The MIT License (MIT) // // Copyright (c) 2016 tqtifnypmb // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. import Foundation final class CGIRequest: Request { var requestId: UInt16 = 0 var STDIN: InputStorage var STDOUT: OutputStorage var STDERR: OutputStorage var DATA: [UInt8]? var params: [String : String] = [:] { didSet { if let cnt = params["CONTENT_LENGTH"], let cntLen = UInt16(cnt) { self.STDIN.contentLength = cntLen } } } var isRunning: Bool = false init() { self.STDIN = BufferedInputStorage(sock: STDIN_FILENO) self.STDOUT = BufferedOutputStorage(sock: STDOUT_FILENO, isErr: false) self.STDERR = BufferedOutputStorage(sock: STDERR_FILENO, isErr: true) self.params = NSProcessInfo.processInfo().environment } func finishHandling() throws { try self.STDOUT.flush() try self.STDERR.flush() } var isAborted: Bool { return false } }
[ 395267, 196612, 395271, 395274, 395278, 395280, 395281, 395282, 395283, 395286, 395287, 395289, 395290, 196638, 395295, 395296, 196641, 98341, 61478, 98344, 98345, 98349, 124987, 174139, 354364, 229438, 229440, 229441, 395328, 174148, 229444, 395332, 327751, 174152, 395333, 395334, 174159, 229456, 112721, 106580, 106582, 106585, 106586, 106587, 112730, 174171, 235658, 229524, 303255, 303256, 125087, 215205, 215211, 215212, 241846, 241852, 241859, 241862, 241864, 317640, 241866, 241870, 241877, 241894, 241897, 241901, 241903, 241904, 241907, 241908, 241910, 260342, 241916, 141565, 141569, 241923, 241928, 141577, 141578, 241930, 241934, 241936, 241937, 141586, 141588, 12565, 227604, 241944, 227608, 12569, 141593, 141594, 141595, 141596, 141597, 141598, 141599, 141600, 227610, 141603, 241952, 241957, 141606, 141607, 141608, 289062, 241962, 289067, 141612, 289068, 12592, 289074, 289078, 141627, 141629, 141632, 241989, 213319, 141640, 141641, 141642, 141643, 213320, 241992, 241996, 241998, 241999, 242002, 141651, 242006, 141655, 215384, 282967, 141660, 168285, 141663, 141664, 141670, 141677, 141681, 190840, 190841, 430456, 190843, 190844, 430458, 375168, 141700, 141702, 141707, 430476, 141711, 430483, 217492, 217494, 197018, 197019, 197021, 295330, 295331, 197029, 430502, 168359, 303550, 160205, 381398, 305638, 223741, 61971, 191006, 191007, 57893, 57896, 328232, 57899, 57900, 295467, 57905, 57906, 336445, 336446, 336450, 336451, 336454, 336455, 336457, 336460, 336465, 336469, 336471, 336472, 336473, 336474, 336478, 336479, 336480, 336482, 336483, 336489, 297620, 297636, 135861, 242361, 244419, 66247, 244427, 248524, 127693, 244430, 66261, 127702, 127703, 334562, 127716, 334564, 62183, 127727, 127729, 318199, 318200, 142073, 164601, 334590, 318207, 244480, 334591, 334596, 334600, 318218, 334603, 318220, 334602, 334606, 318223, 334607, 318231, 318233, 318234, 318236, 318237, 318241, 187174, 187175, 318246, 187177, 187179, 187180, 314167, 316216, 396088, 396089, 396091, 396092, 396094, 148287, 316224, 396098, 314179, 279367, 396104, 396110, 396112, 396114, 396115, 396118, 396119, 396120, 396122, 396123, 396125, 396126, 396127, 396128, 396129, 299880, 396137, 162668, 299884, 187248, 396147, 396151, 248696, 396153, 187258, 187259, 322430, 185258, 185259, 23469, 185262, 23470, 23472, 23473, 23474, 23475, 23476, 185267, 23479, 287674, 23483, 23487, 281539, 23492, 23494, 228306, 23508, 23515, 23517, 23523, 23531, 23533, 152560, 23552, 171008, 23559, 23561, 23572, 23574, 23575, 23580, 23581, 23585, 23590, 23591, 23594, 23596, 23599, 189488, 97327, 187442, 189490, 187444, 189492, 189493, 187447, 189491, 23601, 97329, 144435, 23607, 144437, 144438, 144441, 97339, 23612, 144442, 144443, 144444, 23616, 144445, 341057, 341060, 222278, 341062, 341063, 341066, 341068, 203862, 285782, 285785, 115805, 115806, 115807, 293982, 115809, 115810, 185446, 115817, 242794, 115819, 115820, 185452, 185454, 115823, 185455, 115825, 115827, 242803, 115829, 242807, 294016, 205959, 40088, 312473, 189594, 208026, 40092, 208027, 189598, 40095, 208029, 208033, 27810, 228512, 228513, 312476, 312478, 189607, 312479, 189609, 189610, 312482, 189612, 312489, 312493, 189617, 312497, 189619, 312498, 189621, 312501, 189623, 189626, 322751, 292041, 292042, 181455, 292049, 152789, 152821, 152825, 294137, 294138, 206094, 206097, 206098, 294162, 206102, 206104, 206108, 206109, 181533, 294181, 27943, 181544, 294183, 27948, 181553, 173368, 206138, 173379, 312480, 152906, 152907, 152908, 152909, 152910, 290123, 290125, 290126, 290127, 290130, 312483, 290135, 290136, 245081, 290137, 290139, 378208, 222562, 222563, 222566, 228717, 228721, 222587, 222590, 222591, 222596, 177543, 222599, 222601, 222603, 222604, 54669, 222605, 222606, 222607, 54673, 54692, 152998, 54698, 54701, 54703, 298431, 370118, 157151, 222689, 222692, 222693, 112111, 112115, 112120, 362020, 362022, 116267, 282156, 34362, 173634, 173635, 316995, 316997, 106085, 319081, 319085, 319088, 300660, 300661, 300662, 300663, 394905, 394908, 394910, 394912, 339622, 147115, 292544, 108230, 341052, 108240, 108245, 212694, 34531, 192230, 192231, 192232, 296681, 34538, 34540, 34541, 216812, 216814, 216815, 216816, 216818, 216819, 296684, 296687, 216822, 296688, 296691, 296692, 216826, 296698, 216828, 216829, 296699, 296700, 216832, 216833, 216834, 296703, 216836, 216837, 216838, 296707, 296708, 296710, 296712, 296713, 313101, 313104, 313108, 313111, 313112, 149274, 149275, 149280, 159523, 321342, 210755, 210756, 210757, 210758, 321353, 218959, 218963, 218964, 223065, 180058, 229209, 223069, 229213, 169824, 229217, 169826, 237413, 169830, 292709, 128873, 169835, 128876, 169837, 128878, 223086, 223087, 128881, 128882, 128883, 128884, 141181, 327550, 108419, 141198, 108431, 108432, 219033, 108448, 219040, 141219, 219043, 219044, 141223, 141228, 141229, 108460, 108462, 229294, 229295, 141235, 141264, 40931, 40932, 141284, 141290, 40940, 40941, 141293, 141295, 174063, 231406, 174066, 174067, 237559, 174074 ]
c6854ee57457d9837851e7383e9ef787ff03c8a6
70a1c838165198c7f3cc50fd7e75dfbcd200d8b2
/ModelView/SceneDelegate.swift
ccfd6ab9ca9781b906c079f80a0aedbc453e25f8
[]
no_license
iOSShiga/ModelView
8cb0d59d5924a25bd98301770f4c4d6ce435d00a
7b785b5ac89a8bbc278a59c6390def0779952839
refs/heads/master
2020-12-26T10:37:28.787878
2020-01-31T17:40:40
2020-01-31T17:40:40
237,483,498
0
0
null
null
null
null
UTF-8
Swift
false
false
2,745
swift
// // SceneDelegate.swift // ModelView // // Created by shiga on 31/01/20. // Copyright © 2020 shiga. All rights reserved. // import UIKit import SwiftUI class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). // Create the SwiftUI view that provides the window contents. let contentView = HomeView() // Use a UIHostingController as window root view controller. if let windowScene = scene as? UIWindowScene { let window = UIWindow(windowScene: windowScene) window.rootViewController = UIHostingController(rootView: contentView) self.window = window window.makeKeyAndVisible() } } func sceneDidDisconnect(_ scene: UIScene) { // Called as the scene is being released by the system. // This occurs shortly after the scene enters the background, or when its session is discarded. // Release any resources associated with this scene that can be re-created the next time the scene connects. // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). } func sceneDidBecomeActive(_ scene: UIScene) { // Called when the scene has moved from an inactive state to an active state. // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. } func sceneWillResignActive(_ scene: UIScene) { // Called when the scene will move from an active state to an inactive state. // This may occur due to temporary interruptions (ex. an incoming phone call). } func sceneWillEnterForeground(_ scene: UIScene) { // Called as the scene transitions from the background to the foreground. // Use this method to undo the changes made on entering the background. } func sceneDidEnterBackground(_ scene: UIScene) { // Called as the scene transitions from the foreground to the background. // Use this method to save data, release shared resources, and store enough scene-specific state information // to restore the scene back to its current state. } }
[ 325633, 325637, 163849, 268299, 333838, 346140, 352294, 163892, 16444, 337980, 254020, 217158, 243782, 395340, 327757, 200786, 286804, 329816, 217180, 368736, 342113, 180322, 329833, 286833, 368753, 252021, 342134, 286845, 192640, 286851, 329868, 268435, 250008, 411806, 329886, 286880, 135328, 192674, 333989, 286889, 430257, 180418, 350411, 346317, 180432, 350417, 368854, 350423, 350426, 385243, 334047, 356580, 346344, 327915, 350449, 387314, 375027, 338161, 350454, 321787, 336124, 350459, 350462, 336129, 350465, 350469, 389381, 325895, 194829, 350477, 43279, 350481, 350487, 356631, 338201, 325915, 350491, 381212, 325918, 182559, 350494, 258333, 325920, 350500, 194854, 350505, 350510, 395567, 248112, 332081, 307507, 340276, 336181, 356662, 397623, 264502, 332091, 332098, 201030, 332107, 190797, 334162, 332118, 418135, 321880, 250201, 332126, 332130, 250211, 340328, 250217, 348523, 348528, 182642, 321911, 332153, 334204, 268669, 194942, 250239, 332158, 332162, 389507, 348548, 393613, 383375, 332175, 160152, 340380, 268702, 416159, 326059, 373169, 342453, 334263, 338363, 266688, 324032, 336326, 338387, 248279, 369119, 334306, 338404, 334312, 338411, 104940, 375279, 162289, 328178, 328180, 248309, 328183, 340473, 199165, 328190, 324095, 328193, 98819, 324100, 266757, 324103, 164362, 248332, 199182, 328207, 324112, 330254, 186898, 342546, 340501, 324118, 334359, 342551, 324122, 334364, 330268, 340512, 191012, 332325, 324134, 197160, 381483, 324141, 324143, 334386, 324156, 334397, 188990, 324161, 324165, 219719, 324171, 324174, 324177, 244309, 334425, 326240, 340580, 262761, 375401, 248427, 191085, 346736, 338544, 268922, 334466, 336517, 344710, 119432, 213642, 148106, 162446, 330384, 326291, 340628, 342685, 340639, 336549, 332455, 150184, 344745, 271018, 332460, 336556, 389806, 332464, 385714, 164535, 336568, 174775, 248505, 174778, 244410, 328379, 332473, 223936, 328387, 332484, 332487, 373450, 418508, 154318, 332494, 342737, 154329, 183006, 139998, 189154, 338661, 338665, 332521, 418540, 330479, 342769, 340724, 332534, 338680, 342777, 418555, 344832, 207620, 336644, 191240, 328462, 326417, 336660, 338712, 199455, 336676, 336681, 334633, 326444, 215854, 328498, 152371, 326452, 271154, 326455, 340792, 348983, 244542, 326463, 326468, 328516, 336709, 127815, 244552, 328520, 326474, 328523, 336712, 342857, 326479, 355151, 330581, 326486, 136024, 330585, 326494, 439138, 326503, 375657, 355180, 201580, 326508, 201583, 326511, 355185, 211826, 340850, 330612, 201589, 340859, 324476, 328574, 340863, 359296, 351105, 252801, 373635, 324482, 324488, 342921, 236432, 361361, 324496, 330643, 324499, 324502, 252823, 324511, 324514, 252838, 201638, 211885, 252846, 324525, 5040, 324534, 5047, 324539, 324542, 187335, 398280, 347082, 340940, 345046, 330711, 248794, 340958, 248799, 340964, 386023, 338928, 328690, 359411, 244728, 330750, 265215, 328703, 199681, 328710, 338951, 330761, 328715, 326669, 330769, 361490, 349203, 209944, 336922, 209948, 248863, 345119, 250915, 357411, 250917, 158759, 347178, 328747, 209966, 209969, 330803, 209973, 386102, 209976, 339002, 339010, 209988, 209991, 347208, 248905, 330827, 197708, 330830, 341072, 248915, 345172, 183384, 156762, 343132, 339037, 322660, 210028, 326764, 326767, 187503, 345200, 330869, 361591, 386168, 210042, 210045, 361599, 152704, 160896, 330886, 351366, 384136, 384140, 351382, 337048, 210072, 248986, 384152, 210078, 384158, 210081, 384161, 251045, 210085, 210089, 339118, 337072, 210096, 337076, 210100, 345268, 249015, 324792, 367801, 339133, 384189, 343232, 384192, 210116, 244934, 326858, 322763, 333003, 384202, 343246, 384209, 333010, 146644, 330966, 210139, 328925, 66783, 384225, 328933, 343272, 351467, 328942, 251123, 384247, 384250, 388348, 242947, 206084, 115973, 343307, 384270, 333075, 384276, 333079, 251161, 384284, 245021, 384290, 208167, 263464, 171304, 245032, 245042, 251190, 44343, 345400, 326970, 208189, 386366, 343366, 126279, 337224, 251211, 357710, 337230, 331089, 337235, 437588, 263509, 331094, 365922, 175458, 208228, 343394, 175461, 343399, 337252, 345449, 175464, 197987, 333164, 99692, 343410, 234867, 331124, 175478, 155000, 378232, 249210, 175484, 337278, 249215, 245121, 249219, 245128, 249225, 181644, 361869, 249228, 136591, 245137, 181650, 249235, 112021, 181655, 245143, 175514, 245146, 343453, 245149, 245152, 263585, 396706, 245155, 355749, 40358, 181671, 245158, 333222, 245163, 181679, 337330, 327090, 210357, 146878, 181697, 361922, 327108, 181704, 339401, 327112, 384457, 327116, 327118, 208338, 366035, 343509, 337366, 249310, 249313, 333285, 329195, 343540, 343545, 423424, 253445, 339464, 337416, 249355, 329227, 175637, 405017, 345626, 366118, 339504, 349748, 206397, 214594, 333387, 214611, 333400, 366173, 339553, 343650, 333415, 245358, 333423, 222831, 138865, 339572, 372354, 126597, 339593, 159375, 339602, 126611, 333472, 245410, 345763, 345766, 425639, 245415, 337588, 155323, 333499, 425663, 337601, 337607, 333512, 210632, 339664, 358100, 419543, 245463, 212700, 181982, 153311, 333535, 225000, 337643, 245487, 339696, 337647, 366326, 245495, 141052, 337661, 333566, 339711, 225027, 337671, 339722, 366349, 249617, 210707, 321300, 245528, 333593, 116512, 210720, 362274, 184096, 339748, 358192, 372533, 345916, 399166, 384831, 325441, 247618, 325447, 341831, 329545, 341835, 323404, 354124, 337743, 339795, 354132, 225109, 341844, 247639, 337751, 358235, 341852, 313181, 413539, 399208, 339818, 327532, 339827, 358260, 341877, 399222, 325494, 182136, 186233, 1914, 333690, 243584, 325505, 333699, 339845, 262028, 247692, 333709, 262031, 247701, 329625, 327590, 333737, 382898, 184245, 337845, 190393, 327613, 333767, 350153, 346059, 311244, 358348, 247760, 212945, 333777, 219094, 419810, 329699, 358372, 327655, 190440, 247790, 204785, 380919, 333819 ]
5974234e61d963ea372fc70c91bdbe98c6bf735f
84f852b8fecf53b4e4de8aedccf03e15bff693f5
/GridViewTests/GridViewCellTests.swift
fd0fc86ed0bf51342df9fd52d91e6bdc78882f2b
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
KyoheiG3/GridView
fcd9070a7c93d18f46e4c3ab8125f15b204416b4
1616db6bc99363e4512bd6ffea5e13d6a8cf0a34
refs/heads/master
2022-08-26T16:51:33.562946
2022-05-21T12:41:27
2022-05-21T12:41:27
74,809,726
898
72
MIT
2022-10-18T02:35:03
2016-11-26T06:45:43
Swift
UTF-8
Swift
false
false
1,128
swift
// // GridViewCellTests.swift // GridView // // Created by Kyohei Ito on 2016/12/30. // Copyright © 2016年 Kyohei Ito. All rights reserved. // import XCTest @testable import GridView class GridViewCellTests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is called before the invocation of each test method in the class. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testInit() { let cell1 = MockCell.nib.instantiate(withOwner: nil, options: nil).first as? GridViewCell let cell2 = GridViewCell(frame: .zero) XCTAssertEqual(cell1?.autoresizingMask, UIView.AutoresizingMask(rawValue: 0)) XCTAssertEqual(cell2.autoresizingMask, UIView.AutoresizingMask(rawValue: 0)) XCTAssertNotNil(GridViewCell().prepareForReuse()) XCTAssertNotNil(GridViewCell().setSelected(true)) XCTAssertNotNil(GridViewCell().setSelected(false)) } }
[ -1 ]
43558f29bfb38e505ed0a5c3edc38082c6999a89
ab462e47c00263c9cf8547633627853461aced80
/myTube/Views/CustomViews/Account/AccountHeaderViewDelegate.swift
dca47e5c12e5d147970488da830c057cc207fb0d
[]
no_license
quyendang/mytube
935424d41f222d84d251d2ac9bf019104fa4a04c
11b3c32db860539ae94a1bf8d0c4f8ad8b907e95
refs/heads/master
2021-03-19T08:51:18.665911
2018-06-23T10:20:18
2018-06-23T10:20:18
105,924,470
0
0
null
null
null
null
UTF-8
Swift
false
false
251
swift
// // AccountHeaderViewDelegate.swift // myTube // // Created by Quyen Dang on 9/26/17. // Copyright © 2017 Quyen Dang. All rights reserved. // import Foundation protocol AccountHeaderViewDelegate: NSObjectProtocol { func onExpandClick() }
[ -1 ]
a44abc21829fb513b74abce5182b7f1ccebc18a1
9ecbff79427d59e73ee2ef4becc1c6c007f3d8d5
/Pod/Classes/LuminousNetwork.swift
5e3e417a818b105f9dde83cd2b0f58d78c2b611c
[ "MIT" ]
permissive
aashishkarn002/CellPaySDK
9ebfac519e0412f7aa757c6b2c02b9e160137ef8
304437e2efa635f82ed630bdd77baa1f68827d64
refs/heads/master
2023-01-08T20:57:02.472180
2020-09-25T08:31:57
2020-09-25T08:31:57
281,880,215
0
0
null
null
null
null
UTF-8
Swift
false
false
2,387
swift
// // LuminousNetwork.swift // MyFramework // // Created by Cellcom on 7/26/20. // import Foundation import SystemConfiguration.CaptiveNetwork extension Luminous { // MARK: Network /// Network information. public struct Network { /// Check if the device is connected to the WiFi network. public static var isConnectedViaWiFi: Bool { let reachability = Reachability()! if reachability.isReachableViaWiFi { return true } else { return false } } /// Check if the device is connected to the cellular network. public static var isConnectedViaCellular: Bool { return !isConnectedViaWiFi } /// Check if the internet is available. public static var isInternetAvailable: Bool { return Reachability()!.isReachable } /// Get the network SSID (doesn't work in the Simulator). Empty string if not available. /// This property is deprecated since version 2 of Luminous as iOS 13 does not allow access to /// `CNCopySupportedInterfaces`. @available(iOS, deprecated: 13.0, message: "It's no longer possible to get SSID info using CNCopySupportedInterfaces.") public static var SSID: String { // Doesn't work in the Simulator var currentSSID = "" if let interfaces:CFArray = CNCopySupportedInterfaces() { for i in 0..<CFArrayGetCount(interfaces){ let interfaceName: UnsafeRawPointer = CFArrayGetValueAtIndex(interfaces, i) let rec = unsafeBitCast(interfaceName, to: AnyObject.self) let unsafeInterfaceData = CNCopyCurrentNetworkInfo("\(rec)" as CFString) if unsafeInterfaceData != nil { let interfaceData = unsafeInterfaceData! as Dictionary? for dictData in interfaceData! { if dictData.key as! String == "SSID" { currentSSID = dictData.value as! String } } } } } return currentSSID } } }
[ -1 ]
5dc05b1e479c7e2d051572c7503748a1bb27f1c4
d1c21d9abc12967a591441c665830fb918dc11ee
/WithoutCoreDataWebinarSix/WithoutCoreDataWebinarSix/ContentView.swift
759bad668a2e3abe0af9df13eda3696e0a74e3a7
[]
no_license
mcmikius/TestSwiftUILesons
913b13073042923ee73e29aec65f3a41ea0c7d3b
b76d6e3d3b71feed1c75ef72a7b8122974984784
refs/heads/master
2020-07-05T01:11:29.798014
2020-03-06T14:35:58
2020-03-06T14:35:58
202,478,211
0
0
null
null
null
null
UTF-8
Swift
false
false
2,692
swift
// // ContentView.swift // WithoutCoreDataWebinarSix // // Created by Mykhailo Bondarenko on 23.09.2019. // Copyright © 2019 Mykhailo Bondarenko. All rights reserved. // import SwiftUI import CoreData struct ContentView: View { @Environment(\.managedObjectContext) var managedObjectContext @State private var newOrder = "" // @FetchRequest(entity: Order.entity(), sortDescriptors: [ // NSSortDescriptor(keyPath: \Order.drink, ascending: true) // ]) var orders: FetchedResults<Order> @FetchRequest(fetchRequest: Order.getAllOrders()) var orders: FetchedResults<Order> var body: some View { NavigationView { List { Section(header: Text("New Order")) { HStack { TextField("New Order", text: $newOrder) Button(action: { print("Create") let order = Order(context: self.managedObjectContext) order.drink = self.newOrder order.createdAt = Date() do { try self.managedObjectContext.save() } catch { print(error) } self.newOrder = "" }, label: { Image(systemName: "plus.circle.fill") }) } } Section(header: Text("Your orders")) { ForEach(self.orders, id: \.self) { order in OrderItemView(drink: order.drink, createAt: "\(String(describing: order.createdAt))") }.onDelete(perform: removeOrder) } }.navigationBarTitle(Text("OrderView")) .navigationBarItems(trailing: EditButton()) } } func removeOrder(at offsets: IndexSet) { for index in offsets { let order = orders[index] managedObjectContext.delete(order) do { try self.managedObjectContext.save() } catch { print(error) } } } } struct OrderItemView: View { var drink: String = "" var createAt: String = "" var body: some View { HStack { VStack(alignment: .leading) { Text(drink).font(.headline) Text(createAt).font(.subheadline) } } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
[ -1 ]
084aab4b166f9f3b613fb08fec360dd0e2594e16
42905b9cc3e93ef79c46a5d9ffe2a2152efa6e8c
/ipad/Constants/SettingsConstants.swift
5e92901afdc8952639608be722f7903f64e29f4c
[ "Apache-2.0" ]
permissive
anissa-agahchen/invasivesBC-mussels-iOS
628911fc3abb7288c24c387cb0beff4fc00d347f
d0e8a2f1ea6770fb8b8eedb32ae9ab33644166a3
refs/heads/master
2022-11-18T13:24:12.384541
2020-07-01T00:55:04
2020-07-01T00:55:04
280,486,806
1
0
Apache-2.0
2020-07-17T17:32:38
2020-07-17T17:32:38
null
UTF-8
Swift
false
false
312
swift
// // SettingsConstants.swift // ipad // // Created by Amir Shayegh on 2019-10-29. // Copyright © 2019 Amir Shayegh. All rights reserved. // import Foundation // MARK: Settings struct SettingsConstants { static let shortAnimationDuration: Double = 0.3 static let animationDuration: Double = 0.5 }
[ -1 ]
728bd0cbc1fc9c5429d9f7ddf95ece22a44df866
d062bbc0f9c1e515556f2b2291f41a35f6015240
/OpenWeather/CustomSegue.swift
142b5b0b6b7dd16a66d2f427030d96693ff2c529
[]
no_license
qaze/eduproj
a5737ec45b5abbb4f8a2890781175e863e36f0ab
54effe90927ed0a12b0f0b453442e266e96546b8
refs/heads/master
2020-12-23T21:26:14.084372
2020-05-12T18:42:59
2020-05-12T18:42:59
237,278,980
1
0
null
null
null
null
UTF-8
Swift
false
false
1,515
swift
// // CustomSegue.swift // OpenWeather // // Created by Nik Rodionov on 29.02.2020. // Copyright © 2020 nrodionov. All rights reserved. // import UIKit class CustomSegue: UIStoryboardSegue { override func perform() { guard let container = source.view.superview else { return } let containerViewFrame = container.frame let sourceViewTargetFrame = CGRect(x: 0, y: -containerViewFrame.height, width: source.view.frame.width, height: source.view.frame.height) let destinationViewTargetFrame = source.view.frame container.addSubview(destination.view) destination.view.frame = CGRect(x: 0, y: containerViewFrame.height, width: source.view.frame.width, height: source.view.frame.height) UIView .animate(withDuration: 0.5, animations: { self.source.view.frame = sourceViewTargetFrame self.destination.view.frame = destinationViewTargetFrame }) { result in self.source.present( self.destination, animated: false) { self.source.view.frame = destinationViewTargetFrame } } } }
[ -1 ]
7e10f34f692f7a389707c9d46d98a1ec659c07b4
98fdf129a1bb60cbc1a858a2f475ad47367cb8f1
/GenerateAppIcons/handleErrors.swift
6b9e734fcc576b9012475a18dd8045302c47822b
[]
no_license
saagarjha/GenerateAppIcons
e241e397c8a040c0d211dc6666943cceb1179cc5
fb6ab93e9945289c0bf0fc202f91cb1ef784981e
refs/heads/master
2021-01-23T04:23:42.268175
2018-04-25T00:30:49
2018-04-25T00:30:49
86,194,722
10
0
null
null
null
null
UTF-8
Swift
false
false
1,472
swift
// // handleErrors.swift // GenerateAppIcons // // Created by Saagar Jha on 3/25/17. // Copyright © 2017 Saagar Jha. All rights reserved. // import Foundation enum GAIError: Int32 { case success = 0 case noArguments case invalidOption case fileExists case fileCreationFailure } func printToError(_ string: String = "") { guard let data = "\(string)\n".data(using: .utf8) else { return } FileHandle.standardError.write(data) } func printHeader() { printToError("A simple command line app icon generator") } func printOptionsHeader() { printToError() printToError("USAGE: generate-appicons option[s] iconfile [output=(App)Icon.(app)iconset]") printToError() printToError("OPTIONS:") } func printOptions() { printToError(" -f Overwrite files if necessary") printToError(" -i Generate iPhone icons") printToError(" -i7 Generate iPhone icons for iOS 7+") printToError(" -i1 Generate iPhone icons for iOS 1+") printToError(" -im Generate iOS marketing icons") printToError(" -m Generate macOS icons (disables other image sets)") printToError(" -p Generate iPad icons") printToError(" -p7 Generate iPad icons for iOS 7+") printToError(" -p32 Generate iPad icons for iOS 3.2+") printToError(" -w Generate Apple Watch icons") printToError(" -w2 Generate Apple Watch icons for watchOS 2+") printToError(" -w1 Generate Apple Watch icons for watchOS 1+") printToError(" -wm Generate Apple Watch marketing icons") }
[ -1 ]
4d7bb485f3654b0c6a58c1e4de912b0cc296a7f5
fe6db6838140905c60daf9b683300eb85f25c3e3
/Sources/ComposedUI/TableView/Handlers/TableActionsHandler.swift
8d9c90b66e904066891f10d49946b77caff11b51
[ "MIT" ]
permissive
composed-swift/ComposedUI
e694b28f0751722a74367be186d359ea21321c17
cc1d8e497e43429007ff81ed39a4c39712b62888
refs/heads/master
2023-02-03T09:46:10.537464
2020-11-16T20:37:32
2020-11-16T20:37:32
198,521,246
14
4
NOASSERTION
2023-01-19T19:30:10
2019-07-23T23:12:04
Swift
UTF-8
Swift
false
false
752
swift
import UIKit import Composed /// Provides cell action handling for `UITableView`'s public protocol TableActionsHandler: TableSectionProvider { /// Return leading actions for the cell at the specified index /// - Parameter index: The element index func leadingSwipeActions(at index: Int) -> UISwipeActionsConfiguration? /// Return trailing actions for the cell at the specified index /// - Parameter index: The element index func trailingSwipeActions(at index: Int) -> UISwipeActionsConfiguration? } public extension TableActionsHandler { func leadingSwipeActions(at index: Int) -> UISwipeActionsConfiguration? { return nil } func trailingSwipeActions(at index: Int) -> UISwipeActionsConfiguration? { return nil } }
[ -1 ]
cd8a305f1276ac4d316eb4dab5debf8addfb2721
f407e5d36bc4abe2596d931ae2db86584655df52
/YouTubeApp/ApiService/ApiService.swift
7c3232c8580199b748f00eb8fd112dcb65829c3c
[]
no_license
JXiMePa/YouTubeProject
fc22b2bf0a27346cab51e0c5939d7273bdf8fe09
154ddccd3741fb0d5fbfc33c556d00e07f14c839
refs/heads/master
2020-03-18T17:44:34.120419
2018-06-30T08:31:30
2018-06-30T08:31:30
135,047,851
0
0
null
null
null
null
UTF-8
Swift
false
false
1,669
swift
// // ApiServise.swift // YouTubeApp // // Created by Tarasenko Jurik on 01.06.2018. // Copyright © 2018 Tarasenko Jurik. All rights reserved. // import UIKit final class ApiService: NSObject { static let sharedInstance = ApiService() let baseUrl = "https://s3-us-west-2.amazonaws.com/youtubeassets" func fetchVideos(_ completion: @escaping ([Video]) -> ()) { fetchFeedForomUrlString("\(baseUrl)/home_num_likes.json", complition: completion) } func fetchTrendingFeed(_ completion: @escaping ([Video]) -> ()) { fetchFeedForomUrlString("\(baseUrl)/trending.json", complition: completion) } func fetchSubscriptionFeed(_ completion: @escaping ([Video]) -> ()) { fetchFeedForomUrlString("\(baseUrl)/subscriptions.json", complition: completion) } func fetchFeedForomUrlString(_ urlString: String, complition: @escaping ([Video]) -> ()) { let url = URL(string: urlString) URLSession.shared.dataTask(with: url!) { (data, response , error) in guard error == nil else { print(error!); return } do { guard let unwrappedData = data else { return } guard let jsonDictionary = try JSONSerialization.jsonObject(with: unwrappedData, options: .mutableContainers) as? [[String: AnyObject]] else { return } DispatchQueue.main.async { complition(jsonDictionary.map { return Video($0) }) //[Video] } } catch let jsonError { print(jsonError) } }.resume() } }
[ -1 ]
1cfdc5b4efc298d467f7fb214fc95f7b1c1e63a9
f78e47d9c9ed96a4f4d4b62efd79597a9abe2add
/Instafilter/Instafilter/ImagePickerView.swift
53758e4734ef9687445551218e5189237dad2f69
[ "MIT" ]
permissive
seamusapple/swiftUI_100Days
2c8e43cca44cba80315ae9eab3fc0c7aefbab469
a723c2a02fd4e7440a1cc60a74816dc72cf8f2a5
refs/heads/master
2022-11-23T11:20:15.594073
2020-07-27T09:03:26
2020-07-27T09:03:26
282,835,784
1
0
null
null
null
null
UTF-8
Swift
false
false
1,361
swift
// // ImagePickerView.swift // Instafilter // // Created by Ramsey on 2020/6/22. // Copyright © 2020 Ramsey. All rights reserved. // import SwiftUI struct ImagePickerView: View { @State private var image: Image? @State private var showingImagePicker = false @State private var inputImage: UIImage? var body: some View { VStack { image? .resizable() .scaledToFit() Button("Select Image") { self.showingImagePicker = true } } .sheet(isPresented: $showingImagePicker, onDismiss: loadImage) { ImagePicker(image: self.$inputImage) } } func loadImage() { guard let inputImage = inputImage else { return } image = Image(uiImage: inputImage) let imageSaver = ImageSaver() imageSaver.writeToPhotoAlbum(image: inputImage) } } class ImageSaver: NSObject { func writeToPhotoAlbum(image: UIImage) { UIImageWriteToSavedPhotosAlbum(image, self, #selector(saveError), nil) } @objc func saveError(_ image: UIImage, didFinishSavingWithError error: Error?, contextInfo: UnsafeRawPointer) { print("Save finished!") } } struct ImagePickerView_Previews: PreviewProvider { static var previews: some View { ImagePickerView() } }
[ -1 ]
c439087f32914371b9c7fc8d15db150cc7dfd586
081ed0d48f73ca9d9aeb2aa8b3f406fd159f34e0
/CourseDataUpdate/LoadingCourseInfo.swift
b3bcd8fff0def0b72e1d9c962fea6aa9c8e15b4c
[]
no_license
BrandeisClassSearchProject/UpdateCourse
15bf60675afe5059122387e86b1c32031cb83036
06bb0f8bfeb23fb56700a795571c18ab074d7d7c
refs/heads/master
2021-01-22T23:15:53.128835
2017-04-22T04:00:38
2017-04-22T04:00:38
85,620,430
0
0
null
null
null
null
UTF-8
Swift
false
false
18,975
swift
// // LoadingCourseInfo.swift // CourseDataUpdate // // Created by Yuanze Hu on 3/20/17. // Copyright © 2017 Yuanze Hu. All rights reserved. // example link: http://registrar-prod.unet.brandeis.edu/registrar/schedule/search?strm=1173&view=all&status=&time=time&day=mon&day=tues&day=wed&day=thurs&day=fri&start_time=07%3A00%3A00&end_time=22%3A30%3A00&block=&keywords=&order=class&search=Search&subsequent=1&page=1 import Foundation import Alamofire import Kanna struct course { var id: String var name: String var time: [String] var block: String var descUrl: String var teacherUrl: String var bookUrl: String var syllUrl: String var requirements: String var location: String var open: String var section: String var code: String } class LoadingCourseInfo { let days: Set<String> = ["M","T","W","Th","F"] var isDone = false //indicates if the update process is done or not let firedb: FirebaseUpdateService //ref of the firebase let mainVC : ViewController //ref of the ui var lock = [true] //only allows at most three connection processes running concurrently. Can increase the size for a faster speed, but possibility of getting error also increases var numberOfTerms = 0 var currentDone = 0 init(vc: ViewController){ mainVC = vc firedb = FirebaseUpdateService() } //start working func start() { let queue = DispatchQueue(label: "download") queue.async { if self.firedb.lock(){ print("xxxx") self.mainVC.println(newLine:"Lock the database from others, start updating") print("Lock the database from others, start updating") self.doUpdate(terms: self.generateTerms()) }else{ print("The database is locked probably because others might be updating this database right now, try later") self.mainVC.println(newLine:"The database is locked probably because others might be updating this database right now, try later") } } } private func generateTerms() -> [Int]{ let date = Date() let formatter = DateFormatter() formatter.dateFormat = "yy" let result = formatter.string(from: date) formatter.dateFormat = "MM" let m = Int(formatter.string(from: date)) var y = Int(result) var a:[Int] = [] if m! >= 3 && m! < 10{ a.append(1000+y!*10+1) a.append(1000+y!*10+2) a.append(1000+y!*10+3) y = y! - 1 }else if m! >= 10{ a.append(1000+(1+y!)*10+1) } for i in 0...2 { a.append(1000+(y!-i)*10+1) a.append(1000+(y!-i)*10+2) a.append(1000+(y!-i)*10+3) } print(a) numberOfTerms = a.count * 20 return a } //this func should be fed with something like [1171,1172,1173,1161,1162,1163.....] private func doUpdate(terms:[Int]){ for term in terms{ self.mainVC.println(newLine:"Updating \(convertTermToString(term: term))") for i in 1...20{ if(lock[i%lock.count]){ lock[i%lock.count] = false }else{ while !lock[i%lock.count]{} } print("working on \("http://registrar-prod.unet.brandeis.edu/registrar/schedule/search?strm=\(String(term))&view=all&status=&time=time&day=mon&day=tues&day=wed&day=thurs&day=fri&start_time=07%3A00%3A00&end_time=22%3A30%3A00&block=&keywords=&order=class&search=Search&subsequent=1&page=\(String(i))")") doFetch(urlString: "http://registrar-prod.unet.brandeis.edu/registrar/schedule/search?strm=\(String(term))&view=all&status=&time=time&day=mon&day=tues&day=wed&day=thurs&day=fri&start_time=07%3A00%3A00&end_time=22%3A30%3A00&block=&keywords=&order=class&search=Search&subsequent=1&page=\(String(i))", term: String(term),index:i) } self.mainVC.println(newLine: "\(currentDone) out of \(numberOfTerms), \((Double(currentDone)/Double(numberOfTerms)).roundTo(places: 4) * 100))% Finished" ) } isDone = true //self.mainVC.println(newLine:"Update completed!") self.mainVC.stopAnimation() } private func convertTermToString(term:Int) -> String{ var year = "20"+String((term-1000)/10) switch term%10 { case 1: year = year + " Spring" break case 2: year = year + " Summer" break case 3: year = year + " Fall" break default: print("WTF") } return year } private func doFetch(urlString: String, term:String,index: Int) { Alamofire.request(urlString).responseString(completionHandler: { response in print("is Successful?? \(response.result.isSuccess)") if let html = response.result.value { self.mainVC.println(newLine: "requested term \(term) at page \(index) successful, start parsing") self.parsing(htmlString: html, term: term) self.lock[index%(self.lock.count)] = true //release the resource }else{ self.mainVC.println(newLine:"url not working, url: \(urlString)") self.lock[index%(self.lock.count)] = true //release the resource } }) } private func parsing(htmlString:String, term:String){ self.mainVC.println(newLine: "working on term \(term)") if let doc = Kanna.HTML(html: htmlString, encoding: String.Encoding.utf8) { let a = doc.xpath("//table//tr") print("Start parsing \(a.count-1) classes data on this page") if a.count-1 > 1{ for i in 1...a.count-1 { firedb.postCourse(course: makeCourse(node: a[i]), term: term) } } currentDone += 1 let percentage = (Double(currentDone)/Double(numberOfTerms)).roundTo(places: 4) * 100 self.mainVC.println(newLine: "\(currentDone) out of \(numberOfTerms), \(percentage))% Finished" ) if percentage > 99{ print(firedb.locationSet) } }else{ self.mainVC.println(newLine: "parsing failed, term:\(term)") } } private func makeCourse(node: XMLElement)->course{ let xPathNode = node.css("td") print(xPathNode.count) if xPathNode.count != 6{ print("tds.count: \(xPathNode.count)") //self.mainVC.println(newLine: "\nfailed to parse given xPathNode\n" ) return course(id: "", name: "", time: [], block: "", descUrl: "", teacherUrl: "", bookUrl: "", syllUrl: "", requirements: "", location: "", open: "",section: "", code: "") } var courseHolder = course(id: "", name: "", time: [], block: "", descUrl: "", teacherUrl: "", bookUrl: "", syllUrl: "", requirements: "", location: "", open: "",section: "", code: "") //CODE if let codeDoc = Kanna.HTML(html: xPathNode[0].toHTML!, encoding: String.Encoding.utf8) { if let code = codeDoc.text { let tempCode = cutWhiteSpace(text: code) if tempCode.count == 1{ courseHolder.code = tempCode[0] print(courseHolder.code) }else{ print(tempCode) } } } //CODE //ID, Section, Description if let idDoc = Kanna.HTML(html: xPathNode[1].toHTML!, encoding: String.Encoding.utf8) { //print(idDoc.toHTML!) if let idWithSection = idDoc.xpath("//a[@class='def']")[0].text{ let temp = idWithSection.components(separatedBy: " ") var id = "" var section = "" var counter = 0 for s in temp{ if s.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) != ""{ if counter < 2{ id = id + s.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) + " " }else if counter == 2{ section = s.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) } counter += 1 } } courseHolder.id = id.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) if section == "1"{ courseHolder.section = "1" }else{ courseHolder.id = courseHolder.id + " " + section courseHolder.section = section } print(courseHolder.id) print(courseHolder.section) }else{ print("id nil") } if let popLink = idDoc.xpath("//a[@class='def']/@href")[0].text{ print(popLink) let pop = popLink.components(separatedBy: "'") if pop.count>0{ courseHolder.descUrl = "http://registrar-prod.unet.brandeis.edu/registrar/schedule/"+pop[1] //print(courseHolder.descUrl) }else{ print("descUrl nil, pop has zero elements") } }else{ print("descUrl nil") } } //ID, Section, Description //Name if let nameDoc = Kanna.HTML(html: xPathNode[2].toHTML!, encoding: String.Encoding.utf8) { if let name = nameDoc.xpath("//strong")[0].text{ courseHolder.name = name print(name) }else{ print("name nil") } } //Name //Requirement if let reqHtml = xPathNode[2].toHTML{ if let doc = Kanna.HTML(html: reqHtml, encoding: String.Encoding.utf8) { let reqs = doc.xpath("//span[@class='requirement']") for r in reqs{ courseHolder.requirements = courseHolder.requirements+r.text!.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)+" " } print("----"+courseHolder.requirements) } } //Requirement //Time //NOT DONE var tempBlock = "" if let timeAndLoc = xPathNode[3].text{ //courseHolder.open = timeAndLoc let details = cutWhiteSpace(text: timeAndLoc) if (details.count == 3 && isDay(str: details[0])){ print("timeAndLoc has 3") print(details) let tempT = details[1].components(separatedBy: "–") if tempT.count != 2{ print(details[1]+" WTF!? \(tempT.count)") }else{ courseHolder.time.append("LECTURE\n\(details[0]+" "+tempT[0]+" – "+tempT[1])") courseHolder.location = details[2] } print(courseHolder.time) }else if details.count == 4{ print("timeAndLoc has 4") if details[0].hasPrefix("Block"){ tempBlock = details[0] let tempT = details[2].components(separatedBy: "–") if tempT.count != 2{ print(details[2]+" WTF!?\(tempT.count)") }else{ courseHolder.time.append("LECTURE\n\(details[1]+" "+tempT[0]+" – "+tempT[1])") courseHolder.location = details[3] } } }else if details.count > 4{ print("timeAndLoc has more than 4") var tempTime = "" if !details[0].hasSuffix(":"){ tempTime = "LECTURE\n" } for de in details{ let d = de.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) if d.hasPrefix("Block"){ if tempBlock == ""{ tempBlock = d }else{ tempBlock.append("\n\(d)") } }else if d.hasSuffix(":"){ if ((tempTime != "") && (tempTime != "LECTURE\n")){ courseHolder.time.append(tempTime) } tempTime = "" tempTime.append(cutTail(input: d).uppercased()+"\n") }else if isDay(str: d){ if ((tempTime != "") && (!tempTime.hasSuffix("\n"))){ courseHolder.time.append(tempTime) tempTime = "LECTURE\n" } tempTime.append(d + " ") }else if isTime(str: d){ //print("find a time string ") let tT = d.components(separatedBy: "–") if tT.count != 2 { print("\(d) WTF?! ") if courseHolder.location == ""{ courseHolder.location = d }else{ courseHolder.location.append("\n\(d)") } }else{ tempTime.append(tT[0]+" – "+tT[1]) } }else{ if courseHolder.location == ""{ courseHolder.location = d }else{ courseHolder.location.append("\n\(d)") } } print("** \(d)") } if tempTime != ""{ courseHolder.time.append(tempTime) } }else if details.count > 0 { var tempTime = "LECTURE\n" if details[0].trimmingCharacters(in: CharacterSet.whitespacesAndNewlines).hasSuffix(":"){ tempTime = details[0].trimmingCharacters(in: CharacterSet.whitespacesAndNewlines).uppercased()+"\n" } print(details) print("this has 2 OR 3") for de in details{ let d = de.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) if d.hasPrefix("Block"){ tempBlock.append(d) }else if isTime(str: d){ let tT = d.components(separatedBy: "–") if tT.count == 2 { tempTime.append(tT[0]+" – "+tT[1]) } }else if isDay(str: d){ tempTime.append(d+" ") }else{ print("cannot identify \(d)") } } if tempTime != ""{ courseHolder.time.append(tempTime) } } courseHolder.block = tempBlock for ttt in courseHolder.time{ print("time## \(ttt)") } print("====") print("BLOCK: "+courseHolder.block) print("LOCATION: \(courseHolder.location)") }else{ print("open nil") } //Time //NOT DONE //OPEN //NOT DONE //OPEN //NOT DONE //Teacher if let teacherHTML = xPathNode[5].toHTML{ if let doc = Kanna.HTML(html: teacherHTML, encoding: String.Encoding.utf8) { let teacherURLs = doc.xpath("//@href") print("teacherURLs.count=\(teacherURLs.count)") if teacherURLs.count == 1{ courseHolder.teacherUrl = teacherURLs[0].text! }else{ for s in teacherURLs{ courseHolder.teacherUrl = s.text!+"\n"+courseHolder.teacherUrl } } } }else{ print("teacher nil") } //Teacher //Syllabus if let s = xPathNode[1].toHTML{ if let syllab = Kanna.HTML(html: s, encoding: String.Encoding.utf8) { if syllab.xpath("//@href").count > 1{ if let sylla = syllab.xpath("//@href")[1].text{ courseHolder.syllUrl = sylla print("this class has syllabus: \(sylla)") } }else{ print("syllabus nil") } } } //Syllabus //http://registrar-prod.unet.brandeis.edu/registrar/schedule/course?acad_year=2017&crse_id=000050 return courseHolder } private func isDay(str: String)-> Bool{ let temp = str.components(separatedBy: ",") for d in temp { if !days.contains(d.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)){ return false } } return true } private func isTime(str: String)-> Bool{ return (str.contains("AM") && str.contains("–"))||(str.contains("PM") && str.contains("–")) } private func cutWhiteSpace(text: String)->[String]{ let a = text.components(separatedBy: "\r\n") var temp:[String] = [] for s in a { if s.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) != "" { temp.append(s.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)) } } return temp } func report() -> String{ return firedb.report() } private func cutTail(input:String) -> String { return input.substring(to: input.index(input.startIndex, offsetBy: (input.characters.count-1))) } } extension Double { /// Rounds the double to decimal places value func roundTo(places:Int) -> Double { let divisor = pow(10.0, Double(places)) return (self * divisor).rounded() / divisor } }
[ -1 ]
917cdf9ee3d673543ec4740509b4cef09e6f1e08
0e4c312fad2cb28cd6a7623e3fa6015ea808db29
/TDFramework/CoreData/EventEntity+CoreDataProperties.swift
b69b78dfcd92fb4d90d3f646ee71c7409f709764
[ "MIT" ]
permissive
TruongDangInc/TDFramework
649bbfacde6b46ba42d1baacd990a62b8da2671e
598988816da3373662b3f3c04be34fd2f8e22083
refs/heads/develop
2023-08-31T21:41:54.451672
2023-07-27T13:44:48
2023-08-18T18:29:14
321,388,531
0
0
MIT
2021-01-09T18:48:07
2020-12-14T15:20:47
Objective-C
UTF-8
Swift
false
false
1,752
swift
// // ______ __ _ // /_ __/______ ______ ____ ____ _ / __ \____ _____ ____ _ // / / / ___/ / / / __ \/ __ \/ __ `/ / / / / __ `/ __ \/ __ `/ // / / / / / /_/ / /_/ / / / / /_/ / / /_/ / /_/ / / / / /_/ / // /_/ /_/ \__,_/\____/_/ /_/\__, / /_____/\__,_/_/ /_/\__, / // /____/ /____/ // // EventEntity+CoreDataProperties.swift // TDFramework // // Created by Đặng Văn Trường on 18/12/2020. // Copyright (c) 2020 TruongDang Inc. All rights reserved. // // import CoreData extension EventEntity { @nonobjc public class func fetchRequest() -> NSFetchRequest<EventEntity> { return NSFetchRequest<EventEntity>(entityName: "EventEntity") } @NSManaged var message: String? @NSManaged var type: String? static func createEvent(with type: String, message: String) { let event = NSEntityDescription.insertNewObject(forEntityName: "EventEntity", into: CoreDataManager.shared.managedObjectContext ?? NSManagedObjectContext(concurrencyType: .privateQueueConcurrencyType)) as! EventEntity event.type = type event.message = message CoreDataManager.shared.saveContext() } static func getAllEvents() -> [EventEntity] { var result = [EventEntity]() let moc = CoreDataManager.shared.managedObjectContext do { result = try moc!.fetch(EventEntity.fetchRequest()) as! [EventEntity] } catch let error { debugPrint("can not fetch events: \(error.localizedDescription)") } return result } }
[ -1 ]
f8b5c4438276ce8e9ba1e3d0e1b706f94faf5bb8
200bcdc2958d08df05c1e4581769e3bcab5680c6
/Apps/Examples/Examples/All Examples/SelectAnnotationExample.swift
8319797e275d368a179aaaf0d74643fbf93bf273
[ "ISC", "BSL-1.0", "BSD-2-Clause", "MIT", "LicenseRef-scancode-object-form-exception-to-mit", "BSD-3-Clause", "Zlib" ]
permissive
jesuscoins776/mapbox-maps-ios
feb818ddf8dc4a644cc985554c36b484bc4326c4
0f0332dd17df08fba4f8f045dde824a101fe5e3a
refs/heads/main
2023-05-09T12:49:55.722538
2021-05-25T21:46:54
2021-05-25T21:46:54
null
0
0
null
null
null
null
UTF-8
Swift
false
false
3,042
swift
import UIKit import MapboxMaps @objc(SelectAnnotationExample) public class SelectAnnotationExample: UIViewController, ExampleProtocol { internal var mapView: MapView! // Configure a label public lazy var label: UILabel = { let label = UILabel(frame: CGRect.zero) label.translatesAutoresizingMaskIntoConstraints = false label.backgroundColor = UIColor.systemBlue label.layer.cornerRadius = 12.0 label.textColor = UIColor.white label.textAlignment = .center label.font = UIFont.boldSystemFont(ofSize: 24.0) return label }() override public func viewDidLoad() { super.viewDidLoad() // Set the center coordinate and zoom level over southern Iceland. let centerCoordinate = CLLocationCoordinate2D(latitude: 63.982738, longitude: -16.741790) let options = MapInitOptions(cameraOptions: CameraOptions(center: centerCoordinate, zoom: 12.0)) mapView = MapView(frame: view.bounds, mapInitOptions: options) mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight] view.addSubview(mapView) // Allow the view controller to receive information about map events. mapView.mapboxMap.onNext(.mapLoaded) { _ in self.setupExample() } // Add the label on top of the map view controller. addLabel() } public func addLabel() { label.text = "Select the annotation" view.addSubview(label) NSLayoutConstraint.activate([ label.leadingAnchor.constraint(equalTo: view.leadingAnchor), label.trailingAnchor.constraint(equalTo: view.trailingAnchor), label.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor), label.heightAnchor.constraint(equalToConstant: 60.0) ]) } // Wait for the style to load before adding an annotation. public func setupExample() { // Create the point annotation, which will be rendered with the default red pin. let coordinate = mapView.cameraState.center let pointAnnotation = PointAnnotation_Legacy(coordinate: coordinate) // Allow the view controller to accept annotation selection events. mapView.annotations.interactionDelegate = self // Add the annotation to the map. mapView.annotations.addAnnotation(pointAnnotation) // The below line is used for internal testing purposes only. finish() } } // Change the label's text and style when it is selected or deselected. extension SelectAnnotationExample: AnnotationInteractionDelegate_Legacy { public func didDeselectAnnotation(annotation: Annotation_Legacy) { label.backgroundColor = UIColor.systemGray label.text = "Deselected annotation" } public func didSelectAnnotation(annotation: Annotation_Legacy) { label.backgroundColor = UIColor.systemGreen label.text = "Selected annotation!" } }
[ -1 ]
f2a375782126988896f5544f5777af8fac67e5e7
40732c005ef76283ffa5bdf876d880ca71d5f392
/WWDC20.playground/Sources/ViewModels/Player/PlayerProtocols.swift
5d2557059ea637d91ddaff9a6b12d5edefc53641
[]
no_license
PauloRicardo56/FreeKick
b2a88e2d10e4b3bf9b9ac231c6033bfcb539a196
5085204c60514b55f0cda36904290f7ee59e45be
refs/heads/master
2021-03-24T18:55:17.171145
2020-11-04T17:21:00
2020-11-04T17:21:00
247,557,828
1
0
null
null
null
null
UTF-8
Swift
false
false
256
swift
import SpriteKit protocol PlayerToGameScene { var setGoalkeeper: GoalkeeperToPlayer! { get set } func loadPlayer() -> SKSpriteNode func getPlayerFrame() -> CGRect } protocol PlayerToShootButton { func runPlayer() -> SKAction }
[ -1 ]
d91d59d82536addad80a8339262f292090e15b98
75db2b7abce5bcccc79c1e993e3cde9db4e0d547
/Cribber/Services/StationManager.swift
a80186461955f0f991f525ca3ada342862ae4b8b
[]
no_license
HasanRafay/cribber-ios-V1.3
b87866d2f973266fb506f448045622bd13a5df0b
63ab6c8b6ffa6600c8f4663c7b9c07d16e79f10e
refs/heads/master
2020-04-02T23:10:29.740149
2016-06-06T08:51:27
2016-06-06T08:51:27
null
0
0
null
null
null
null
UTF-8
Swift
false
false
829
swift
// // StationManager.swift // Cribber // // Created by Tim Ross on 19/04/15. // Copyright (c) 2015 Skirr Pty Ltd. All rights reserved. // import Foundation import SwiftyJSON class StationManager { let api: CribberAPI let dataStore: CoreDataStore let stationBuilder: StationBuilder convenience init() { self.init(api: CribberAPI(), dataStore: CoreDataStore(), stationBuilder: StationBuilder()) } init(api: CribberAPI, dataStore: CoreDataStore, stationBuilder: StationBuilder) { self.api = api self.dataStore = dataStore self.stationBuilder = stationBuilder } func countStations() -> Int { return dataStore.count(Station.self) } func loadStations() -> [Station] { return dataStore.findAll(order: "name") } }
[ -1 ]
b801caa298d2c3004b6562cc32615aa248c7d816
a87c1f4f66abac33c078a9d25169fb7603278fb4
/City Sights App/Views/Onboarding/LocationDeniedView.swift
f220847904590a8d5eff402bdc1db3f1bb26a748
[]
no_license
Mitchman215/City-Sights-App
90b4091f48ac6fcc734e0e5dc6f4568a07b44583
5e167d1a9796444e35262b8990211411aef1a0a7
refs/heads/main
2023-06-26T10:21:25.365185
2021-07-22T04:50:43
2021-07-22T04:50:43
387,002,266
0
0
null
null
null
null
UTF-8
Swift
false
false
1,814
swift
// // LocationDeniedView.swift // City Sights App // // Created by Mitchell Salomon on 7/21/21. // import SwiftUI struct LocationDeniedView: View { let backgroundColor = Color(red: 34/255, green: 141/255, blue: 138/255) var body: some View { VStack (spacing: 20) { Spacer() Text("Whoops!") .font(.title) Text("We need to access your location to provide you with the best sights in the city. You can change your decision at any time in Settings.") Spacer() Button { // Open settings by getting the settings url if let url = URL(string: UIApplication.openSettingsURLString) { if UIApplication.shared.canOpenURL(url) { // If we can open the setting url, then open it UIApplication.shared.open(url, options: [:], completionHandler: nil) } } } label: { ZStack { Rectangle() .foregroundColor(.white) .frame(height: 48) .cornerRadius(10) Text("Go to Settings") .bold() .foregroundColor(backgroundColor) .padding() } } .padding() Spacer() } .foregroundColor(.white) .multilineTextAlignment(.center) .background(backgroundColor) .ignoresSafeArea() } } struct LocationDeniedView_Previews: PreviewProvider { static var previews: some View { LocationDeniedView() } }
[ -1 ]
306811d7ec3190874d2beb255c3a1e761cf1c969
561fbe8088346e808fabab88150307bcd97c095d
/Clappr/Classes/Plugin/Container/PosterPlugin.swift
ff55c89248d7325359f9e064ea6ecb04b7d1746d
[ "BSD-3-Clause" ]
permissive
assispedro/clappr-ios
5a37c0a379fc0cb03db685b932a4ffc6e6eaed82
7dc1e4fddb93203dc5908f4657462cb6b98203f7
refs/heads/master
2020-05-24T18:25:48.533421
2017-03-06T20:37:28
2017-03-06T20:37:28
null
0
0
null
null
null
null
UTF-8
Swift
false
false
3,393
swift
import Kingfisher public class PosterPlugin: UIContainerPlugin { private var poster = UIImageView(frame: CGRectZero) private var playButton = UIButton(frame: CGRectZero) required public init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } public override var pluginName: String { return "poster" } public required init() { super.init() } public required init(context: UIBaseObject) { super.init(context: context) translatesAutoresizingMaskIntoConstraints = false poster.contentMode = .ScaleAspectFit } public override func render() { guard let urlString = container.options[kPosterUrl] as? String else { removeFromSuperview() container.mediaControlEnabled = true return } if let url = NSURL(string: urlString) { poster.kf_setImageWithURL(url) } else { Logger.logWarn("invalid URL.", scope: pluginName) } configurePlayButton() configureViews() bindEvents() } private func configurePlayButton() { let image = UIImage(named: "poster-play", inBundle: NSBundle(forClass: PosterPlugin.self), compatibleWithTraitCollection: nil) playButton.setBackgroundImage(image, forState: .Normal) playButton.translatesAutoresizingMaskIntoConstraints = false playButton.addTarget(self, action: #selector(PosterPlugin.playTouched), forControlEvents: .TouchUpInside) } func playTouched() { container.seek(0) container.play() } private func configureViews() { container.addMatchingConstraints(self) addSubviewMatchingConstraints(poster) addSubview(playButton) let xCenterConstraint = NSLayoutConstraint(item: playButton, attribute: .CenterX, relatedBy: .Equal, toItem: self, attribute: .CenterX, multiplier: 1, constant: 0) addConstraint(xCenterConstraint) let yCenterConstraint = NSLayoutConstraint(item: playButton, attribute: .CenterY, relatedBy: .Equal, toItem: self, attribute: .CenterY, multiplier: 1, constant: 0) addConstraint(yCenterConstraint) } private func bindEvents() { for (event, callback) in eventsToBind() { listenTo(container, eventName: event.rawValue, callback: callback) } } private func eventsToBind() -> [ContainerEvent : EventCallback] { return [ .Buffering : { [weak self] _ in self?.playbackBuffering() }, .Play : { [weak self] _ in self?.playbackStarted() }, .Ended : { [weak self] _ in self?.playbackEnded() }, .Ready : { [weak self] _ in self?.playbackReady() }, ] } private func playbackBuffering() { playButton.hidden = true } private func playbackStarted() { hidden = true container.mediaControlEnabled = true } private func playbackEnded() { container.mediaControlEnabled = false playButton.hidden = false hidden = false } private func playbackReady() { if container.playback.pluginName == "NoOp" { hidden = true } } }
[ -1 ]
a27873881785df059f9e5534013facb36095ded9
11992499ea0b5f4baef6d6b598d79cedd4a414e9
/RunometerTests/ManagedRunObjectTests.swift
2dce13086f2b99764b235b370a6a1db24308c7bf
[ "BSD-2-Clause" ]
permissive
svdahlberg/Runometer
a6914e022200f6616e2a32b01839e6ab61a127df
123e57f0dcc308ea8d489f0b98374fbbc22ae7ca
refs/heads/master
2022-05-25T04:56:42.295746
2022-01-18T00:30:15
2022-01-18T00:30:15
115,252,722
0
0
BSD-2-Clause
2022-01-17T18:07:43
2017-12-24T09:26:03
Swift
UTF-8
Swift
false
false
1,107
swift
// // ManagedRunObjectTests.swift // RunometerTests // // Created by Svante Dahlberg on 2018-09-11. // Copyright © 2018 Svante Dahlberg. All rights reserved. // import XCTest @testable import Runometer import CoreLocation class ManagedRunObjectTests: XCTestCase { func testConvenianceInitCreatesOneRunSegmentFromArrayOfOneArrayOfLocations() { let context = CoreDataHelper.inMemoryManagedObjectContext()! let locationSegments = [[CLLocation(latitude: 1, longitude: 1)]] let run = ManagedRunObject(context: context, distance: 0, time: 0, locationSegments: locationSegments) XCTAssertEqual(1, run.runSegments?.count) } func testConvenianceInitCreatesTwoRunSegmentsFromArrayOfTwoArraysOfLocations() { let context = CoreDataHelper.inMemoryManagedObjectContext()! let locationSegments = [[CLLocation(latitude: 1, longitude: 1)], [CLLocation(latitude: 1, longitude: 1)]] let run = ManagedRunObject(context: context, distance: 0, time: 0, locationSegments: locationSegments) XCTAssertEqual(2, run.runSegments?.count) } }
[ -1 ]
21e82f915d3ca45a2bf5a4e7d3de23fa82696a60
78a1c4a2fc507a817ece2f32e66f3cc4bbcb5f28
/swift/level 1/one-five.playground/Sources/Singy.swift
76dc3f008db393b0747d721984b08e25934c3b51
[]
no_license
initpa/project-euler
ef9d47561260ec7334f3698d87abb86504e63c8f
d33c3a3079d63f52812b854747d05a82c98fc594
refs/heads/main
2023-06-27T14:34:16.407000
2021-07-30T07:39:49
2021-07-30T07:39:49
null
0
0
null
null
null
null
UTF-8
Swift
false
false
276
swift
public class Singy { public var name = "" private static var instance: Singy? private init() {} public static func getSingy() -> Singy { if Singy.instance == nil { Singy.instance = Singy() } return Singy.instance! } }
[ -1 ]
296eb4e25f05f7e4c5853f1a734a1ea30872fb4d
ec6d15f484c97343c3eb42b2c8ae6093c47c6006
/EhPanda/View/Tools/NewDawnView.swift
ae05f683b7ea9344b899107a68c8128f46d3f839
[ "Apache-2.0" ]
permissive
Aibx-99/EhPanda
eded1a9135f6db684bfcad593fea288044d84ee1
de2cbd725a5c1cd2ee86d14276712b444565b221
refs/heads/main
2023-04-24T17:15:30.604348
2021-05-07T08:01:04
2021-05-07T08:01:04
null
0
0
null
null
null
null
UTF-8
Swift
false
false
4,451
swift
// // NewDawnView.swift // EhPanda // // Created by 荒木辰造 on R 3/05/05. // import SwiftUI struct NewDawnView: View { @State private var rotationAngle: Double = 0 @State private var greeting: Greeting? @State private var timer = Timer .publish( every: 1/10, on: .main, in: .common ) .autoconnect() private let offset = screenW * 0.2 init(greeting: Greeting) { self.greeting = greeting } var body: some View { ZStack { LinearGradient( gradient: Gradient( colors: [Color(.systemTeal), Color(.systemIndigo)] ), startPoint: .top, endPoint: .bottom ) .ignoresSafeArea() VStack { HStack { Spacer() SunView() .rotationEffect(Angle(degrees: rotationAngle)) .offset(x: offset, y: -offset) } Spacer() } .ignoresSafeArea() VStack(spacing: 50) { VStack(spacing: 10) { TextView( text: "It is the dawn of a new day!", font: .largeTitle ) TextView( text: "Reflecting on your journey so far, you find that you are a little wiser.", font: .title2 ) } TextView( text: "You gain 30 EXP, 10,393 Credits, 10,000 GP and 11 Hath!", font: .title3, fontWeight: .bold, lineLimit: 3 ) } .padding() } .onReceive(timer, perform: onReceiveTimer) } } private extension NewDawnView { func onReceiveTimer(_: Date) { withAnimation { rotationAngle += 1 } } } private struct TextView: View { @Environment(\.colorScheme) private var colorScheme private let text: String private let font: Font private let fontWeight: Font.Weight private let lineLimit: Int? private var reversePrimary: Color { colorScheme == .light ? .white : .black } init( text: String, font: Font, fontWeight: Font.Weight = .bold, lineLimit: Int? = nil ) { self.text = text self.font = font self.fontWeight = fontWeight self.lineLimit = lineLimit } var body: some View { HStack { Text(text) .fontWeight(fontWeight) .font(font) .lineLimit(lineLimit) .foregroundColor(reversePrimary) Spacer() } } } private struct SunView: View { private let width = screenW * 0.75 private var offset: CGFloat { width / 2 + 70 } private var evenOffset: CGFloat { offset / sqrt(2) } private var sizes: [CGSize] { [ CGSize(width: 0, height: -offset), CGSize(width: evenOffset, height: -evenOffset), CGSize(width: offset, height: 0), CGSize(width: evenOffset, height: evenOffset), CGSize(width: 0, height: offset), CGSize(width: -evenOffset, height: evenOffset), CGSize(width: -offset, height: 0), CGSize(width: -evenOffset, height: -evenOffset) ] } private var degrees: [Double] = [ 0, 45, 90, 135, 180, 225, 270, 315 ] var body: some View { ZStack { Circle() .foregroundColor(.yellow) .frame(width: width, height: width) ForEach(0..<8, id: \.self) { index in SunBeamView() .rotationEffect(Angle(degrees: degrees[index])) .offset(sizes[index]) } } } } private struct SunBeamView: View { private let width = screenW * 0.05 private var height: CGFloat { width * 5 } var body: some View { Rectangle() .foregroundColor(.yellow) .frame(width: width, height: height) .cornerRadius(5) } } struct NewDawnView_Previews: PreviewProvider { static var previews: some View { NewDawnView(greeting: Greeting()) } }
[ -1 ]
c4eb32483e7ec9d5869249edf5f519b5f6c121c1
25d0c22d33fcbfc9f6dba118ec1006dc6897a142
/JDBreaksLoadingTests/JDBreaksLoadingTests.swift
0aa1620c3d33754bb66590c0e662ee28d116f03b
[ "MIT" ]
permissive
jamesdouble/JDBreaksLoading
3199a01e118f7ea6a58f6dcec9f095e0656ca566
d696358f3b00cab867ca58cf7587949adda81f8f
refs/heads/master
2021-01-11T12:18:30.774869
2017-10-11T03:09:52
2017-10-11T03:09:52
76,474,580
160
10
null
null
null
null
UTF-8
Swift
false
false
1,004
swift
// // JDBreaksLoadingTests.swift // JDBreaksLoadingTests // // Created by 郭介騵 on 2016/12/14. // Copyright © 2016年 james12345. All rights reserved. // import XCTest @testable import JDBreaksLoading class JDBreaksLoadingTests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is called before the invocation of each test method in the class. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testExample() { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testPerformanceExample() { // This is an example of a performance test case. self.measure { // Put the code you want to measure the time of here. } } }
[ 313357, 145435, 317467, 98333, 241692, 239650, 102437, 292902, 229413, 354343, 354345, 278570, 329765, 223274, 233517, 315434, 309295, 282672, 229424, 325674, 237620, 241716, 229430, 180280, 288828, 288833, 288834, 286788, 315465, 311372, 311374, 354385, 196691, 315476, 223316, 280661, 329814, 307289, 354393, 200794, 315487, 237663, 45153, 309345, 280675, 227428, 280677, 43110, 313447, 321637, 329829, 131178, 194666, 278638, 319598, 288879, 204916, 223350, 131191, 280694, 233590, 288889, 292988, 131198, 292992, 280712, 319629, 311438, 235662, 325776, 284825, 284826, 311458, 299174, 233642, 284842, 153776, 239793, 299187, 180408, 184505, 227513, 295098, 280762, 223419, 258239, 280768, 301251, 227524, 309444, 280778, 321745, 280795, 227548, 194782, 301279, 311519, 356576, 280802, 176362, 346346, 286958, 125169, 327929, 184570, 227578, 184575, 194820, 321800, 278797, 338197, 282909, 278816, 282913, 233762, 237857, 211235, 217380, 211238, 227616, 305440, 151847, 282919, 332083, 332085, 280887, 332089, 315706, 282939, 287041, 260418, 287043, 139589, 227654, 311621, 182597, 280902, 282960, 6481, 325968, 366929, 289110, 168281, 379225, 332123, 334171, 323935, 106847, 332127, 354655, 321894, 416104, 280939, 285040, 242033, 313713, 199029, 291192, 315773, 211326, 291198, 311681, 332167, 242058, 311691, 227725, 240016, 108944, 178582, 190871, 291224, 285084, 317852, 242078, 164533, 141728, 61857, 285090, 61859, 315810, 289189, 315811, 381347, 108972, 299441, 293303, 61880, 283064, 278970, 293306, 311738, 293310, 291265, 278978, 291267, 127427, 283075, 127428, 311745, 278989, 281037, 317901, 281040, 278993, 289232, 278999, 328152, 369116, 285150, 279008, 160225, 358882, 279013, 127465, 279018, 311786, 330218, 291311, 309744, 281072, 109042, 319987, 279029, 279032, 233978, 279039, 301571, 291333, 342536, 279050, 303631, 283153, 279057, 303636, 279062, 289304, 279065, 291358, 180771, 293419, 244269, 283182, 283184, 234036, 289332, 23092, 338490, 70209, 115270, 309830, 293448, 55881, 377418, 281166, 281171, 287318, 309846, 295519, 244327, 111208, 279146, 313966, 295536, 287346, 287352, 301689, 244347, 279164, 291454, 189057, 279177, 152203, 330379, 311949, 287374, 316049, 330387, 330388, 117397, 111253, 230040, 314009, 289434, 303771, 221852, 295576, 111258, 279206, 279210, 287404, 295599, 303793, 285361, 299699, 299700, 342706, 166582, 289462, 314040, 287417, 158394, 285371, 285372, 285373, 285374, 287422, 303803, 109241, 66242, 248517, 287433, 225995, 363211, 154316, 287439, 242386, 279252, 287452, 289502, 299746, 295652, 285415, 234217, 342762, 293612, 230125, 289518, 312047, 279280, 299759, 230134, 154359, 228088, 199414, 234234, 299770, 221948, 279294, 205568, 242433, 295682, 299776, 285444, 291592, 322313, 326414, 312079, 322319, 295697, 166676, 291604, 207640, 291612, 293664, 281377, 326433, 234277, 283430, 262951, 279336, 295724, 312108, 152365, 285487, 301871, 318252, 262962, 230199, 285497, 293693, 289598, 160575, 281408, 295746, 318278, 283467, 201549, 201551, 281427, 353109, 281433, 230234, 322395, 301918, 279392, 295776, 293730, 109409, 303972, 177001, 201577, 242541, 400239, 330609, 174963, 207732, 310131, 295798, 109428, 209783, 209785, 279417, 177019, 308092, 291712, 158593, 113542, 109447, 416646, 228233, 228234, 308107, 316298, 236428, 56208, 308112, 293781, 209817, 324506, 324507, 289690, 127902, 283558, 310182, 279464, 240552, 353195, 236461, 293806, 316333, 316343, 289722, 230332, 289727, 353215, 213960, 279498, 316364, 183248, 50143, 314342, 234472, 234473, 52200, 326635, 203757, 304110, 289774, 287731, 277492, 316405, 240630, 295927, 312314, 314362, 328700, 328706, 234500, 277509, 293893, 134150, 230410, 330763, 320527, 234514, 238610, 277524, 308243, 140310, 293910, 316437, 197657, 281626, 175132, 326685, 300068, 238639, 322612, 238651, 302139, 308287, 21569, 214086, 238664, 300111, 296019, 339030, 353367, 234587, 277597, 304222, 302177, 281697, 230499, 281700, 314467, 285798, 322663, 300135, 228458, 207979, 281706, 279660, 318572, 15471, 144496, 234609, 312434, 316526, 353397, 285814, 300151, 279672, 300150, 337017, 160891, 285820, 300158, 150657, 187521, 234625, 285828, 279685, 285830, 302213, 302216, 228491, 228493, 234638, 177296, 308372, 185493, 296086, 238743, 187544, 326804, 283802, 285851, 296092, 300187, 119962, 300188, 330913, 234663, 300202, 249002, 306346, 238765, 279728, 238769, 294074, 208058, 64700, 228540, 228542, 230588, 283840, 302274, 279747, 283847, 353479, 353481, 283852, 189652, 279765, 189653, 148696, 279774, 304351, 298208, 310497, 333022, 298212, 304356, 290022, 298221, 234733, 279792, 353523, 298228, 302325, 228600, 292091, 216315, 208124, 228609, 320770, 292107, 312587, 251153, 177428, 245019, 126237, 115998, 130338, 339234, 333090, 130343, 279854, 298291, 171317, 318775, 286013, 333117, 286018, 113987, 279875, 300359, 312648, 230729, 224586, 294218, 177484, 222541, 296270, 238927, 296273, 331090, 120148, 314709, 314710, 283991, 357719, 134491, 316765, 222559, 230756, 281957, 163175, 333160, 230765, 284014, 306542, 279920, 296303, 327025, 249204, 249205, 181625, 111993, 290169, 306559, 224640, 306560, 148867, 294275, 298374, 142729, 368011, 304524, 296335, 112017, 112018, 306579, 234898, 224661, 282007, 318875, 310692, 282022, 282024, 241066, 316842, 310701, 314798, 286129, 173491, 304564, 279989, 292283, 228795, 292292, 280004, 306631, 296392, 300489, 300487, 284107, 310732, 302540, 312782, 280013, 306639, 310736, 64975, 222675, 327121, 228827, 239068, 286172, 280032, 144867, 103909, 316902, 245223, 280041, 191981, 282096, 296433, 321009, 308723, 329200, 306677, 191990, 280055, 300536, 286202, 290300, 290301, 286205, 300542, 296448, 230913, 282114, 306692, 306693, 292356, 296461, 323087, 282129, 323089, 308756, 282136, 282141, 302623, 187938, 245292, 230959, 288309, 290358, 194110, 288318, 280130, 288326, 282183, 288327, 218696, 292425, 56902, 292423, 243274, 333388, 228943, 286288, 224847, 118353, 280147, 290390, 128599, 235095, 300630, 306776, 44635, 333408, 157281, 286306, 300644, 282213, 312940, 204397, 222832, 224883, 314998, 333430, 288378, 175741, 337535, 294529, 282245, 282246, 312965, 288392, 229001, 290443, 310923, 188048, 323217, 282259, 302739, 229020, 282271, 282273, 302754, 257699, 282276, 229029, 298661, 40613, 282280, 40614, 40615, 300714, 298667, 61101, 321199, 286391, 337591, 306874, 280251, 327358, 286399, 282303, 323264, 218819, 321219, 333509, 306890, 280267, 302797, 9936, 212688, 302802, 9937, 280278, 282327, 280280, 286423, 18138, 278233, 278234, 67292, 294622, 298712, 278240, 229088, 298720, 282339, 321249, 153319, 12010, 288491, 280300, 239341, 282348, 284401, 282355, 323316, 229113, 313081, 286459, 300794, 325371, 194303, 278272, 282369, 288512, 311042, 288516, 194304, 216839, 280329, 282378, 300811, 321295, 284431, 243472, 161554, 278291, 323346, 278293, 282391, 116505, 282400, 313120, 241441, 315171, 282409, 284459, 294700, 280366, 282417, 200498, 296755, 280372, 282427, 280380, 319292, 345919, 282434, 315202, 307011, 325445, 282438, 280390, 280392, 153415, 325457, 413521, 317269, 18262, 280410, 188251, 284507, 300894, 245599, 284512, 237408, 284514, 302946, 296806, 276327, 292712, 282474, 288619, 288620, 325484, 280430, 296814, 292720, 282480, 313203, 325492, 300918, 241528, 194429, 325503, 315264, 305026, 188292, 241540, 327557, 67463, 282504, 243591, 315273, 315274, 243597, 110480, 184208, 282518, 282519, 329622, 214937, 214938, 239514, 294807, 298909, 311199, 292771, 300963, 313254, 294823, 298920, 284587, 292782, 317360, 288697, 294843, 214977, 294850, 280514, 280519, 214984, 284619, 344013, 231375, 301008, 153554, 298980, 292837, 294886, 317415, 296941, 278512, 311281, 311282, 223218, 282612, 333817, 292858 ]
d90ccd0a3c4a62d92eac1669b8c31762ff86743a
2203f3773ac36b96e967d75c199893f225ce25cd
/Instagram/AppDelegate.swift
1ea4733cab411a1e8f883fe1dfb29c7a3ae4bfb2
[]
no_license
miyuki24/Instagram
d2bd3f1727b79804e3e97577661611645842bd36
634abff8ff862f7d08c0cd5caf28616ad6265070
refs/heads/master
2023-02-03T15:05:26.393655
2020-12-22T10:55:16
2020-12-22T10:55:16
312,246,041
0
0
null
null
null
null
UTF-8
Swift
false
false
1,633
swift
// // AppDelegate.swift // Instagram // // Created by 田中美幸 on 2020/11/10. // Copyright © 2020 miyuki.tanaka2. All rights reserved. // import UIKit import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { //SVProgressHUD(画面に重ねて表示される半透明の表示)をXcode11で実行するための環境調整コード var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. FirebaseApp.configure() return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
[ 268298, 333850, 346139, 344102, 163891, 217157, 243781, 327756, 286800, 374864, 338004, 342111, 342133, 250002, 250004, 329885, 333997, 430256, 256191, 327871, 180416, 350410, 180431, 350416, 350422, 350425, 268507, 334045, 356578, 346343, 338152, 327914, 350445, 346355, 321786, 350458, 336123, 350461, 350464, 325891, 350467, 350475, 350480, 350486, 338199, 350490, 325917, 350493, 350498, 338211, 350504, 350509, 248111, 332080, 340275, 336180, 332090, 332097, 332106, 190796, 334161, 250199, 321879, 65880, 250202, 332125, 250210, 246123, 348525, 354673, 321910, 332152, 334203, 250238, 340379, 338352, 334262, 266687, 334275, 326084, 330189, 338381, 338386, 338403, 334311, 328177, 334321, 328179, 328182, 340472, 199164, 328189, 324094, 328192, 328206, 324111, 186897, 342545, 340500, 324117, 334358, 342554, 334363, 332324, 381481, 324139, 324142, 334384, 324149, 334394, 324155, 324160, 219718, 334407, 324173, 324176, 352856, 350822, 174695, 191084, 334468, 148105, 326290, 340627, 184982, 342679, 98968, 342683, 332453, 332459, 332463, 332471, 328378, 223934, 334528, 328386, 332483, 332486, 352971, 332493, 352973, 189153, 338660, 342766, 340718, 332533, 418553, 207619, 338700, 326416, 336659, 199452, 336675, 348978, 326451, 340789, 326454, 244540, 326460, 326467, 328515, 127814, 244551, 328519, 326473, 328522, 336714, 338763, 326477, 336711, 361288, 326485, 326490, 201579, 201582, 326510, 211825, 330610, 201588, 324475, 328573, 324478, 324481, 342915, 324484, 398211, 400259, 324487, 324492, 236430, 324495, 330642, 324510, 324513, 211884, 324524, 340909, 5046, 324538, 324541, 359361, 340939, 340941, 248792, 340957, 340963, 359407, 244726, 330748, 328702, 330760, 328714, 209943, 336921, 336925, 345118, 250914, 209965, 209968, 209971, 209975, 339001, 209987, 209990, 248904, 330826, 341071, 248914, 250967, 339036, 341091, 210027, 345199, 210039, 210044, 152703, 160895, 384135, 330889, 384139, 210071, 337047, 248985, 339097, 384151, 347287, 210077, 210080, 384160, 210084, 210088, 210095, 337071, 337075, 244916, 249014, 384188, 210115, 332997, 326855, 244937, 384201, 343244, 330958, 384208, 146642, 330965, 333014, 210138, 384224, 359649, 343270, 351466, 384246, 251128, 384275, 333078, 251160, 384283, 245020, 384288, 353570, 245029, 208166, 347437, 199988, 251189, 337222, 331088, 337234, 331093, 343393, 208227, 251235, 374117, 345448, 333162, 343409, 234866, 378227, 154999, 333175, 327034, 249218, 245127, 181643, 136590, 245136, 249234, 112020, 181654, 245142, 245145, 343450, 245148, 245151, 245154, 245157, 181670, 337329, 181684, 181690, 146876, 181696, 327107, 384453, 181703, 327115, 327117, 366034, 343507, 337365, 339417, 249308, 333284, 339434, 343539, 210420, 337398, 337415, 329226, 345625, 366117, 339503, 265778, 206395, 333386, 333399, 333413, 327275, 339563, 222830, 138864, 339588, 159374, 339601, 419483, 245409, 345762, 224947, 337592, 337599, 333511, 339662, 358099, 245460, 181977, 224993, 245475, 224999, 337642, 245483, 141051, 225020, 337659, 339710, 225025, 337668, 339721, 321299, 345887, 225066, 225070, 358191, 225073, 399159, 325440, 341829, 325446, 354117, 323402, 341834, 341843, 337750, 358234, 327539, 341876, 358259, 333689, 325504, 333698, 339844, 333708, 337808, 247700, 329623, 225180, 333724, 118691, 327589, 337833, 362413, 184244, 337844, 358339, 346057, 247759, 346068, 329697, 358371, 327654, 253926, 247789, 380918 ]
753a3b318c98f041e08a950c7a03537c63af249a
b98a65831198e60a7ffb7007e3647024fc72e076
/iPose/PoseChildViewController.swift
b974b2136fe2c1b6bfe05a0adbd4de165e433447
[]
no_license
wangzhenyujiang/iPOSE
a30c021bab2682e219c27cd96fbd84214e497e65
88384cf199d56485f2893982700df185ef2f618b
refs/heads/master
2020-04-10T22:11:59.461166
2016-10-10T10:10:48
2016-10-10T10:10:48
65,597,936
1
1
null
null
null
null
UTF-8
Swift
false
false
3,574
swift
// // PoseChildViewController.swift // iPose // // Created by 王振宇 on 16/8/11. // Copyright © 2016年 王振宇. All rights reserved. // import UIKit import Alamofire import SwiftyJSON import JGProgressHUD let Space: CGFloat = 8 protocol PoseChildViewControllerDelegate { func poseItemSelected(indexPath: NSIndexPath, poseList: [PoseModelType], controllerIndex: Int) } class PoseChildViewController: UIViewController { @IBOutlet private weak var collection: UICollectionView! { didSet { collection.delegate = self collection.dataSource = self } } @IBOutlet private weak var emptyView: UIView! { didSet { emptyView.alpha = 0 } } var requestHelper: RequestHelperType! var index: Int = 0 var delegate: PoseChildViewControllerDelegate? private let HUD = JGProgressHUD(style: JGProgressHUDStyle.ExtraLight) private var dataSource = [PoseModelType]() override func viewDidLoad() { super.viewDidLoad() setupUI() HUD.showInView(parentViewController?.view) startRequest() } } //MARK: Public extension PoseChildViewController { func startRequest() { requestHelper.startRequest { [weak self] (success, dataSource) in guard let `self` = self else { return } self.HUD.dismissAnimated(false) if success { self.dataSource = dataSource self.collection.reloadData() self.showEmptyView(false) }else { self.showEmptyView(true) } } } } //MARK: Private extension PoseChildViewController { private func setupUI() { collection.register(PoseImageCollectionCell) view.backgroundColor = UIColor.whiteColor() collection.backgroundColor = UIColor.clearColor() collection.showsVerticalScrollIndicator = false collection.showsHorizontalScrollIndicator = false HUD.textLabel.text = "Loading" configLayout() } private func configLayout() { let flowLayout = collection.collectionViewLayout as! UICollectionViewFlowLayout let itemWidth = (ScreenWidth - 4 * Space) / 3 flowLayout.itemSize = CGSize(width: itemWidth, height: itemWidth) flowLayout.minimumInteritemSpacing = Space flowLayout.minimumLineSpacing = Space flowLayout.sectionInset = UIEdgeInsets(top: Space, left: Space, bottom: 0, right: Space) } private func showEmptyView(show: Bool) { UIView.animateWithDuration(0.25, animations: { self.emptyView.alpha = show ? 1 : 0 }) } } //MARK: UICollectionViewDelegate, UICollectionViewDataSource extension PoseChildViewController: UICollectionViewDelegate, UICollectionViewDataSource { func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCell(forIndexPath: indexPath) as PoseImageCollectionCell cell.fillData(dataSource[indexPath.row]) return cell } func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { return dataSource.count } func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) { delegate?.poseItemSelected(indexPath, poseList: dataSource, controllerIndex: index) ReportHelper.reportHotPictureId(dataSource[indexPath.row].pictureID) } }
[ -1 ]
c2aef855a77454ff41303eacde44f05dc16f48b6
125eddda29be50aeaee145de71469a4fdb3576bf
/On the Map/Model/OTM Client/OTMClient.swift
70e776085bc0bf865e7d1012bb983f1eddae5755
[]
no_license
Milind96/On-The-Map
a9ac1b68ea0f923f89ac5bd45f6d443ea2269652
2133c90bf080ce014eef2ffd8f315decf275383b
refs/heads/master
2020-06-28T14:49:11.999110
2019-12-10T08:39:00
2019-12-10T08:39:00
200,258,007
0
0
null
null
null
null
UTF-8
Swift
false
false
10,376
swift
// // OTMClient.swift // On the Map // // Created by milind shelat on 25/07/19. // Copyright © 2019 milind shelat. All rights reserved. // import Foundation class OTMClient { struct Auth { static var key = "" static var sessionId = "" static var nickname = "" } enum EndPoints { static let base = "https://onthemap-api.udacity.com/v1/" case baseUrl case createSessionId case studentLocation case singleStudentLocation case updateStudentLocation case getUserData case logout var stringValue: String { switch self { case .baseUrl: return EndPoints.base case .studentLocation: return EndPoints.base + "StudentLocation?limit=100&order=-updatedAt" case .createSessionId: return EndPoints.base + "session" case .logout: return EndPoints.base + "session" case .updateStudentLocation: return EndPoints.base + "StudentLocation?limit=100&order=-updatedAt" case .singleStudentLocation: return EndPoints.base + "StudentLocation" case .getUserData : return EndPoints.base + "users/" + Auth.key } } var url: URL { return URL(string: stringValue)! } } class func taskForGetRequest<ResponseType : Decodable >(url: String,response : ResponseType.Type, completion:@escaping(ResponseType?,Error?) -> Void){ let request = URLRequest(url: URL(string: url)!) let task = URLSession.shared.dataTask(with: request) { data, response, error in guard let data = data else { print("no data") DispatchQueue.main.async { completion(nil, error) } return } let newData = String(decoding: data, as: UTF8.self) print(newData) do { let decoder = JSONDecoder() let responseObject = try decoder.decode(ResponseType.self, from: data) DispatchQueue.main.async { completion(responseObject, nil) } } catch { DispatchQueue.main.async { completion(nil, error) } } } task.resume() } class func taskForPOSTRequest<ResponseType: Decodable>(url: String, responseType: ResponseType.Type, body: Data, completion: @escaping (ResponseType?, Error?) -> Void) { var request = URLRequest(url: URL(string: url)!) request.httpMethod = "POST" request.httpBody = body request.addValue("application/json", forHTTPHeaderField: "Content-Type") request.addValue("application/json", forHTTPHeaderField: "Accept") let task = URLSession.shared.dataTask(with: request) { (data, response, error) in if error != nil { DispatchQueue.main.async { completion(nil, error) } return } guard let httpStatusCode = (response as? HTTPURLResponse)?.statusCode else { return } if httpStatusCode >= 200 && httpStatusCode < 300 { // Since Status Code is valid. Process Data here only. guard let data = data else { DispatchQueue.main.async { completion(nil, error) } return } // This is syntax to create Range in Swift 5 var newData = data let range = 5..<data.count newData = data.subdata(in: range) /* subset response data! */ // Continue processing the data and deserialize it let decoder = JSONDecoder() do { let responseObject = try decoder.decode(ResponseType.self, from: newData) DispatchQueue.main.async { completion(responseObject, nil) } } catch { DispatchQueue.main.async { //print(error.localizedDescription) completion(nil, error) } } } switch(httpStatusCode){ case 200..<299: print("Success") completion(nil,error) break case 400: print("BadRequest") completion(nil,error) break case 401: print("Invalid Credentials!") completion(nil,error) break case 403: print("Unauthorized!") completion(nil,error) break case 405: print("HttpMethod Not Allowed!") completion(nil,error) break case 410: print("URL Changed") completion(nil,error) break case 500: print("Server Error") completion(nil,error) break default: print("Your request returned a status code other than 2xx!") } } task.resume() } class func login(username: String, password: String, completion: @escaping (Int?,String?, Bool, Error?) -> Void){ let body = "{\"udacity\": {\"username\": \"\(username)\", \"password\": \"\(password)\"}}".data(using: .utf8) taskForPOSTRequest(url: EndPoints.createSessionId.stringValue, responseType: NewSession.self, body: body!) { (response, error) in if let response = response { OTMClient.Auth.sessionId = response.session.id OTMClient.Auth.key = response.account.key completion(Int(OTMClient.Auth.key),OTMClient.Auth.sessionId,true, nil) } else { completion(nil,nil,false,error) } } } class func getUserData(completion: @escaping (UserDataResponse?, Error?) -> Void){ let url = EndPoints.getUserData.url let request = URLRequest(url: url) let downloadTask = URLSession.shared.dataTask(with: request) { (data, response, error) in // Guard to make sure there is no error. If error, it will exit into Guard and return // Just an error. Error carried to calling function for use. guard let data = data else { DispatchQueue.main.async { completion(nil, error) } return } // First 5 chars returned from API must be stripped away before using the returned // JSON data for decoding into StudentInfo let range = (5..<data.count) let newData = data.subdata(in: range) let jsonDecoder = JSONDecoder() do { //Decode data into StudentInfo let result = try jsonDecoder.decode(UserDataResponse.self, from: newData) DispatchQueue.main.async { //data was able to decode into StudentInfo completion(result, nil) } } catch { //Failed to Decode StudentInfo DispatchQueue.main.async { print(error.localizedDescription) completion(nil,error) } } } downloadTask.resume() } class func getStudentLocation(completion:@escaping([StudentInformation]?,Error?) -> Void){ taskForGetRequest(url: EndPoints.studentLocation.stringValue, response: StudentResult.self) { (response, error) in guard let response = response else { print(error!) completion(nil,error) return } completion(response.results,nil) } } class func updateStudentLocation(completion:@escaping([StudentInformation]?,Error?) -> Void){ taskForGetRequest(url: EndPoints.updateStudentLocation.stringValue, response: StudentResult.self) { (response, error) in guard let response = response else { print(error!) completion(nil,error) return } completion(response.results,nil) } } class func requestPostStudentInfo(postData:NewLocation, completionHandler: @escaping (PostLocationResponse?,Error?)->Void) { let jsonEncoder = JSONEncoder() let encodedPostData = try! jsonEncoder.encode(postData) let body = encodedPostData //print(encodedPostData) taskForPOSTRequest(url: EndPoints.singleStudentLocation.stringValue, responseType: NewLocation.self, body: body) { (response, error) in if response != nil { // completionHandler(respons, error) } else { completionHandler(nil,error) } } } class func logout(completion:@escaping() -> Void){ var request = URLRequest(url: URL(string: EndPoints.logout.stringValue)!) request.httpMethod = "DELETE" var xsrfCookie: HTTPCookie? = nil let sharedCookieStorage = HTTPCookieStorage.shared for cookie in sharedCookieStorage.cookies! { if cookie.name == "XSRF-TOKEN" { xsrfCookie = cookie } } if let xsrfCookie = xsrfCookie { request.setValue(xsrfCookie.value, forHTTPHeaderField: "X-XSRF-TOKEN") } let session = URLSession.shared let task = session.dataTask(with: request) { data, response, error in if error != nil { return } let range = (5..<data!.count) let newData = data?.subdata(in: range) /* subset response data! */ print(String(data: newData!, encoding: .utf8)!) completion() } task.resume() } }
[ -1 ]
945594629dbb0ac8c3b604620b8006e9e34f7d1b
990ae0bc9f1c20db472e672aeb6c0fb2c88aa9d5
/SwiftCoordinatorsKitExample/AppDelegate.swift
e45655313b04a277443a1c3cca417a4da1806c68
[]
no_license
DobbyWanKenoby/SwiftCoordinatorsKit
7022fd3368e95e027248f9422c293867131fd30c
c15cfae6610141d99c0431c92eef3a1ac933f249
refs/heads/main
2023-08-02T10:02:32.072899
2021-09-20T17:26:19
2021-09-20T17:26:19
390,115,307
0
1
null
null
null
null
UTF-8
Swift
false
false
1,331
swift
import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { // координатор приложения lazy var coordinator: AppCoordinator = { return AppCoordinator() }() func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
[ 350213, 393222, 354313, 268298, 393230, 350224, 393250, 350244, 344102, 350248, 350251, 393261, 266297, 350271, 376905, 378954, 395339, 368727, 356439, 376931, 100453, 374902, 266362, 381068, 225423, 225429, 225437, 346272, 225441, 438433, 225444, 438436, 438440, 225450, 100524, 387249, 225461, 225466, 379066, 387260, 389307, 225470, 180416, 381120, 430274, 225475, 260298, 225484, 346316, 377036, 225487, 225490, 225493, 377046, 418007, 411861, 211160, 411864, 225499, 411868, 225502, 225505, 411873, 379107, 377060, 387301, 225510, 225514, 387306, 205036, 225518, 372976, 393456, 358644, 393460, 436473, 379134, 411903, 385280, 262404, 164106, 368911, 379152, 387349, 262422, 387352, 356637, 356640, 194852, 262436, 356646, 391468, 356655, 262454, 397622, 225597, 362822, 262472, 348488, 344403, 213332, 65880, 383321, 379233, 383330, 262499, 391530, 262507, 262510, 268668, 356740, 385419, 420236, 366990, 379278, 272786, 262552, 373145, 340379, 268701, 416157, 385440, 385443, 354727, 262573, 389550, 393647, 385458, 262586, 344511, 262592, 358856, 375277, 350723, 391690, 393747, 254490, 188958, 385570, 33316, 377383, 252461, 358961, 356916, 197177, 418363, 252482, 348743, 369223, 385609, 10828, 385616, 389723, 262760, 375400, 352874, 191092, 346742, 254587, 377472, 184982, 352918, 373398, 260766, 258721, 150183, 344744, 361129, 164538, 260797, 350917, 373449, 418507, 355024, 355028, 385748, 391894, 183005, 256734, 332511, 64230, 203506, 155646, 348924, 391937, 344841, 391948, 375568, 375571, 418580, 418585, 434970, 162591, 418593, 389926, 418598, 418605, 355122, 336696, 361273, 398139, 260924, 375612, 355140, 355143, 361288, 355150, 357201, 416597, 357206, 430939, 197468, 361309, 355166, 357214, 254812, 361315, 355175, 375656, 433000, 349040, 381813, 430965, 398201, 351104, 377729, 373634, 398211, 400259, 381833, 342930, 392091, 422816, 398245, 359334, 222128, 400306, 412599, 351168, 359361, 359366, 398279, 379848, 386003, 359382, 359388, 398306, 349172, 244726, 383997, 361489, 386069, 386073, 345118, 347176, 396328, 357418, 359476, 386101, 361536, 388161, 347205, 345169, 349267, 343131, 412764, 257120, 148578, 384101, 384107, 420984, 349311, 345222, 349319, 386186, 351381, 345246, 251044, 44197, 185511, 367794, 367800, 253130, 66782, 328941, 386285, 218354, 386291, 351479, 218360, 388347, 275712, 275715, 261389, 253200, 349459, 345376, 345379, 410917, 345382, 273708, 372015, 347441, 44342, 396600, 437566, 437570, 212291, 437575, 263508, 210260, 396633, 437595, 259421, 208227, 425328, 271730, 378227, 390516, 154999, 343417, 271745, 181638, 384397, 374160, 181654, 230809, 357792, 396705, 380332, 181681, 396722, 181684, 208311, 359865, 259515, 361917, 380360, 359886, 372176, 359890, 413141, 368092, 366056, 366061, 69113, 368122, 423423, 409091, 419339, 208398, 419343, 380432, 359955, 419349, 419355, 419359, 134688, 394786, 419362, 370213, 419368, 359983, 419376, 396872, 419400, 353867, 343630, 419410, 224853, 224857, 257633, 345701, 224870, 394853, 339563, 257646, 210544, 372337, 370297, 372353, 216707, 421508, 198280, 345736, 345757, 345765, 425638, 257704, 419501, 257712, 425649, 419506, 224947, 257716, 419509, 257720, 419517, 155327, 257732, 224965, 419527, 224969, 419530, 224975, 419535, 257747, 394966, 155351, 419542, 419544, 155354, 345818, 419547, 419550, 257761, 155363, 419559, 155371, 419563, 431851, 370415, 409335, 257787, 337659, 257790, 155393, 257794, 257801, 155403, 257804, 366348, 225038, 257807, 362255, 395021, 225043, 372499, 225048, 399128, 257819, 155422, 360223, 257833, 257836, 155442, 210739, 155447, 225079, 397112, 399159, 417595, 397115, 354111, 155461, 360261, 225096, 257868, 370509, 257871, 354130, 397139, 225108, 376663, 225112, 155482, 257883, 425822, 376671, 257886, 155487, 225119, 155490, 155491, 257890, 259938, 399199, 399206, 257896, 261996, 257901, 376685, 268143, 345967, 225137, 257908, 225141, 262005, 345974, 403320, 425845, 262011, 155516, 225148, 257920, 155521, 225155, 155525, 155531, 262027, 262030, 262033, 380822, 225175, 262042, 155549, 262045, 262048, 155559, 155562, 382890, 155565, 362413, 372702, 372706, 155619, 155621, 253926, 190439, 354277, 356335, 350193, 360438, 253943, 350202, 393212, 350206 ]
ac65ee9854f42dbaf906ddb373564714cfd93be0
c64b830691a0e1be11ef9767a4ac6ad91115a787
/myClientele/AppDelegate.swift
2c8d3b959cd1eb705c10d6c78d0425f8cbde3490
[]
no_license
bokafor900/myClientele
93dc8a35ddf2d7a7018e33ab9ae22ae58bbf8e09
7952829148008bbd81a203945222c32f00a41368
refs/heads/master
2021-01-01T03:57:10.237654
2016-05-29T23:42:23
2016-05-29T23:42:23
58,872,159
0
0
null
null
null
null
UTF-8
Swift
false
false
9,091
swift
// // AppDelegate.swift // myClientele // // Created by Bryan Okafor on 5/10/16. // Copyright © 2016 Oaks. All rights reserved. // import UIKit import CoreData import CoreLocation import Firebase import FirebaseDatabase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, CLLocationManagerDelegate { //setup plist to get location working //NSLocationWhenInUseUsageDescription = your text var locationManager: CLLocationManager? var coordinate: CLLocationCoordinate2D? let APP_ID = "5A90049B-74AC-6189-FF49-752D15B0C400" let SECRET_KEY = "DEF31DE7-DD93-A6CC-FFBA-E13CDF95D400" let VERSION_NUM = "v1" var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { FIRApp.configure() backendless.initApp(APP_ID, secret:SECRET_KEY, version:VERSION_NUM) // Firebase.defaultConfig().persistenceEnabled = true FIRDatabase.database().persistenceEnabled = true //Reload for push notification let types: UIUserNotificationType = [.Alert, .Badge, .Sound] let settings = UIUserNotificationSettings(forTypes: types, categories: nil) application.registerUserNotificationSettings(settings) application.registerForRemoteNotifications() if let launchOptions = launchOptions as? [String: AnyObject] { if let notificationDictionary = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey] as? [NSObject : AnyObject] { self.application(application, didReceiveRemoteNotification: notificationDictionary) } } return true } func applicationWillResignActive(application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } func applicationDidEnterBackground(application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(application: UIApplication) { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. application.applicationIconBadgeNumber = 0 locationManagerStart() } func applicationWillTerminate(application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. // Saves changes in the application's managed object context before the application terminates. self.saveContext() locationManagerStop() } func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) { backendless.messagingService.registerDeviceToken(deviceToken) } func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) { if application.applicationState == UIApplicationState.Active { //app was already active } else { //push handling } } func application(application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: NSError) { print("could not register for notification : \(error.localizedDescription)") } //MARK: LocationManager Functions func locationManagerStart() { if locationManager == nil { print("init locationManager") locationManager = CLLocationManager() locationManager?.delegate = self locationManager!.desiredAccuracy = kCLLocationAccuracyBest locationManager!.requestWhenInUseAuthorization() } print("have location manager") locationManager!.startUpdatingLocation() } func locationManagerStop() { locationManager!.stopUpdatingLocation() } //MARK: CLLocationManagerDelegate func locationManager(manager: CLLocationManager, didUpdateToLocation newLocation: CLLocation, fromLocation oldLocation: CLLocation) { coordinate = newLocation.coordinate } // MARK: - Core Data stack lazy var applicationDocumentsDirectory: NSURL = { // The directory the application uses to store the Core Data store file. This code uses a directory named "com.oakware.myClientele" in the application's documents Application Support directory. let urls = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask) return urls[urls.count-1] }() lazy var managedObjectModel: NSManagedObjectModel = { // The managed object model for the application. This property is not optional. It is a fatal error for the application not to be able to find and load its model. let modelURL = NSBundle.mainBundle().URLForResource("myClientele", withExtension: "momd")! return NSManagedObjectModel(contentsOfURL: modelURL)! }() lazy var persistentStoreCoordinator: NSPersistentStoreCoordinator = { // The persistent store coordinator for the application. This implementation creates and returns a coordinator, having added the store for the application to it. This property is optional since there are legitimate error conditions that could cause the creation of the store to fail. // Create the coordinator and store let coordinator = NSPersistentStoreCoordinator(managedObjectModel: self.managedObjectModel) let url = self.applicationDocumentsDirectory.URLByAppendingPathComponent("SingleViewCoreData.sqlite") var failureReason = "There was an error creating or loading the application's saved data." do { try coordinator.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: url, options: nil) } catch { // Report any error we got. var dict = [String: AnyObject]() dict[NSLocalizedDescriptionKey] = "Failed to initialize the application's saved data" dict[NSLocalizedFailureReasonErrorKey] = failureReason dict[NSUnderlyingErrorKey] = error as NSError let wrappedError = NSError(domain: "YOUR_ERROR_DOMAIN", code: 9999, userInfo: dict) // Replace this with code to handle the error appropriately. // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. NSLog("Unresolved error \(wrappedError), \(wrappedError.userInfo)") abort() } return coordinator }() lazy var managedObjectContext: NSManagedObjectContext = { // Returns the managed object context for the application (which is already bound to the persistent store coordinator for the application.) This property is optional since there are legitimate error conditions that could cause the creation of the context to fail. let coordinator = self.persistentStoreCoordinator var managedObjectContext = NSManagedObjectContext(concurrencyType: .MainQueueConcurrencyType) managedObjectContext.persistentStoreCoordinator = coordinator return managedObjectContext }() // MARK: - Core Data Saving support func saveContext () { if managedObjectContext.hasChanges { do { try managedObjectContext.save() } catch { // Replace this implementation with code to handle the error appropriately. // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. let nserror = error as NSError NSLog("Unresolved error \(nserror), \(nserror.userInfo)") abort() } } } }
[ 326096 ]
6582bf34a3e2530b590ac2184ae37ae91a151493
9eb10b04594a5c9d5303b54b046bffcc901ebfc0
/Planner/DAO/Checkable.swift
383afc81b6d59b90775eda61aaf53fcd42fb559b
[]
no_license
Pavel129/Planner
6a5c2d575d9cdebba69143219ba3dd560fc0fc38
5480970f24fe9f935e2b2cf08e48766dc05c93b2
refs/heads/master
2020-08-24T20:21:26.221626
2019-10-22T20:10:16
2019-10-22T20:10:16
216,784,020
0
0
null
null
null
null
UTF-8
Swift
false
false
796
swift
import Foundation // используется для полиморфизма в универсальном контроллере DictionaryController protocol Checkable: class { // только класс (не struct) сможет использовать этот протокол (иначе может возникнуть ошибка immutable при попытке записать значение в checked) var checked: Bool {get set} // выделено значение или нет (только для фильтрации) } // protocol adoption (не можем редактировать сам класс, но можем адаптировать его в нужные интерфейсы) extension Priority : Checkable{ } extension Category : Checkable{ }
[ -1 ]
ea7161e3b554cfd4427b51d17be96b3ec53a986a
cf2709f1a8d08cb817f159746fe0fdd569469166
/TheOneRepMax-iOS/PercentageScrollerView.swift
4765b47097514b283a83b11e33641b92186f3489
[]
no_license
jwitcig/The-One-Rep-Max-for-iPhone
12f0a17ea76d91c8253710c6425e5bf52541c24f
576a1a404744eb535c35a6e4449f242f7ec6d3c0
refs/heads/master
2021-08-30T12:25:23.454032
2016-08-28T21:31:08
2016-08-28T21:31:08
114,575,602
0
0
null
null
null
null
UTF-8
Swift
false
false
2,342
swift
// // NumberScrollerView.swift // TheOneRepMax // // Created by Developer on 12/22/15. // Copyright © 2015 JwitApps. All rights reserved. // import UIKit class PercentageScrollerView: UIStackView { var max: Int = 0 var valueLabels = [PercentageView]() var delegates = [NumberScrollerDelegate]() init(max: Int) { self.max = max let percentages = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95] let percentageValueLabels = percentages.map { return PercentageView(percentage: $0, max: max, displayResult: false) } let dividerLabel = UILabel() dividerLabel.text = "•" dividerLabel.font = UIFont(name: dividerLabel.font!.fontName, size: 15) var allSubviews: [UIView] = [dividerLabel] for valueLabel in percentageValueLabels { allSubviews.append(valueLabel) let dividerLabel = UILabel() dividerLabel.text = "•" dividerLabel.font = UIFont(name: dividerLabel.font!.fontName, size: 15) allSubviews.append(dividerLabel) } super.init(arrangedSubviews: allSubviews) self.axis = .Horizontal self.distribution = .EqualSpacing valueLabels = percentageValueLabels } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } override init(frame: CGRect) { super.init(frame: frame) } override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) { for touch in touches { let location = touch.locationInView(self) for view in valueLabels where view.frame.contains(location) { callbackNumberSelected(percentageView: view) view.toggleMagnification() } } } func addDelegate(delegate: NumberScrollerDelegate) { delegates.append(delegate) } func callbackNumberSelected(percentageView percentageView: PercentageView) { for delegate in delegates { delegate.numberSelected(percentageView: percentageView) } } }
[ -1 ]
87e25ae97898d4acf375cb21f3920a460664449e
a99e562549fc4257c57347141866f643042fe85e
/HTSAS/FavoriteTableViewController.swift
955b04376d8c19083849b9df1268d7925ceefa86
[ "MIT" ]
permissive
domenicosolazzo/HTSAS
e497d95070ebaf66d87b17065ddf0593fc7324db
c9a7011f306f5b7deb9ac2da361fa11e1abcdd0d
refs/heads/master
2021-01-15T17:42:13.363411
2015-07-27T13:12:55
2015-07-27T13:12:55
38,168,163
0
0
null
null
null
null
UTF-8
Swift
false
false
5,480
swift
// // FavoriteTableViewController.swift // HTSAS // // Created by Domenico on 21/07/15. // Copyright (c) 2015 Domenico Solazzo. All rights reserved. // import UIKit import CoreData class FavoriteTableViewController: UITableViewController, NSFetchedResultsControllerDelegate { //- MARK: Private variables var frc: NSFetchedResultsController! //- MARK: Computed variables var managedObjectContext: NSManagedObjectContext{ return (UIApplication.sharedApplication().delegate as! AppDelegate).managedObjectContext! } //- MARK: Initialization override func viewDidLoad() { self.title = "Favorites" // Fetch request var fetchRequest = NSFetchRequest(entityName: "Favorite") // Sort descriptor var quoteDescriptor = NSSortDescriptor(key: "quote", ascending: true) fetchRequest.sortDescriptors = [quoteDescriptor] self.frc = NSFetchedResultsController( fetchRequest: fetchRequest, managedObjectContext: managedObjectContext, sectionNameKeyPath: nil, cacheName: nil ) self.frc.delegate = self var fetchError: NSError? if self.frc.performFetch(&fetchError){ println("Retrieved...") }else{ if let error = fetchError{ println("Error: \(error)") } } } //- MARK: NSFetchedResultsControllerDelegate func controllerWillChangeContent(controller: NSFetchedResultsController) { tableView.beginUpdates() } func controller(controller: NSFetchedResultsController, didChangeObject anObject: AnyObject, atIndexPath indexPath: NSIndexPath?, forChangeType type: NSFetchedResultsChangeType, newIndexPath: NSIndexPath?) { if type == NSFetchedResultsChangeType.Insert{ tableView.insertRowsAtIndexPaths([newIndexPath!], withRowAnimation: UITableViewRowAnimation.Automatic) } if type == NSFetchedResultsChangeType.Delete{ tableView.deleteRowsAtIndexPaths([indexPath!], withRowAnimation: UITableViewRowAnimation.Automatic) } } func controllerDidChangeContent(controller: NSFetchedResultsController) { tableView.endUpdates() } //- MARK: TableView override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { let sectionInfo = frc.sections![section] as! NSFetchedResultsSectionInfo return sectionInfo.numberOfObjects } override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCellWithIdentifier("FavoriteCell", forIndexPath: indexPath) as! UITableViewCell let favorite = frc.objectAtIndexPath(indexPath) as! Favorite let font = UIFont(name: "HelveticaNeue", size: 12.0) cell.textLabel!.font = font cell.textLabel!.sizeToFit() cell.textLabel!.numberOfLines = 0; cell.textLabel!.text = favorite.quote return cell } override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat { let favorite = frc.objectAtIndexPath(indexPath) as! Favorite var height:CGFloat = self.calculateHeightForString(favorite.quote) return height + 70.0 } override func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool { return true } override func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) { } override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject]? { let favorite = frc.objectAtIndexPath(indexPath) as! Favorite let delete = UITableViewRowAction(style: .Normal, title: "Delete") { action, index in tableView.setEditing(false, animated: true) let favoriteToDelete = self.frc.objectAtIndexPath(indexPath) as! Favorite self.managedObjectContext.deleteObject(favoriteToDelete) if favoriteToDelete.deleted{ var savingError: NSError? if self.managedObjectContext.save(&savingError){ println("Successfully deleted the object") } else { if let error = savingError{ println("Failed to save the context with error = \(error)") } } } } return [delete] } func calculateHeightForString(inString:String) -> CGFloat { var messageString = inString let font: UIFont? = UIFont(name: "HelveticaNeue", size: 12.0) var attributes = [UIFont(): font!] var attrString:NSAttributedString? = NSAttributedString(string: messageString, attributes: attributes) var rect:CGRect = attrString!.boundingRectWithSize(CGSizeMake(300.0,CGFloat.max), options: NSStringDrawingOptions.UsesLineFragmentOrigin, context:nil ) var requredSize:CGRect = rect return requredSize.height //to include button's in your tableview } }
[ -1 ]
7af347129aba22d1c124fd1df576c750a50bf12a
bb218dfd2da3eb5b14f8d3f48003e8d5aebf7370
/Tests/PostgreSQLDriverTests/SubsetTests.swift
1d4595e16f7efe9d9a31390325fe50e4243b1fd2
[ "MIT", "PostgreSQL" ]
permissive
vapor-community/postgresql-driver
101e7948d82393e76f8f7f9a3116c619fc01a659
570cd119ebbb2a9c5a0e4a83fe6e9d4b34e06cfb
refs/heads/master
2021-09-12T15:42:52.645063
2017-10-15T18:19:40
2017-10-15T18:19:40
52,306,149
16
12
null
2021-02-24T17:47:49
2016-02-22T21:11:51
Swift
UTF-8
Swift
false
false
1,996
swift
import XCTest @testable import PostgreSQLDriver import FluentTester import Random class SubsetTests: XCTestCase { let database: Database = { let driver = PostgreSQLDriver.Driver.makeTest() return Database(driver) }() override func setUp() { try! Atom.prepare(database) let testAtoms = [ Atom(id: nil, name: "A", protons: 1, weight: 1), Atom(id: nil, name: "B", protons: 2, weight: 1), Atom(id: nil, name: "C", protons: 3, weight: 1), Atom(id: nil, name: "D", protons: 4, weight: 1), Atom(id: nil, name: "E", protons: 5, weight: 1) ] let query = try! Atom.makeQuery(database) testAtoms.forEach { try! query.save($0) } } override func tearDown() { try? database.delete(Atom.self) } func testSubsetIn() throws { XCTAssertEqual(3, try Atom.makeQuery(database).filter(Filter.Method.subset("protons", .in, [1,3,5,7])).count()) XCTAssertEqual(0, try Atom.makeQuery(database).filter(Filter.Method.subset("protons", .in, [7,8,9])).count()) } func testSubsetNotIn() throws { XCTAssertEqual(2, try Atom.makeQuery(database).filter(Filter.Method.subset("protons", .notIn, [1,3,5,7])).count()) XCTAssertEqual(5, try Atom.makeQuery(database).filter(Filter.Method.subset("protons", .notIn, [7,8,9])).count()) } func testSubsetInEmpty() throws { XCTAssertEqual(0, try Atom.makeQuery(database).filter(Filter.Method.subset("protons", .in, [])).count()) } func testSubsetNotInEmpty() throws { XCTAssertEqual(5, try Atom.makeQuery(database).filter(Filter.Method.subset("protons", .notIn, [])).count()) } static let allTests = [ ("testSubsetIn", testSubsetIn), ("testSubsetNotIn", testSubsetNotIn), ("testSubsetInEmpty", testSubsetInEmpty), ("testSubsetNotInEmpty", testSubsetNotInEmpty) ] }
[ -1 ]
fc4945c1dcc75b0b8d5366f23af7f4cbd35be9dd
1e148585ca86f8791e377be73f46a6cfdfe560a6
/cau_study_ios/ViewController/SignInViewController.swift
5e305a744761441f21be3869a596f6ebca686c15
[]
no_license
msfamzzang/cau_study_by_cauios
c6564e163a3c95323ac97a3ebb9e57732c9ab50f
2d53fc75631aafdd63aab768d33236308d63d330
refs/heads/master
2021-09-20T16:12:37.057582
2018-08-12T06:33:11
2018-08-12T06:33:11
125,165,556
0
0
null
2018-07-30T19:18:11
2018-03-14T06:24:51
Swift
UTF-8
Swift
false
false
2,858
swift
// // SignInViewController.swift import UIKit import FirebaseAuth class SignInViewController: UIViewController { @IBOutlet weak var loginBgImageView: UIImageView! @IBOutlet weak var emailTextField: UITextField! @IBOutlet weak var passwordTextField: UITextField! @IBOutlet weak var signInButton: UIButton! override func viewDidLoad() { self.view.insertSubview(loginBgImageView, at: 0) super.viewDidLoad() //emailTextField.backgroundColor = UIColor.clear emailTextField.tintColor = UIColor.darkGray emailTextField.textColor = UIColor.darkGray emailTextField.attributedPlaceholder = NSAttributedString(string: emailTextField.placeholder!, attributes: [NSAttributedStringKey.foregroundColor: UIColor.lightGray]) //passwordTextField.backgroundColor = UIColor.clear passwordTextField.tintColor = UIColor.darkGray passwordTextField.textColor = UIColor.darkGray passwordTextField.attributedPlaceholder = NSAttributedString(string: passwordTextField.placeholder!, attributes: [NSAttributedStringKey.foregroundColor: UIColor.lightGray]) signInButton.isEnabled = false handleTextField() } override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { view.endEditing(true) } override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) if Auth.auth().currentUser != nil { self.performSegue(withIdentifier: "signInToTabbarVC", sender: nil) } } func handleTextField() { emailTextField.addTarget(self, action: #selector(self.textFieldDidChange), for: UIControlEvents.editingChanged) passwordTextField.addTarget(self, action: #selector(self.textFieldDidChange), for: UIControlEvents.editingChanged) } @objc func textFieldDidChange() { guard let email = emailTextField.text, !email.isEmpty, let password = passwordTextField.text, !password.isEmpty else { signInButton.setTitleColor(UIColor.lightText, for: UIControlState.normal) signInButton.isEnabled = false return } signInButton.setTitleColor(UIColor.white, for: UIControlState.normal) signInButton.isEnabled = true } @IBAction func signInButton_TouchUpInside(_ sender: Any) { view.endEditing(true) ProgressHUD.show("Waiting...", interaction: false) AuthService.signIn(email: emailTextField.text!, password: passwordTextField.text!, onSuccess: { ProgressHUD.showSuccess("Success") self.performSegue(withIdentifier: "signInToTabbarVC", sender: nil) }, onError: { error in ProgressHUD.showError(error!) }) } }
[ -1 ]
6886686fb028d7285cd7cefb083e339aa06fc55a
27e0787f94442a350f083067cc520863eb09327b
/FoodSpace/OnboardingPage.swift
f970af93490c9195780dae51b6880e6e8b1cf32f
[]
no_license
sweetcoco/FoodSpace
2c6956e586a97cb3cdb8d50146ad4220d3499651
14f0504cb468536d0ac1daeac572dbe223c4e5d1
refs/heads/master
2020-12-11T01:41:23.109387
2016-11-22T13:43:12
2016-11-22T13:43:12
68,653,012
0
0
null
null
null
null
UTF-8
Swift
false
false
277
swift
// // OnboardingPage.swift // FoodSpace // // Created by Corey Howell on 9/13/16. // Copyright © 2016 Pan Labs. All rights reserved. // import Foundation struct OnboardingPage { let title: String let message: NSMutableAttributedString let imageName: String }
[ -1 ]
9679ea4096b9f2372887a97c1ac8220169470580
393b432e590b4b6d2cd93b8980bf4663a6072502
/Social Connecting App/SliderCollectionViewCell.swift
15b51371f13ad0cd693ed9af4c6fee1c391bc4bb
[]
no_license
ard1555/Follow-Up
3a70fcbeb5c81d601fa5424a90375173ae94cab6
26bd2b7f5ac7cb186dfd5cf5fbacece7edf28843
refs/heads/master
2020-06-16T19:47:33.737947
2019-07-07T23:08:51
2019-07-07T23:08:51
195,683,292
0
0
null
null
null
null
UTF-8
Swift
false
false
1,184
swift
// // SliderCollectionViewCell.swift // Social Connecting App // // Created by Akash Dharamshi on 1/17/18. // Copyright © 2018 Akash Dharamshi. All rights reserved. // import UIKit import Foundation class SliderCollectionViewCell: UICollectionViewCell { @IBOutlet var idLabel: UILabel! @IBOutlet var backgroundImage: UIImageView! @IBOutlet var addAccountsButton: CustomizableButton! @IBOutlet var deleteCell: CustomizableButton! @IBOutlet var scanButton: CustomizableButton! @IBOutlet var nameLabel: UILabel! @IBOutlet var profileImage: UIImageView! @IBOutlet var qrImage: UIImageView! @IBOutlet var accountArray: UILabel! let UserProfileView = UserProfileViewController() let networkSettings = NetworkSettings() override func layoutSubviews() { super.layoutSubviews() self.layer.cornerRadius = 10 layer.shadowColor = UIColor.black.cgColor layer.shadowRadius = 10 layer.shadowOpacity = 0.3 layer.shadowOffset = CGSize(width: 2, height: 3) self.clipsToBounds = false } }
[ -1 ]
17d79cfef7226e075c196f96eb8284eb8eb882ad
efab969908fce8771086d7202fb093c854379272
/diplo/Proyecto/Proyecto/SecondViewController.swift
452c380f719f9ad93e3058e11743727906aacf74
[]
no_license
TheMannSan/Diplomado-IOS
7176bf727fa3b03fd3bcc5848cad8771e8403f4b
9adb8c66bba8ba914c075f3e75e7bbb341c7f136
refs/heads/master
2020-03-26T02:19:07.691471
2018-11-09T22:54:04
2018-11-09T22:54:04
144,405,868
0
0
null
null
null
null
UTF-8
Swift
false
false
965
swift
// // SecondViewController.swift // Proyecto // // Created by Servicio on 8/25/18. // Copyright © 2018 Servicio. All rights reserved. // import UIKit class SecondViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() print ("2era vista - did load") // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) print ("2era vista - will appear") } override func viewWillDisappear(_ animated: Bool) { super.viewWillAppear(animated) print ("2era vista - will Disappear") } override func viewDidDisappear(_ animated: Bool) { super.viewWillAppear(animated) print ("2era vista - did appear") } }
[ 292786, 277006 ]
fe3da9cbdba0835400f50969178384a577b6c042
ccc8dbf5f380019ecffa7b8c80cc60f900d23fb5
/App-Sprouter/AppDelegate.swift
977b6fd258e6332bc9a3a17983297e1e8bed815c
[]
no_license
humza-ios/App-Sprouter
6ba4d3480600f60100ccf2a545dc27b1f754b069
295229cb1453de8f2bbddbdda39112abc987e512
refs/heads/master
2021-01-20T08:46:18.458834
2017-09-02T13:26:10
2017-09-02T13:26:10
101,571,592
0
0
null
2017-09-02T13:36:51
2017-08-27T18:19:54
Swift
UTF-8
Swift
false
false
4,791
swift
// // AppDelegate.swift // App-Sprouter // // Created by Humza Shahid on 27/08/2017. // Copyright © 2017 Humza Shahid. All rights reserved. // import UIKit import CoreData @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. // Sample Code for main screen // Other code is here // add item for pull request 1. // my task 1 branch test . return true } func somefunction(){ } func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. // Saves changes in the application's managed object context before the application terminates. self.saveContext() } // MARK: - Core Data stack lazy var persistentContainer: NSPersistentContainer = { /* The persistent container for the application. This implementation creates and returns a container, having loaded the store for the application to it. This property is optional since there are legitimate error conditions that could cause the creation of the store to fail. */ let container = NSPersistentContainer(name: "App_Sprouter") container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { // Replace this implementation with code to handle the error appropriately. // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. /* Typical reasons for an error here include: * The parent directory does not exist, cannot be created, or disallows writing. * The persistent store is not accessible, due to permissions or data protection when the device is locked. * The device is out of space. * The store could not be migrated to the current model version. Check the error message to determine what the actual problem was. */ fatalError("Unresolved error \(error), \(error.userInfo)") } }) return container }() // MARK: - Core Data Saving support func saveContext () { let context = persistentContainer.viewContext if context.hasChanges { do { try context.save() } catch { // Replace this implementation with code to handle the error appropriately. // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. let nserror = error as NSError fatalError("Unresolved error \(nserror), \(nserror.userInfo)") } } } }
[ 243717, 294405, 320008, 163848, 320014, 313360, 288275, 289300, 322580, 290326, 329747, 139803, 229408, 306721, 322080, 229411, 322083, 296483, 306726, 309287, 308266, 292907, 322092, 217132, 316465, 288306, 322102, 324663, 164408, 308281, 322109, 286783, 313409, 315457, 349765, 320582, 309832, 288329, 196177, 241746, 344661, 231000, 212571, 287323, 300124, 309342, 325220, 306790, 290409, 322666, 296043, 310378, 152685, 311914, 307310, 334446, 292466, 307315, 314995, 314487, 291450, 314491, 318599, 312970, 311444, 294038, 311449, 300194, 298662, 233638, 233644, 286896, 300208, 234677, 294070, 125111, 286389, 309439, 284352, 296641, 235200, 302787, 242371, 284360, 321228, 319181, 298709, 284374, 182486, 189654, 320730, 241371, 311516, 357083, 179420, 322272, 317665, 298210, 165091, 311525, 288489, 290025, 229098, 307436, 304365, 323310, 125167, 313073, 286455, 306424, 322299, 302332, 319228, 319231, 184576, 309505, 241410, 311043, 366339, 309509, 318728, 254217, 125194, 234763, 321806, 125201, 296218, 313116, 326434, 237858, 300836, 313125, 295716, 289577, 125226, 133421, 317233, 241971, 316726, 318264, 201530, 313660, 159549, 287038, 292159, 218943, 288578, 301893, 234828, 292172, 379218, 321364, 201051, 230748, 258397, 294238, 298844, 199020, 293741, 319342, 292212, 316788, 244598, 124796, 196988, 317821, 303999, 243072, 314241, 242050, 313215, 305022, 325509, 293767, 316300, 322448, 306576, 308114, 319900, 298910, 313250, 308132, 316327, 306605, 316334, 324015, 200625, 324017, 300979, 316339, 322998, 296888, 316345, 67000, 300987, 319932, 310718, 292288, 323520, 317888, 312772, 214980, 298950, 306632, 310733, 289744, 310740, 235994, 315359, 240098, 323555, 236008, 319465, 248299, 311789, 326640, 203761, 320498, 314357, 288246, 309243, 300540, 310782 ]
e6aa5d7366f11d073c9e6004b82727f3f12b1e37
c795622fd2db59df821ba1c03af6b39c5c8bfb6e
/FlashNews/service/NewsStore.swift
3c43972e98c7b66acfc3aa8dcde177766970ab19
[]
no_license
fajarca/flash-news-ios
5b503f6653e65f7222ae268f66be54c4a4b759ea
c6b078968a04f61ec12ad110683d6faab53e6b58
refs/heads/master
2022-04-25T11:34:48.398661
2020-04-25T14:15:13
2020-04-25T14:15:13
256,955,792
2
0
null
null
null
null
UTF-8
Swift
false
false
4,510
swift
// // NewsStore.swift // FlashNews // // Created by Fajar Chaeril Azhar on 19/04/20. // Copyright © 2020 Fajar Chaeril Azhar. All rights reserved. // import Foundation class NewsStore : NewsService { private init() {} public static let shared = NewsStore() private let baseUrl = "https://newsapi.org/v2/" private let apiKey = "c7acc244e5884787b21010cd475495cb" private let urlSession = URLSession.shared func fetchNews(successHandler: @escaping (TopHeadlinesResponse) -> Void, errorHandler: @escaping (Error) -> Void) { let url = "\(baseUrl)/top-headlines" guard var urlComponent = URLComponents(string : url) else { errorHandler(NewsError.invalidEndpoint) return } let queries = [URLQueryItem(name: "country", value: "id")] urlComponent.queryItems = queries guard let componentUrl = urlComponent.url else { errorHandler(NewsError.invalidEndpoint) return } var request = URLRequest(url: componentUrl) request.addValue(apiKey, forHTTPHeaderField: "Authorization") urlSession.dataTask(with: request) { (data, response, error) in if error != nil { self.handleError(errorHandler: errorHandler, error: NewsError.apiError) return } guard let httpResponse = response as? HTTPURLResponse, 200..<300 ~= httpResponse.statusCode else { self.handleError(errorHandler: errorHandler, error: NewsError.invalidResponse) return } guard let data = data else { self.handleError(errorHandler: errorHandler, error: NewsError.noData) return } do { let result = try JSONDecoder().decode(TopHeadlinesResponse.self, from: data) DispatchQueue.main.async { successHandler(result) } } catch { self.handleError(errorHandler: errorHandler, error: NewsError.serializationError) } }.resume() } func searchNews(query : String, successHandler: @escaping (TopHeadlinesResponse) -> Void, errorHandler: @escaping (Error) -> Void) { let url = "\(baseUrl)everything" guard var urlComponent = URLComponents(string : url) else { errorHandler(NewsError.invalidEndpoint) return } let queries = [ URLQueryItem(name: "q", value: query), URLQueryItem(name: "language", value: "en") ] urlComponent.queryItems = queries guard let componentUrl = urlComponent.url else { errorHandler(NewsError.invalidEndpoint) return } var request = URLRequest(url: componentUrl) request.addValue(apiKey, forHTTPHeaderField: "Authorization") urlSession.dataTask(with: request) { (data, response, error) in if error != nil { self.handleError(errorHandler: errorHandler, error: NewsError.apiError) return } guard let httpResponse = response as? HTTPURLResponse, 200..<300 ~= httpResponse.statusCode else { self.handleError(errorHandler: errorHandler, error: NewsError.invalidResponse) return } guard let data = data else { self.handleError(errorHandler: errorHandler, error: NewsError.noData) return } do { let result = try JSONDecoder().decode(TopHeadlinesResponse.self, from: data) DispatchQueue.main.async { successHandler(result) } } catch let message { print(message.localizedDescription) self.handleError(errorHandler: errorHandler, error: NewsError.serializationError) } }.resume() } private func handleError(errorHandler: @escaping(_ error: Error) -> Void, error: Error) { DispatchQueue.main.async { errorHandler(error) } } }
[ -1 ]
4b776bdc86497a42b8b5bb6040dd260bc3b9fb90
b0783e81636c081a20260d90a5a6c08198ac58bd
/WaveLab/Extension/String.swift
7c5f02450c150ae26ad7bd1a8b640bb350f98178
[]
no_license
shiphaniran/hai-wavelab-ios-mobile
85e12abc4aef4377745639fd0455efa6aca622db
16d325c11df867a4abe56b915c3414189fe1b223
refs/heads/main
2023-07-14T02:53:00.455252
2021-08-16T14:40:16
2021-08-16T14:40:16
396,819,460
0
0
null
null
null
null
UTF-8
Swift
false
false
1,287
swift
// // String.swift // TaskTest // // Created by Hải Nguyễn on 14/08/2021. // import Foundation extension String { //MARK: CHECK STRING IS "" func isEmpty() -> Bool { if self.count > 0 { return true } return false } //MARK: COMPARE STRING IS EMAIL func isEmail() -> Bool { let checkKit = Trial.email.trial() return checkKit(self) } //MARK: ENCODE FOR STRING func encode() -> String { return self.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) ?? "" } //MARK: DECODE FOR STRING func decode() -> String { return self.removingPercentEncoding ?? "" } //MARK: COMPARE STRING IS PASSWORD func isPassword() -> Bool { let checkMin = Trial.length(.minimum, 6).trial() let checkMax = Trial.length(.maximum, 10).trial() if !checkMin(self) || !checkMax(self) { return false } return true } //MARK: COMPARE STRING IS PHONE func isPhone() -> Bool { let checkChar1 = Trial.format("^[0-9+]{0,1}+[0-9]{5,16}$").trial() if checkChar1(self) { return true } else { return false } } }
[ -1 ]
3044bc4cb4bfd770e4f6e9d0a075c24baab852ee
1e46259958ede3f2f15c16e6ee47ecc7c3b598ce
/TripManagement/CoreData/Repository/TripDataRepository.swift
d4bca1775e0902291f831171bf05033b17c0d9a2
[]
no_license
vaddisreeharsha/TripManagement
3442bdf678dee054366de056c13afa632f192ac5
4bbad3c9ed9653cf9d5b22b74750539f71246139
refs/heads/main
2023-08-18T19:05:03.701590
2021-09-27T22:59:43
2021-09-27T22:59:43
409,507,935
0
0
null
null
null
null
UTF-8
Swift
false
false
2,853
swift
// // TripDataRepository.swift // TripManagement // // Created by Virtual Dusk on 24/09/21. // import Foundation import CoreData struct DBManager{ func createTrip(trip : TripData){ let ctrip = Trip(context: PersistentStorage.shared.context) ctrip.tripid = trip.id ctrip.tripName = trip.name ctrip.startTime = trip.startTime ctrip.endTime = trip.endTime ctrip.haveLocations = []//addedLocation(location: location) PersistentStorage.shared.saveContext() } fileprivate func addLocation(location : LocationData) -> NSSet{ let cLocation = Location(context: PersistentStorage.shared.context) cLocation.longitude = location.longitude cLocation.latitude = location.latitude cLocation.accuracy = location.accuracy cLocation.timeStamp = location.timeStamp PersistentStorage.shared.saveContext() return [cLocation] } func getTripBy(tripId : UUID) -> Trip?{ let predicate = NSPredicate.init(format: "tripid == %@", tripId as CVarArg) let listOfTrips = fetchRecords(objectType: Trip.self, withPredicate: predicate) return listOfTrips?.first } func getAllTrips() -> [Trip]?{ let records = PersistentStorage.shared.fetchManagedObject(managedObject: Trip.self) guard records != nil, records?.count != 0 else { return nil } //var result = [TripData] return records } func updateTrip(tripId : UUID, endTime : Date?, location : LocationData){ guard let cTrip = getTripBy(tripId: tripId) else {return} let cLocation = addLocation(location: location) cTrip.endTime = endTime cTrip.addToHaveLocations(cLocation) PersistentStorage.shared.saveContext() } func createLocation(location : LocationData){ let cLocation = Location(context: PersistentStorage.shared.context) cLocation.longitude = location.longitude cLocation.latitude = location.latitude cLocation.accuracy = location.accuracy PersistentStorage.shared.saveContext() } func fetchRecords<T: NSManagedObject>(objectType : T.Type, withPredicate predicate: NSPredicate? = nil ) -> [T]?{ let entityName = String(describing: objectType) let fetchRequest = NSFetchRequest<NSFetchRequestResult>(entityName: entityName) fetchRequest.predicate = predicate fetchRequest.returnsObjectsAsFaults = false do { guard let result = try PersistentStorage.shared.context.fetch(fetchRequest) as? [T] else { return nil } return result } catch { print(error) } return nil } }
[ -1 ]
2afaa73ea400e849369319b3e1920b0d94591e5f
1864a531e955023eca4f45f2446e1c924791a324
/Sources/Playground/perlin.swift
ac1396570639f8d8ac1dd636af5ca7ba2b09416c
[]
no_license
nuclearace/playground
ae0d73d92eadd07d16019a508b7fe727dafb327d
05f9e4f1128607836d9e613101fbfda28e5661d2
refs/heads/master
2021-12-25T19:05:20.533080
2021-12-19T16:05:00
2021-12-19T16:05:00
147,242,105
0
0
null
null
null
null
UTF-8
Swift
false
false
2,905
swift
// // Created by Erik Little on 3/20/20. // import Foundation public struct Perlin { private static let permutation = [ 151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225, 140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10, 23, 190, 6, 148, 247, 120, 234, 75, 0, 26, 197, 62, 94, 252, 219, 203, 117, 35, 11, 32, 57, 177, 33, 88, 237, 149, 56, 87, 174, 20, 125, 136, 171, 168, 68, 175, 74, 165, 71, 134, 139, 48, 27, 166, 77, 146, 158, 231, 83, 111, 229, 122, 60, 211, 133, 230, 220, 105, 92, 41, 55, 46, 245, 40, 244, 102, 143, 54, 65, 25, 63, 161, 1, 216, 80, 73, 209, 76, 132, 187, 208, 89, 18, 169, 200, 196, 135, 130, 116, 188, 159, 86, 164, 100, 109, 198, 173, 186, 3, 64, 52, 217, 226, 250, 124, 123, 5, 202, 38, 147, 118, 126, 255, 82, 85, 212, 207, 206, 59, 227, 47, 16, 58, 17, 182, 189, 28, 42, 223, 183, 170, 213, 119, 248, 152, 2, 44, 154, 163, 70, 221, 153, 101, 155, 167, 43, 172, 9, 129, 22, 39, 253, 19, 98, 108, 110, 79, 113, 224, 232, 178, 185, 112, 104, 218, 246, 97, 228, 251, 34, 242, 193, 238, 210, 144, 12, 191, 179, 162, 241, 81, 51, 145, 235, 249, 14, 239, 107, 49, 192, 214, 31, 181, 199, 106, 157, 184, 84, 204, 176, 115, 121, 50, 45, 127, 4, 150, 254, 138, 236, 205, 93, 222, 114, 67, 29, 24, 72, 243, 141, 128, 195, 78, 66, 215, 61, 156, 180 ] private static let p = (0..<512).map({i -> Int in if i < 256 { return permutation[i] } else { return permutation[i - 256] } }) private static func fade(_ t: Double) -> Double { t * t * t * (t * (t * 6 - 15) + 10) } private static func lerp(_ t: Double, _ a: Double, _ b: Double) -> Double { a + t * (b - a) } private static func grad(_ hash: Int, _ x: Double, _ y: Double, _ z: Double) -> Double { let h = hash & 15 let u = h < 8 ? x : y let v = h < 4 ? y : h == 12 || h == 14 ? x : z return (h & 1 == 0 ? u : -u) + (h & 2 == 0 ? v : -v) } public static func noise(x: Double, y: Double, z: Double) -> Double { let xi = Int(x) & 255 let yi = Int(y) & 255 let zi = Int(z) & 255 let xx = x - floor(x) let yy = y - floor(y) let zz = z - floor(z) let u = fade(xx) let v = fade(yy) let w = fade(zz) let a = p[xi] + yi let aa = p[a] + zi let b = p[xi + 1] + yi let ba = p[b] + zi let ab = p[a + 1] + zi let bb = p[b + 1] + zi return lerp(w, lerp(v, lerp(u, grad(p[aa], xx, yy, zz), grad(p[ba], xx - 1, yy, zz)), lerp(u, grad(p[ab], xx, yy - 1, zz), grad(p[bb], xx - 1, yy - 1, zz))), lerp(v, lerp(u, grad(p[aa + 1], xx, yy, zz - 1), grad(p[ba + 1], xx - 1, yy, zz - 1)), lerp(u, grad(p[ab + 1], xx, yy - 1, zz - 1), grad(p[bb + 1], xx - 1, yy - 1, zz - 1)))) } }
[ -1 ]
a817259fc635af78126493492465593761e801c7
b49e5eb8e050305fb138829e7c95e71cdadf0f97
/GCSecurityApp/GCSecurityApp/Modules/ViewController.swift
569bbd2f8216dbdada82defe6fdcf966556d2212
[]
no_license
gmancoelho/GCSecurity
7c846c44b6c1b7d4783d3cb4f0692a19173045f1
779b458fac9bd1affde503a8d7f14485f7e7ed68
refs/heads/master
2021-09-19T18:49:39.314522
2018-07-30T20:32:50
2018-07-30T20:32:50
null
0
0
null
null
null
null
UTF-8
Swift
false
false
367
swift
// // ViewController.swift // GCSecurityApp // // Created by Guilherme Coelho on 30/07/18. // Copyright © 2018 DevForFun_Guilherme_Coelho. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } }
[ 325510, 324104, 240520, 316810, 329869, 319888, 317972, 316949, 245530, 318109, 324512, 190120, 316331, 324018, 316346, 244411, 111292, 294845, 219715, 323268, 323016, 326600, 312273, 316626, 146645, 310742, 313182, 354654, 326241, 321253, 317673, 312051, 313341 ]
01f0bda30ad42c3f594af4f2a7d117bb070005f9
8a8b1b29d192e05e72a63930c6645206be92dec8
/validation-test/compiler_crashers_fixed/26077-swift-diagnosticengine-emitdiagnostic.swift
e99452d714f938276cd9c2fe2179cb45c54520ec
[ "Apache-2.0", "Swift-exception" ]
permissive
ibejere/swift
c08fc8476c0f7fa829ba16429ac81403e81bb070
0794ecf5d9a23b7535270a61cea0a1eed1982134
refs/heads/master
2020-06-19T17:16:16.395895
2016-11-26T19:08:41
2016-11-26T19:08:41
74,845,952
0
1
null
2016-11-26T19:25:51
2016-11-26T19:25:50
null
UTF-8
Swift
false
false
438
swift
// This source file is part of the Swift.org open source project // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // RUN: not %target-swift-frontend %s -parse {{ case{ {{}}}} class A{ enum P{class case,
[ 74170, 74206, 74807, 74942, 74943, 74947, 74949, 74951, 74952, 74953, 74954, 74956, 74958, 74959, 74962, 74963, 74964, 74966, 74967, 74968, 74969, 74970, 74974, 74975, 74976, 74977, 74978, 74979, 74981, 74982, 74983, 74984, 74985, 74986, 74987, 74988, 74990, 74991, 74992, 74993, 74994, 74995, 74997, 75000, 75003, 75004, 75007, 75008, 75010, 75011, 75012, 75014, 75016, 75017, 75020, 75021, 75023, 75025, 75026, 75029, 75030, 75034, 75035, 75037, 75038, 75039, 75040, 75041, 75042, 75043, 75045, 75046, 75047, 75049, 75050, 75051, 75053, 75054, 75055, 75056, 75057, 75058, 75062, 75063, 75064, 75065, 75066, 75067, 75068, 75069, 75070, 75071, 75072, 75075, 75076, 75077, 75079, 75080, 75081, 75082, 75083, 75085, 75087, 75088, 75090, 75091, 75092, 75093, 75095, 75096, 75097, 75098, 75100, 75102, 75103, 75105, 75107, 75108, 75109, 75110, 75111, 75112, 75116, 75117, 75118, 75119, 75120, 75122, 75123, 75125, 75128, 75131, 75132, 75133, 75134, 75135, 75136, 75137, 75139, 75140, 75141, 75142, 75144, 75145, 75147, 75148, 75149, 75152, 75153, 75154, 75155, 75157, 75158, 75162, 75163, 75164, 75166, 75167, 75168, 75170, 75172, 75173, 75174, 75176, 75178, 75179, 75180, 75182, 75185, 75186, 75187, 75188, 75189, 75190, 75191, 75192, 75193, 75194, 75195, 75196, 75197, 75200, 75201, 75203, 75204, 75205, 75206, 75207, 75208, 75209, 75212, 75214, 75215, 75216, 75217, 75218, 75219, 75220, 75221, 75222, 75223, 75224, 75225, 75226, 75227, 75228, 75229, 75230, 75232, 75236, 75237, 75238, 75239, 75240, 75241, 75242, 75245, 75250, 75251, 75253, 75254, 75255, 75256, 75257, 75258, 75260, 75261, 75264, 75265, 75266, 75268, 75270, 75271, 75272, 75273, 75274, 75275, 75276, 75277, 75279, 75282, 75285, 75286, 75288, 75289, 75293, 75294, 75295, 75296, 75297, 75299, 75301, 75303, 75304, 75305, 75306, 75307, 75308, 75310, 75312, 75313, 75314, 75315, 75316, 75317, 75320, 75321, 75322, 75325, 75326, 75327, 75329, 75330, 75331, 75333, 75334, 75335, 75337, 75340, 75341, 75342, 75343, 75346, 75347, 75348, 75349, 75350, 75351, 75352, 75353, 75355, 75356, 75357, 75358, 75359, 75360, 75361, 75362, 75364, 75365, 75366, 75367, 75368, 75369, 75370, 75371, 75372, 75373, 75375, 75376, 75377, 75378, 75380, 75381, 75384, 75385, 75386, 75387, 75388, 75389, 75391, 75392, 75394, 75395, 75396, 75397, 75400, 75401, 75402, 75403, 75404, 75405, 75406, 75407, 75410, 75411, 75413, 75414, 75415, 75416, 75417, 75418, 75420, 75422, 75424, 75425, 75426, 75427, 75428, 75429, 75430, 75431, 75435, 75439, 75440, 75441, 75444, 75445, 75446, 75447, 75448, 75449, 75450, 75453, 75454, 75455, 75456, 75457, 75458, 75459, 75461, 75462, 75463, 75464, 75465, 75468, 75469, 75470, 75471, 75472, 75473, 75474, 75476, 75477, 75478, 75480, 75481, 75486, 75487, 75489, 75491, 75494, 75495, 75497, 75498, 75499, 75500, 75502, 75503, 75504, 75505, 75506, 75507, 75508, 75509, 75513, 75514, 75515, 75516, 75518, 75519, 75520, 75521, 75523, 75524, 75525, 75527, 75528, 75529, 75530, 75531, 75532, 75533, 75534, 75535, 75536, 75537, 75538, 75540, 75543, 75544, 75545, 75546, 75547, 75548, 75549, 75550, 75551, 75553, 75554, 75555, 75556, 75558, 75559, 75560, 75561, 75562, 75564, 75565, 75566, 75568, 75569, 75570, 75571, 75572, 75575, 75578, 75579, 75580, 75581, 75582, 75584, 75585, 75586, 75587, 75589, 75590, 75592, 75594, 75595, 75596, 75597, 75598, 75599, 75600, 75601, 75602, 75603, 75604, 75605, 75606, 75607, 75608, 75610, 75612, 75613, 75614, 75616, 75618, 75619, 75620, 75621, 75622, 75623, 75625, 75626, 75628, 75630, 75631, 75633, 75634, 75635, 75636, 75637, 75638, 75639, 75640, 75641, 75642, 75643, 75645, 75646, 75647, 75648, 75649, 75650, 75652, 75653, 75655, 75656, 75657, 75659, 75660, 75661, 75662, 75663, 75664, 75669, 75670, 75671, 75672, 75674, 75675, 75677, 75678, 75679, 75681, 75682, 75683, 75684, 75685, 75686, 75688, 75689, 75690, 75692, 75694, 75697, 75699, 75700, 75701, 75704, 75705, 75708, 75714, 75715, 75716, 75717, 75718, 75719, 75720, 75721, 75722, 75726, 75729, 75730, 75731, 75732, 75733, 75734, 75735, 75736, 75737, 75738, 75739, 75740, 75741, 75744, 75745, 75746, 75747, 75748, 75749, 75750, 75753, 75754, 75755, 75756, 75758, 75759, 75760, 75761, 75762, 75763, 75764, 75766, 75772, 75773, 75775, 75776, 75778, 75779, 75781, 75783, 75785, 75786, 75787, 75789, 75792, 75793, 75794, 75795, 75796, 75797, 75800, 75801, 75802, 75803, 75806, 75810, 75811, 75812, 75813, 75814, 75815, 75816, 75817, 75819, 75820, 75821, 75822, 75823, 75824, 75825, 75826, 75827, 75829, 75830, 75831, 75832, 75835, 75836, 75838, 75839, 75840, 75842, 75843, 75845, 75846, 75848, 75849, 75850, 75851, 75852, 75853, 75854, 75855, 75856, 75857, 75858, 75859, 75863, 75865, 75866, 75867, 75868, 75869, 75872, 75873, 75874, 75878, 75879, 75880, 75882, 75883, 75884, 75885, 75886, 75887, 75888, 75890, 75891, 75892, 75893, 75895, 75896, 75897, 75898, 75899, 75901, 75903, 75905, 75906, 75907, 75908, 75909, 75910, 75911, 75912, 75913, 75914, 75915, 75916, 75917, 75918, 75919, 75922, 75923, 75924, 75925, 75926, 75927, 75928, 75929, 75930, 75932, 75933, 75934, 75937, 75938, 75939, 75941, 75943, 75944, 75945, 75946, 75947, 75948, 75949, 75950, 75951, 75952, 75953, 75954, 75955, 75956, 75957, 75958, 75960, 75961, 75962, 75963, 75964, 75965, 75967, 75968, 75969, 75970, 75971, 75972, 75975, 75976, 75979, 75980, 75981, 75982, 75983, 75985, 75987, 75988, 75989, 75990, 75991, 75994, 75995, 75997, 75999, 76001, 76002, 76003, 76007, 76008, 76010, 76012, 76013, 76015, 76017, 76018, 76019, 76020, 76021, 76022, 76024, 76025, 76026, 76027, 76028, 76029, 76030, 76031, 76033, 76035, 76036, 76038, 76039, 76040, 76041, 76042, 76043, 76044, 76045, 76046, 76047, 76048, 76049, 76051, 76052, 76053, 76054, 76056, 76058, 76059, 76060, 76061, 76062, 76064, 76065, 76066, 76067, 76069, 76070, 76071, 76073, 76075, 76076, 76077, 76078, 76079, 76080, 76082, 76083, 76086, 76089, 76091, 76092, 76094, 76095, 76096, 76097, 76098, 76099, 76101, 76102, 76104, 76108, 76109, 76110, 76112, 76113, 76115, 76116, 76117, 76120, 76121, 76122, 76123, 76124, 76126, 76127, 76129, 76130, 76131, 76133, 76134, 76135, 76136, 76137, 76138, 76139, 76140, 76141, 76142, 76144, 76145, 76146, 76147, 76149, 76150, 76151, 76153, 76156, 76158, 76159, 76160, 76161, 76162, 76163, 76164, 76165, 76169, 76170, 76171, 76173, 76174, 76175, 76176, 76177, 76179, 76180, 76181, 76182, 76183, 76184, 76185, 76186, 76187, 76192, 76193, 76194, 76195, 76196, 76197, 76198, 76199, 76200, 76201, 76202, 76203, 76205, 76208, 76210, 76212, 76213, 76215, 76216, 76218, 76219, 76220, 76221, 76222, 76223, 76224, 76225, 76226, 76227, 76228, 76229, 76232, 76233, 76234, 76235, 76237, 76238, 76239, 76240, 76241, 76242, 76243, 76244, 76247, 76250, 76252, 76253, 76254, 76255, 76256, 76257, 76261, 76262, 76263, 76264, 76266, 76267, 76268, 76270, 76272, 76275, 76276, 76278, 76279, 76281, 76284, 76286, 76287, 76288, 76290, 76291, 76293, 76294, 76295, 76296, 76297, 76298, 76300, 76301, 76303, 76304, 76305, 76306, 76307, 76308, 76309, 76310, 76311, 76313, 76314, 76315, 76316, 76318, 76319, 76320, 76323, 76324, 76326, 76328, 76329, 76330, 76331, 76332, 76333, 76334, 76335, 76336, 76337, 76338, 76339, 76341, 76342, 76344, 76347, 76348, 76351, 76352, 76354, 76356, 76357, 76358, 76359, 76360, 76362, 76365, 76368, 76369, 76371, 76373, 76375, 76376, 76381, 76382, 76383, 76384, 76385, 76386, 76388, 76389, 76392, 76393, 76395, 76396, 76398, 76399, 76401, 76402, 76403, 76404, 76405, 76408, 76409, 76411, 76412, 76413, 76414, 76415, 76418, 76420, 76422, 76423, 76424, 76425, 76426, 76427, 76428, 76429, 76431, 76432, 76434, 76435, 76437, 76438, 76439, 76441, 76442, 76445, 76446, 76447, 76448, 76449, 76451, 76452, 76453, 76454, 76455, 76457, 76459, 76460, 76462, 76463, 76464, 76466, 76467, 76468, 76469, 76470, 76471, 76472, 76473, 76475, 76476, 76477, 76480, 76481, 76482, 76483, 76485, 76489, 76490, 76491, 76492, 76493, 76494, 76497, 76498, 76499, 76500, 76503, 76504, 76505, 76506, 76507, 76508, 76509, 76510, 76511, 76512, 76513, 76514, 76515, 76516, 76519, 76521, 76522, 76523, 76524, 76525, 76526, 76527, 76528, 76529, 76530, 76531, 76532, 76534, 76535, 76536, 76537, 76539, 76540, 76542, 76543, 76544, 76545, 76546, 76547, 76548, 76549, 76550, 76552, 76554, 76555, 76557, 76558, 76559, 76560, 76561, 76564, 76566, 76567, 76568, 76569, 76572, 76573, 76575, 76576, 76577, 76578, 76579, 76581, 76582, 76584, 76587, 76590, 76591, 76592, 76593, 76595, 76596, 76597, 76598, 76599, 76600, 76601, 76604, 76605, 76607, 76609, 76611, 76612, 76613, 76614, 76615, 76616, 76617, 76618, 76621, 76623, 76624, 76625, 76628, 76630, 76631, 76633, 76634, 76636, 76637, 76638, 76640, 76641, 76642, 76643, 76644, 76645, 76647, 76649, 76651, 76657, 76659, 76660, 76663, 76665, 76666, 76667, 76668, 76669, 76670, 76672, 76673, 76674, 76675, 76676, 76683, 76685, 76687, 76688, 76690, 76691, 76692, 76694, 76695, 76696, 76697, 76698, 76699, 76702, 76703, 76704, 76705, 76706, 76707, 76708, 76709, 76710, 76711, 76712, 76713, 76714, 76715, 76716, 76717, 76718, 76719, 76722, 76723, 76725, 76726, 76727, 76728, 76729, 76731, 76733, 76734, 76735, 76736, 76737, 76738, 76739, 76740, 76742, 76743, 76744, 76745, 76746, 76748, 76749, 76751, 76752, 76753, 76755, 76757, 76758, 76759, 76761, 76763, 76764, 76765, 76766, 76768, 76770, 76771, 76772, 76773, 76774, 76776, 76777, 76778, 76780, 76781, 76783, 76785, 76786, 76787, 76788, 76789, 76790, 76791, 76794, 76795, 76797, 76801, 76802, 76803, 76804, 76805, 76806, 76808, 76809, 76810, 76811, 76812, 76813, 76815, 76816, 76817, 76818, 76819, 76820, 76821, 76822, 76823, 76824, 76825, 76826, 76827, 76828, 76829, 76831, 76832, 76833, 76835, 76836, 76838, 76841, 76842, 76844, 76847, 76849, 76851, 76852, 76853, 76854, 76856, 76858, 76859, 76860, 76862, 76863, 76865, 76866, 76871, 76872, 76873, 76874, 76875, 76876, 76877, 76878, 76882, 76884, 76885, 76887, 76888, 76889, 76891, 76893, 76895, 76896, 76897, 76898, 76899, 76900, 76903, 76904, 76905, 76906, 76907, 76909, 76910, 76911, 76912, 76913, 76914, 76915, 76916, 76918, 76919, 76921, 76922, 76923, 76925, 76926, 76927, 76928, 76929, 76930, 76931, 76932, 76933, 76934, 76937, 76938, 76940, 76941, 76942, 76943, 76944, 76945, 76947, 76948, 76949, 76950, 76952, 76953, 76954, 76955, 76956, 76957, 76959, 76960, 76962, 76964, 76965, 76966, 76968, 76969, 76970, 76971, 76972, 76973, 76974, 76975, 76976, 76978, 76979, 76981, 76983, 76984, 76987, 76989, 76991, 76992, 76993, 76994, 76995, 76997, 76999, 77000, 77001, 77002, 77003, 77006, 77008, 77009, 77010, 77011, 77012, 77013, 77014, 77015, 77018, 77020, 77021, 77022, 77023, 77025, 77026, 77029, 77030, 77031, 77032, 77033, 77034, 77035, 77036, 77038, 77039, 77041, 77042, 77043, 77044, 77045, 77047, 77048, 77049, 77050, 77051, 77052, 77054, 77055, 77056, 77059, 77060, 77061, 77062, 77063, 77064, 77065, 77066, 77067, 77068, 77071, 77074, 77075, 77076, 77077, 77082, 77083, 77084, 77087, 77088, 77090, 77092, 77093, 77094, 77095, 77096, 77097, 77098, 77100, 77101, 77103, 77106, 77107, 77110, 77111, 77112, 77114, 77115, 77116, 77117, 77118, 77120, 77121, 77124, 77125, 77131, 77132, 77135, 77136, 77138, 77140, 77141, 77143, 77144, 77145, 77146, 77147, 77148, 77150, 77151, 77154, 77155, 77158, 77159, 77160, 77161, 77162, 77163, 77164, 77165, 77169, 77170, 77172, 77173, 77174, 77175, 77176, 77177, 77179, 77180, 77181, 77182, 77183, 77184, 77186, 77187, 77189, 77190, 77191, 77192, 77194, 77196, 77198, 77200, 77201, 77202, 77203, 77208, 77209, 77210, 77211, 77212, 77213, 77214, 77216, 77220, 77221, 77223, 77224, 77225, 77226, 77227, 77229, 77231, 77232, 77233, 77235, 77236, 77238, 77239, 77240, 77241, 77242, 77244, 77245, 77248, 77249, 77252, 77254, 77255, 77256, 77257, 77258, 77259, 77260, 77263, 77266, 77267, 77268, 77269, 77270, 77272, 77273, 77274, 77275, 77276, 77277, 77278, 77281, 77282, 77285, 77286, 77287, 77290, 77293, 77294, 77295, 77297, 77298, 77299, 77300, 77302, 77303, 77305, 77306, 77307, 77311, 77314, 77315, 77316, 77317, 77318, 77320, 77321, 77322, 77323, 77325, 77327, 77328, 77329, 77330, 77331, 77332, 77333, 77334, 77335, 77336, 77337, 77338, 77339, 77340, 77341, 77342, 77344, 77345, 77347, 77348, 77351, 77352, 77355, 77358, 77359, 77360, 77361, 77362, 77363, 77364, 77366, 77367, 77368, 77369, 77370, 77374, 77375, 77377, 77379, 77380, 77381, 77382, 77384, 77385, 77386, 77387, 77389, 77390, 77391, 77392, 77393, 77395, 77396, 77398, 77400, 77402, 77405, 77406, 77408, 77409, 77411, 77413, 77414, 77415, 77416, 77417, 77419, 77420, 77421, 77422, 77423, 77424, 77425, 77426, 77427, 77428, 77429, 77430, 77431, 77432, 77433, 77434, 77435, 77436, 77439, 77440, 77441, 77442, 77443, 77444, 77445, 77446, 77447, 77449, 77450, 77451, 77453, 77455, 77457, 77459, 77460, 77461, 77462, 77464, 77465, 77466, 77467, 77469, 77471, 77472, 77473, 77476, 77478, 77479, 77480, 77483, 77484, 77486, 77487, 77488, 77489, 77490, 77491, 77492, 77493, 77494, 77495, 77498, 77499, 77501, 77504, 77505, 77506, 77508, 77509, 77510, 77511, 77512, 77514, 77515, 77517, 77518, 77520, 77521, 77522, 77523, 77524, 77525, 77527, 77530, 77533, 77534, 77535, 77536, 77537, 77538, 77540, 77541, 77543, 77544, 77545, 77546, 77547, 77549, 77550, 77551, 77552, 77553, 77554, 77556, 77557, 77558, 77559, 77560, 77561, 77562, 77563, 77564, 77566, 77567, 77568, 77569, 77571, 77572, 77575, 77577, 77578, 77579, 77580, 77581, 77582, 77583, 77584, 77585, 77586, 77587, 77588, 77589, 77591, 77592, 77593, 77594, 77597, 77599, 77600, 77601, 77603, 77604, 77606, 77608, 77609, 77610, 77611, 77612, 77613, 77615, 77617, 77618, 77619, 77620, 77621, 77622, 77623, 77624, 77626, 77627, 77628, 77630, 77631, 77632, 77633, 77634, 77635, 77636, 77638, 77639, 77640, 77642, 77643, 77645, 77646, 77648, 77649, 77650, 77651, 77653, 77655, 77659, 77661, 77662, 77663, 77664, 77666, 77667, 77669, 77670, 77672, 77673, 77674, 77676, 77678, 77679, 77680, 77681, 77684, 77688, 77690, 77691, 77692, 77693, 77694, 77696, 77698, 77700, 77701, 77702, 77704, 77706, 77707, 77708, 77709, 77710, 77712, 77713, 77714, 77716, 77717, 77718, 77719, 77720, 77721, 77722, 77723, 77727, 77728, 77730, 77731, 77732, 77733, 77734, 77735, 77737, 77738, 77740, 77741, 77743, 77744, 77747, 77749, 77750, 77751, 77752, 77753, 77755, 77757, 77758, 77759, 77761, 77762, 77763, 77764, 77766, 77767, 77768, 77769, 77770, 77772, 77773, 77774, 77775, 77777, 77778, 77779, 77781, 77782, 77783, 77784, 77785, 77786, 77787, 77788, 77789, 77790, 77791, 77792, 77793, 77794, 77795, 77796, 77797, 77799, 77801, 77802, 77805, 77806, 77807, 77808, 77809, 77810, 77811, 77812, 77813, 77814, 77815, 77817, 77818, 77819, 77820, 77821, 77822, 77826, 77828, 77829, 77830, 77831, 77832, 77834, 77835, 77836, 77837, 77838, 77839, 77840, 77842, 77843, 77847, 77848, 77849, 77850, 77852, 77854, 77857, 77859, 77860, 77861, 77862, 77863, 77864, 77868, 77869, 77870, 77871, 77872, 77873, 77874, 77875, 77876, 77877, 77878, 77879, 77880, 77882, 77883, 77884, 77885, 77886, 77888, 77890, 77891, 77892, 77894, 77895, 77896, 77897, 77898, 77899, 77900, 77903, 77904, 77906, 77907, 77909, 77910, 77912, 77913, 77914, 77915, 77916, 77917, 77918, 77920, 77921, 77922, 77923, 77925, 77926, 77929, 77930, 77931, 77932, 77934, 77936, 77937, 77938, 77939, 77941, 77942, 77943, 77944, 77945, 77948, 77949, 77950, 77951, 77952, 77954, 77955, 77956, 77957, 77958, 77959, 77960, 77961, 77962, 77964, 77965, 77966, 77969, 77971, 77973, 77974, 77975, 77976, 77977, 77978, 77979, 77980, 77981, 77982, 77983, 77984, 77986, 77987, 77988, 77990, 77991, 77993, 77995, 77996, 77997, 77999, 78001, 78002, 78003, 78005, 78007, 78008, 78009, 78011, 78014, 78015, 78016, 78019, 78021, 78022, 78023, 78024, 78026, 78027, 78028, 78030, 78031, 78032, 78033, 78034, 78035, 78037, 78038, 78039, 78040, 78041, 78042, 78045, 78046, 78048, 78053, 78054, 78055, 78056, 78057, 78058, 78061, 78062, 78063, 78065, 78066, 78067, 78068, 78070, 78071, 78072, 78074, 78076, 78077, 78078, 78079, 78080, 78082, 78083, 78084, 78085, 78086, 78087, 78088, 78089, 78090, 78091, 78092, 78093, 78094, 78095, 78096, 78098, 78099, 78100, 78101, 78102, 78104, 78106, 78109, 78110, 78111, 78112, 78114, 78115, 78116, 78117, 78118, 78119, 78121, 78122, 78123, 78124, 78126, 78127, 78129, 78130, 78131, 78132, 78133, 78134, 78136, 78137, 78138, 78139, 78140, 78141, 78143, 78144, 78145, 78146, 78147, 78148, 78149, 78150, 78152, 78153, 78154, 78155, 78156, 78157, 78158, 78160, 78161, 78162, 78163, 78164, 78166, 78168, 78169, 78170, 78171, 78172, 78173, 78174, 78176, 78177, 78179, 78181, 78183, 78184, 78185, 78186, 78187, 78188, 78189, 78190, 78191, 78192, 78194, 78195, 78196, 78197, 78198, 78199, 78200, 78202, 78204, 78205, 78206, 78207, 78208, 78212, 78213, 78214, 78215, 78218, 78219, 78220, 78221, 78222, 78223, 78224, 78225, 78226, 78228, 78229, 78230, 78231, 78232, 78234, 78236, 78237, 78239, 78240, 78241, 78243, 78244, 78246, 78247, 78248, 78249, 78250, 78251, 78252, 78253, 78254, 78255, 78256, 78257, 78258, 78259, 78261, 78262, 78263, 78264, 78265, 78266, 78267, 78268, 78271, 78275, 78276, 78277, 78278, 78279, 78280, 78281, 78282, 78285, 78286, 78287, 78288, 78289, 78291, 78292, 78295, 78296, 78297, 78298, 78299, 78300, 78301, 78304, 78305, 78307, 78310, 78311, 78312, 78315, 78316, 78317, 78318, 78319, 78320, 78322, 78323, 78326, 78327, 78333, 78334, 78335, 78337, 78338, 78339, 78341, 78342, 78343, 78345, 78346, 78347, 78349, 78352, 78354, 78355, 78356, 78357, 78358, 78359, 78360, 78361, 78362, 78364, 78365, 78366, 78367, 78369, 78370, 78372, 78373, 78374, 78375, 78376, 78377, 78378, 78379, 78380, 78381, 78382, 78383, 78384, 78385, 78387, 78389, 78390, 78394, 78397, 78398, 78400, 78402, 78404, 78405, 78407, 78410, 78412, 78413, 78414, 78415, 78416, 78418, 78419, 78420, 78422, 78423, 78424, 78425, 78426, 78428, 78429, 78432, 78435, 78436, 78437, 78438, 78440, 78441, 78443, 78444, 78445, 78446, 78447, 78448, 78450, 78451, 78453, 78456, 78457, 78458, 78459, 78460, 78461, 78462, 78463, 78464, 78465, 78466, 78467, 78468, 78471, 78472, 78473, 78474, 78476, 78478, 78480, 78482, 78483, 78484, 78485, 78486, 78487, 78490, 78491, 78493, 78494, 78497, 78498, 78499, 78500, 78501, 78503, 78504, 78510, 78511, 78512, 78513, 78514, 78515, 78516, 78519, 78520, 78521, 78522, 78523, 78524, 78526, 78527, 78528, 78529, 78530, 78531, 78533, 78534, 78536, 78537, 78539, 78540, 78541, 78542, 78545, 78547, 78548, 78549, 78550, 78551, 78553, 78554, 78555, 78556, 78557, 78560, 78561, 78562, 78563, 78564, 78565, 78566, 78567, 78568, 78569, 78570, 78573, 78574, 78575, 78579, 78580, 78581, 78584, 78587, 78589, 78591, 78592, 78593, 78594, 78598, 78600, 78602, 78603, 78606, 78607, 78608, 78609, 78610, 78611, 78612, 78613, 78615, 78616, 78617, 78618, 78619, 78620, 78623, 78624, 78625, 78627, 78628, 78629, 78630, 78632, 78634, 78635, 78636, 78637, 78638, 78639, 78640, 78641, 78642, 78644, 78645, 78646, 78647, 78648, 78650, 78652, 78654, 78655, 78656, 78657, 78658, 78661, 78662, 78663, 78665, 78667, 78668, 78669, 78670, 78671, 78673, 78675, 78678, 78679, 78681, 78682, 78683, 78684, 78685, 78686, 78688, 78689, 78691, 78692, 78694, 78695, 78696, 78697, 78699, 78700, 78701, 78702, 78703, 78704, 78709, 78710, 78711, 78712, 78713, 78714, 78715, 78716, 78717, 78718, 78719, 78720, 78721, 78723, 78724, 78725, 78727, 78728, 78729, 78730, 78732, 78733, 78734, 78735, 78736, 78738, 78739, 78740, 78741, 78742, 78743, 78744, 78746, 78748, 78749, 78750, 78752, 78753, 78755, 78756, 78757, 78758, 78759, 78760, 78761, 78762, 78763, 78764, 78766, 78767, 78768, 78769, 78770, 78772, 78774, 78776, 78777, 78778, 78780, 78781, 78783, 78786, 78787, 78788, 78789, 78792, 78793, 78794, 78795, 78796, 78797, 78798, 78800, 78801, 78802, 78803, 78806, 78807, 78808, 78809, 78810, 78811, 78812, 78813, 78814, 78815, 78817, 78818, 78819, 78820, 78823, 78824, 78828, 78829, 78831, 78832, 78833, 78834, 78836, 78838, 78840, 78841, 78842, 78844, 78845, 78846, 78847, 78848, 78849, 78851, 78852, 78856, 78857, 78858, 78859, 78860, 78861, 78862, 78863, 78864, 78866, 78868, 78870, 78872, 78873, 78874, 78875, 78877, 78878, 78879, 78880, 78881, 78882, 78883, 78884, 78886, 78887, 78888, 78889, 78890, 78892, 78893, 78894, 78895, 78897, 78900, 78901, 78904, 78905, 78906, 78907, 78908, 78909, 78910, 78912, 78913, 78914, 78918, 78920, 78922, 78924, 78925, 78926, 78927, 78928, 78930, 78931, 78932, 78933, 78935, 78936, 78937, 78939, 78941, 78942, 78943, 78944, 78945, 78946, 78947, 78948, 78952, 78953, 78954, 78955, 78956, 78958, 78961, 78962, 78963, 78964, 78965, 78966, 78968, 78971, 78972, 78973, 78974, 78975, 78976, 78977, 78978, 78979, 78981, 78982, 78983, 78985, 78987, 78988, 78989, 78990, 78991, 78992, 78994, 78995, 78996, 78997, 78999, 79001, 79005, 79007, 79008, 79009, 79010, 79011, 79013, 79014, 79015, 79016, 79017, 79018, 79019, 79021, 79022, 79023, 79024, 79025, 79026, 79027, 79028, 79030, 79031, 79033, 79034, 79035, 79036, 79037, 79038, 79040, 79041, 79042, 79043, 79044, 79045, 79046, 79047, 79048, 79049, 79050, 79051, 79054, 79055, 79057, 79059, 79060, 79061, 79063, 79064, 79065, 79067, 79069, 79070, 79071, 79075, 79077, 79078, 79080, 79081, 79082, 79083, 79084, 79085, 79086, 79089, 79090, 79091, 79092, 79093, 79094, 79096, 79097, 79099, 79100, 79102, 79103, 79104, 79105, 79106, 79107, 79108, 79110, 79112, 79113, 79114, 79115, 79116, 79117, 79119, 79121, 79122, 79123, 79125, 79126, 79127, 79128, 79130, 79131, 79133, 79134, 79137, 79138, 79139, 79140, 79142, 79145, 79146, 79147, 79148, 79152, 79153, 79154, 79155, 79156, 79157, 79158, 79159, 79160, 79161, 79162, 79163, 79164, 79165, 79167, 79170, 79171, 79172, 79173, 79175, 79177, 79178, 79179, 79180, 79181, 79182, 79183, 79184, 79185, 79186, 79187, 79188, 79189, 79191, 79192, 79193, 79196, 79197, 79198, 79201, 79202, 79203, 79204, 79207, 79208, 79210, 79212, 79213, 79214, 79215, 79217, 79218, 79219, 79220, 79221, 79222, 79223, 79224, 79225, 79228, 79229, 79231, 79232, 79233, 79234, 79235, 79237, 79238, 79239, 79240, 79241, 79242, 79244, 79245, 79247, 79248, 79249, 79250, 79252, 79253, 79255, 79256, 79258, 79259, 79260, 79262, 79263, 79264, 79266, 79268, 79269, 79271, 79272, 79275, 79276, 79277, 79278, 79279, 79281, 79283, 79284, 79285, 79286, 79287, 79288, 79289, 79290, 79291, 79292, 79293, 79294, 79295, 79296, 79299, 79300, 79301, 79304, 79305, 79306, 79307, 79308, 79310, 79311, 79312, 79313, 79314, 79315, 79316, 79318, 79319, 79322, 79324, 79325, 79327, 79328, 79329, 79330, 79331, 79332, 79334, 79336, 79338, 79339, 79340, 79342, 79344, 79345, 79346, 79347, 79348, 79353, 79354, 79356, 79357, 79358, 79359, 79360, 79361, 79362, 79366, 79369, 79370, 79371, 79372, 79373, 79374, 79375, 79377, 79383, 79385, 79387, 79388, 79389, 79390, 79391, 79394, 79395, 79397, 79398, 79399, 79400, 79401, 79402, 79403, 79404, 79406, 79407, 79408, 79409, 79410, 79412, 79413, 79416, 79417, 79418, 79419, 79420, 79421, 79422, 79423, 79425, 79426, 79427, 79428, 79429, 79430, 79431, 79432, 79433, 79436, 79438, 79439, 79440, 79442, 79444, 79445, 79447, 79449, 79450, 79451, 79452, 79454, 79455, 79457, 79459, 79460, 79461, 79462, 79463, 79464, 79466, 79467, 79468, 79469, 79471, 79472, 79473, 79474, 79477, 79478, 79479, 79480, 79481, 79482, 79483, 79484, 79485, 79491, 79492, 79493, 79494, 79496, 79497, 79498, 79499, 79500, 79502, 79505, 79506, 79508, 79509, 79510, 79513, 79514, 79515, 79517, 79518, 79519, 79520, 79521, 79522, 79523, 79524, 79525, 79526, 79527, 79528, 79529, 79532, 79533, 79534, 79535, 79536, 79537, 79538, 79539, 79540, 79541, 79542, 79543, 79544, 79547, 79548, 79549, 79550, 79551, 79552, 79553, 79555, 79556, 79557, 79558, 79561, 79562, 79563, 79564, 79566, 79567, 79569, 79570, 79572, 79573, 79574, 79577, 79578, 79582, 79583, 79585, 79586, 79588, 79591, 79594, 79595, 79596, 79598, 79599, 79600, 79601, 79602, 79605, 79606, 79608, 79609, 79610, 79611, 79613, 79615, 79616, 79617, 79618, 79619, 79620, 79621, 79622, 79623, 79624, 79625, 79626, 79628, 79629, 79631, 79632, 79633, 79634, 79636, 79637, 79638, 79639, 79640, 79641, 79642, 79644, 79645, 79649, 79650, 79651, 79655, 79656, 79657, 79658, 79660, 79661, 79662, 79664, 79665, 79666, 79667, 79668, 79669, 79670, 79672, 79673, 79674, 79675, 79676, 79677, 79678, 79680, 79681, 79683, 79686, 79687, 79688, 79689, 79692, 79693, 79694, 79695, 79697, 79698, 79699, 79700, 79701, 79704, 79705, 79706, 79707, 79708, 79709, 79710, 79711, 79712, 79713, 79716, 79717, 79718, 79719, 79720, 79722, 79723, 79724, 79725, 79726, 79727, 79728, 79729, 79732, 79733, 79734, 79735, 79736, 79739, 79740, 79741, 79742, 79743, 79747, 79749, 79750, 79751, 79753, 79755, 79757, 79759, 79760, 79761, 79762, 79763, 79764, 79765, 79766, 79767, 79768, 79769, 79770, 79772, 79774, 79775, 79777, 79778, 79779, 79780, 79781, 79782, 79783, 79784, 79785, 79786, 79787, 79788, 79789, 79790, 79791, 79793, 79795, 79796, 79797, 79798, 79799, 79800, 79801, 79804, 79805, 79807, 79808, 79810, 79811, 79812, 79813, 79814, 79815, 79816, 79817, 79818, 79819, 79820, 79821, 79822, 79824, 79825, 79826, 79827, 79828, 79829, 79831, 79833, 79835, 79836, 79838, 79839, 79840, 79842, 79843, 79844, 79845, 79846, 79847, 79849, 79851, 79855, 79856, 79857, 79858, 79861, 79863, 79864, 79865, 79867, 79868, 79869, 79870, 79871, 79872, 79873, 79874, 79875, 79876, 79877, 79878, 79879, 79880, 79881, 79882, 79883, 79884, 79885, 79886, 79888, 79889, 79891, 79892, 79893, 79894, 79895, 79896, 79897, 79898, 79900, 79901, 79904, 79905, 79907, 79908, 79909, 79910, 79911, 79912, 79913, 79914, 79918, 79919, 79920, 79922, 79923, 79924, 79926, 79928, 79929, 79930, 79931, 79932, 79934, 79935, 79936, 79937, 79938, 79939, 79941, 79943, 79944, 79946, 79947, 79948, 79949, 79950, 79951, 79952, 79953, 79955, 79957, 79958, 79960, 79962, 79963, 79966, 79967, 79968, 79969, 79971, 79972, 79973, 79974, 79975, 79976, 79980, 79981, 79982, 79983, 79984, 79985, 79986, 79987, 79988, 79989, 79990, 79991, 79994, 79995, 79997, 79998, 79999, 80000, 80002, 80003, 80005, 80007, 80009, 80010, 80011, 80013, 80015, 80016, 80017, 80019, 80020, 80021, 80022, 80024, 80026, 80028, 80029, 80030, 80031, 80033, 80034, 80036, 80037, 80039, 80042, 80043, 80044, 80045, 80046, 80047, 80048, 80049, 80050, 80051, 80052, 80054, 80055, 80056, 80057, 80058, 80060, 80061, 80062, 80063, 80064, 80065, 80066, 80067, 80070, 80072, 80073, 80074, 80075, 80077, 80078, 80080, 80081, 80082, 80083, 80085, 80086, 80087, 80089, 80092, 80093, 80095, 80096, 80098, 80099, 80100, 80103, 80106, 80108, 80109, 80110, 80111, 80114, 80115, 80116, 80119, 80120, 80121, 80122, 80123, 80124, 80125, 80126, 80127, 80128, 80129, 80130, 80131, 80133, 80134, 80135, 80137, 80138, 80139, 80140, 80141, 80142, 80144, 80145, 80146, 80147, 80148, 80149, 80150, 80151, 80152, 80153, 80154, 80155, 80156, 80157, 80158, 80159, 80160, 80162, 80163, 80164, 80165, 80166, 80167, 80168, 80170, 80173, 80174, 80175, 80176, 80178, 80179, 80180, 80181, 80182, 80183, 80184, 80186, 80187, 80189, 80190, 80191, 80192, 80193, 80194, 80195, 80197, 80199, 80200, 80201, 80203, 80205, 80206, 80208, 80210, 80211, 80212, 80213, 80214, 80215, 80216, 80218, 80219, 80220, 80221, 80222, 80223, 80225, 80226, 80227, 80228, 80229, 80230, 80231, 80232, 80233, 80234, 80235, 80237, 80238, 80239, 80242, 80243, 80244, 80246, 80248, 80249, 80252, 80253, 80255, 80258, 80259, 80260, 80263, 80264, 80266, 80267, 80268, 80270, 80272, 80273, 80274, 80275, 80276, 80280, 80282, 80283, 80284, 80285, 80286, 80290, 80291, 80292, 80294, 80295, 80296, 80297, 80299, 80300, 80301, 80303, 80306, 80308, 80309, 80311, 80312, 80313, 80314, 80315, 80317, 80318, 80319, 80320, 80321, 80323, 80324, 80325, 80326, 80329, 80330, 80332, 80333, 80335, 80337, 80338, 80339, 80340, 80341, 80342, 80343, 145878, 80346, 80347, 80348, 80349, 80350, 80351, 80353, 80354, 80355, 80356, 80358, 80362, 80363, 80364, 80366, 80367, 80368, 80369, 80370, 80372, 80373, 80374, 80375, 80376, 80377, 80380, 80381, 80382, 80383, 80384, 80388, 80389, 80390, 80394, 80395, 80397, 80399, 80401, 80404, 80407, 80408, 80409, 80410, 80412, 80413, 80414, 80415, 80417, 80418, 80420, 80421, 80422, 80423, 80425, 80426, 80427, 80429, 80430, 80431, 80432, 80433, 80434, 80437, 80438, 80439, 80440, 80441, 80444, 80445, 80447, 80449, 80450, 80451, 80452, 80453, 80455, 80456, 80457, 80458, 80460, 80462, 80464, 80465, 80466, 80467, 80471, 80472, 80474, 80477, 80478, 80479, 80480, 80481, 80483, 80484, 80485, 80487, 80488, 80490, 80491, 80492, 80493, 80495, 80496, 80497, 80498, 80499, 80500, 80501, 80502, 80503, 80504, 80505, 80506, 80507, 80508, 80509, 80510, 80511, 80512, 80516, 80519, 80520, 80521, 80522, 80523, 80524, 80525, 80526, 80527, 80528, 80529, 80530, 80531, 80532, 80533, 80535, 80536, 80537, 80539, 80540, 80541, 80543, 80545, 80548, 80549, 80550, 80551, 80552, 80554, 80555, 80556, 80557, 80558, 80559, 80560, 80561, 80563, 80565, 80568, 80570, 80571, 80572, 80573, 80574, 80575, 80576, 80577, 80579, 80581, 80582, 80583, 80584, 80585, 80586, 80588, 80589, 80591, 80592, 80593, 80594, 80597, 80598, 80599, 80600, 80602, 80605, 80606, 80607, 87746, 88094, 88115, 88256, 88631, 88664, 88710, 88766, 88776, 88778, 88856, 88857, 88858, 88859, 88860, 88862, 88863, 88864, 88868, 88869, 88870, 88871, 88873, 88874, 88875, 88876, 88877, 88878, 88880, 88881, 88882, 88883, 88884, 88886, 88887, 88888, 88890, 88891, 88892, 88893, 88894, 88895, 88897, 88898, 88900, 88901, 88902, 88903, 88904, 88905, 88906, 88907, 88908, 88909, 88911, 88912, 88913, 88914, 88915, 88917, 88918, 88919, 88921, 88922, 88923, 88924, 88925, 91280, 91314, 91316, 91317, 91351, 91362, 91645, 91646, 91647, 91648, 91649, 91650, 91651, 91653, 91654, 91656, 91657, 91658, 91659, 91660, 91661, 91662, 91663, 91665, 91669, 91670, 91671, 91672, 91673, 91674, 91675, 91677, 91678, 91679, 91681, 91682, 91683, 91684, 91685, 91686, 91688, 91690, 91691, 91694, 91695, 91698, 91699, 91701, 91702, 91703, 91704, 91705, 91706, 91707, 91708, 91709, 91711, 91712, 91713, 91714, 91715, 91716, 91717, 91718, 91719, 91720, 91721, 91722, 91724, 91725, 91726, 91728, 91729, 91730, 91731, 91732, 91733, 91734, 91735, 91736, 91737, 91738, 91739, 91740, 91741, 91742, 91743, 91744, 91745, 91746, 91747, 91748, 91749, 91751, 91752, 91753, 91754, 91755, 91756, 91757, 91758, 91759, 91760, 91761, 91762, 91764, 91765, 91766, 91767, 91768, 91769, 91770, 91771, 91772, 91773, 91774, 91775, 91776, 91777, 91778, 91779, 91780, 91781, 91782, 91783, 91784, 91785, 91787, 91790, 91792, 91794, 91795, 91796, 91799, 91800, 91801, 91802, 91803, 91804, 91805, 91806, 91808, 91809, 91810, 91811, 91814, 91815, 91816, 91817, 91818, 91819, 91820, 91821, 91822, 91823, 91825, 91827, 91828, 91829, 91830, 91831, 91832, 91833, 91834, 91835, 91837, 91840, 91842, 91843, 91844, 91846, 91847, 91848, 91850, 91852, 91853, 91854, 91856, 91858, 91859, 91860, 91862, 91863, 91865, 91866, 91867, 91868, 91869, 91870, 91871, 91872, 91873, 91874, 91875, 91876, 91877, 91878, 91880, 91881, 91883, 91884, 91885, 91886, 91887, 91888, 91889, 91891, 91892, 91893, 91894, 91895, 91896, 91897, 91898, 91899, 91900, 91901, 91902, 91903, 91904, 91905, 91906, 91907, 91908, 91909, 91911, 91915, 91916, 91917, 91918, 91919, 91920, 91922, 91927, 91928, 91929, 91930, 91931, 91932, 91933, 91934, 91935, 91936, 91937, 91939, 91940, 91941, 91942, 91943, 91944, 91945, 91946, 91947, 91948, 91949, 91950, 91951, 91953, 91956, 91957, 91959, 91960, 91962, 91964, 91965, 91966, 91967, 91970, 91971, 91973, 91974, 91975, 91976, 91978, 91980, 91981, 91982, 91983, 91984, 91987, 91988, 91989, 91990, 91992, 91993, 91995, 91996, 91997, 91999, 92001, 92002, 92003, 92004, 92005, 92008, 92009, 92010, 92011, 92012, 92013, 92014, 92016, 92017, 92018, 92019, 92020, 92021, 92022, 92023, 92024, 92025, 92026, 92027, 92028, 92029, 92030, 92031, 92032, 92033, 92035, 92036, 92037, 92038, 92039, 92040, 92042, 92043, 92044, 92045, 92046, 92047, 92048, 92050, 92051, 92053, 92054, 92055, 92056, 92059, 92060, 92061, 92062, 92063, 92064, 92065, 92066, 92069, 92070, 92071, 92072, 92073, 92074, 92075, 92077, 92079, 92081, 92082, 92083, 92084, 92085, 92086, 92087, 92088, 92091, 92095, 92096, 92098, 92099, 92100, 92101, 92102, 92103, 92104, 92107, 92108, 92109, 92110, 92111, 92112, 92114, 92115, 92116, 92118, 92119, 92120, 92121, 92122, 92123, 92124, 92125, 92126, 92127, 92128, 92129, 92130, 92131, 92133, 92134, 92135, 92136, 92140, 92141, 92142, 92143, 92144, 92145, 92146, 92147, 92149, 92150, 92151, 92152, 92154, 92158, 92159, 92160, 92161, 92162, 92164, 92165, 92166, 92167, 92168, 92170, 92171, 92172, 92173, 92174, 92175, 92176, 92177, 92178, 92179, 92180, 92181, 92182, 92183, 92186, 92187, 92188, 92189, 92190, 92191, 92192, 92193, 92194, 92196, 92197, 92198, 92199, 92200, 92201, 92202, 92203, 92204, 92205, 92207, 92208, 92210, 92211, 92212, 92213, 92214, 92215, 92217, 92220, 92221, 92222, 92223, 92226, 92227, 92228, 92229, 92231, 92232, 92234, 92236, 92237, 92238, 92239, 92240, 92241, 92242, 92243, 92244, 92245, 92246, 92247, 92248, 92250, 92252, 92253, 92254, 92256, 92258, 92259, 92260, 92261, 92262, 92264, 92265, 92266, 92267, 92268, 92269, 92270, 92272, 92273, 92274, 92275, 92276, 92277, 92278, 92279, 92280, 92281, 92282, 92283, 92284, 92285, 92286, 92287, 92289, 92290, 92292, 92293, 92294, 92295, 92296, 92297, 92298, 92299, 92300, 92301, 92302, 92303, 92306, 92308, 92309, 92311, 92312, 92314, 92315, 92316, 92318, 92319, 92320, 92321, 92322, 92323, 92324, 92325, 92326, 92327, 92328, 92330, 92333, 92335, 92336, 92339, 92340, 92341, 92342, 92344, 92346, 92347, 92348, 92349, 92350, 92351, 92352, 92353, 92354, 92355, 92356, 92359, 92362, 92363, 92364, 92365, 92366, 92367, 92368, 92369, 92370, 92371, 92372, 92373, 92376, 92377, 92378, 92379, 92380, 92381, 92382, 92383, 92385, 92386, 92387, 92388, 92389, 92390, 92391, 92392, 92393, 92394, 92395, 92396, 92397, 92398, 92401, 92403, 92404, 92406, 92407, 92408, 92409, 92411, 92413, 92414, 92415, 92416, 92417, 92419, 92420, 92421, 92422, 92423, 92424, 92425, 92428, 92429, 92430, 92431, 92433, 92437, 92438, 92439, 92440, 92441, 92442, 92443, 92444, 92446, 92447, 92448, 92449, 92450, 92451, 92452, 92453, 92454, 92455, 92456, 92457, 92460, 92461, 92463, 92464, 92465, 92467, 92468, 92469, 92470, 92471, 92473, 92474, 92475, 92476, 92477, 92478, 92479, 92480, 92481, 92482, 92483, 92484, 92485, 92487, 92488, 92489, 92490, 92491, 92492, 92493, 92494, 92497, 92498, 92499, 92503, 92504, 92505, 92508, 92509, 92510, 92511, 92513, 92514, 92515, 92516, 92517, 92518, 92519, 92520, 92522, 92524, 92526, 92527, 92528, 92529, 92530, 92531, 92532, 92533, 92534, 92535, 92536, 92537, 92538, 92539, 92540, 92542, 92543, 92544, 92545, 92546, 92547, 92548, 92549, 92550, 92551, 92552, 92553, 92554, 92557, 92558, 92559, 92560, 92562, 92563, 92564, 92565, 92566, 92567, 92568, 92569, 92570, 92571, 92572, 92573, 92574, 92575, 92576, 92577, 92578, 92579, 92580, 92581, 92582, 92583, 92584, 92585, 92587, 92588, 92589, 92590, 92591, 92592, 92593, 92594, 92596, 92598, 92599, 92600, 92603, 92604, 92605, 92606, 92608, 92610, 92611, 92615, 92616, 92617, 92618, 92619, 92620, 92621, 92623, 92624, 92625, 92626, 92627, 92628, 92629, 92630, 92632, 92633, 92634, 92635, 92636, 92637, 92638, 92639, 92641, 92642, 92644, 92645, 92646, 92647, 92648, 92649, 92650, 92651, 92652, 92653, 92654, 92655, 92656, 92657, 92658, 92659, 92660, 92662, 92663, 92664, 92666, 92667, 92668, 92669, 92670, 92671, 92673, 92675, 92676, 92677, 92678, 92679, 92680, 92681, 92682, 92683, 92684, 92685, 92688, 92689, 92690, 92691, 92692, 92693, 92694, 92695, 92696, 92698, 92699, 92701, 92702, 92703, 92704, 92705, 92706, 92707, 92708, 92709, 92710, 92711, 92712, 92713, 92715, 92716, 92717, 92718, 92719, 92720, 92721, 92723, 92724, 92726, 92727, 92728, 92729, 92730, 92731, 92732, 92733, 92734, 92735, 92736, 92737, 92739, 92740, 92741, 92743, 92746, 92747, 92748, 92749, 92750, 92751, 92752, 92753, 92754, 92755, 92759, 92760, 92761, 92762, 92763, 92764, 92765, 92766, 92767, 92769, 92770, 92771, 92772, 92773, 92774, 92775, 92776, 92778, 92781, 92782, 92783, 92784, 92785, 92786, 92787, 92788, 92789, 92790, 92792, 92795, 92797, 92798, 92799, 92800, 92803, 92804, 92805, 92806, 92807, 92808, 92809, 92810, 92811, 92812, 92813, 92814, 92815, 92818, 92819, 92820, 92821, 92822, 92823, 92824, 92825, 92826, 92827, 92828, 92831, 92835, 92836, 92837, 92838, 92839, 92841, 92842, 92843, 92844, 92846, 92847, 92848, 92849, 92850, 92851, 92852, 92853, 92854, 92855, 92856, 92857, 92858, 92860, 92861, 92862, 92863, 92864, 92865, 92866, 92868, 92869, 92870, 92871, 92872, 92873, 92874, 92876, 92877, 92879, 92880, 92881, 92882, 92883, 92884, 92885, 92886, 92888, 92889, 92890, 92892, 92893, 92894, 92895, 92896, 92897, 92898, 92900, 92902, 92903, 92904, 92905, 92906, 92907, 92908, 92909, 92910, 92911, 92913, 92915, 92917, 92918, 92919, 92920, 92921, 92922, 92923, 92924, 92925, 92927, 92928, 92929, 92930, 92932, 92933, 92935, 92936, 92937, 92938, 92939, 92941, 92943, 92944, 92945, 92946, 92949, 92950, 92951, 92952, 92953, 92954, 92955, 92956, 92958, 92959, 92960, 92961, 92962, 92963, 92965, 92966, 92967, 92968, 92969, 92971, 92972, 92973, 92974, 92975, 92978, 92979, 92981, 92982, 92983, 92984, 92987, 92989, 92991, 92992, 92993, 92994, 92995, 92996, 92997, 92998, 93000, 93001, 93002, 93003, 93004, 93006, 93007, 93008, 93009, 93010, 93011, 93013, 93014, 93015, 93016, 93017, 93019, 93020, 93021, 93022, 93023, 93024, 93025, 93027, 93028, 93030, 93031, 93032, 93033, 93034, 93036, 93037, 93038, 93039, 93040, 93041, 93043, 93044, 93045, 93047, 93048, 93049, 93050, 93052, 93053, 93055, 93056, 93057, 93058, 93059, 93060, 93061, 93064, 93065, 93066, 93069, 93070, 93071, 93072, 93073, 93074, 93075, 93076, 93077, 93078, 93079, 93082, 93084, 93085, 93086, 93087, 93088, 93089, 93090, 93091, 93092, 93093, 93094, 93095, 93096, 93097, 93098, 93099, 93100, 93101, 93102, 93103, 93104, 93105, 93106, 93107, 93108, 93109, 93110, 93111, 93112, 93113, 93114, 93115, 93116, 93117, 93118, 93119, 93121, 93122, 93123, 93124, 93125, 93126, 93129, 93130, 93132, 93133, 93134, 93136, 93137, 93139, 93140, 93142, 93143, 93144, 93145, 93146, 93147, 93148, 93149, 93150, 93151, 93152, 93153, 93154, 93155, 93158, 93160, 93162, 93163, 93164, 93165, 93166, 93167, 93168, 93169, 93170, 93171, 93172, 93173, 93175, 93176, 93177, 93178, 93180, 93182, 93183, 93185, 93186, 93188, 93189, 93190, 93192, 93193, 93194, 93195, 93197, 93198, 93199, 93200, 93202, 93205, 93206, 93207, 93208, 93209, 93210, 93211, 93213, 93214, 93215, 93216, 93217, 93218, 93219, 93220, 93221, 93222, 93223, 93225, 93227, 93228, 93229, 93230, 93232, 93234, 93235, 93237, 93238, 93239, 93240, 93241, 93243, 93244, 93245, 93246, 93247, 93248, 93249, 93250, 93251, 93252, 93253, 93254, 93255, 93256, 93257, 93258, 93259, 93260, 93261, 93262, 93263, 93265, 93266, 93267, 93268, 93269, 93270, 93271, 93273, 93274, 93275, 93276, 93278, 93279, 93280, 93281, 93282, 93283, 93284, 93286, 93287, 93289, 93290, 93291, 93292, 93293, 93294, 93295, 93296, 93297, 93298, 93299, 93300, 93301, 93302, 93303, 93305, 93307, 93308, 93309, 93310, 93311, 93313, 93314, 93317, 93318, 93319, 93320, 93321, 93322, 93325, 93326, 93328, 93329, 93332, 93333, 93334, 93335, 93336, 93337, 93339, 93340, 93341, 93342, 93343, 93344, 93345, 93346, 93347, 93348, 93349, 93350, 93351, 93352, 93353, 93354, 93355, 93356, 93357, 93358, 93359, 93360, 93361, 93362, 93363, 93364, 93365, 93366, 93368, 93371, 93372, 93373, 93376, 93378, 93380, 93381, 93382, 93383, 93385, 93387, 93388, 93389, 93391, 93392, 93393, 93394, 93395, 93396, 93399, 93400, 93401, 93402, 93403, 93404, 93405, 93407, 93409, 93411, 93412, 93413, 93415, 93417, 93419, 93420, 93421, 93422, 93423, 93424, 93426, 93427, 93428, 93429, 93430, 93431, 93432, 93433, 93434, 93435, 93436, 93437, 93438, 93439, 93440, 93441, 93442, 93444, 93445, 93446, 93448, 93449, 93450, 93451, 93452, 93453, 93454, 93455, 93456, 93459, 93460, 93462, 93463, 93464, 93465, 93466, 93468, 93469, 93470, 93472, 93473, 93474, 93475, 93476, 93478, 93479, 93481, 93482, 93483, 93484, 93485, 93487, 93488, 93489, 93490, 93491, 93492, 93493, 93494, 93495, 93497, 93498, 93500, 93502, 93503, 93505, 93506, 93508, 93509, 93510, 93511, 93512, 93513, 93514, 93516, 93518, 93519, 93520, 93521, 93522, 93524, 93525, 93526, 93527, 93528, 93529, 93530, 93531, 93533, 93534, 93536, 93537, 93538, 93539, 93541, 93542, 93544, 93545, 93546, 93547, 93548, 93549, 93550, 93551, 93552, 93553, 93554, 93555, 93556, 93557, 93558, 93559, 93560, 93561, 93562, 93563, 93564, 93565, 93566, 93567, 93568, 93569, 93570, 93571, 93572, 93573, 93574, 93575, 93576, 93577, 93578, 93579, 93580, 93581, 93582, 93583, 93585, 93587, 93588, 93589, 93590, 93591, 93595, 93596, 93599, 93600, 93602, 93604, 93605, 93606, 93607, 93608, 93609, 93610, 93612, 93613, 93614, 93615, 93617, 93618, 93619, 93622, 93623, 93624, 93625, 93626, 93627, 93628, 93629, 93630, 93632, 93633, 93634, 93635, 93636, 93638, 93641, 93642, 93643, 93645, 93646, 93647, 93648, 93649, 93650, 93651, 93652, 93654, 93655, 93656, 93657, 93658, 93660, 93661, 93664, 93665, 93666, 93667, 93668, 93670, 93671, 93672, 93673, 93674, 93675, 93678, 93679, 93681, 93682, 93683, 93684, 93685, 93686, 93688, 93689, 93690, 93691, 93692, 93693, 93696, 93697, 93698, 93699, 93700, 93702, 93703, 93705, 93707, 93708, 93709, 93714, 93715, 93716, 93717, 93718, 93719, 93720, 93723, 93724, 93725, 93726, 93727, 93728, 93729, 93731, 93733, 93734, 93735, 93736, 93737, 93739, 93741, 93742, 93743, 93744, 93745, 93747, 93748, 93750, 93751, 93754, 93756, 93757, 93758, 93759, 93761, 93762, 93765, 93766, 93767, 93768, 93769, 93770, 93771, 93772, 93773, 93774, 93775, 93777, 93778, 93779, 93782, 93783, 93785, 93786, 93787, 93788, 93789, 93791, 93792, 93793, 93794, 93796, 93797, 93799, 93800, 93801, 93802, 93805, 93806, 93808, 93809, 93810, 93811, 93812, 93813, 93814, 93815, 93816, 93818, 93820, 93821, 93822, 93823, 93824, 93825, 93826, 93827, 93828, 93829, 93830, 93831, 93832, 93833, 93835, 93836, 93838, 93839, 93841, 93844, 93846, 93847, 93848, 93849, 93850, 93851, 93852, 93853, 93854, 93855, 93856, 93859, 93860, 93861, 93863, 93865, 93866, 93867, 93868, 93869, 93870, 93871, 93872, 93873, 93875, 93876, 93877, 93878, 93879, 93881, 93882, 93883, 93885, 93887, 93888, 93890, 93891, 93892, 93894, 93895, 93896, 93897, 93898, 93899, 93900, 93902, 93903, 93904, 93905, 93906, 93907, 93908, 93909, 93911, 93912, 93913, 93914, 93915, 93916, 93917, 93919, 93920, 93921, 93922, 93923, 93924, 93925, 93926, 93928, 93929, 93930, 93931, 93932, 93934, 93935, 93936, 93937, 93938, 93940, 93941, 93942, 93943, 93945, 93946, 93947, 93948, 93951, 93952, 93953, 93954, 93957, 93958, 93959, 93960, 93961, 93962, 93963, 93964, 93965, 93966, 93967, 93969, 93970, 93971, 93972, 93973, 93974, 93975, 93976, 93977, 93979, 93980, 93981, 93982, 93983, 93985, 93986, 93987, 93988, 93989, 93991, 93992, 93993, 93994, 93995, 93996, 93997, 93998, 94000, 94001, 94004, 94005, 94006, 94007, 94008, 94010, 94011, 94012, 94013, 94014, 94015, 94016, 94017, 94018, 94019, 94020, 94021, 94022, 94024, 94025, 94026, 94027, 94028, 94029, 94030, 94031, 94033, 94034, 94035, 94036, 94038, 94039, 94040, 94042, 94044, 94045, 94046, 94047, 94048, 94049, 94050, 94051, 94052, 94053, 94054, 94055, 94056, 94057, 94058, 94059, 94060, 94061, 94062, 94063, 94065, 94066, 94068, 94069, 94070, 94071, 94072, 94073, 94074, 94075, 94077, 94078, 94079, 94080, 94081, 94082, 94083, 94084, 94085, 94086, 94088, 94089, 94090, 94091, 94092, 94093, 94094, 94095, 94096, 94097, 94098, 94099, 94100, 94101, 94103, 94106, 94107, 94109, 94111, 94112, 94113, 94114, 94115, 94116, 94117, 94119, 94121, 94122, 94123, 94124, 94126, 94127, 94128, 94129, 94130, 94132, 94133, 94134, 94135, 94136, 94138, 94139, 94140, 94142, 94145, 94147, 94148, 94149, 94150, 94152, 94154, 94155, 94156, 94157, 94158, 94160, 94162, 94163, 94164, 94166, 94167, 94168, 94169, 94170, 94171, 94172, 94173, 94174, 94175, 94176, 94178, 94179, 94181, 94182, 94183, 94184, 94185, 94186, 94187, 94189, 94190, 94192, 94193, 94195, 94197, 94198, 94199, 94200, 94201, 94203, 94205, 94206, 94207, 94209, 94210, 94211, 94212, 94213, 94214, 94215, 94216, 94217, 94218, 94220, 94221, 94222, 94224, 94225, 94226, 94227, 94228, 94229, 94230, 94231, 94232, 94233, 94234, 94235, 94236, 94237, 94238, 94239, 94240, 94241, 94242, 94243, 94244, 94246, 94247, 94248, 94249, 94250, 94251, 94252, 94253, 94254, 94255, 94256, 94257, 94258, 94259, 94260, 94262, 94263, 94264, 94265, 94266, 94267, 94269, 94270, 94271, 94272, 94273, 94274, 94275, 94276, 94277, 94278, 94279, 94280, 94281, 94282, 94283, 94284, 94285, 94286, 94287, 94288, 94289, 94290, 94291, 94292, 94293, 94295, 94296, 94298, 94299, 94300, 94301, 94302, 94303, 94304, 94305, 94306, 94308, 94309, 94310, 94311, 94312, 94313, 94314, 94315, 94316, 94317, 94318, 94319, 94320, 94321, 94322, 94323, 94324, 94325, 94326, 94328, 94330, 94331, 94332, 94334, 94335, 94336, 94337, 94338, 94339, 94340, 94343, 94344, 94346, 94347, 94349, 94350, 94352, 94353, 94354, 94355, 94356, 94357, 94358, 94359, 94360, 94362, 94363, 94364, 94366, 94367, 94368, 94369, 94371, 94372, 94373, 94374, 94375, 94377, 94378, 94379, 94380, 94382, 94383, 94385, 94386, 94387, 94389, 94390, 94391, 94392, 94393, 94394, 94395, 94396, 94397, 94399, 94400, 94401, 94403, 94404, 94405, 94406, 94408, 94409, 94410, 94411, 94412, 94413, 94414, 94415, 94416, 94417, 94419, 94420, 94421, 94422, 94423, 94424, 94426, 94427, 94428, 94430, 94431, 94432, 94433, 94434, 94435, 94437, 94438, 94439, 94440, 94441, 94442, 94443, 94444, 94445, 94448, 94449, 94450, 94451, 94452, 94453, 94454, 94455, 94457, 94458, 94459, 94460, 94461, 94462, 94463, 94464, 94465, 94466, 94467, 94468, 94471, 94472, 94473, 94474, 94475, 94476, 94477, 94478, 94479, 94480, 94481, 94482, 94483, 94484, 94485, 94486, 94487, 94488, 94490, 94491, 94493, 94494, 94496, 94497, 94498, 94499, 94500, 94501, 94502, 94504, 94505, 94506, 94507, 94508, 94509, 94511, 94512, 94513, 94514, 94515, 94516, 94517, 94518, 94519, 94520, 94521, 94524, 94526, 94529, 94530, 94531, 94533, 94534, 94535, 94536, 94537, 94539, 94540, 94541, 94543, 94544, 94546, 94548, 94549, 94551, 94552, 94553, 94554, 94555, 94556, 94558, 94559, 94560, 94561, 94562, 94563, 94565, 94566, 94567, 94568, 94569, 94570, 94571, 94572, 94573, 94574, 94575, 94576, 94578, 94580, 94581, 94582, 94583, 94584, 94585, 94586, 94588, 94589, 94591, 94593, 94595, 94596, 94597, 94598, 94599, 94600, 94601, 94602, 94603, 94604, 94605, 94606, 94607, 94608, 94609, 94610, 94611, 94612, 94613, 94615, 94616, 94617, 94618, 94619, 94622, 94623, 94624, 94625, 94626, 94627, 94628, 94629, 94630, 94631, 94632, 94633, 94634, 94635, 94636, 94638, 94639, 94640, 94641, 94642, 94644, 94645, 94646, 94647, 94649, 94650, 94651, 94652, 94653, 94655, 94656, 94657, 94658, 94659, 94660, 94661, 94662, 94663, 94664, 94665, 94666, 94668, 94669, 94670, 94671, 94672, 94673, 94674, 94675, 94676, 94678, 94680, 94682, 94683, 94684, 94685, 94686, 94687, 94688, 94691, 94692, 94693, 94694, 94695, 94696, 94697, 94700, 94701, 94702, 94703, 94704, 94705, 94708, 94709, 94711, 94712, 94714, 94715, 94716, 94719, 94720, 94721, 94722, 94723, 94724, 94725, 94726, 94729, 94730, 94731, 94734, 94735, 94736, 94737, 94738, 94739, 94740, 94741, 94742, 94744, 94745, 94747, 94748, 94749, 94750, 94751, 94752, 94754, 94756, 94757, 94758, 94759, 94760, 94761, 94762, 94763, 94764, 94766, 94767, 94768, 94769, 94770, 94771, 94772, 94773, 94774, 94775, 94776, 94777, 94778, 94779, 94780, 94781, 94782, 94783, 94785, 94787, 94788, 94789, 94792, 94794, 94795, 94796, 94797, 94798, 94799, 94800, 94801, 94802, 94803, 94804, 94805, 94806, 94807, 94808, 94809, 94810, 94811, 94812, 94813, 94814, 94815, 94816, 94818, 94819, 94820, 94821, 94822, 94824, 94825, 94826, 94828, 94829, 94830, 94831, 94832, 94833, 94834, 94835, 94836, 94837, 94838, 94839, 94840, 94842, 94843, 94845, 94846, 94848, 94851, 94852, 94853, 94854, 94855, 94856, 94857, 94858, 94859, 94860, 94861, 94862, 94863, 94864, 94865, 94866, 94867, 94868, 94870, 94872, 94873, 94875, 94876, 94877, 94878, 94879, 94880, 94882, 94883, 94884, 94886, 94887, 94888, 94890, 94891, 94892, 94894, 94898, 94900, 94901, 94902, 94903, 94904, 94905, 94906, 94907, 94908, 94909, 94910, 94911, 94912, 94913, 94914, 94916, 94917, 94918, 94919, 94920, 94921, 94923, 94925, 94926, 94927, 94928, 94929, 94930, 94931, 94933, 94935, 94936, 94937, 94938, 94939, 94941, 94942, 94943, 94944, 94945, 94946, 94947, 94948, 94949, 94950, 94951, 94952, 94953, 94954, 94955, 94956, 94957, 94960, 94961, 94962, 94964, 94965, 94966, 94967, 94968, 94969, 94970, 94971, 94974, 94976, 94978, 94979, 94980, 94982, 94984, 94985, 94986, 94989, 94990, 94991, 94992, 94993, 94994, 94995, 94996, 94997, 94998, 94999, 95000, 95001, 95002, 95005, 95006, 95007, 95009, 95010, 95011, 95013, 95014, 95015, 95016, 95017, 95018, 95019, 95020, 95021, 95022, 95023, 95024, 95025, 95026, 95027, 95028, 95030, 95032, 95033, 95034, 95035, 95036, 95039, 95040, 95042, 95044, 95045, 95046, 95047, 95048, 95050, 95052, 95055, 95056, 95058, 95059, 95060, 95061, 95062, 95064, 95065, 95067, 95069, 95070, 95071, 95073, 95074, 95075, 95076, 95077, 95079, 95080, 95082, 95083, 95084, 95085, 95086, 95087, 95088, 95089, 95090, 95091, 95092, 95093, 95095, 95096, 95097, 95099, 95100, 95101, 95102, 95104, 95105, 95106, 95107, 95108, 95110, 95111, 95112, 95113, 95114, 95115, 95116, 95117, 95118, 95120, 95121, 95122, 95123, 95124, 95126, 95127, 95128, 95129, 95130, 95131, 95132, 95133, 95134, 95135, 95136, 95137, 95138, 95139, 95140, 95141, 95142, 95143, 95145, 95146, 95147, 95149, 95151, 95152, 95153, 95154, 95155, 95156, 95157, 95158, 95159, 95160, 95161, 95162, 95163, 95164, 95165, 95166, 95167, 95170, 95171, 95172, 95173, 95174, 95175, 95176, 95177, 95178, 95179, 95181, 95182, 95183, 95184, 95187, 95188, 95189, 95192, 95193, 95195, 95196, 95197, 95198, 95199, 95200, 95201, 95203, 95204, 95205, 95206, 95207, 95208, 95209, 95210, 95211, 95212, 95213, 95214, 95215, 95216, 95217, 95219, 95220, 95221, 95222, 95223, 95224, 95225, 95226, 95227, 95229, 95231, 95232, 95233, 95235, 95236, 95237, 95238, 95240, 95241, 95242, 95243, 95244, 95245, 95246, 95248, 95249, 95250, 95251, 95252, 95254, 95255, 95256, 95257, 95258, 95259, 95260, 95261, 95262, 95265, 95266, 95267, 95268, 95269, 95270, 95271, 95272, 95273, 95274, 95278, 95280, 95282, 95284, 95285, 95286, 95287, 95289, 95290, 95291, 95292, 95294, 95295, 95296, 95297, 95299, 95300, 95301, 95302, 95303, 95304, 95306, 95308, 95309, 95310, 95311, 95312, 95313, 95314, 95315, 95317, 95318, 95319, 95320, 95321, 95323, 95326, 95327, 95328, 95329, 95330, 95331, 95332, 95333, 95334, 95335, 95336, 95337, 95338, 95340, 95341, 95342, 95343, 95344, 95345, 95346, 95347, 95348, 95349, 95350, 95352, 95353, 95354, 95355, 95357, 95358, 95360, 95361, 95362, 95363, 95364, 95366, 95367, 95368, 95369, 95370, 95371, 95372, 95374, 95375, 95376, 95377, 95378, 95379, 95380, 95381, 95383, 95384, 95386, 95387, 95388, 95389, 95390, 95391, 95392, 95393, 95394, 95395, 95396, 95397, 95398, 95399, 95400, 95401, 95402, 95405, 95406, 95408, 95409, 95410, 95411, 95412, 95414, 95415, 95417, 95418, 95419, 95420, 95421, 95424, 95425, 95426, 95427, 95428, 95430, 95431, 95432, 95433, 95434, 95435, 95436, 95438, 95439, 95440, 95441, 95442, 95443, 95444, 95445, 95446, 95448, 95449, 95451, 95452, 95453, 95454, 95455, 95456, 95457, 95459, 95460, 95461, 95462, 95463, 95464, 95465, 95467, 95468, 95469, 95470, 95471, 95473, 95474, 95475, 95476, 95477, 95478, 95479, 95481, 95482, 95483, 95485, 95486, 95487, 95488, 95490, 95491, 95492, 95493, 95494, 95495, 95496, 95498, 95499, 95500, 95501, 95502, 95503, 95504, 95505, 95506, 95507, 95508, 95509, 95510, 95511, 95512, 95514, 95516, 95517, 95518, 95519, 95520, 95522, 95523, 95524, 95525, 95526, 95527, 95528, 95529, 95530, 95531, 95532, 95533, 95535, 95536, 95539, 95540, 95543, 95544, 95547, 95548, 95549, 95550, 95552, 95553, 95554, 95555, 95556, 95558, 95559, 95560, 95561, 95562, 95563, 95566, 95567, 95569, 95570, 95571, 95572, 95573, 95574, 95575, 95576, 95577, 95578, 95579, 95581, 95582, 95583, 95584, 95585, 95586, 95587, 95588, 95590, 95592, 95593, 95594, 95595, 95597, 95598, 95600, 95601, 95602, 95604, 95605, 95607, 95608, 95609, 95610, 95611, 95612, 95614, 95616, 95617, 95618, 95619, 95620, 95621, 95622, 95623, 95624, 95625, 95626, 95627, 95628, 95629, 95630, 95631, 95632, 95635, 95636, 95637, 95638, 95639, 95641, 95642, 95643, 95644, 95645, 95646, 95647, 95649, 95651, 95653, 95654, 95656, 95657, 95658, 95659, 95660, 95662, 95663, 95664, 95665, 95666, 95667, 95669, 95671, 95672, 95673, 95674, 95676, 95678, 95679, 95681, 95682, 95683, 95684, 95685, 95686, 95690, 95691, 95693, 95694, 95695, 95696, 95697, 95698, 95700, 95701, 95706, 95707, 95709, 95710, 95711, 95713, 95714, 95715, 95716, 95717, 95718, 95719, 95720, 95721, 95722, 95723, 95724, 95725, 95726, 95728, 95729, 95730, 95733, 95734, 95735, 95736, 95737, 95738, 95739, 95740, 95741, 95742, 95743, 95744, 95745, 95746, 95747, 95749, 95750, 95752, 95753, 95755, 95757, 95758, 95760, 95761, 95762, 95763, 95764, 95765, 95767, 95768, 95770, 95772, 95773, 95774, 95775, 95776, 95777, 95778, 95779, 95780, 95781, 95782, 95784, 95785, 95786, 95789, 95790, 95791, 95792, 95793, 95794, 95795, 95796, 95797, 95801, 95803, 95804, 95805, 95806, 95808, 95809, 95810, 95811, 95813, 95816, 95817, 95819, 95820, 95823, 95824, 95825, 95826, 95827, 95828, 95829, 95830, 95831, 95832, 95833, 95834, 95835, 95836, 95837, 95838, 95839, 95842, 95843, 95844, 95845, 95846, 95847, 95848, 95849, 95850, 95851, 95852, 95853, 95854, 95857, 95858, 95859, 95860, 95861, 95862, 95864, 95865, 95866, 95867, 95869, 95870, 95871, 95872, 95874, 95875, 95877, 95878, 95879, 95880, 95881, 95884, 95885, 95887, 95888, 95889, 95891, 95893, 95896, 95897, 95899, 95900, 95902, 95903, 95905, 95906, 95907, 95909, 95910, 95911, 95912, 95913, 95914, 95915, 95916, 95917, 95919, 95920, 95921, 95922, 95923, 95924, 95925, 95926, 95927, 95928, 95929, 95931, 95932, 95934, 95935, 95936, 95938, 95939, 95940, 95941, 95942, 95944, 95945, 95948, 95949, 95950, 95951, 95954, 95955, 95956, 95957, 95958, 95960, 95961, 95962, 95963, 95964, 95965, 95966, 95967, 95968, 95969, 95970, 95971, 95972, 95973, 95974, 95975, 95976, 95977, 95978, 95979, 95981, 95983, 95984, 95985, 95986, 95987, 95988, 95990, 95991, 95992, 95993, 95995, 95996, 95997, 95998, 95999, 96001, 96002, 96003, 96004, 96005, 96006, 96007, 96008, 96009, 96010, 96012, 96013, 96014, 96015, 96017, 96018, 96019, 96020, 96021, 96022, 96023, 96024, 96027, 96028, 96029, 96030, 96031, 96033, 96034, 96035, 96036, 96037, 96038, 96042, 96043, 96044, 96045, 96046, 96047, 96048, 96049, 96050, 96051, 96052, 96053, 96054, 96055, 96056, 96057, 96058, 96059, 96060, 96061, 96062, 96064, 96066, 96067, 96069, 96070, 96071, 96072, 96073, 96074, 96075, 96076, 96077, 96078, 96079, 96080, 96081, 96082, 96084, 96085, 96086, 96088, 96089, 96090, 96091, 96092, 96093, 96094, 96096, 96097, 96099, 96100, 96101, 96103, 96104, 96105, 96106, 96107, 96108, 96109, 96110, 96111, 96112, 96113, 96114, 96115, 96116, 96117, 96118, 96121, 96122, 96124, 96125, 96126, 96128, 96129, 96131, 96132, 96133, 96135, 96137, 96141, 96142, 96143, 96144, 96147, 96149, 96150, 96151, 96152, 96153, 96154, 96155, 96156, 96157, 96158, 96159, 96160, 96161, 96162, 96163, 96164, 96165, 96166, 96167, 96168, 96169, 96170, 96171, 96173, 96174, 96175, 96176, 96177, 96178, 96179, 96180, 96181, 96183, 96184, 96185, 96187, 96188, 96189, 96190, 96191, 96192, 96193, 96194, 96195, 96197, 96198, 96199, 96201, 96202, 96203, 96204, 96205, 96206, 96207, 96208, 96209, 96210, 96212, 96213, 96214, 96215, 96216, 96217, 96218, 96220, 96221, 96223, 96224, 96225, 96226, 96227, 96228, 96229, 96231, 96233, 96234, 96236, 96237, 96238, 96239, 96241, 96242, 96243, 96244, 96246, 96247, 96248, 96249, 96250, 96251, 96254, 96255, 96256, 96257, 96258, 96259, 96260, 96261, 96262, 96263, 96264, 96266, 96267, 96268, 96269, 96270, 96271, 96273, 96274, 96276, 96277, 96278, 96279, 96280, 96282, 96284, 96285, 96286, 96287, 96288, 96289, 96290, 96292, 96294, 96296, 96297, 96298, 96300, 96301, 96303, 96304, 96305, 96306, 96308, 96309, 96310, 96311, 96312, 96314, 96315, 96317, 96318, 96319, 96321, 96322, 96323, 96324, 96325, 96326, 96327, 96329, 96330, 96332, 96333, 96334, 96335, 96337, 96338, 96340, 96341, 96342, 96343, 96344, 96345, 96346, 96348, 96349, 96351, 96352, 96353, 96354, 96355, 96357, 96358, 96359, 96361, 96362, 96365, 96367, 96368, 96369, 96372, 96373, 96374, 96376, 96377, 96378, 96379, 96380, 96381, 96382, 96383, 96384, 96385, 96386, 96387, 96389, 96390, 96391, 96393, 96394, 96395, 96396, 96397, 96398, 96399, 96400, 96401, 96402, 96403, 96404, 96405, 96406, 96407, 96408, 96409, 96410, 96411, 96412, 96413, 96414, 96415, 96416, 96417, 96418, 96419, 96420, 96421, 96422, 96423, 96424, 96425, 96427, 96428, 96429, 96430, 96432, 96433, 96434, 96436, 96437, 96438, 96439, 96440, 96441, 96443, 96444, 96445, 96446, 96447, 96448, 96449, 96450, 96452, 96453, 96454, 96456, 96457, 96458, 96459, 96460, 96461, 96462, 96463, 96464, 96465, 96467, 96468, 96469, 96470, 96471, 96473, 96474, 96475, 96476, 96477, 96478, 96479, 96480, 96481, 96483, 96484, 96485, 96488, 96489, 96490, 96491, 96492, 96494, 96495, 96498, 96499, 96500, 96501, 96502, 96504, 96505, 96506, 96508, 96510, 96512, 96513, 96514, 96516, 96517, 96518, 96519, 96520, 96522, 96524, 96525, 96526, 96527, 96528, 96529, 96533, 96534, 96535, 96537, 96538, 96539, 96540, 96542, 96543, 96544, 96546, 96549, 96551, 96552, 96554, 96555, 96556, 96557, 96559, 96560, 96561, 96562, 96563, 96565, 96566, 96567, 96568, 96570, 96571, 96573, 96574, 96576, 96578, 96579, 96580, 96581, 96582, 96583, 96584, 96585, 96586, 96587, 96588, 96590, 96591, 96592, 96594, 96596, 96597, 96598, 96601, 96602, 96603, 96605, 96606, 96607, 96608, 96609, 96611, 96612, 96613, 96614, 96615, 96617, 96618, 96619, 96620, 96621, 96622, 96623, 96626, 96627, 96628, 96629, 96630, 96632, 96633, 96635, 96636, 96637, 96639, 96640, 96641, 96642, 96645, 96646, 96648, 96649, 96650, 96651, 96653, 96654, 96656, 96657, 96658, 96660, 96661, 96662, 96664, 96665, 96666, 96667, 96668, 96669, 96670, 96672, 96673, 96674, 96675, 96676, 96679, 96680, 96681, 96682, 96684, 96685, 96686, 96687, 96688, 96690, 96691, 96692, 96693, 96694, 96695, 96696, 96697, 96699, 96700, 96701, 96702, 96703, 96704, 96705, 96707, 96710, 96711, 96712, 96713, 96714, 96716, 96717, 96718, 96720, 96721, 96723, 96724, 96725, 96726, 96728, 96729, 96730, 96731, 96732, 96733, 96734, 96735, 96736, 96737, 96738, 96739, 96740, 96741, 96742, 96746, 96747, 96749, 96750, 96751, 96752, 96753, 96754, 96755, 96756, 96757, 96758, 96759, 96760, 96761, 96762, 96763, 96764, 96765, 96766, 96767, 96768, 96769, 96770, 96772, 96774, 96777, 96778, 96779, 96780, 96781, 96783, 96784, 96785, 96786, 96787, 96788, 96789, 96791, 96792, 96793, 96794, 96795, 96796, 96798, 96799, 96800, 96801, 96802, 96803, 96804, 96805, 96806, 96807, 96808, 96809, 96810, 96811, 96812, 96813, 96815, 96816, 96817, 96818, 96819, 96820, 96821, 96822, 96824, 96825, 96826, 96828, 96830, 96831 ]
062c4e05fb4002ef16ebd077a5f12253b46d0505
169499d941b8fafffbcaaada28919e7422add8b4
/Sources/RSocketCore/Frames/FrameBody/Payload/PayloadFrameBodyEncoder.swift
709eeb2c939d1733bc0600ddc1e9b694b3278258
[ "Apache-2.0" ]
permissive
ciychodianda/rsocket-swift
fbd761910753ea84fb4a1c1cc3ab84753a2e20dd
2722df67518429f6f262f9ef7860ac21d67d42a9
refs/heads/main
2023-03-29T16:15:50.854808
2021-03-29T10:12:11
2021-03-29T10:12:11
322,058,224
0
0
Apache-2.0
2020-12-16T17:44:10
2020-12-16T17:44:09
null
UTF-8
Swift
false
false
1,039
swift
/* * Copyright 2015-present the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import NIO internal struct PayloadFrameBodyEncoder: FrameBodyEncoding { private let payloadEncoder: PayloadEncoding internal init(payloadEncoder: PayloadEncoding = PayloadEncoder()) { self.payloadEncoder = payloadEncoder } internal func encode(frame: PayloadFrameBody, into buffer: inout ByteBuffer) throws { try payloadEncoder.encode(payload: frame.payload, to: &buffer) } }
[ -1 ]
3bb6d6ccce6c19a8da93b3c1df25543db10f61fd
d063cc59ffbae30797739f5af8822d16100fa6b0
/HomePlus/Models/DeviceGroup.swift
1a7c863cf55e6cb20171c757b917f91060e46235
[]
no_license
Janeeczek/HomePlus
34cc35d6799e99466c310a0ec082d0c44176c6c7
2403aaab8f61bd36a18281419ca7fc264a530111
refs/heads/main
2023-05-29T06:07:32.904044
2021-06-17T21:29:43
2021-06-17T21:29:43
377,964,702
0
0
null
null
null
null
UTF-8
Swift
false
false
321
swift
import Foundation import RealmSwift @objcMembers class DeviceGroup: EmbeddedObject, ObjectKeyIdentifiable { dynamic var name: String? dynamic var partition: String? convenience init(partition: String, name: String) { self.init() self.partition = partition self.name = name } }
[ -1 ]
0486b304ef05894ae14b1c67c635e4bf7c66ca29
cb4bb6e54f9a8182185f42641430722d83480797
/iTunesCat/Views/ReusableHeader.swift
58c868de2a690234bbf07238834ca493843f9855
[]
no_license
joseGalindoSYSUS/iTunesCat
bea321f8753734080535cc5c080e4f5fe2c92dbd
2867c8ceac00e26d9c9fc88240f3ac066ad0e361
refs/heads/master
2022-06-14T23:33:10.620955
2020-05-01T17:21:38
2020-05-01T17:21:38
260,558,307
0
0
null
null
null
null
UTF-8
Swift
false
false
370
swift
// // ReusableHeader.swift // iTunesCat // // Created by Jose Galindo martinez on 30/04/20. // Copyright © 2020 JCG. All rights reserved. // import UIKit class ReusableHeader: UICollectionReusableView { @IBOutlet weak var sectionTitle: UILabel! override func awakeFromNib() { super.awakeFromNib() // Initialization code } }
[ -1 ]
4f967cd83c08fd5c3719c18a189a7cf4beeada4a
447fd8c68c6a54823a084ed96afd47cec25d9279
/icons/folder-refresh-outline/src/folder-refresh-outline.swift
33df949df727efc7a0b41206417426e58a3610e5
[]
no_license
friends-of-cocoa/material-design-icons
cf853a45d5936b16d0fddc88e970331379721431
d66613cf64e521e32a4cbb64dadd9cb20ea6199e
refs/heads/master
2022-07-29T15:51:13.647551
2020-09-16T12:15:32
2020-09-16T12:15:32
295,662,032
0
0
null
null
null
null
UTF-8
Swift
false
false
418
swift
// Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen // swiftlint:disable superfluous_disable_command identifier_name line_length nesting type_body_length type_name public enum MDIIcons { public static let folderRefreshOutline24pt = MDIIcon(name: "folder-refresh-outline_24pt").image } // swiftlint:enable superfluous_disable_command identifier_name line_length nesting type_body_length type_name
[ -1 ]
95040dab48f1f58062ffa94ce57578ca40e12947
cd4aca8664d7377865c5c04d400fd76764ba0283
/Source/Stevia+Fill.swift
88602a3780a67b29a12b4fd30f60e72a0a2627d3
[ "MIT" ]
permissive
n13/Stevia
4c196b06180389402ce4a3ace7201961e2423cda
d1b1891fb46f2ae6d040daadf1831a8c5903407e
refs/heads/master
2020-04-27T17:02:09.397901
2019-03-28T23:14:51
2019-03-28T23:14:51
174,502,330
0
0
MIT
2019-03-28T23:14:52
2019-03-08T08:54:22
Swift
UTF-8
Swift
false
false
2,535
swift
// // Stevia+Fill.swift // Stevia // // Created by Sacha Durand Saint Omer on 10/02/16. // Copyright © 2016 Sacha Durand Saint Omer. All rights reserved. // import UIKit public extension UIView { /** Adds the constraints needed for the view to fill its `superview`. A padding can be used to apply equal spaces between the view and its superview */ @discardableResult public func fillContainer(_ padding: CGFloat = 0) -> UIView { fillHorizontally(m: padding) fillVertically(m: padding) return self } @available(*, deprecated: 2.2.1, message: "Use 'fillVertically' instead") /** Adds the constraints needed for the view to fill its `superview` Vertically. A padding can be used to apply equal spaces between the view and its superview */ public func fillV(m points: CGFloat = 0) -> UIView { return fill(.vertical, points: points) } /** Adds the constraints needed for the view to fill its `superview` Vertically. A padding can be used to apply equal spaces between the view and its superview */ @discardableResult public func fillVertically(m points: CGFloat = 0) -> UIView { return fill(.vertical, points: points) } @available(*, deprecated: 2.2.1, message: "Use 'fillHorizontally' instead") /** Adds the constraints needed for the view to fill its `superview` Horizontally. A padding can be used to apply equal spaces between the view and its superview */ public func fillH(m points: CGFloat = 0) -> UIView { return fill(.horizontal, points: points) } /** Adds the constraints needed for the view to fill its `superview` Horizontally. A padding can be used to apply equal spaces between the view and its superview */ @discardableResult public func fillHorizontally(m points: CGFloat = 0) -> UIView { return fill(.horizontal, points: points) } fileprivate func fill(_ axis: NSLayoutConstraint.Axis, points: CGFloat = 0) -> UIView { let a: NSLayoutConstraint.Attribute = axis == .vertical ? .top : .left let b: NSLayoutConstraint.Attribute = axis == .vertical ? .bottom : .right if let spv = superview { let c1 = constraint(item: self, attribute: a, toItem: spv, constant: points) let c2 = constraint(item: self, attribute: b, toItem: spv, constant: -points) spv.addConstraints([c1, c2]) } return self } }
[ 158147, 321989 ]
179a753225496ca582d28b4bd2471587320527a0
ad670b50e15c0aced9d95cfe792dc730c72e25cd
/GitHub Hotest/Repository.swift
afabb8f2a37228540237704a55731be897287f6c
[]
no_license
danywarner/githubhotest
6f450be2a6b4a82ae6701036a858e0d21813a083
cfb5e13eb6d56e910a911191b77f2c762e412d6f
refs/heads/master
2021-01-10T12:45:33.343065
2016-02-22T16:58:22
2016-02-22T16:58:22
52,378,177
0
0
null
null
null
null
UTF-8
Swift
false
false
1,694
swift
// // Repository.swift // GitHub Hotest // // Created by Daniel Warner on 2/20/16. // Copyright © 2016 Daniel Warner. All rights reserved. // import Foundation class Repository { private var _name: String private var _avatarUrl: String private var _repoDescription: String private var _author: String private var _contributorsUrl: String private var _issuesUrl: String var name: String { get { return _name } set { _name = newValue } } var repoDescription: String { get { return _repoDescription } set { _repoDescription = newValue } } var author: String { get { return _author } set { _author = newValue } } var avatarUrl: String { get { return _avatarUrl } set { _avatarUrl = newValue } } var contributorsUrl: String { get { return _contributorsUrl } set { _contributorsUrl = newValue } } var issuesUrl: String { get { return _issuesUrl } set { _issuesUrl = newValue } } init(name: String, avatarUrl: String, description: String, author: String, contributorsUrl: String, issuesUrl: String) { _name = name _avatarUrl = avatarUrl _repoDescription = description _author = author _contributorsUrl = contributorsUrl _issuesUrl = issuesUrl } }
[ -1 ]
b7ec1b034bf438299dce723eba707fe9f8696471
a453d0cdc209981a6db580021cefc1cbb2066aad
/ios/ApphudSdk.swift
9f6671370b9af13e5cbb3dcce7bdc23ca6e046d6
[ "MIT" ]
permissive
Software-Palace/ApphudSDK-React-Native
ba8f38a83cc211dc26e9406b7c8f090997a4eae0
62d36270c2031de5eb3ae2c48eb7e13c081ba214
refs/heads/master
2023-03-14T19:28:12.875048
2021-03-06T16:14:12
2021-03-06T16:14:12
null
0
0
null
null
null
null
UTF-8
Swift
false
false
9,292
swift
import ApphudSDK import StoreKit @objc(ApphudSdk) class ApphudSdk: NSObject { @objc(start:withResolver:withRejecter:) func start(options: NSDictionary, resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { let apiKey = options["apiKey"] as! String; let userID = options["userId"] as? String; let observerMode = options["observerMode"] as? Bool ?? true; Apphud.start(apiKey: apiKey, userID: userID, observerMode: observerMode); resolve(true); } @objc(startManually:withResolver:withRejecter:) func startManually(options: NSDictionary, resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { let apiKey = options["apiKey"] as! String; let userID = options["userId"] as? String; let deviceID = options["deviceId"] as? String; let observerMode = options["observerMode"] as? Bool ?? true; Apphud.startManually(apiKey: apiKey, userID: userID, deviceID: deviceID, observerMode: observerMode); resolve(true); } @objc(logout:withRejecter:) func logout(resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { Apphud.logout(); resolve(true); } @objc(hasActiveSubscription:withRejecter:) func hasActiveSubscription(resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { resolve(Apphud.hasActiveSubscription()); } @objc(products:withRejecter:) func products(resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { let products:[SKProduct]? = Apphud.products(); resolve( products?.map{ (product) -> NSDictionary in return [ "id": product.productIdentifier, "price": product.price, "regionCode": product.priceLocale.regionCode as Any, "currencyCode": product.priceLocale.currencyCode as Any, ]; } ); } @objc(product:withResolver:withRejecter:) func product(productIdentifier:String, resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { resolve( Apphud.product(productIdentifier: productIdentifier) ); } @objc(purchase:withResolver:withRejecter:) func purchase(productIdentifier:String, resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) -> Void { Apphud.purchaseById(productIdentifier) { (result:ApphudPurchaseResult) in let transaction:SKPaymentTransaction? = result.transaction; var response = [ "subscription": [ "productId": result.subscription?.productId as Any, "expiresDate": result.subscription?.expiresDate.timeIntervalSince1970 as Any, "startedAt": result.subscription?.startedAt?.timeIntervalSince1970 as Any, "canceledAt": result.subscription?.canceledAt?.timeIntervalSince1970 as Any, "isInRetryBilling": result.subscription?.isInRetryBilling as Any, "isAutorenewEnabled": result.subscription?.isAutorenewEnabled as Any, "isIntroductoryActivated": result.subscription?.isIntroductoryActivated as Any, "isActive": result.subscription?.isActive() as Any, "status": result.subscription?.status.rawValue as Any ], "nonRenewingPurchase": [ "productId": result.nonRenewingPurchase?.productId as Any, "purchasedAt": result.nonRenewingPurchase?.purchasedAt.timeIntervalSince1970 as Any, "canceledAt": result.nonRenewingPurchase?.canceledAt?.timeIntervalSince1970 as Any ], "error": result.error.debugDescription ] as [String : Any]; if (transaction != nil) { response["transaction"] = [ "transactionIdentifier": transaction?.transactionIdentifier as Any, "transactionDate": transaction?.transactionDate?.timeIntervalSince1970 as Any, "payment": [ "productIdentifier": transaction?.payment.productIdentifier as Any, "description": transaction?.payment.description.description as Any, "applicationUsername": transaction?.payment.applicationUsername as Any, "quantity": transaction?.payment.quantity as Any ] ] } resolve(response); } } @objc(subscription:withRejecter:) func subscription(resolve: RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { let subscription = Apphud.subscription(); resolve([ "productId": subscription?.productId as Any, "expiresDate": subscription?.expiresDate.timeIntervalSince1970 as Any, "startedAt": subscription?.startedAt?.timeIntervalSince1970 as Any, "canceledAt": subscription?.canceledAt?.timeIntervalSince1970 as Any, "isInRetryBilling": subscription?.isInRetryBilling as Any, "isAutorenewEnabled": subscription?.isAutorenewEnabled as Any, "isIntroductoryActivated": subscription?.isIntroductoryActivated as Any, "isActive": subscription?.isActive() as Any, "status": subscription?.status.rawValue as Any, ]); } @objc(isNonRenewingPurchaseActive:withResolver:withRejecter:) func isNonRenewingPurchaseActive(productIdentifier: String, resolve: RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { resolve( Apphud.isNonRenewingPurchaseActive(productIdentifier: productIdentifier) ); } @objc(nonRenewingPurchases:withRejecter:) func nonRenewingPurchases(resolve: RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { let purchases = Apphud.nonRenewingPurchases(); resolve( purchases?.map({ (purchase) -> NSDictionary in return [ "productId": purchase.productId, "canceledAt": purchase.canceledAt?.timeIntervalSince1970 as Any, "purchasedAt": purchase.purchasedAt.timeIntervalSince1970 as Any ] }) ); } @objc(restorePurchases:withRejecter:) func restorePurchases(resolve: @escaping RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { Apphud.restorePurchases { (subscriptions, purchases, error) in resolve([ "subscriptions": subscriptions?.map{ (subscription) -> NSDictionary in return [ "productId": subscription.productId as Any, "expiresDate": subscription.expiresDate.timeIntervalSince1970 as Any, "startedAt": subscription.startedAt?.timeIntervalSince1970 as Any, "canceledAt": subscription.canceledAt?.timeIntervalSince1970 as Any, "isInRetryBilling": subscription.isInRetryBilling as Any, "isAutorenewEnabled": subscription.isAutorenewEnabled as Any, "isIntroductoryActivated": subscription.isIntroductoryActivated as Any, "isActive": subscription.isActive() as Any, "status": subscription.status.rawValue as Any, ] } as Any, "purchases": purchases?.map{ (purchase) -> NSDictionary in return [ "productId": purchase.productId, "canceledAt": purchase.canceledAt?.timeIntervalSince1970 as Any, "purchasedAt": purchase.purchasedAt.timeIntervalSince1970 as Any ] } as Any, "error": error?.localizedDescription as Any, ]) } } @objc(userId:withRejecter:) func userId(resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { resolve( Apphud.userID() ); } @objc(addAttribution:withResolver:withRejecter:) func addAttribution(options: NSDictionary, resolve: @escaping RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) -> Void { let data = options["data"] as! [AnyHashable : Any]; let identifier = options["identifier"] as? String; let from:ApphudAttributionProvider? = ApphudAttributionProvider(rawValue: options["attributionProviderId"] as! Int); Apphud.addAttribution(data: data, from: from!, identifer: identifier) { (result:Bool) in resolve(result); } } @objc(subscriptions:withRejecter:) func subscriptions(resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { reject("Error method", "Unsupported method", nil); } @objc(syncPurchases:withRejecter:) func syncPurchases(resolve:RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void { reject("Error method", "Unsupported method", nil); } }
[ -1 ]
c86f2278f5a673f8ea5fca1d2700962f0ca38ccd
a966128a579d16deb25958bca2ff1ee4da04c380
/Sources/ANTMessageProtocol/Types/DateTime.swift
4213545efaf4e9105712b706f99b40061b6fed2d
[ "MIT" ]
permissive
FitnessKit/AntMessageProtocol
f28505455d58492997a9fd028a7c9b2f72e4de47
eb9dac164c39c694607821063ba9243aa8816e7f
refs/heads/master
2022-05-10T15:36:38.087528
2022-01-16T16:57:13
2022-01-16T16:57:13
120,125,692
5
3
MIT
2022-01-16T16:57:14
2018-02-03T20:11:00
Swift
UTF-8
Swift
false
false
4,508
swift
// // DateTime.swift // AntMessageProtocol // // Created by Kevin Hoogheem on 4/9/17. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. import Foundation /// Day of Week public enum DayOfWeek: UInt8 { /// Sunday case sunday = 0 /// Monday case monday = 1 /// Tuesday case tuesday = 2 /// Wednesday case wednesday = 3 /// Thursday case thursday = 4 /// Friday case friday = 5 /// Saturday case saturday = 6 /// Invalid case invalid = 7 } public extension DayOfWeek { /// Day of Week string value var stringValue: String { switch self { case .sunday: return "Sunday" case .monday: return "Monday" case .tuesday: return "Tuesday" case .wednesday: return "Wednesday" case .thursday: return "Thursday" case .friday: return "Friday" case .saturday: return "Saturday" case .invalid: return "Invalid" } } } /// Month public enum Month: UInt8 { /// January case january = 1 /// February case february = 2 /// March case march = 3 /// April case april = 4 /// May case may = 5 /// June case june = 6 /// July case july = 7 /// August case august = 8 /// September case september = 9 /// October case october = 10 /// November case november = 11 /// December case december = 12 } /// ANT Day public struct AntDay { /// Weekday public let weekday: DayOfWeek /// Day of Month public let dayOfMonth: UInt8 /// UInt8 Value public var uint8Value: UInt8 { var value: UInt8 = dayOfMonth value |= UInt8(weekday.rawValue) << 5 return UInt8(value) } public init(_ value: UInt8) { self.dayOfMonth = (value & 0x1F) self.weekday = DayOfWeek(rawValue: ((value & 0xE0) >> 5)) ?? .invalid } public init(weekday: DayOfWeek, dayOfMonth: UInt8) { self.weekday = weekday self.dayOfMonth = dayOfMonth } } /// Time Date public struct TimeDate { fileprivate var _year: UInt8 = 0 /// Seconds public let seconds: UInt8 /// Minutes public let minutes: UInt8 /// Houra public let hours: UInt8 /// Day public let day: AntDay /// Month public let month: Month fileprivate(set) public var year: UInt16 { get { return UInt16(_year) + 2000 } set { _year = UInt8(newValue - 2000) } } public init(seconds: UInt8, minutes: UInt8, hour: UInt8, day: AntDay, month: Month, year: UInt16) { self.seconds = seconds self.minutes = minutes self.hours = hour self.day = day self.month = month var newYear = year if newYear <= 255 { newYear = year + 2000 } self.year = min(max(newYear, 2000), 2255) } } extension TimeDate: Encodeable { public var encodedData: Data { var encode = Data() encode.append(seconds) encode.append(minutes) encode.append(hours) encode.append(day.uint8Value) encode.append(month.rawValue) encode.append(_year) return encode } }
[ -1 ]
788daf8390bdc5ffdf5c2e3d053b55255a79d359
032617b9ec864eee4143c8e78f1adcd742cdd363
/Preco bitcoin/Preco bitcoin/BitcoinResponse.swift
42189287e8cc38046eb1aac8fb2538409a4e0206
[]
no_license
Gilbert097/Preco-bitcoin-IOS
a3b75fb6c7ef1d4db48291f58ebdddaef8186e21
c9ded8fe0f2a5de73efca08fb851d2345fe2cdf6
refs/heads/master
2023-04-03T07:16:50.512060
2021-04-14T00:29:25
2021-04-14T00:29:25
357,001,335
0
0
null
null
null
null
UTF-8
Swift
false
false
1,751
swift
// // CodeCoin.swift // Preco bitcoin // // Created by Gilberto Silva on 11/04/21. // import Foundation public class BitcoinResponse: Codable { var usd: BitcoinDetail? = nil var aud: BitcoinDetail? = nil var brl: BitcoinDetail? = nil var cad: BitcoinDetail? = nil var chf: BitcoinDetail? = nil var clp: BitcoinDetail? = nil var cny: BitcoinDetail? = nil var dkk: BitcoinDetail? = nil var eur: BitcoinDetail? = nil var gbp: BitcoinDetail? = nil var hkd: BitcoinDetail? = nil var inr: BitcoinDetail? = nil var isk: BitcoinDetail? = nil var jpy: BitcoinDetail? = nil var krw: BitcoinDetail? = nil var nzd: BitcoinDetail? = nil var pln: BitcoinDetail? = nil var rub: BitcoinDetail? = nil var sek: BitcoinDetail? = nil var sgd: BitcoinDetail? = nil var thb: BitcoinDetail? = nil var tryCoin: BitcoinDetail? = nil var twd: BitcoinDetail? = nil enum CodingKeys: String, CodingKey { case usd = "USD" case aud = "AUD" case brl = "BRL" case cad = "CAD" case chf = "CHF" case clp = "CLP" case cny = "CNY" case dkk = "DKK" case eur = "EUR" case gbp = "GBP" case hkd = "HKD" case inr = "INR" case isk = "ISK" case jpy = "JPY" case krw = "KRW" case nzd = "NZD" case pln = "PLN" case rub = "RUB" case sek = "SEK" case sgd = "SGD" case thb = "THB" case tryCoin = "TRY" case twd = "TWD" } } //Exemplo //do { // let teste = try JSONDecoder().decode(CodeCoin.self, from: data) // print(teste.aud!.buy) //} catch { // print("Error: \(error.localizedDescription)") //}
[ -1 ]
debc63781791b64be3a2eefe98040ff334572987
d5c3430717a8df794c988f3daee517ce5f9c3d5b
/Source/Objects/HTTPClient.swift
f1d4ffd428273d006f60ec3ac29af964e1dc73dd
[]
no_license
khoadotan12/DogYears
4aa69fdc7f5b0db0639e3687582332e04e384657
2b4d8a83f0188a173a7c228cf970526ba444e745
refs/heads/master
2020-05-01T10:26:33.751760
2019-03-30T04:33:41
2019-03-30T04:33:41
177,420,851
0
0
null
null
null
null
UTF-8
Swift
false
false
2,253
swift
/// Copyright (c) 2017 Razeware LLC /// /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to deal /// in the Software without restriction, including without limitation the rights /// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell /// copies of the Software, and to permit persons to whom the Software is /// furnished to do so, subject to the following conditions: /// /// The above copyright notice and this permission notice shall be included in /// all copies or substantial portions of the Software. /// /// Notwithstanding the foregoing, you may not use, copy, modify, merge, publish, /// distribute, sublicense, create a derivative work, and/or sell copies of the /// Software in any work that is designed, intended, or marketed for pedagogical or /// instructional purposes related to programming, coding, application development, /// or information technology. Permission for such use, copying, modification, /// merger, publication, distribution, sublicensing, creation of derivative works, /// or sale is expressly withheld. /// /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, /// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE /// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER /// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. import Foundation class HTTPClient { private let session: URLSessionProtocol init(session: URLSessionProtocol) { self.session = session } // MARK:- Public Methods func get(url: String, callback: @escaping (_ data: Data?, _ error: Error?)->Void ) { guard let link = URL(string: url) else { let error = NSError(domain: "URL Error", code: 1, userInfo: nil) callback(nil, error) return } let request = URLRequest(url: link) let task = session.dataTask(with: request) {(data, response, error) in callback(data, error) } task.resume() } }
[ 367874, 379650, 319376, 415250, 319378, 319380, 319381, 319383, 319384, 319385, 379298, 379309, 379311, 379312, 411715, 379716, 379461, 379719, 333648, 307408, 379735, 379737, 226012, 379485, 319328, 309983, 379616, 309984, 309986, 319330, 379620, 379617, 309605, 379618, 309607, 319337, 379627, 309612, 309615, 379631, 379647 ]
e3dac677661a4afe8bd6104168d2a458eeb6d555
9898b518d91844bcc59736607f54fa2c629f8191
/Search_artwork_music_albums/Extension/UIITextFiledExtension.swift
b4cedb211a393ce7e077c34732285026b1ca42e3
[]
no_license
Yserhii/Search_artwork_music_albums
9d3f70cca8a9027425f59bf334fdc03ca6fab735
f20049e27806f248f204996fdfcddd39c7b9acd0
refs/heads/master
2020-07-21T18:58:22.104243
2019-09-12T10:47:29
2019-09-12T10:47:29
206,949,840
0
0
null
null
null
null
UTF-8
Swift
false
false
727
swift
// // UIITextFiledExtension.swift // Search_artwork_music_albums // // Created by Yolankyi SERHII on 9/11/19. // Copyright © 2019 Yolankyi SERHII. All rights reserved. // import UIKit extension UITextField { func error(error: String) { self.layer.cornerRadius = 8.0 self.layer.borderColor = UIColor.red.cgColor self.layer.borderWidth = 1.0 self.text = "" self.placeholder = error } func success() { let def = UITextView() self.layer.borderWidth = def.layer.borderWidth self.layer.cornerRadius = def.layer.cornerRadius self.layer.borderColor = def.layer.borderColor self.placeholder = "" self.text = "" } }
[ -1 ]
45c033d2908840a85a528f2f9c8421bd692c6732
10e483145b93d977244cb7585323e5c5357d78e8
/MudFramework_Swift/UIKit/UIKit+CustomView/MudImageBrowserViewController.swift
1298735f0ded6a120e091cbc657c61c2a27c818a
[]
no_license
Mudmen/MudFramework_Swift
9b70cbab3c53ed4b8036e06d562c75279857ffe8
a6f9a7e2923550b7a61edd4badf3233efc98bcd1
refs/heads/master
2021-06-01T09:03:14.027865
2016-07-08T07:47:26
2016-07-08T07:47:26
null
0
0
null
null
null
null
UTF-8
Swift
false
false
13,005
swift
//// //// MudImageBrowserViewController.swift //// Travel //// //// Created by TimTiger on 6/18/15. //// Copyright (c) 2015 Mudmen. All rights reserved. //// // //import UIKit //import QuartzCore // //private let shareInstance = MudImageBrowserViewController() // //class MudImageBrowserViewController: NSObject,UIScrollViewDelegate,MudActionSheetDelegate { // var containerView: UIView? // var scrollView: UIScrollView? // var imageView: UIImageView? // private var imageRect: CGRect? // private var imageRadius: CGFloat = 0 // // //share instance // class var shareController: MudImageBrowserViewController { // return shareInstance // } // // override init() { // super.init() // } // // //MARK: - public API // /// show image // class func browerImageWithUrl(imageString: String?,image: UIImage?) { // MudImageBrowserViewController.browerImageWithUrl(imageString, image: image, defaultImage: nil, animationStartFrame: CGRectZero, radius: 0) // } // // /// show image // class func browerImageWithUrl(imageString: String?,image: UIImage?,defaultImage: UIImage?,animationStartFrame: CGRect,radius: CGFloat) { // // //图片地址和图片都为空 直接不显示 // if String.isEmptyString(imageString) && image == nil { // return // } // // //图片地址为空, 图片不为空 直接显示图片 // else if String.isEmptyString(imageString) && image != nil { // MudImageBrowserViewController.shareController.showImageWithImageURL(nil, placeholderImage: image, frame: animationStartFrame, radius: radius) // } // // //图片地址不为空,图片为空 // else if String.isNotEmptyString(imageString) && image == nil { // //直接将图片地址作为名称读取图片 // var timage = UIImage(named: imageString!) // if timage != nil { // //如果存在显示此图片 // MudImageBrowserViewController.shareController.showImageWithImageURL(NSURL(string: imageString!), placeholderImage: timage, frame: animationStartFrame, radius: radius) // } else { // //直接到缓存中寻找对应的图片 // timage = SDImageCache.sharedImageCache().imageFromDiskCacheForKey(imageString) // if timage != nil { // //如果图片存在世界显示此图片 // MudImageBrowserViewController.shareController.showImageWithImageURL(NSURL(string: imageString!), placeholderImage: timage, frame: animationStartFrame, radius: radius) // } else { // //去下载图片 // MudImageBrowserViewController.shareController.showloadingImageWithImageURL(NSURL(string: imageString!), placeholderImage: defaultImage, frame: animationStartFrame, radius: radius) // } // } // } // //图片地址不为空,图片不为空 // else { // MudImageBrowserViewController.shareController.showImageWithImageURL(NSURL(string: imageString!), placeholderImage: defaultImage, frame: animationStartFrame, radius: radius) // } // } // // private func showloadingImageWithImageURL(url: NSURL?,placeholderImage: UIImage?,frame: CGRect,radius: CGFloat) { // //设置好视图 // self.setView(frame, radius: radius) // //显示正在loading // MBProgressHUD.showHUDAddedTo(MudImageBrowserViewController.shareController.containerView!, text: "", animated: true) // //下载图片 // self.imageView?.sd_setImageWithURL(url, placeholderImage: placeholderImage, completed: { (image, error, type, url) -> Void in // if error == nil { // //加载图片 // self.imageView?.image = image // self.refreshImageView() // } // MBProgressHUD.hideAllHUDsForView(self.containerView, animated: true) // }) // self.showWithRect(frame, radius: radius) // } // // private func showImageWithImageURL(url: NSURL?,placeholderImage: UIImage?,frame: CGRect,radius: CGFloat) { // self.setView(frame, radius: radius) // //下载图片 // self.imageView?.sd_setImageWithURL(url, placeholderImage: placeholderImage, completed: { (image, error, type, url) -> Void in // if image != nil { // //加载图片 // self.imageView?.image = image // } // self.refreshImageView() // }) // self.showWithRect(frame, radius: radius) // } // // private func setView(frame: CGRect,radius: CGFloat) { // self.containerView = UIView(frame: CGRectMake(0,0,UIScreen.mainScreen().bounds.size.width,UIScreen.mainScreen().bounds.size.height)) // self.containerView?.backgroundColor = UIColor.clearColor() // self.scrollView = UIScrollView(frame: CGRectMake(0,0,UIScreen.mainScreen().bounds.size.width,UIScreen.mainScreen().bounds.size.height)) // self.scrollView?.backgroundColor = UIColor.clearColor() // self.scrollView?.bounces = false // self.scrollView?.bouncesZoom = true // self.scrollView?.delegate = self // self.imageView = UIImageView(frame: self.scrollView!.bounds) // self.imageView?.contentMode = UIViewContentMode.ScaleAspectFit // self.imageView?.backgroundColor = UIColor.clearColor() // self.scrollView?.addSubview(self.imageView!) // self.containerView?.addSubview(self.scrollView!) // // let tapgesture = UITapGestureRecognizer() // tapgesture.addTarget(self, action: "tapAction:") // tapgesture.numberOfTapsRequired = 1 // self.containerView?.addGestureRecognizer(tapgesture) // // let longPressGesture = UILongPressGestureRecognizer() // longPressGesture.addTarget(self, action: "longPressAction:") // self.imageView?.userInteractionEnabled = true // self.imageView?.addGestureRecognizer(longPressGesture) // // self.imageRect = frame // self.imageRadius = radius // } // // private func refreshImageView() { // let frame = self.getImageFrame() // self.imageView?.frame = frame // self.scrollView?.contentSize = CGSizeMake(0, frame.height) // self.scrollView?.maximumZoomScale = 10 // self.scrollView?.minimumZoomScale = 1.0 // } // // //get image frame // private func getImageFrame()->CGRect { // var frame = self.scrollView!.bounds // if self.imageView?.image != nil { // let image = self.imageView!.image! // let width = image.size.width // let height = image.size.height // if width <= SCREENWIDTH && height <= SCREENHEIGHT { // frame.size.width = SCREENWIDTH // frame.size.height = SCREENHEIGHT // self.imageView?.contentMode = UIViewContentMode.Center // } else if width/height >= SCREENWIDTH/SCREENHEIGHT { // frame.size.width = SCREENWIDTH // frame.size.height = SCREENHEIGHT//((SCREENWIDTH*image.size.height)/image.size.width) // self.imageView?.contentMode = UIViewContentMode.ScaleAspectFit // } else if width/height < SCREENWIDTH/SCREENHEIGHT { // frame.size.height = ((SCREENWIDTH*image.size.height)/image.size.width) // frame.size.width = SCREENWIDTH // self.imageView?.contentMode = UIViewContentMode.ScaleAspectFit // } // } // return frame // } // // private func imageDismissFrame()->CGRect { // var frame = self.scrollView!.bounds // if self.imageView?.image != nil { // let image = self.imageView!.image! // let width = image.size.width // let height = image.size.height // if width <= SCREENWIDTH && height <= SCREENHEIGHT { // frame.size.width = width // frame.size.height = height // frame.origin.x = (SCREENWIDTH-width)/2 // frame.origin.y = (SCREENHEIGHT-height)/2 // } else if width/height > SCREENWIDTH/SCREENHEIGHT { // frame.size.width = SCREENWIDTH // frame.size.height = ((SCREENWIDTH*image.size.height)/image.size.width) // frame.origin.y = (SCREENHEIGHT-frame.size.height)/2 // } else if width/height < SCREENWIDTH/SCREENHEIGHT { // frame.size.height = ((SCREENWIDTH*image.size.height)/image.size.width) // frame.size.width = SCREENWIDTH // } // } // return frame // } // // private func showWithRect(rect: CGRect,radius: CGFloat) { // UIApplication.sharedApplication().setStatusBarHidden(true, withAnimation: UIStatusBarAnimation.None) // if rect == CGRectZero { // self.scrollView?.backgroundColor = UIColor.blackColor() // let keywindow = UIApplication.sharedApplication().keyWindow // keywindow?.addSubview(self.containerView!) // } else { // self.imageView?.contentMode = UIViewContentMode.ScaleAspectFit // self.scrollView?.backgroundColor = UIColor.blackColor() // let keywindow = UIApplication.sharedApplication().keyWindow // keywindow?.addSubview(self.containerView!) // self.imageView?.layer.masksToBounds = true // self.imageView?.layer.cornerRadius = radius // self.imageView?.frame = rect // let frame = self.getImageFrame() // self.scrollView?.contentSize = CGSizeMake(0, frame.height) // UIView.animateWithDuration(0.35, animations: { () -> Void in // self.imageView?.frame = frame // self.imageView?.layer.cornerRadius = 0 // }, completion: { (finished) -> Void in // // }) // } // } // // func tapAction(sender: UITapGestureRecognizer) { // UIApplication.sharedApplication().setStatusBarHidden(false, withAnimation: UIStatusBarAnimation.None) // MBProgressHUD.hideAllHUDsForView(self.containerView, animated: true) // self.scrollView?.backgroundColor = UIColor.clearColor() // self.scrollView?.setZoomScale(1, animated: false) // self.scrollView?.contentOffset = CGPointMake(0, 0) // self.imageView?.frame = self.imageDismissFrame() // if self.imageRect != nil && self.imageRect != CGRectZero && self.imageView?.image != nil { // self.imageView?.contentMode = UIViewContentMode.ScaleAspectFill // UIView.animateWithDuration(0.25, animations: { () -> Void in // self.imageView?.frame = self.imageRect! // self.imageView?.layer.cornerRadius = self.imageRadius // }, completion: { (finished) -> Void in // self.imageRect = nil // self.imageRadius = 0 // self.containerView?.removeFromSuperview() // }) // } else { // self.imageRect = nil // self.imageRadius = 0 // self.containerView?.removeFromSuperview() // } // } // // func longPressAction(sender: UILongPressGestureRecognizer) { // if sender.state == UIGestureRecognizerState.Began && self.imageView?.image != nil { // let actionSheet = MudActionSheet(title: nil, adelegate: self, destructiveButtonIndex: -1, buttonTitles: [MudLocalString.stringForKey("SaveToPhone", tableName: "MudLocalization")]) // actionSheet.show() // } // } // // func actionSheet(actionSheet: MudActionSheet, didSelectedButtonAtIndex buttonIndex: Int) { // if buttonIndex == 1 { // UIImageWriteToSavedPhotosAlbum(self.imageView!.image!, self, "saveImageComplete:err:context:", nil) // } // } // // func saveImageComplete(image: UIImage,err: NSError?,context:UnsafePointer<()>) // { // if err == nil { // SVProgressHUD.showSuccessWithStatus(MudLocalString.stringForKey("SaveSuccess", tableName: "MudLocalization")) // } // } // // func viewForZoomingInScrollView(scrollView: UIScrollView) -> UIView? { // return scrollView.subviews[0] // } // // func scrollViewDidZoom(scrollView: UIScrollView) { // if scrollView.zoomScale <= 1 { // if self.imageView?.frame.size.height > 2*SCREENHEIGHT { // self.imageView?.center = CGPointMake(self.scrollView!.center.x, self.imageView!.center.y) // } else { // self.imageView?.center = self.scrollView!.center // } // } // } // // deinit { // // } // // //}
[ -1 ]
89106afb58ab0b7dec53b188ba8b531ecd51cfdc
2c1a9291104205789eff80ccedd6a2e1d36d1e31
/CoreBluetoothWithSwif/BlueToothManager/LJBluetoothTransferInterface.swift
a42260ce060fb83171d142d0459f03419b5b978b
[]
no_license
liangjie-MrJie/iOSBluetooth-swift
a8611c46811936941841f4965993f3510ea55756
8dbf972c8525c969e458735523ddd83396eab64e
refs/heads/master
2020-12-24T21:01:04.230580
2016-05-11T01:14:04
2016-05-11T01:14:04
58,376,105
6
1
null
null
null
null
UTF-8
Swift
false
false
4,260
swift
// // LJBluetoothTransferInterface.swift // CoreBluetoothWithSwif // // Created by liangjie on 16/5/9. // Copyright © 2016年 liangjie. All rights reserved. // import Foundation /// key of retrieve device let DeviceInfoNameKey = "DeviceInfoNameKey" let DeviceInfoIdentifierKey = "DeviceInfoIdentifierKey" let DeviceInfoMacAddressKey = "DeviceInfoMacAddressKey" /** * 通知相关 */ let BlueToothCentralStateUpdateNotification = "BlueToothCentralStateUpdateKey" let BlueToothCentralStateUpdateNotificationUserInfoKey = "BlueToothCentralStateUpdateNotificationUserInfoKey" /** * LJBLEManagerDelegate */ protocol LJBLEManagerDelegate: NSObjectProtocol { func scanDeviceCallBack(device: LJDevice) func connectStateCallBack(state: BlueToothConnectState) } enum BlueToochCentralState: Int { case Unknown case UnsupportedBLE case Unauthorized case PoweredOff case PoweredOn init(rawValue: Int) { switch rawValue { case 1: self = .UnsupportedBLE case 2: self = .Unauthorized case 3: self = .PoweredOff case 4: self = .PoweredOn default: self = .Unknown } } } enum BlueToothConnectState: Int { case Connecting case Connected case Disconnecting case Disconnected } enum ResponseResult: Int { case Succeed case Fault case Timeout } enum BlueToohTransferControl: Int { case Write case Timeout case Succeed } typealias ResponseResultCallBack = (result:ResponseResult, receiveData: NSData?) -> Void class LJBluetoothTransferInterface: NSObject { // 单利 static let instance = LJBluetoothTransferInterface() class func sharedInstance() -> LJBluetoothTransferInterface { return LJBluetoothTransferInterface.instance; } private override init() { self.ljbleShared = LJBLEManager.sharedInstance() super.init() } private var ljbleShared: LJBLEManager weak var delegate :LJBLEManagerDelegate? { willSet { self.ljbleShared.delegate = newValue } } /** 获取当前连接的设备 - returns: 当前设备 */ func takeCurrentDevice() -> LJDevice? { return self.ljbleShared.currentDevice } /** 注册服务UUID - parameter uuids: uuids */ func registerServiceUUID(uuids: [String]?) { self.ljbleShared.registerServiceUUID(uuids) } /** 扫描设备 - parameter timeOut: 超时时间 */ func scanDevice(timeout: NSTimeInterval=DefaultScanTimeout) { self.ljbleShared.scanDevice(timeout) } /** 停止扫描设备 */ func stopScanDevice() { self.ljbleShared.stopScanDevice() } /** 当前设备的连接状态 - returns: BlueToochConnectState */ func currentState() -> BlueToothConnectState { return self.ljbleShared.currentState() } /** 找回设备对象 - parameter deviceInfo: 包涵DeviceInfoNameKey DeviceInfoIdentifierKey DeviceInfoMacAddressKey - returns: 设备对象 */ func retrieveDeviceObject(deviceInfo: Dictionary<String, String>) -> LJDevice { return self.ljbleShared.retrieveDeviceObject(deviceInfo) } /** 连接设备 - parameter device: 设备对象 */ func connectToDevice(device: LJDevice) { self.ljbleShared.connectToDevice(device) } /** 断开连接 - parameter device: 设备对象 */ func disconnectDevice(device: LJDevice) { self.ljbleShared.disconnectDevice(device) } /** 发送数据 - parameter data: 待发送的数据 - parameter timeout: 操时时间 - parameter repeatCount: 操时重发次数 - parameter responseResult: 响应结果 - returns: 是否发送成功 */ func sendData(data: NSData, timeout: NSTimeInterval=3, repeatCount: Int8=0, responseResult: ResponseResultCallBack?) -> Bool { return self.ljbleShared.sendData(data, timeout: timeout, repeatCount: repeatCount, responseResult: responseResult) } }
[ -1 ]
0de8829761dea8e9d5457f47bd0f1c9e3dde2b38
3922a484c062c836818e90fa7602945d2da81f27
/plan.it/InterestsViewController.swift
527b4ba2469d1dba1b276633c1bf56d47ad8240b
[]
no_license
mjflynn2/Plan.it_Final
d55aca4b581b454dc9fd4cb33faf81c315c5d485
72b9481e247e436da84b5831d50588861084f64c
refs/heads/master
2021-01-20T06:33:20.200863
2017-05-16T00:47:43
2017-05-16T00:47:43
89,892,111
0
0
null
null
null
null
UTF-8
Swift
false
false
6,798
swift
// // InterestsViewController.swift // plan.it // // Created by Daniel Silva on 4/6/17. // Copyright © 2017 D Silvv Apps. All rights reserved. import UIKit import FirebaseAuth import Firebase var interestsArray: [Bool] = [false, false, false, false, false, false, false, false] class InterestsViewController: UIViewController { // @IBOutlet var step: UILabel! //currently says interests @IBOutlet weak var titleOutlet: UILabel! // need to get the current user's data by reference let currentUser = FIRAuth.auth()?.currentUser?.uid // isPressed buttons to keep track of whether that category button is pressed or not @IBOutlet var musicButton: UIButton! @IBOutlet var socialButton: UIButton! @IBOutlet var sportsButton: UIButton! @IBOutlet var artsButton: UIButton! var musicIsPressed: Bool = false var socialIsPressed: Bool = false var sportsIsPressed: Bool = false var artsIsPressed: Bool = false @IBOutlet weak var musicOutlet: UILabel! @IBOutlet weak var socialOutlet: UILabel! @IBOutlet weak var sportsOutlet: UILabel! @IBOutlet weak var artsOutlet: UILabel! func updateInterestArray(interestNumber: Int, buttonStatus: Bool) { if buttonStatus == false { interestsArray[interestNumber] = false } else { interestsArray[interestNumber] = true } print(interestsArray) /* FIRDatabase.database().reference().child("users").child(FIRAuth.auth()!.currentUser!.uid).child("interests").observe(.value, with: { snapshot in if snapshot.value is NSNull { print("not found") } else { } }) */ } @IBAction func musicButton(_ sender: Any) { if musicIsPressed == false { // button is not pressed yet, pressing it musicIsPressed = true // change image for button (filled circle?) musicButton.setImage(UIImage(named: "Asset [email protected]"), for: UIControlState.normal) // update boolean status of interest array updateInterestArray(interestNumber: 0, buttonStatus: musicIsPressed) } else if musicIsPressed == true { // button is already pressed and we are unpressing it musicIsPressed = false // change image for button (unfilled circle?) musicButton.setImage(UIImage(named: "Asset [email protected]"), for: UIControlState.normal) // update boolean status of interest array updateInterestArray(interestNumber: 0, buttonStatus: musicIsPressed) } } @IBAction func socialButton(_ sender: Any) { if socialIsPressed == false { // button is not pressed yet, pressing it socialIsPressed = true // change image for button (filled circle?) socialButton.setImage(UIImage(named: "Asset [email protected]"), for: UIControlState.normal) // update boolean status of interest array updateInterestArray(interestNumber: 1, buttonStatus: socialIsPressed) } else if socialIsPressed == true { // button is already pressed and we are unpressing it socialIsPressed = false // change image for button (unfilled circle?) socialButton.setImage(UIImage(named: "Asset [email protected]"), for: UIControlState.normal) // update boolean status of interest array updateInterestArray(interestNumber: 1, buttonStatus: socialIsPressed) } } @IBAction func sportsButton(_ sender: Any) { if sportsIsPressed == false { // button is not pressed yet, pressing it sportsIsPressed = true // change image for button (filled circle?) sportsButton.setImage(UIImage(named: "Asset [email protected]"), for: UIControlState.normal) // update boolean status of interest array updateInterestArray(interestNumber: 2, buttonStatus: sportsIsPressed) } else if sportsIsPressed == true { // button is already pressed and we are unpressing it sportsIsPressed = false // change image for button (unfilled circle?) sportsButton.setImage(UIImage(named: "Asset [email protected]"), for: UIControlState.normal) // update boolean status of interest array updateInterestArray(interestNumber: 2, buttonStatus: sportsIsPressed) } } @IBAction func artsButton(_ sender: Any) { if artsIsPressed == false { // button is not pressed yet, pressing it artsIsPressed = true // change image for button (filled circle?) artsButton.setImage(UIImage(named: "Asset [email protected]"), for: UIControlState.normal) // update boolean status of interest array updateInterestArray(interestNumber: 3, buttonStatus: artsIsPressed) } else if artsIsPressed == true { // button is already pressed and we are unpressing it artsIsPressed = false // change image for button (unfilled circle?) artsButton.setImage(UIImage(named: "Asset [email protected]"), for: UIControlState.normal) // update boolean status of interest array updateInterestArray(interestNumber: 3, buttonStatus: artsIsPressed) } } override func viewDidLoad() { // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destinationViewController. // Pass the selected object to the new view controller. } */ }
[ -1 ]
aa0e94924275cfd6dc697e0d286b46aba6e473f4
6cc16ca60b685eeaf6b9f2a30412f4ff1345cd58
/Sisyphus/Storyboards/QuoteView/QuotesViewController.swift
111b35aba677c0b1c4013c77afe8e221801757e0
[]
no_license
normanwang1234/SisyphusApp
646c80ba4d6ad3adeebf8ffe91bae94951c7468a
a226a7743bb84359d1e8e3139c2c65773a1101a4
refs/heads/master
2020-12-22T19:33:23.143068
2020-01-29T06:16:34
2020-01-29T06:16:34
236,684,427
0
0
null
null
null
null
UTF-8
Swift
false
false
2,326
swift
// // QuotesViewController.swift // Sisyphus // // Created by Norman Wang on 1/27/20. // Copyright © 2020 Norman Wang. All rights reserved. // import UIKit class QuotesViewController: UIViewController { //MARK: Outlets @IBOutlet weak var collectionView: UICollectionView! @IBOutlet weak var activityIndicator: UIActivityIndicatorView! //MARK: Properties let viewModel = ViewModel(client: UnsplashClient()) override func viewDidLoad() { super.viewDidLoad() if let layout = collectionView.collectionViewLayout as? PinterestLayout { layout.delegate = self } collectionView.contentInset = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10) //Init viewModel viewModel.showLoading = { if self.viewModel.isLoading { self.activityIndicator.startAnimating() self.collectionView.alpha = 0.0 }else { self.activityIndicator.stopAnimating() self.collectionView.alpha = 1.0 } } viewModel.showError = { error in print(error) } viewModel.reloadData = { self.collectionView.reloadData() } viewModel.fetchPhotos() } } //MARK: Flow Layout Delegate extension QuotesViewController: PinterestLayoutDelegate { func collectionView(_ collectionView: UICollectionView, heightForPhotoAtIndexPath indexPath: IndexPath) -> CGFloat { let image = viewModel.cellViewModels[indexPath.item].image let height : CGFloat = image.size.height return height } } //MARK: Data Source extension QuotesViewController: UICollectionViewDataSource { func collectionView( _ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { return viewModel.cellViewModels.count } func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "PhotoCell", for: indexPath) as! QuoteCollectionViewCell let image = viewModel.cellViewModels[indexPath.item].image cell.imageView.image = image return cell } }
[ -1 ]
1e061478642417c76305ea7d8f779cb28dd1c168
dae1452a9b3ea500cb1c2dd3e5d1aadf2a09ed01
/Food Tracker/Restaurant Detail/UIExpandableTableView.swift
e63a5705da721e29bddb5fce75685938a5fcf873
[]
no_license
jaypanchal12/Food-Tracker
082161602028723ee748a6639c36d9dc6ffbbf6d
f5627559464b7c8c4e401cec8b78440be44232e1
refs/heads/master
2020-03-13T12:20:46.973511
2018-04-26T07:26:08
2018-04-26T07:26:08
131,117,364
0
0
null
null
null
null
UTF-8
Swift
false
false
1,603
swift
// // UIExpandableTableView.swift // LabelTeste // // Created by Rondinelli Morais on 11/09/15. // Copyright (c) 2015 Rondinelli Morais. All rights reserved. // import UIKit class UIExpandableTableView : UITableView, HeaderViewDelegate { var sectionOpen:Int = NSNotFound // MARK: HeaderViewDelegate func headerViewOpen(_ section: Int) { if self.sectionOpen != NSNotFound { headerViewClose(self.sectionOpen) } self.sectionOpen = section let numberOfRows = self.dataSource?.tableView(self, numberOfRowsInSection: section) var indexesPathToInsert:[IndexPath] = [] for i in 0..<numberOfRows! { indexesPathToInsert.append(IndexPath(row: i, section: section)) } if indexesPathToInsert.count > 0 { self.beginUpdates() self.insertRows(at: indexesPathToInsert, with: UITableViewRowAnimation.automatic) self.endUpdates() } } func headerViewClose(_ section: Int) { let numberOfRows = self.dataSource?.tableView(self, numberOfRowsInSection: section) var indexesPathToDelete:[IndexPath] = [] self.sectionOpen = NSNotFound for i in 0..<numberOfRows! { indexesPathToDelete.append(IndexPath(row: i, section: section)) } if indexesPathToDelete.count > 0 { self.beginUpdates() self.deleteRows(at: indexesPathToDelete, with: UITableViewRowAnimation.top) self.endUpdates() } } }
[ -1 ]
3e6f37e83842f8475e60cee986950d6347a873f0
bc6053db391ac4ba97f6c00947bdb3ff9230146a
/VISPER-Swift/Classes/AnyVISPERApp.swift
96d8d9c4aaac9cb45d21cce4152d219d2e4b391c
[ "MIT" ]
permissive
barteljan/VISPER
ed096067792f80a3154fbff8ada25d6ded3cb9f9
7d86954981eb0c15f413532b76913ed49b4a6e00
refs/heads/master
2022-07-19T12:59:07.010219
2022-07-08T09:33:11
2022-07-08T09:33:11
39,055,070
19
4
MIT
2018-12-12T12:51:39
2015-07-14T05:15:50
Swift
UTF-8
Swift
false
false
4,384
swift
// // AnyApplication.swift // SwiftyVISPER // // Created by bartel on 18.11.17. // import Foundation import VISPER_Redux import VISPER_Core import VISPER_Reactive import VISPER_Wireframe // some base class needed for type erasure, ignore it if possible class _AnyApplication<AppState> : VISPERAppType{ typealias ApplicationState = AppState var state: ObservableProperty<AppState> { fatalError("override me") } var wireframe : Wireframe { fatalError("override me") } var redux : Redux<AppState> { fatalError("override me") } func add(feature: Feature) throws { fatalError("override me") } func add(featureObserver: FeatureObserver) { fatalError("override me") } func add<T: StatefulFeatureObserver>(featureObserver: T) where T.AppState == AppState { fatalError("override me") } func add(featureObserver: WireframeFeatureObserver) { fatalError("override me") } func navigateOn(_ controller: UIViewController) { fatalError("override me") } func controllerToNavigate(matches: (UIViewController?) -> Bool) -> UIViewController? { fatalError("override me") } } // some box class needed for type erasure, ignore it if possible final class _AnyApplicationBox<Base: VISPERAppType>: _AnyApplication<Base.ApplicationState> { var base: Base init(_ base: Base) { self.base = base } override var state: ObservableProperty<Base.ApplicationState> { return self.base.state } override var wireframe: Wireframe { return self.base.wireframe } override var redux: Redux<Base.ApplicationState> { return self.base.redux } override func add(feature: Feature) throws { try self.base.add(feature: feature) } override func add<T: StatefulFeatureObserver>(featureObserver: T) where Base.ApplicationState == T.AppState { self.base.add(featureObserver: featureObserver) } override func add(featureObserver: FeatureObserver) { self.base.add(featureObserver: featureObserver) } override func add(featureObserver: WireframeFeatureObserver) { self.base.add(featureObserver: featureObserver) } override func navigateOn(_ controller: UIViewController) { self.base.navigateOn(controller) } override func controllerToNavigate(matches: (UIViewController?) -> Bool) -> UIViewController? { return self.base.controllerToNavigate(matches: matches) } } @available(*, unavailable, message: "replace this class with AnyVISPERApp",renamed: "AnyVISPERApp") public typealias AnyApplication<AppState> = AnyVISPERApp<AppState> /// Type erasure for the generic ApplicationType protocol /// (you need this to reference it as a full type, to use it in arrays or variable definitions, /// since generic protocols can only be used in generic definitions) open class AnyVISPERApp<AppState> : VISPERAppType { public typealias ApplicationState = AppState private let box: _AnyApplication<AppState> public init<Base: VISPERAppType>(_ base: Base) where Base.ApplicationState == AppState { box = _AnyApplicationBox(base) } open var state: ObservableProperty<AppState> { return self.box.state } open var wireframe: Wireframe { return self.box.wireframe } open var redux: Redux<AppState> { return self.box.redux } open func add(feature: Feature) throws { try self.box.add(feature: feature) } public func add(featureObserver: FeatureObserver) { self.box.add(featureObserver: featureObserver) } open func add<T: StatefulFeatureObserver>(featureObserver: T) where T.AppState == AppState { self.box.add(featureObserver: featureObserver) } open func add(featureObserver: WireframeFeatureObserver) { self.box.add(featureObserver: featureObserver) } open func navigateOn(_ controller: UIViewController) { self.box.navigateOn(controller) } public func controllerToNavigate(matches: (UIViewController?) -> Bool) -> UIViewController? { return self.box.controllerToNavigate(matches: matches) } }
[ -1 ]
f69434069ac9254f77cdb7ece56486d03b255e1f
6b62ed3e5bc000786da8cb01fb11d5da6062ee4a
/PostViewer/Common/Errors/PostViewerError+VKError.swift
68ba38f1ce5ef8dde421d418460de509f02f00b6
[]
no_license
av0kado/PostViewer
e45cfff0b0321a89e2e2512e8ba952f263466480
92e8ae1de5215b80dc4fe9ebd34d105d07e91e63
refs/heads/master
2021-05-10T11:52:18.426795
2018-01-22T07:52:59
2018-01-22T07:52:59
118,423,569
0
0
null
null
null
null
UTF-8
Swift
false
false
549
swift
// // PostViewerError+VKError.swift // PostViewer // // Created by Amir Zigangarayev on 22/01/2018. // Copyright © 2018 Amir Zigangarayev. All rights reserved. // import SwiftyVK // MARK: - Extension to support SwiftyVK extension PostViewerError { init(vkError: VKError) { switch vkError { case .authorizationCancelled: self = .authorizationCancelled case .authorizationDenied, .authorizationFailed: self = .notAuthorized default: self = .unknownError } } }
[ -1 ]
971f176c130bc8f9d7a1563e0f4ade857fdb4687
0b9c9802e6b5749177366f90019d7b928aa58d56
/Classes/ChannelsManagerViewController/ChannelsManagerViewController.swift
41307c7bbc3c1b02768233ccd2fff9bb6ce28ffb
[ "MIT" ]
permissive
YuanHuiAce/OddityUI
7bada9fc2944233d979df29e66953a641a98aa4f
e5099c91eb4acb3ada511b520e6649de151778b2
refs/heads/master
2021-01-12T16:16:39.163835
2016-10-19T06:03:55
2016-10-19T06:03:55
null
0
0
null
null
null
null
UTF-8
Swift
false
false
11,114
swift
// // ChannelsManagerViewController.swift // OddityUI // // Created by Mister on 16/8/29. // Copyright © 2016年 aimobier. All rights reserved. // import UIKit import SnapKit import RealmSwift open class ChannelsManagerViewController: CircularButtonBarPagerTabStripViewController { open let odditySetting = OdditySetting() // 用户对于SDK的设置 open var oddityDelegate:OddityUIDelegate? // 用户对Sdk的动作的监测 fileprivate var notificationToken:NotificationToken! // 检测 新闻变化的 通知对象 fileprivate var cResults:Results<Channel> = Channel.NormalChannelArray() // 当前视图的新闻数据集合 internal var reloadViewControllers = [UIViewController]() // buttonBarViewController 数据源对象集合 /// 原因选择视图 fileprivate var chooseView:ChooseView? /// 展示当用户点击X号显示的背景View fileprivate let shareBackView :UIView = { let view = UIView(frame: UIScreen.main.bounds) view.backgroundColor = UIColor.black.withAlphaComponent(0.5) return view }() override open func viewDidLoad() { super.viewDidLoad() settings.style.buttonBarItemsShouldFillAvailiableWidth = false self.initialPagerTabStripMethod() /** * 刷新频道 */ ChannelAPI.nsChsGet() /** * 当频道数据发生了变化,进行视图的重新排序制作操作 */ self.notificationToken = self.cResults.addNotificationBlock { (_) in self.reloadViewControllers = self.cResults.map{ let viewController = ChannelViewControllerCached.sharedCached.titleForViewController($0,managerViewController: self) viewController.odditySetting = self.odditySetting viewController.oddityDelegate = self.oddityDelegate return viewController } self.reloadPagerTabStripView() } self.initStyleMethod() } //MARK: PagerTabStripViewControllerDataSource open override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { if self.reloadViewControllers.count <= 0 { let viewC = NewFeedListViewController() reloadViewControllers.append(viewC) } return reloadViewControllers } open override func updateIndicator(for viewController: PagerTabStripViewController, fromIndex: Int, toIndex: Int, withProgressPercentage progressPercentage: CGFloat, indexWasChanged: Bool) { super.updateIndicator(for: viewController, fromIndex: fromIndex, toIndex: toIndex, withProgressPercentage: progressPercentage, indexWasChanged: indexWasChanged) let oldCell = buttonBarView.cellForItem(at: IndexPath(item: fromIndex, section: 0)) as? ButtonBarViewCell let newCell = buttonBarView.cellForItem(at: IndexPath(item: toIndex, section: 0)) as? ButtonBarViewCell let oldColor = UIColor.black.withAlphaComponent(0.8) let newColor = UIColor.a_color2 oldCell?.label.textColor = newColor.interpolateRGBColorTo(oldColor, fraction: progressPercentage) newCell?.label.textColor = oldColor.interpolateRGBColorTo(newColor, fraction: progressPercentage) } } public extension ChannelsManagerViewController{ /// 初始化布局 fileprivate func initStyleMethod(){ self.view.backgroundColor = UIColor.white let navView = BottomBoderView() navView.clipsToBounds = true self.view.insertSubview(navView, belowSubview: self.buttonBarView) let button = UIButton() button.backgroundColor = UIColor.white button.addAction(events: UIControlEvents.touchUpInside) { (_) in self.present(OddityViewControllerManager.shareManager.getChannelViewController(), animated: true, completion: nil) } button.setImage(UIImage.OddityImageByName("添加频道"), for: UIControlState.normal) navView.addSubview(button) navView.snp.makeConstraints { (make) in make.top.equalTo(20) make.left.equalTo(0) make.right.equalTo(0) make.height.equalTo(44) } button.snp.makeConstraints { (make) in make.top.equalTo(0) make.right.equalTo(0) make.bottom.equalTo(-0.5) make.width.equalTo(44) } self.buttonBarView.snp.makeConstraints { (make) in make.left.equalTo(0) make.right.equalTo(-44) make.height.equalTo(43.5) make.top.equalTo(20) } self.containerView.snp.makeConstraints { (make) in make.top.equalTo(navView.snp.bottom) make.bottom.equalTo(0) make.left.equalTo(0) make.right.equalTo(0) } } // 初始化分页视图方法 fileprivate func initialPagerTabStripMethod(){ pagerBehaviour = .progressive(skipIntermediateViewControllers: true, elasticIndicatorLimit: false) // 设置为达到两边后不可以进行再滑动 settings.style.buttonBarMinimumLineSpacing = 1 settings.style.buttonBarItemFont = UIFont.boldSystemFont(ofSize: 15) // 设置显示标题的字体大小 buttonBarView.backgroundColor = UIColor.white // 设置标题模块的背景颜色 buttonBarView.selectedBar.backgroundColor = UIColor(red: 53/255, green:166/255, blue: 251/255, alpha: 0.3) // 设置选中的barview 的背景颜色 settings.style.buttonBarItemBackgroundColor = UIColor.clear // 设置ButtonItem 背景颜色 changeCurrentIndexProgressive = { (oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, progressPercentage: CGFloat, changeCurrentIndex: Bool, animated: Bool) -> Void in // 设置滑动时改编字体 guard changeCurrentIndex == true else { return } // self.ReloadVisCellsSelectedMethod(self.currentIndex) // 刷新这个频道管理的额标题颜色 // self.ChannelDataSource.ChannelCurrentIndex = self.currentIndex oldCell?.label.textColor = UIColor.black.withAlphaComponent(0.8) newCell?.label.textColor = UIColor.a_color2 } } } extension ChannelsManagerViewController :NewslistViewControllerNoLikeDelegate ,ChooseDelegate{ /// 当用户点击 X 号 触发的事件 func ClickNoLikeButtonOfUITableViewCell(_ cell: NewBaseTableViewCell, finish: @escaping ((_ cancel: Bool) -> Void)) { if let view = self.chooseView { self.HideNoLikeHandleViewButton(finish:finish) }else{ WTFFFFF.finish = finish self.ShowNoLikeHandleViewButton(cell,finish:finish) } } struct WTFFFFF { static var finish: ((_ cancel: Bool) -> Void)! } override open func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { self.HideNoLikeHandleViewButton(finish:WTFFFFF.finish) } fileprivate func HideNoLikeHandleViewButton(_ cancel:Bool=true,finish: @escaping ((_ cancel: Bool) -> Void)){ if let cview = self.chooseView { UIView.animate(withDuration: 0.2, animations: { cview.alpha = 0 }) UIView.animate(withDuration: 0.3, animations: { cview.transform = cview.transform.translatedBy(x: 0, y: -cview.frame.height) }, completion: { (_) in cview.isHidden = true UIView.animate(withDuration: 0.3, animations: { self.shareBackView.alpha = 0 }, completion: { (_) in finish(cancel) self.chooseView?.isHidden = true self.chooseView = nil }) }) } } fileprivate func ShowNoLikeHandleViewButton(_ cell: NewBaseTableViewCell,finish: @escaping ((_ cancel: Bool) -> Void)){ /// d昂用户点击这个cell 隐藏的同时 清楚该点击事件 cell.addGestureRecognizer(UITapGestureRecognizer { (tap) in cell.removeGestureRecognizer(tap) self.HideNoLikeHandleViewButton(finish:finish) }) /// 当用户点击背景图也是如此 self.shareBackView.addGestureRecognizer(UITapGestureRecognizer(block: { (_) in self.HideNoLikeHandleViewButton(finish:finish) })) let cview = ViewLoader<ChooseView>.View(viewIndex: 0) cview.delegate = self cview.button1.clickSelected = false cview.button2.clickSelected = false cview.button3.clickSelected = false cview.button4.clickSelected = false self.shareBackView.alpha = 0 self.shareBackView.isHidden = false self.view.addSubview(cview) self.view.insertSubview(self.shareBackView, belowSubview: cview) // 初始化背景视图 cell.frame = cell.convert(cell.bounds, to: self.view) self.view.addSubview(cell) // 添加Cell cview.snp.updateConstraints { (make) in make.width.equalTo(self.view) make.height.equalTo(128) make.left.equalTo(0) make.top.equalTo(cell.frame.origin.y+cell.frame.height) } self.view.layoutIfNeeded() cview.button4.setTitle(" 来源:\(cell.pubLabel.text!) ", for: UIControlState()) cview.transform = cell.transform.translatedBy(x: 0, y: -cview.frame.height) cview.alpha = 0 cview.isHidden = false UIView.animate(withDuration: 0.3, animations: { self.shareBackView.alpha = 1 }, completion: { (_) in UIView.animate(withDuration: 0.3, animations: { cview.transform = CGAffineTransform.identity }) UIView.animate(withDuration: 0.5, animations: { cview.alpha = 1 }) }) self.chooseView = cview } func ClickDisLikeAction() { self.HideNoLikeHandleViewButton(false,finish:WTFFFFF.finish) } }
[ -1 ]
c6bdf18971f76d93feb64da2e900af4a5638a7db
742a5d22037356fa20b1c67023b36f7d9d093981
/Sample-Carthage/Carthage/Checkouts/PXGoogleDirections/Sample-Carthage/Carthage/Checkouts/PXGoogleDirections/Sample-Cocoapods/PXGoogleDirectionsSample/ResultsViewController.swift
ffbf0d00b34d7ec3b3d7feb0302df3489848455a
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
andr3a88/PXGoogleDirections
9ad78b940a7f95d8fc1a5acb2b9de8cba94339a2
26166ac20d2fafe0c3c2ce9d496171b3c06ffcca
refs/heads/master
2020-03-10T13:01:00.905610
2019-03-04T07:37:51
2019-03-04T07:37:51
129,390,208
0
0
BSD-3-Clause
2018-04-13T11:00:46
2018-04-13T11:00:46
null
UTF-8
Swift
false
false
5,052
swift
// // ResultsViewController.swift // PXGoogleDirectionsSample // // Created by Romain on 21/03/2015. // Copyright (c) 2015 Poulpix. All rights reserved. // import UIKit import PXGoogleDirections import GoogleMaps class ResultsViewController: UIViewController { @IBOutlet weak var prevButton: UIButton! @IBOutlet weak var routesLabel: UILabel! @IBOutlet weak var nextButton: UIButton! @IBOutlet weak var mapView: GMSMapView! @IBOutlet weak var directions: UITableView! var request: PXGoogleDirections! var results: [PXGoogleDirectionsRoute]! var routeIndex: Int = 0 override func viewDidLoad() { super.viewDidLoad() mapView.delegate = self } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) updateRoute() } @IBAction func previousButtonTouched(_ sender: UIButton) { routeIndex -= 1 updateRoute() } @IBAction func nextButtonTouched(_ sender: UIButton) { routeIndex += 1 updateRoute() } @IBAction func closeButtonTouched(_ sender: UIButton) { dismiss(animated: true, completion: nil) } @IBAction func openInGoogleMapsButtonTouched(_ sender: UIButton) { if !request.openInGoogleMaps(center: nil, mapMode: .streetView, view: Set(arrayLiteral: PXGoogleMapsView.satellite, PXGoogleMapsView.traffic, PXGoogleMapsView.transit), zoom: 15, callbackURL: URL(string: "pxsample://"), callbackName: "PXSample") { let alert = UIAlertController(title: "PXGoogleDirectionsSample", message: "Could not launch the Google Maps app. Maybe this app is not installed on this device?", preferredStyle: UIAlertControllerStyle.alert) alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) self.present(alert, animated: true, completion: nil) } } func updateRoute() { prevButton.isEnabled = (routeIndex > 0) nextButton.isEnabled = (routeIndex < (results).count - 1) routesLabel.text = "\(routeIndex + 1) of \((results).count)" mapView.clear() for i in 0 ..< results.count { if i != routeIndex { results[i].drawOnMap(mapView, approximate: false, strokeColor: UIColor.lightGray, strokeWidth: 3.0) } } mapView.animate(with: GMSCameraUpdate.fit(results[routeIndex].bounds!, withPadding: 40.0)) results[routeIndex].drawOnMap(mapView, approximate: false, strokeColor: UIColor.purple, strokeWidth: 4.0) results[routeIndex].drawOriginMarkerOnMap(mapView, title: "Origin", color: UIColor.green, opacity: 1.0, flat: true) results[routeIndex].drawDestinationMarkerOnMap(mapView, title: "Destination", color: UIColor.red, opacity: 1.0, flat: true) directions.reloadData() } } extension ResultsViewController: GMSMapViewDelegate { } extension ResultsViewController: UITableViewDataSource { func numberOfSections(in tableView: UITableView) -> Int { return (results[routeIndex].legs).count } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return (results[routeIndex].legs[section].steps).count } func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { let leg = results[routeIndex].legs[section] if let dist = leg.distance?.description, let dur = leg.duration?.description { return "Step \(section + 1) (\(dist), \(dur))" } else { return "Step \(section + 1)" } } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { var cell = tableView.dequeueReusableCell(withIdentifier: "RouteStep") if (cell == nil) { cell = UITableViewCell(style: .subtitle, reuseIdentifier: "RouteStep") } let step = results[routeIndex].legs[indexPath.section].steps[indexPath.row] if let instr = step.rawInstructions { cell!.textLabel!.text = instr } if let dist = step.distance?.description, let dur = step.duration?.description { cell!.detailTextLabel?.text = "\(dist), \(dur)" } return cell! } func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) { let step = results[routeIndex].legs[indexPath.section].steps[indexPath.row] mapView.animate(with: GMSCameraUpdate.fit(step.bounds!, withPadding: 40.0)) } func tableView(_ tableView: UITableView, accessoryButtonTappedForRowWith indexPath: IndexPath) { let step = results[routeIndex].legs[indexPath.section].steps[indexPath.row] var msg: String if let m = step.maneuver { msg = "\(step.rawInstructions!)\nGPS instruction: \(m)\nFrom: (\(step.startLocation!.latitude); \(step.startLocation!.longitude))\nTo: (\(step.endLocation!.latitude); \(step.endLocation!.longitude))" } else { msg = "\(step.rawInstructions!)\nFrom: (\(step.startLocation!.latitude); \(step.startLocation!.longitude))\nTo: (\(step.endLocation!.latitude); \(step.endLocation!.longitude))" } let alert = UIAlertController(title: "PXGoogleDirectionsSample", message: msg, preferredStyle: UIAlertControllerStyle.alert) alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) self.present(alert, animated: true, completion: nil) } } extension ResultsViewController: UITableViewDelegate { }
[ -1 ]
b2a02778234ea6b4d7f5aea5e820d8e4f99cf43d
9c1a7fdfb7423df650313c838d365e9b20617bbd
/MSPlayer/Classes/GestureView.swift
e9149e03eb0f39f86c1dd1e6626009ce4221cc7a
[ "MIT" ]
permissive
masonchang1991/MSPlayer
5737e766700772f38c7bdf2880534b4078ce2f0a
b707de7c7285b049c5f6ae9c4f75166f68cb6956
refs/heads/master
2023-08-21T03:09:52.167065
2020-06-04T02:33:53
2020-06-04T02:33:53
130,834,697
6
6
MIT
2019-04-29T04:26:23
2018-04-24T10:07:12
Swift
UTF-8
Swift
false
false
4,323
swift
// // GestureView.swift // MSPlayer // // Created by Mason on 2019/5/29. // import Foundation public enum PanDirection: Equatable { public enum PanLocation: Equatable { case left, mid, right } public enum PanState: Equatable { case began(CGPoint), changed(CGFloat), ended } case horizontal case vertical(PanLocation) public static func ==(lhs: PanDirection, rhs: PanDirection) -> Bool { switch (lhs, rhs) { case let (.vertical(a), .vertical(b)): return a == b case (.horizontal, .horizontal): return true default: return false } } } public protocol GestureView { func verticalPanEvent(_ state: PanDirection.PanState, location: PanDirection.PanLocation) func horizontalPanEvent(_ state: PanDirection.PanState) func disableGesture() func resumeGesture() } open class MSGestureView: UIView, GestureView { typealias PanState = PanDirection.PanState typealias PanLocation = PanDirection.PanLocation private var panGesture: UIPanGestureRecognizer? private var panDirection: PanDirection = .horizontal override init(frame: CGRect) { super.init(frame: frame) setGesture() } required public init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } private func setGesture() { let panGesture = UIPanGestureRecognizer(target: self, action: #selector(self.panDirection(_:))) self.panGesture = panGesture self.addGestureRecognizer(panGesture) } private func panEventWith(panState: PanDirection.PanState) { switch self.panDirection { case .horizontal: horizontalPanEvent(panState) case .vertical(let location): switch location { case .left: verticalPanEvent(panState, location: .left) case .mid: verticalPanEvent(panState, location: .mid) case .right: verticalPanEvent(panState, location: .right) } } } // MARK: - Action response @objc private func panDirection(_ pan: UIPanGestureRecognizer) { // 根據上次跟這次的移動,算出滑動速度以及方向 // 根據在view上pan的位置,確定是條音量還是亮度 let locationPoint = pan.location(in: self) // 水平移動更改進度條,垂直移動更改音量或亮度 let velocityPoint = pan.velocity(in: self) switch pan.state { case .began: // 使用絕對值來判斷移動的方向 let x = abs(velocityPoint.x) let y = abs(velocityPoint.y) // horizontal if x > y { panDirection = .horizontal panEventWith(panState: .began(locationPoint)) } else { // vertical if locationPoint.x < self.bounds.size.width / 3 { panDirection = .vertical(.left) } else if locationPoint.x > self.bounds.size.width / 3 && locationPoint.x < self.bounds.size.width * 2 / 3 { panDirection = .vertical(.mid) } else { panDirection = .vertical(.right) } panEventWith(panState: .began(locationPoint)) } case .changed: switch self.panDirection { case .horizontal: panEventWith(panState: .changed(velocityPoint.x)) case .vertical: panEventWith(panState: .changed(velocityPoint.y)) } case .ended: panEventWith(panState: .ended) default: break } } open func verticalPanEvent(_ state: PanDirection.PanState, location: PanDirection.PanLocation) { } open func horizontalPanEvent(_ state: PanDirection.PanState) { } open func disableGesture() { if let panGesture = panGesture { panGesture.isEnabled = false } } open func resumeGesture() { if let panGesture = panGesture { panGesture.isEnabled = true } } }
[ -1 ]
e97a792688133144e9b125c70fb2316512783f6c
d53017f98a053e1d3e20c367d3d4f6ee166cae41
/CWWeChat/MainClass/Mine/Model/CWCommonSettingHelper.swift
871bc3951b84b6071eb885c8da9aeb3f304b357d
[ "MIT" ]
permissive
gqfjob/CWWeChat
ea8ff50ff3a69b15e853cc50a15b5c6f646624ed
4a4f241dd908acc274379d6fba51e405134158a0
refs/heads/master
2021-01-22T07:03:50.974750
2017-02-12T15:04:17
2017-02-12T15:04:17
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,573
swift
// // CWCommonSettingHelper.swift // CWWeChat // // Created by chenwei on 16/6/23. // Copyright © 2016年 chenwei. All rights reserved. // import UIKit class CWCommonSettingHelper: NSObject { var commonSettingData = [CWSettingGroup]() override init() { let item1 = CWSettingItem(title: "多语言") let group1 = CWSettingGroup(items: [item1]) let item2 = CWSettingItem(title: "字体大小") let item3 = CWSettingItem(title: "聊天背景") let item4 = CWSettingItem(title: "我的表情") let item5 = CWSettingItem(title: "朋友圈小视频") let group2 = CWSettingGroup(items: [item2,item3,item4,item5]) let item6 = CWSettingItem(title: "听筒模式", type: .switch) let group3 = CWSettingGroup(items: [item6]) let item7 = CWSettingItem(title: "功能") let group4 = CWSettingGroup(items: [item7]) let item8 = CWSettingItem(title: "聊天记录迁移") let item9 = CWSettingItem(title: "清理微信存储空间") let group5 = CWSettingGroup(items: [item8,item9]) let item10 = CWSettingItem(title: "清空聊天记录", type: .titleButton) let group6 = CWSettingGroup(items: [item10]) commonSettingData.append(group1) commonSettingData.append(group2) commonSettingData.append(group3) commonSettingData.append(group4) commonSettingData.append(group5) commonSettingData.append(group6) } }
[ -1 ]
ef1408e6dff54c92a58fa3e28196ba0dc658ad06
1cf1e4c345d2e63e31e97909c43e328b7c3f6e6e
/DIY Recipe/DIY Recipe/RecipeCard.swift
17486291c79b0f9984462d5875cf256557ee3a11
[]
no_license
BENOITSLARVE98/BenoitSlarve2003
ce1a69dcf0fb45bf75c619dd179a35f84929dfe9
0dc54a9e99a3c204f88932540d31bc3ddfa48304
refs/heads/master
2021-02-13T10:40:07.739349
2020-03-30T01:28:22
2020-03-30T01:28:22
244,688,961
0
0
null
null
null
null
UTF-8
Swift
false
false
1,013
swift
// // RecipeCard.swift // DIY Recipe // // Created by Slarve N. on 3/19/20. // Copyright © 2020 Slarve N. All rights reserved. // import Foundation import UIKit class RecipeCard { //properties var name: String var img: UIImage! var videoUrl: String var numbersArray: [Int]! var instructionsArray: [String]! var ingredient: [String] /* Initializers */ init(name: String, imgString: String, ingredient: [String], videoUrl: String, numbersArray: [Int], instructionsArray: [String]!) { self.name = name self.ingredient = ingredient self.videoUrl = videoUrl self.numbersArray = numbersArray self.instructionsArray = instructionsArray //Our init will take care of dowloading the image if let url = URL(string: imgString) { do { let data = try Data(contentsOf: url) self.img = UIImage(data: data) } catch { } } } }
[ -1 ]
23f98cd874a5b9409d71f35c7e969b64a4918387
e46a69b92d49d24383bcbfbba478dc1f4405ca72
/PokemonDemo/WebServices/MockAPIService.swift
6fbf0319988de52c4b2553061dd3f81ac52050df
[]
no_license
JJPimenta/pokedemo
214a07e670e3b4dc38d45605616d7b7712f9d8d0
34c4b067d31e0488e8e9ac5733ee40e03022c50d
refs/heads/main
2023-02-22T22:01:18.849703
2021-02-01T15:12:53
2021-02-01T15:12:53
333,731,721
0
0
null
null
null
null
UTF-8
Swift
false
false
769
swift
// // MockAPIService.swift // PokemonDemo // // Created by itsector on 30/01/2021. // import UIKit ///This class is exclusively used for the Unit Tests. class MockAPIService: APIServiceProtocol { var fetchResult: Result<Response, Error> = .success(Response(count: 100, next: "", results: [Results(name: "Mock Injection", url: "")])) var isFetching: Bool = false func fetchPokemons(with offset: Int, completion: @escaping (Result<Response, Error>) -> Void) { isFetching = true completion(fetchResult) } func fetchPokemonDetail(pokeId: String, completion: @escaping (Result<Pokemon, Error>) -> Void) { } func getPokemonImage(from urlString: String, completion: @escaping (Result<UIImage, Error>) -> Void) { } }
[ -1 ]
0dc87b0eafd5fd7bb092ff91bb635d1d9512c398
27745ddb06926236e14ba96ca2839a5feddefcac
/projectForm/清單詳細/Model/FormDetailModel.swift
f6040bac023567688d93ef337055a16563a07232
[]
no_license
yojjoyy1/googleprojectForm
1b2fed429c05f52728de6113b8cb874035cff5ec
36a8cc5e6f8104d50bdbdca8e0af1924ea470585
refs/heads/master
2023-02-05T21:45:30.500041
2020-12-31T11:16:50
2020-12-31T11:16:50
325,473,770
0
0
null
null
null
null
UTF-8
Swift
false
false
315
swift
// // FormDetailModel.swift // projectForm // // Created by 林信沂 on 2020/12/30. // import Foundation struct FormDetailModel { var wOder:String? var size:String? var count:String? var name:String? var email:String? var remark:String? var phone:String? var address:String? }
[ -1 ]
37e331a99896c6362c63ffb95af97c775850043e
2108e5a1f9e0c4d5757f801fe9b8a2b7f6d2c4d0
/HoleFillingLib/Matrix/Matrix+Map.swift
0b1b34115fccf05bbd4f246d2f468bc9c260da69
[ "MIT" ]
permissive
horothesun/HoleFilling
7615ebc5c81e1846d61e8f8be75c7f767b941d38
d56b21ae9c305a19bbeb70289a3baeab2c51acd7
refs/heads/master
2020-04-20T03:17:37.653720
2019-02-03T20:39:29
2019-02-03T20:39:29
168,594,026
0
0
null
null
null
null
UTF-8
Swift
false
false
358
swift
extension Matrix { public func map<R>(_ f: (T) throws -> R) -> Matrix<R>? { let newOptionalRawMatrix = try? rawMatrix.map { row -> [R] in do { return try row.map(f) } catch { throw error } } guard let newRawMatrix = newOptionalRawMatrix else { return nil } return Matrix<R>(rawMatrix: newRawMatrix) } }
[ -1 ]
6b7080cf6558c65cee286ca06336030f093f8589
629b72e8b738489f07857d61ba121a7b37c48084
/PeatioSDK/API/Model/Account.swift
3d3ecad61d22606303b3f45ae4b6f90ce1aaed0c
[ "MIT" ]
permissive
maren7/peatio-sdk-ios
d7d2f5af9ddb23707f6c56401ed142fad4ddfb43
af4d530b39c3c4a50b23eee8b879fce1da97a8af
refs/heads/master
2020-12-10T04:13:10.281058
2020-01-06T06:05:48
2020-01-06T06:05:48
null
0
0
null
null
null
null
UTF-8
Swift
false
false
639
swift
import Foundation public struct Account: Codable { private enum CodingKeys: String, CodingKey { case balance case lockedBalance case asset case estimatedBtc } public let balance: String public let lockedBalance: String public let asset: Asset public let estimatedBtc: String? public init(balance: String, lockedBalance: String, asset: Asset, estimatedBtc: String?) { self.balance = balance self.lockedBalance = lockedBalance self.asset = asset self.estimatedBtc = estimatedBtc } }
[ -1 ]
47de0356415034a5a682bc4de02831c28b974b61
b5bf7263441f31a447efd5bdf9a6d0198b6e5840
/Self/tableHeader_6/tableHeader_6/AppDelegate.swift
01a65f19e63b35c03cda30cc916d48f7e1cf0ce1
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
janstilau/15DaysofAnimationsinSwift
f75d43171ccc00435b258351899dc08dea57c9e4
bbc3cc18b32eca5cbb1c426b06d8c0b904bd3afc
refs/heads/master
2021-01-13T08:24:02.785608
2016-11-21T06:38:55
2016-11-21T06:38:55
71,873,004
3
0
null
2016-10-25T07:54:41
2016-10-25T07:54:41
null
UTF-8
Swift
false
false
2,142
swift
// // AppDelegate.swift // tableHeader_6 // // Created by jansti on 16/10/28. // Copyright © 2016年 jansti. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } func applicationDidEnterBackground(application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(application: UIApplication) { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 294924, 229388, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 352284, 229405, 278559, 229408, 278564, 294950, 229415, 229417, 237613, 229422, 360496, 229426, 237618, 229428, 286774, 204856, 229432, 286776, 319544, 286791, 237640, 278605, 286797, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 327814, 131209, 417930, 303241, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 278760, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 287032, 155966, 278849, 319809, 319810, 319814, 311623, 319818, 311628, 229709, 287054, 319822, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 279010, 287202, 279015, 172520, 319978, 279020, 172526, 279023, 311791, 172529, 279027, 319989, 164343, 180727, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 287238, 172550, 172552, 303623, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 189039, 189040, 352880, 295538, 172655, 189044, 287349, 172656, 172660, 287355, 287360, 295553, 287365, 311942, 303751, 295557, 352905, 279178, 311946, 287371, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 303773, 164509, 172702, 230045, 287390, 172705, 287394, 172707, 303780, 287398, 295583, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 279231, 287423, 328384, 287427, 312006, 107208, 279241, 172748, 287436, 107212, 172751, 287440, 295633, 303827, 172755, 279255, 172760, 279258, 287450, 213724, 303835, 189149, 303838, 279267, 312035, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 295685, 230154, 33548, 312077, 295695, 295701, 369433, 230169, 295707, 328476, 295710, 230175, 303914, 279340, 205613, 279353, 230202, 312124, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 304005, 295813, 213895, 320391, 304007, 304009, 304011, 230284, 304013, 279438, 213902, 295822, 189329, 295825, 304019, 189331, 279445, 58262, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 304063, 238528, 304065, 189378, 213954, 156612, 295873, 213963, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 295949, 197645, 230413, 320528, 140312, 295961, 238620, 197663, 304164, 189479, 304170, 238641, 312374, 238652, 238655, 230465, 238658, 296004, 336964, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 164973, 279661, 205934, 312432, 279669, 337018, 189562, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 304311, 230592, 279750, 312518, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 279788, 320748, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 222525, 296253, 296255, 312639, 230718, 296259, 378181, 238919, 296264, 320840, 230727, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 410987, 230763, 230768, 296305, 312692, 230773, 279929, 304505, 304506, 181626, 181631, 312711, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 288176, 279985, 173488, 312755, 296373, 279991, 312759, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 280014, 312783, 288208, 230865, 288210, 370130, 288212, 280021, 288214, 222676, 239064, 288217, 288218, 280027, 288220, 329177, 239070, 288224, 280034, 288226, 280036, 370146, 280038, 288230, 288229, 288232, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 148990, 296446, 402942, 206336, 296450, 321022, 230916, 230919, 214535, 370187, 304651, 304653, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 312938, 280183, 280185, 280188, 280191, 280194, 116354, 280208, 280211, 288408, 280218, 280222, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 280260, 280264, 206536, 206539, 206541, 206543, 280276, 313044, 321239, 280283, 288478, 313055, 321252, 313066, 280302, 288494, 280304, 313073, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 321316, 304932, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 304968, 280393, 280402, 313176, 42842, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 280515, 190403, 296900, 337862, 165831, 280521, 231379, 296921, 239586, 313320, 231404, 124913, 165876, 321528, 313340, 288764, 239612, 239617, 313347, 288773, 313358, 305176, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 223327, 149599, 149601, 280671, 149603, 321634, 329830, 280681, 313451, 223341, 280687, 313458, 280691, 215154, 313464, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 275606, 280725, 313498, 288936, 100520, 280747, 288940, 280755, 288947, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 280819, 157940, 182517, 125171, 280823, 280825, 280827, 280830, 280831, 280833, 280835, 125187, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 354653, 313700, 280937, 313705, 280940, 190832, 280946, 223606, 313720, 280956, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 297365, 240021, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 305594, 289210, 281024, 289218, 289221, 289227, 281045, 281047, 166378, 305647, 281075, 174580, 281084, 240124, 305662, 305664, 240129, 305666, 240132, 223749, 305668, 281095, 223752, 150025, 338440, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 199262, 338528, 338532, 281190, 199273, 281196, 158317, 19053, 313973, 281210, 297594, 158347, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 199367, 297671, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 281401, 289593, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 183172, 158596, 338823, 322440, 314249, 240519, 183184, 240535, 289687, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 281581, 183277, 322550, 134142, 322563, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 298306, 281923, 380226, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 306555, 314747, 290174, 298365, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 224657, 306581, 314779, 314785, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 282133, 290325, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282261, 298651, 323229, 282269, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 282328, 298714, 52959, 282337, 216801, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 282410, 241450, 306988, 306991, 315184, 323376, 315190, 241464, 282425, 159545, 298811, 307009, 413506, 241475, 307012, 148946, 315211, 282446, 307027, 315221, 282454, 315223, 241496, 323414, 241498, 307035, 307040, 282465, 110433, 241509, 110438, 298860, 110445, 282478, 282481, 315249, 110450, 315251, 315253, 315255, 339838, 282499, 315267, 315269, 241544, 282505, 241546, 241548, 298896, 282514, 298898, 241556, 44948, 298901, 282520, 241560, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299006, 282623, 315396, 241669, 315397, 282632, 282639, 290835, 282645, 241693, 282654, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 315482, 315483, 217179, 192605, 233567, 200801, 299105, 217188, 299109, 307303, 315495, 356457, 307307, 45163, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 241813, 307352, 299164, 184479, 299167, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 323763, 176311, 184503, 307385, 307386, 258235, 176316, 307388, 307390, 299200, 184512, 307394, 307396, 299204, 184518, 307399, 323784, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 291089, 282906, 291104, 233766, 282931, 307508, 315701, 307510, 332086, 151864, 176435, 168245, 307515, 282942, 307518, 151874, 282947, 282957, 323917, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 283033, 291226, 242075, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 291247, 127407, 299440, 299444, 127413, 283062, 291254, 194660, 127417, 291260, 283069, 127421, 127424, 127429, 127431, 283080, 315856, 176592, 315860, 176597, 127447, 283095, 299481, 176605, 242143, 291299, 127463, 242152, 291305, 127466, 176620, 291314, 291317, 135672, 233979, 291323, 291330, 283142, 127497, 135689, 233994, 291341, 233998, 234003, 234006, 127511, 152087, 283161, 234010, 135707, 242202, 135710, 242206, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 70213, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 299655, 373383, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 225998, 299726, 226002, 226005, 119509, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 381677, 226037, 283382, 234231, 316151, 234236, 226045, 234239, 242431, 209665, 234242, 242436, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 234264, 201496, 234266, 283421, 234269, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 292433, 234313, 316233, 316235, 283468, 234316, 234319, 242511, 234321, 234324, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 234370, 291714, 291716, 234373, 226182, 234375, 226185, 308105, 234379, 234384, 234388, 234390, 226200, 234393, 209818, 324504, 234396, 324508, 234398, 291742, 308123, 234401, 291747, 291748, 234405, 291750, 234407, 324518, 324520, 234410, 291754, 226220, 324522, 234414, 324527, 291760, 234417, 201650, 324531, 291756, 234422, 226230, 275384, 324536, 234428, 291773, 226239, 234431, 242623, 234434, 324544, 324546, 226245, 234437, 234439, 324548, 234443, 291788, 275406, 234446, 193486, 193488, 234449, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 234496, 316416, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 234519, 316439, 234520, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 234549, 300085, 300088, 234553, 234556, 234558, 316479, 234561, 234563, 316483, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 234585, 275545, 242777, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 234607, 160879, 275569, 234610, 300148, 234614, 398455, 234618, 144506, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 275594, 234634, 234636, 177293, 234640, 275602, 234643, 226453, 308373, 234647, 275608, 234648, 234650, 308379, 324757, 283805, 234653, 300189, 324766, 234657, 324768, 119967, 242852, 283813, 234661, 300197, 234664, 275626, 234667, 316596, 308414, 234687, 300226, 308418, 226500, 234692, 283844, 300229, 308420, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 283904, 292097, 300289, 300292, 300294, 275719, 300299, 177419, 283917, 242957, 275725, 177424, 300301, 349464, 283939, 259367, 283951, 292143, 300344, 226617, 283963, 243003, 226628, 283973, 300357, 177482, 283983, 316758, 357722, 316766, 218464, 316768, 292192, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 144812, 284076, 144814, 284084, 144820, 284087, 292279, 144826, 144828, 144830, 144832, 284099, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 226802, 316917, 292343, 308727, 300537, 316947, 308757, 308762, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 194101, 284215, 194103, 284218, 226877, 284223, 284226, 243268, 284228, 226886, 284231, 128584, 292421, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 276052, 276053, 284245, 284247, 300628, 235097, 243290, 284251, 284249, 284253, 317015, 284255, 300638, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 292470, 284278, 292473, 284283, 276093, 284286, 276095, 292479, 284288, 276098, 325250, 284290, 292485, 284292, 292481, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 276114, 284306, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 276160, 284354, 358083, 276166, 284358, 358089, 276170, 284362, 276175, 284368, 276177, 317138, 358098, 284370, 284372, 284377, 276187, 284379, 284381, 284384, 284386, 358116, 276197, 317158, 284392, 325353, 284394, 358122, 284397, 276206, 284399, 358128, 358126, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 284418, 317187, 358146, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 186139, 300828, 300830, 276255, 300832, 284449, 325408, 300834, 227109, 317221, 358183, 186151, 276268, 300845, 194351, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 300912, 284529, 292721, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 284564, 358292, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292776, 292784, 276402, 358326, 161718, 276410, 276411, 358330, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 292843, 276460, 276464, 178161, 227314, 276466, 276472, 325624, 317435, 276476, 276479, 276482, 276485, 276490, 292876, 276496, 317456, 317458, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 276539, 235579, 235581, 325692, 178238, 276544, 284739, 292934, 276553, 243785, 350293, 350295, 194649, 227418, 309337, 194654, 227423, 350302, 178273, 227426, 276579, 309346, 309348, 227430, 276583, 350308, 309350, 276586, 309352, 350313, 350316, 276590, 301167, 227440, 350321, 284786, 276595, 301163, 350325, 350328, 292985, 301178, 292989, 301185, 317570, 350339, 292993, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 276689, 227540, 309462, 301272, 276699, 309468, 194780, 309471, 301283, 317672, 276713, 317674, 325867, 243948, 194801, 227571, 309491, 309494, 243960, 276735, 227583, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 276766, 211232, 317729, 276775, 211241, 325937, 276789, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 276843, 293227, 276848, 293232, 186744, 211324, 227709, 285061, 317833, 178572, 285070, 178575, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 301562, 317951, 309764, 301575, 121352, 236043, 317963, 342541, 55822, 113167, 309779, 277011, 317971, 309781, 55837, 227877, 227879, 293417, 227882, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 129603, 301636, 318020, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 277106, 121458, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 334476, 326285, 318094, 318092, 277136, 277139, 227992, 285340, 318108, 227998, 318110, 137889, 383658, 285357, 318128, 277170, 342707, 154292, 277173, 293555, 318132, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 137946, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 285453, 228113, 285459, 277273, 293659, 326430, 228128, 293666, 285474, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277314, 277317, 277322, 277329, 162643, 310100, 301911, 277337, 301913, 301921, 400236, 236397, 162671, 326514, 310134, 277368, 236408, 15224, 416639, 416640, 113538, 310147, 416648, 277385, 39817, 187274, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 293849, 293861, 228327, 228328, 228330, 318442, 228332, 277486, 326638, 318450, 293876, 293877, 285686, 302073, 285690, 121850, 302075, 244731, 293882, 293887, 277504, 277507, 277511, 277519, 293908, 277526, 293917, 293939, 318516, 277561, 277564, 7232, 310336, 293956, 277573, 228422, 293960, 277577, 310344, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 285792, 277601, 203872, 310374, 203879, 277608, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 285821, 302205, 285824, 392326, 285831, 253064, 302218, 285835, 294026, 384148, 162964, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 285862, 277671, 302248, 64682, 277678, 228526, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 204023, 228601, 204026, 228606, 204031, 64768, 310531, 228617, 138505, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 277807, 285999, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 294211, 302403, 384328, 277832, 277836, 294221, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 310659, 294276, 351619, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 130486, 310710, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 64966, 302534, 163272, 245191, 310727, 277959, 292968, 302541, 277963, 302543, 277966, 310737, 277971, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 286188, 310764, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 286203, 40443, 228864, 40448, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 286240, 146977, 187939, 294435, 40484, 40486, 294439, 286248, 278057, 294440, 294443, 40488, 294445, 286246, 40491, 310831, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 228944, 400976, 212560, 40533, 147032, 40537, 278109, 40541, 40544, 40548, 40550, 286312, 286313, 40552, 40554, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 278150, 310925, 286354, 278163, 302740, 122517, 278168, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 278227, 229076, 286420, 319187, 286425, 319194, 278235, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 171774, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 278320, 319280, 319290, 229192, 302925, 188247, 237409, 294776, 360317, 294785, 327554, 40840, 40851, 294803, 188312, 294811, 319390, 294817, 40865, 319394, 294821, 180142, 294831, 188340, 40886, 319419, 294844, 294847, 309354, 393177, 294876, 294879, 294883, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
2dfa442acb72f7afbc5d0272ae23d18e21fc0c13
1ee445b16375a50eb39a1652e49f31c1ed007d3d
/WeSplit/AppDelegate.swift
9199019d941a5731caeae48ef76879f2221ef36a
[]
no_license
ebcp-dev/wesplit
3028bafd9e91075ee32cb2e1f38b55ed2cfcfe75
391fb86dc2ef12a3a2ad4d3ab4873db49c1d7fe1
refs/heads/master
2021-04-23T12:58:33.474817
2020-03-30T09:42:42
2020-03-30T09:42:42
249,924,268
0
0
null
null
null
null
UTF-8
Swift
false
false
1,412
swift
// // AppDelegate.swift // WeSplit // // Created by Earl Perez on 3/25/20. // Copyright © 2020 Earl Perez. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
[ 393222, 393224, 393230, 393250, 344102, 393261, 393266, 163891, 213048, 376889, 385081, 393275, 376905, 327756, 254030, 286800, 368727, 180313, 368735, 180320, 376931, 286831, 368752, 286844, 417924, 262283, 286879, 286888, 377012, 327871, 180416, 377036, 180431, 377046, 377060, 327914, 205036, 393456, 393460, 336123, 418043, 336128, 385280, 262404, 180490, 368911, 262416, 262422, 377117, 262436, 336180, 262454, 393538, 262472, 344403, 213332, 65880, 262496, 418144, 262499, 213352, 246123, 262507, 262510, 213372, 385419, 393612, 262550, 262552, 385440, 385443, 385451, 262573, 393647, 385458, 262586, 344511, 262592, 360916, 369118, 328177, 328179, 328182, 328189, 328192, 164361, 328206, 410128, 393747, 254490, 188958, 385570, 33316, 377383, 197159, 352821, 188987, 418363, 369223, 385609, 385616, 352856, 352864, 369253, 262760, 352874, 352887, 254587, 377472, 336512, 148105, 377484, 352918, 98968, 344744, 361129, 336555, 385713, 434867, 164534, 336567, 164538, 328378, 328386, 352968, 344776, 352971, 418507, 352973, 385742, 385748, 361179, 189153, 369381, 361195, 418553, 344831, 336643, 344835, 344841, 336659, 418580, 418585, 434970, 369435, 418589, 262942, 418593, 336675, 328484, 418598, 418605, 336696, 361273, 328515, 336708, 328519, 336711, 361288, 328522, 336714, 426841, 197468, 361309, 254812, 361315, 361322, 328573, 377729, 222128, 345035, 345043, 386003, 386011, 386018, 386022, 435187, 328702, 328714, 361489, 386069, 336921, 386073, 336925, 345118, 377887, 345133, 345138, 386101, 197707, 189520, 345169, 156761, 361567, 148578, 345199, 386167, 361593, 410745, 214149, 345222, 386186, 337047, 345246, 214175, 337071, 337075, 345267, 386258, 328924, 66782, 222437, 328941, 386285, 386291, 345376, 353570, 345379, 410917, 345382, 337205, 345399, 378169, 369978, 337222, 337229, 337234, 263508, 402791, 345448, 271730, 378227, 271745, 181638, 353673, 181643, 181649, 181654, 230809, 181670, 181673, 337329, 181681, 181684, 181690, 361917, 181696, 337349, 181703, 337365, 271839, 329191, 361960, 329194, 116210, 337398, 337415, 329226, 419339, 419343, 419349, 345625, 419355, 370205, 419359, 419362, 394786, 370213, 419368, 419376, 206395, 214593, 419400, 419402, 353867, 419406, 214610, 419410, 345701, 394853, 222830, 370297, 353919, 403075, 198280, 345736, 403091, 345749, 345757, 345762, 419491, 345765, 419497, 419501, 370350, 419506, 419509, 337592, 419512, 419517, 337599, 419527, 419530, 419535, 272081, 394966, 419542, 419544, 181977, 345818, 419547, 419550, 419559, 337642, 419563, 337645, 370415, 141051, 337659, 337668, 362247, 395021, 362255, 321299, 116509, 345887, 378663, 345905, 354106, 354111, 247617, 354117, 370503, 329544, 370509, 354130, 247637, 337750, 370519, 313180, 354142, 345964, 345967, 345970, 345974, 403320, 354172, 247691, 337808, 247700, 329623, 436126, 436132, 337833, 362413, 337844, 346057, 247759, 346063, 329697, 354277, 190439, 247789, 354313, 346139, 436289, 378954, 395339, 338004, 100453, 329832, 329855, 329867, 329885, 411805, 346272, 362660, 100524, 387249, 379066, 387260, 256191, 395466, 346316, 411861, 411864, 411868, 411873, 379107, 411876, 387301, 346343, 338152, 387306, 387312, 346355, 436473, 321786, 379134, 411903, 379152, 395538, 387349, 338199, 387352, 182558, 338211, 395566, 248111, 362822, 436555, 190796, 321879, 379233, 354673, 321910, 248186, 420236, 379278, 272786, 354727, 338352, 330189, 338381, 338386, 256472, 338403, 338409, 248308, 199164, 330252, 199186, 330267, 354855, 10828, 199249, 174695, 248425, 191084, 338543, 191092, 346742, 330383, 354974, 150183, 174774, 248504, 174777, 223934, 355024, 355028, 273108, 264918, 183005, 436962, 338660, 338664, 264941, 363251, 207619, 264964, 338700, 256786, 199452, 363293, 396066, 346916, 396069, 215853, 355122, 355131, 355140, 355143, 338763, 355150, 330580, 355166, 265055, 355175, 387944, 355179, 330610, 330642, 355218, 412599, 207808, 379848, 396245, 330710, 248792, 248798, 347105, 257008, 183282, 265207, 330748, 265214, 330760, 330768, 248862, 396328, 158761, 199728, 330800, 396336, 396339, 339001, 388154, 388161, 347205, 248904, 330826, 248914, 339036, 412764, 257120, 265320, 248951, 420984, 330889, 347287, 248985, 339097, 44197, 380070, 339112, 249014, 330958, 330965, 265432, 388319, 388347, 175375, 159005, 175396, 208166, 273708, 372015, 347441, 372018, 199988, 44342, 175415, 396600, 437566, 175423, 437570, 437575, 437583, 331088, 437587, 331093, 396633, 175450, 437595, 175457, 208227, 175460, 175463, 265580, 437620, 175477, 249208, 175483, 249214, 175486, 175489, 249218, 249227, 249234, 175513, 175516, 396705, 175522, 355748, 380332, 396722, 208311, 372163, 216517, 380360, 216522, 339404, 372176, 208337, 339412, 413141, 339417, 249308, 339420, 339424, 339428, 339434, 249328, 69113, 372228, 339461, 208398, 380432, 175635, 339503, 265778, 265795, 396872, 265805, 224853, 224857, 257633, 224870, 372327, 257646, 372337, 224884, 224887, 224890, 224894, 372353, 224897, 216707, 339588, 126596, 421508, 224904, 224909, 159374, 11918, 339601, 126610, 224913, 224916, 224919, 126616, 208538, 224922, 224926, 224929, 224932, 257704, 224936, 224942, 257712, 224947, 257716, 257720, 224953, 257724, 224959, 257732, 224965, 224969, 339662, 224975, 257747, 224981, 224986, 224993, 257761, 257764, 224999, 339695, 225012, 257787, 225020, 339710, 257790, 225025, 257794, 339721, 257801, 257804, 225038, 257807, 225043, 167700, 372499, 225048, 257819, 225053, 184094, 225058, 339747, 339749, 257833, 225066, 257836, 413484, 225070, 225073, 372532, 257845, 225079, 397112, 225082, 397115, 225087, 225092, 225096, 323402, 257868, 225103, 257871, 397139, 225108, 225112, 257883, 257886, 225119, 257890, 339814, 225127, 257896, 274280, 257901, 225137, 339826, 257908, 225141, 257912, 257916, 225148, 257920, 225155, 339844, 225165, 397200, 225170, 380822, 225175, 225180, 118691, 184244, 372664, 372702, 372706, 356335, 380918, 405533, 430129, 266294, 266297, 217157, 421960, 356439, 430180, 421990, 266350, 356466, 266362, 381068, 225423, 250002, 250004, 225429, 356506, 225437, 135327, 225441, 438433, 225444, 438436, 225447, 438440, 225450, 258222, 225455, 430256, 225458, 225461, 225466, 389307, 225470, 381120, 372929, 430274, 225475, 389320, 225484, 225487, 225490, 225493, 266453, 225496, 225499, 225502, 225505, 356578, 217318, 225510, 225514, 225518, 372976, 381176, 389380, 61722, 356637, 356640, 356643, 356646, 266536, 356649, 356655, 332080, 340275, 356660, 397622, 332090, 225597, 332097, 201028, 348488, 332106, 332117, 250199, 250202, 332125, 250210, 348525, 332152, 250238, 389502, 332161, 356740, 332172, 373145, 340379, 389550, 324030, 266687, 340451, 160234, 127471, 340472, 324094, 266754, 324099, 324102, 324111, 340500, 324117, 324131, 332324, 381481, 324139, 356907, 324142, 356916, 324149, 324155, 348733, 324160, 324164, 356934, 348743, 381512, 324170, 324173, 324176, 389723, 332380, 381545, 340627, 184982, 373398, 258721, 332453, 332459, 389805, 332463, 381617, 332471, 332483, 332486, 373449, 332493, 357069, 357073, 332511, 332520, 340718, 332533, 348924, 389926, 152370, 348978, 340789, 348982, 398139, 127814, 357206, 389978, 430939, 357211, 357214, 201579, 201582, 349040, 340849, 201588, 430965, 324472, 398201, 119674, 324475, 430972, 340861, 324478, 340858, 324481, 373634, 398211, 324484, 324487, 381833, 324492, 324495, 324498, 430995, 324501, 324510, 422816, 324513, 398245, 201637, 324524, 340909, 324533, 5046, 324538, 324541, 398279, 340939, 340941, 209873, 340957, 431072, 398306, 340963, 209895, 201711, 349172, 349180, 439294, 431106, 209943, 250914, 357410, 185380, 357418, 209965, 209968, 209971, 209975, 209979, 209987, 209990, 341071, 349267, 250967, 210010, 341091, 210025, 210027, 210030, 210036, 210039, 341113, 210044, 349308, 152703, 160895, 349311, 210052, 349319, 210055, 210067, 210071, 210077, 210080, 210084, 251044, 185511, 210088, 210095, 210098, 210107, 210115, 332997, 210127, 333009, 210131, 333014, 210138, 210143, 218354, 251128, 218360, 275706, 275712, 275715, 275721, 349459, 333078, 251160, 349484, 349491, 251189, 415033, 251210, 357708, 210260, 365911, 259421, 365921, 333154, 251235, 374117, 333162, 234866, 390516, 333175, 357755, 251271, 136590, 112020, 349590, 357792, 259515, 415166, 415185, 366034, 366038, 415191, 415193, 415196, 415199, 423392, 333284, 415207, 366056, 366061, 415216, 210420, 415224, 423423, 415257, 415263, 366117, 415270, 144939, 415278, 415281, 415285, 210487, 415290, 415293, 349761, 415300, 333386, 333399, 366172, 333413, 423528, 423532, 210544, 415353, 333439, 415361, 267909, 153227, 333498, 333511, 210631, 259788, 358099, 333534, 366307, 366311, 431851, 366318, 210672, 366321, 366325, 210695, 268041, 210698, 366348, 210706, 399128, 333594, 358191, 210739, 366387, 399159, 358200, 325440, 366401, 341829, 325446, 46920, 341834, 341838, 341843, 415573, 358234, 341851, 350045, 399199, 259938, 399206, 268143, 358255, 399215, 358259, 341876, 333689, 243579, 325504, 333698, 333708, 333724, 382890, 350146, 358339, 333774, 358371, 350189, 350193, 333818, 350202, 350206, 350213, 268298, 350231, 333850, 350237, 350240, 350244, 350248, 178218, 350251, 350256, 350259, 350271, 243781, 350285, 374864, 342111, 342133, 374902, 432271, 333997, 334011, 260289, 350410, 260298, 350416, 350422, 211160, 350425, 268507, 334045, 350445, 375026, 358644, 350458, 350461, 350464, 325891, 350467, 350475, 375053, 268559, 350480, 432405, 350486, 350490, 325914, 325917, 350493, 350498, 350504, 358700, 350509, 391468, 358704, 358713, 358716, 383306, 334161, 383321, 383330, 383333, 391530, 383341, 334203, 268668, 194941, 391563, 366990, 268701, 342430, 416157, 375208, 326058, 375216, 334262, 334275, 326084, 358856, 195039, 334304, 334311, 375277, 334321, 350723, 186897, 342545, 334358, 342550, 342554, 334363, 358941, 350761, 252461, 334384, 358961, 383536, 334394, 252482, 219718, 334407, 334420, 350822, 375400, 334465, 334468, 162445, 326290, 342679, 342683, 260766, 342710, 244409, 260797, 334528, 260801, 350917, 154317, 391894, 154328, 416473, 64230, 113388, 342766, 375535, 203506, 342776, 391937, 391948, 326416, 375568, 375571, 162591, 326441, 326451, 326454, 244540, 326460, 260924, 375612, 326467, 244551, 326473, 326477, 326485, 416597, 326490, 342874, 326502, 433000, 375656, 326507, 326510, 211825, 211831, 392060, 351104, 342915, 400259, 236430, 342930, 252822, 392091, 400285, 252836, 359334, 211884, 400306, 351168, 359361, 326598, 359366, 359382, 359388, 383967, 343015, 359407, 261108, 244726, 261111, 383997, 261129, 359451, 261147, 211998, 261153, 261159, 359470, 359476, 343131, 384098, 384101, 367723, 384107, 187502, 343154, 384114, 212094, 351364, 384135, 384139, 384143, 351381, 384151, 384160, 384168, 367794, 244916, 384181, 367800, 384188, 351423, 384191, 384198, 326855, 244937, 384201, 253130, 343244, 384208, 146642, 384224, 359649, 343270, 351466, 384246, 351479, 384249, 343306, 261389, 359694, 253200, 261393, 384275, 384283, 245020, 384288, 245029, 171302, 351534, 376110, 245040, 384314, 425276, 384323, 212291, 343365, 212303, 367965, 343393, 343398, 367980, 425328, 343409, 154999, 253303, 343417, 327034, 245127, 384397, 245136, 245142, 245145, 343450, 245148, 245151, 245154, 245157, 245162, 327084, 359865, 384443, 146876, 327107, 384453, 327110, 327115, 327117, 359886, 359890, 343507, 368092, 343534, 343539, 368119, 343544, 368122, 409091, 359947, 359955, 359983, 343630, 327275, 245357, 138864, 155254, 155273, 368288, 245409, 425638, 425649, 155322, 425662, 155327, 245460, 155351, 155354, 212699, 245475, 155363, 245483, 155371, 409335, 155393, 155403, 245525, 155422, 360223, 155438, 155442, 155447, 155461, 360261, 376663, 155482, 261981, 425822, 155487, 376671, 155490, 155491, 327531, 261996, 376685, 261999, 262002, 327539, 425845, 262005, 147317, 262008, 262011, 155516, 155521, 155525, 360326, 262027, 155531, 262030, 262033, 262036, 262039, 262042, 155549, 262045, 262048, 262051, 327589, 155559, 155562, 155565, 393150, 384977, 393169, 155611, 155619, 253923, 155621, 327654, 253926, 393203, 360438, 253943, 393206, 393212, 155646 ]
5187a835c65e85a507f92d3261f903d583db4fb1
beb7e3cd14c17922b13b4164b913ff60dd6a35be
/Money App/View Controllers/ViewController.swift
a8806f066a61b209e274a2689e087d64a47bbfc9
[]
no_license
vyshnevskyi-dev/moneyApp
35b57d4810bbd6fff9a653c3393be7604e43237c
711034708362c67f768fef34d181009709f99f70
refs/heads/master
2022-12-16T01:28:33.441073
2020-09-01T16:15:46
2020-09-01T16:15:46
292,047,649
0
0
null
null
null
null
UTF-8
Swift
false
false
6,874
swift
// // ViewController.swift // Money App // // Created by Дмитрий Котырло on 07.07.2020. // Copyright © 2020 _vyshnevskyi. All rights reserved. // import UIKit import CoreData class ViewController: UIViewController, NSFetchedResultsControllerDelegate { var expense: Double = 0.0 var income: Double = 0.0 var transactions: [TransactionR] = [] var fetchResultController: NSFetchedResultsController<TransactionR>! // Outlet property @IBOutlet var tableView: UITableView! @IBOutlet weak var totalBalanceLabel: UILabel! @IBOutlet weak var expenseLabel: UILabel! @IBOutlet weak var incomeLabel: UILabel! override func viewDidLoad() { super.viewDidLoad() // load data from store let fetchRequest: NSFetchRequest<TransactionR> = TransactionR.fetchRequest() let sortDescriptor = NSSortDescriptor(key: "title", ascending: true) fetchRequest.sortDescriptors = [sortDescriptor] if let appDelegate = (UIApplication.shared.delegate as? AppDelegate) { let context = appDelegate.persistentContainer.viewContext fetchResultController = NSFetchedResultsController(fetchRequest: fetchRequest, managedObjectContext: context, sectionNameKeyPath: nil, cacheName: nil) fetchResultController.delegate = self do { try fetchResultController.performFetch() if let fetchedObjects = fetchResultController.fetchedObjects { transactions = fetchedObjects } updateLabelValues() } catch { print(error) } } // configure navigation bar navigationController?.navigationBar.shadowImage = UIImage() if let customFont = UIFont(name: "Futura", size: 30.0) { self.navigationController?.navigationBar.titleTextAttributes = [ NSAttributedString.Key.font: customFont ] } // configure table view tableView.delegate = self tableView.dataSource = self tableView.estimatedRowHeight = 60.0 tableView.rowHeight = UITableView.automaticDimension } } extension ViewController: UITableViewDelegate, UITableViewDataSource { // MARK: - Table View Data Source func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return transactions.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "Cell") as! TransactionTableViewCell // configure the cell cell.activityLabel.text = transactions[indexPath.row].title cell.dateLabel.text = getFormattedDate(for: transactions[indexPath.row].date!) cell.moneyLabel.text = (transactions[indexPath.row].type == 0 ? "+": "ー") + "$\(transactions[indexPath.row].amount)" cell.typeImageView.image = UIImage(named: transactions[indexPath.row].type == 0 ? "income" : "expense") return cell } // MARK: - Table View Delegate func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { // add delete action let deleteAction = UIContextualAction(style: UIContextualAction.Style.destructive, title: "") { (action, view, completion) in // delete one row if let appDelegate = (UIApplication.shared.delegate as? AppDelegate) { let context = appDelegate.persistentContainer.viewContext let itemToBeDeleted = self.fetchResultController.object(at: indexPath) context.delete(itemToBeDeleted) appDelegate.saveContext() } completion(true) } deleteAction.image = UIImage(systemName: "trash.fill") let swipeConfiguration = UISwipeActionsConfiguration(actions: [deleteAction]) return swipeConfiguration } func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { tableView.deselectRow(at: indexPath, animated: true) } // MARK: - Navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { switch segue.identifier { case "showDetail": if let indexPath = tableView.indexPathForSelectedRow { let destinationController = segue.destination as! TransactionDetailViewController destinationController.transaction = transactions[indexPath.row] } default: break } } } extension ViewController { private func updateLabelValues() { income = 0.0 expense = 0.0 for transaction in transactions { switch transaction.type { case 0: income += transaction.amount case 1: expense += transaction.amount default: break } } let totalBalance = income - expense // update label values incomeLabel.text = (income == 0.0) ? "$0" : "$\(income)" expenseLabel.text = (expense == 0.0) ? "$0" : "$\(expense)" totalBalanceLabel.text = (totalBalance < 0) ? "ー$\(-totalBalance)" : "$\(totalBalance)" } // MARK: - Fetch Result Method func controllerWillChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) { tableView.beginUpdates() } func controller(_ controller: NSFetchedResultsController<NSFetchRequestResult>, didChange anObject: Any, at indexPath: IndexPath?, for type: NSFetchedResultsChangeType, newIndexPath: IndexPath?) { switch type { case .insert: if let newIndexPath = newIndexPath { tableView.insertRows(at: [newIndexPath], with: .fade) } case .delete: if let indexPath = indexPath { tableView.deleteRows(at: [indexPath], with: .fade) } case .update: if let indexPath = indexPath { tableView.reloadRows(at: [indexPath], with: .fade) } default: tableView.reloadData() } if let fetchedObjects = controller.fetchedObjects { transactions = fetchedObjects as! [TransactionR] } } func controllerDidChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) { updateLabelValues() tableView.endUpdates() } }
[ -1 ]
28262df3f67f991e16185083a0e63960381cf65f
c3f24f0a5a2ff444cd3c002cf9fdf0cd73f152f9
/Tests/LinuxMain.swift
ccd67605b57d819a001d3022027f5809fa268d12
[]
no_license
falcon0328/Coorinate.swift
c256628598a4469749580cc112e20745f09ff96c
f5d2b94e2dcda757371e17d34d3b47ddafa44cc5
refs/heads/master
2021-05-20T09:39:37.777722
2020-04-01T16:31:51
2020-04-01T16:31:51
252,229,905
0
0
null
null
null
null
UTF-8
Swift
false
false
122
swift
import XCTest import CoordinateTests var tests = [XCTestCaseEntry]() tests += CoordinateTests.allTests() XCTMain(tests)
[ 210944, 248320, 45058, 254467, 222725, 340485, 145938, 35347, 238613, 323613, 192029, 217120, 159264, 342562, 438820, 333349, 224296, 30251, 35372, 343599, 199216, 168501, 54336, 253504, 162368, 175173, 187467, 352334, 332368, 421456, 341076, 184406, 327256, 343655, 345191, 139367, 343146, 312943, 126575, 337010, 192627, 338547, 253046, 346746, 347259, 323711, 160899, 245389, 258709, 330390, 315548, 314530, 343205, 314022, 334504, 181929, 352942, 351406, 315575, 191672, 229049, 325305, 240314, 153274, 225980, 222401, 323781, 339668, 223960, 354011, 254173, 352992, 323818, 329453, 211187, 315124, 337651, 194809, 353018, 319236, 315140, 374023, 208138, 202506, 343309, 136462, 315151, 338193, 353048, 353560, 347418, 311585, 342307, 334116, 325413, 254246, 341798, 52521, 341808, 347444, 321846, 368445, 56638, 325452, 345420, 251215, 323408, 253782, 253786, 253790, 351071, 38753, 253794, 244581, 211814, 246117, 251241, 253802, 351083, 106860, 316780, 151920, 253810, 240501, 151932, 349584, 327062, 253342, 421793, 219048, 305586, 344504, 150970, 343486, 326592, 344515, 324041, 373199, 340946, 355282, 338389, 363479, 343519, 319458, 241123, 315362, 319462, 351207, 340969, 350702, 347125, 247798, 219129 ]
0a965411dd5c781a057514e1c6f29d250a424bcc
c2a69efdee43fd86d94843666b4fb6bf1f290425
/tips2/AppDelegate.swift
e0c71b96bf19434a78b9381408b2580b46142833
[]
no_license
wansteve/tips2
ab729d042ebfa116b43827b23c6644df23048982
6777d51ca4403d249c7447c270e3204527705806
refs/heads/master
2016-09-06T07:34:03.313348
2015-04-27T03:53:45
2015-04-27T03:59:09
34,558,390
0
0
null
null
null
null
UTF-8
Swift
false
false
2,137
swift
// // AppDelegate.swift // tips2 // // Created by Steve Wan on 4/19/15. // Copyright (c) 2015 Steve Wan. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } func applicationDidEnterBackground(application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(application: UIApplication) { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 229388, 294924, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 229405, 352284, 278559, 229408, 278564, 294950, 229415, 229417, 237613, 229422, 360496, 229426, 237618, 229428, 286774, 204856, 229432, 286776, 319544, 286791, 237640, 278605, 286797, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 327814, 131209, 417930, 303241, 311436, 303244, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 278760, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 287032, 155966, 278849, 319809, 319810, 319814, 311623, 319818, 311628, 229709, 287054, 319822, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 279010, 287202, 279015, 172520, 319978, 279020, 172526, 279023, 311791, 172529, 279027, 319989, 164343, 180727, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 287238, 320007, 172550, 172552, 303623, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 189039, 189040, 352880, 295538, 172655, 189044, 287349, 172656, 172660, 287355, 287360, 295553, 287365, 311942, 303751, 295557, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 303773, 164509, 287390, 295583, 172702, 230045, 172705, 303780, 287394, 172707, 287398, 287400, 279208, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 279231, 287423, 328384, 287427, 312006, 107208, 279241, 107212, 172748, 287436, 172751, 287440, 295633, 303827, 172755, 279255, 172760, 279258, 287450, 213724, 303835, 189149, 303838, 279267, 312035, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 295685, 230154, 33548, 312077, 295695, 295701, 369433, 230169, 295707, 328476, 295710, 230175, 303914, 279340, 205613, 279353, 230202, 312124, 222018, 295755, 377676, 148302, 287569, 279383, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 304005, 295813, 320391, 213895, 304007, 304009, 304011, 230284, 304013, 213902, 279438, 295822, 189329, 295825, 304019, 189331, 279445, 58262, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 304063, 238528, 304065, 189378, 213954, 156612, 295873, 213963, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 197645, 295949, 230413, 320528, 140312, 295961, 238620, 197663, 304164, 189479, 304170, 238641, 312374, 238652, 238655, 230465, 238658, 296004, 336964, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 164973, 205934, 279661, 312432, 279669, 337018, 189562, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 165038, 238766, 230576, 304311, 230592, 279750, 312518, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 279788, 320748, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 222525, 296253, 296255, 312639, 230718, 296259, 378181, 238919, 296264, 320840, 230727, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 410987, 230763, 230768, 296305, 312692, 230773, 279929, 181626, 304505, 304506, 181631, 312711, 296331, 288140, 230800, 288144, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 288176, 279985, 173488, 312755, 296373, 279991, 312759, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 280014, 312783, 288208, 230865, 288210, 370130, 288212, 280021, 288214, 222676, 239064, 288217, 288218, 280027, 288220, 329177, 239070, 288224, 288226, 370146, 280036, 288229, 280038, 288230, 288232, 280034, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 148990, 296446, 402942, 206336, 296450, 321022, 230916, 230919, 214535, 370187, 304651, 304653, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 312938, 280183, 280185, 280188, 280191, 280194, 116354, 280208, 280211, 288408, 280218, 280222, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 280260, 280264, 206536, 206539, 206541, 206543, 280276, 313044, 321239, 280283, 288478, 313055, 321252, 313066, 280302, 288494, 280304, 313073, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 321316, 304932, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 304968, 280393, 280402, 313176, 42842, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 280515, 190403, 296900, 337862, 165831, 280521, 231379, 296921, 239586, 313320, 231404, 124913, 165876, 321528, 313340, 288764, 239612, 239617, 313347, 288773, 313358, 305176, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 280671, 223327, 149599, 149601, 149603, 321634, 329830, 280681, 313451, 223341, 280687, 313458, 280691, 215154, 313464, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 288936, 100520, 280747, 288940, 280755, 288947, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 280819, 157940, 182517, 125171, 280823, 280825, 280827, 280830, 280831, 280833, 280835, 125187, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 354653, 313700, 280937, 313705, 280940, 190832, 280946, 223606, 313720, 280956, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 297365, 240021, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 305594, 289210, 281024, 289218, 289221, 289227, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 281084, 240124, 305662, 305664, 240129, 305666, 240132, 223749, 305668, 281095, 223752, 150025, 338440, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 199262, 338528, 338532, 281190, 199273, 281196, 158317, 19053, 313973, 281210, 297594, 158347, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 199367, 297671, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 207661, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 183172, 158596, 338823, 322440, 314249, 240519, 183184, 240535, 289687, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 281581, 183277, 322550, 134142, 322563, 175134, 322599, 322610, 314421, 281654, 314427, 207937, 314433, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 298306, 281923, 380226, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 306555, 314747, 290174, 298365, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 224657, 306581, 314779, 314785, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 282133, 290325, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282261, 298651, 323229, 282269, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 282410, 241450, 306988, 306991, 315184, 323376, 315190, 241464, 282425, 159545, 298811, 307009, 413506, 241475, 307012, 148946, 315211, 282446, 307027, 315221, 282454, 315223, 241496, 323414, 241498, 307035, 307040, 282465, 110433, 241509, 110438, 298860, 110445, 282478, 282481, 110450, 315251, 315249, 315253, 315255, 339838, 282499, 315267, 315269, 241544, 282505, 241546, 241548, 298896, 282514, 298898, 241556, 44948, 298901, 282520, 241560, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 178273, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299006, 282623, 315396, 241669, 315397, 282632, 282639, 290835, 282645, 241693, 282654, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 315482, 315483, 217179, 192605, 233567, 200801, 299105, 217188, 299109, 307303, 315495, 356457, 307307, 45163, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 241813, 307352, 299164, 184479, 299167, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 323763, 176311, 184503, 307385, 307386, 258235, 176316, 307388, 307390, 299200, 184512, 307394, 307396, 299204, 184518, 307399, 323784, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 291089, 282906, 291104, 233766, 176435, 307508, 315701, 307510, 332086, 151864, 307512, 168245, 307515, 282942, 307518, 151874, 282947, 282957, 323917, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 283033, 291226, 242075, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 291247, 127407, 299440, 299444, 127413, 283062, 291254, 194660, 127417, 291260, 283069, 127421, 127424, 127429, 127431, 283080, 176592, 315856, 315860, 176597, 283095, 127447, 299481, 176605, 242143, 291299, 127463, 242152, 291305, 127466, 176620, 291314, 291317, 135672, 233979, 291323, 291330, 283142, 127497, 135689, 233994, 291341, 233998, 234003, 234006, 127511, 152087, 283161, 234010, 135707, 242202, 135710, 242206, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 70213, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 299655, 373383, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 225998, 299726, 226002, 226005, 119509, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 226037, 283382, 234231, 316151, 234236, 226045, 234239, 242431, 209665, 234242, 242436, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 234264, 201496, 234266, 283421, 234269, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 292433, 234313, 316233, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 291711, 234368, 234370, 291714, 291716, 234373, 226182, 234375, 226185, 308105, 234379, 234384, 234388, 234390, 226200, 234393, 209818, 324504, 234396, 324508, 234398, 291742, 308123, 234401, 291747, 291748, 234405, 291750, 234407, 324518, 324520, 234410, 291754, 226220, 324522, 234414, 324527, 291760, 234417, 201650, 324531, 291756, 226230, 234422, 275384, 324536, 234428, 291773, 226239, 234431, 242623, 234434, 324544, 324546, 226245, 234437, 234439, 324548, 234443, 291788, 193486, 275406, 193488, 234446, 234449, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 234496, 316416, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 234519, 316439, 234520, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 234549, 300085, 300088, 234553, 234556, 234558, 316479, 234561, 234563, 316483, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 275545, 234585, 242777, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 234607, 160879, 275569, 234610, 300148, 234614, 398455, 234618, 275579, 144506, 234620, 234623, 226433, 234627, 275588, 234629, 275594, 234634, 234636, 177293, 234640, 275602, 234643, 226453, 275606, 308373, 275608, 234647, 234648, 234650, 308379, 283805, 324757, 234653, 300189, 234657, 324766, 324768, 119967, 283813, 234661, 300197, 234664, 242852, 275626, 234667, 316596, 308414, 234687, 316610, 300226, 226500, 234692, 283844, 300229, 308420, 308418, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 161003, 300267, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 300292, 300294, 275719, 300299, 177419, 283917, 242957, 275725, 177424, 300301, 349464, 283939, 259367, 283951, 292143, 300344, 226617, 283963, 243003, 226628, 283973, 300357, 177482, 283983, 316758, 357722, 316766, 218464, 316768, 292192, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 284076, 144812, 144814, 284084, 144820, 284087, 292279, 144826, 144828, 144830, 144832, 284099, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 259567, 300527, 308720, 226802, 316917, 308727, 292343, 300537, 316947, 308757, 308762, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 194101, 284215, 194103, 284218, 226877, 284223, 284226, 243268, 284228, 226886, 284231, 128584, 292421, 284234, 366155, 276043, 317004, 284238, 226895, 284241, 194130, 284243, 276052, 276053, 284245, 284247, 300628, 235097, 243290, 284251, 284249, 284253, 317015, 284255, 300638, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 292470, 284278, 292473, 284283, 276093, 284286, 276095, 292479, 284288, 276098, 325250, 284290, 292485, 284292, 292481, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 276114, 284306, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 276166, 284358, 358089, 276170, 284362, 276175, 284368, 276177, 317138, 358098, 284370, 284372, 284377, 276187, 284379, 284381, 284384, 284386, 358116, 276197, 317158, 284392, 325353, 284394, 358122, 284397, 276206, 284399, 358128, 358126, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 284418, 317187, 358146, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 186139, 300828, 300830, 276255, 300832, 284449, 300834, 325408, 227109, 317221, 358183, 186151, 276268, 300845, 194351, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 300912, 284529, 292721, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 284564, 358292, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292776, 292784, 276402, 358326, 161718, 276410, 276411, 358330, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 292843, 276460, 276464, 178161, 276466, 227314, 276472, 325624, 317435, 276476, 276479, 276482, 276485, 276490, 292876, 276496, 317456, 317458, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 276539, 235579, 235581, 325692, 178238, 276544, 284739, 292934, 276553, 243785, 350293, 350295, 194649, 227418, 309337, 194654, 227423, 350302, 194657, 227426, 276579, 309346, 309348, 227430, 276583, 350308, 309350, 276586, 309352, 350313, 350316, 276590, 301167, 227440, 350321, 284786, 276595, 301163, 350325, 350328, 292985, 301178, 292989, 301185, 317570, 350339, 292993, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 276689, 309462, 301272, 276699, 309468, 194780, 309471, 301283, 317672, 276713, 317674, 325867, 243948, 194801, 227571, 309491, 309494, 243960, 227583, 276735, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 276766, 211232, 317729, 276775, 211241, 325937, 276789, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 276843, 293227, 276848, 293232, 186744, 211324, 227709, 285061, 317833, 178572, 285070, 178575, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 301562, 317951, 309764, 301575, 121352, 236043, 317963, 342541, 55822, 113167, 277011, 309779, 317971, 309781, 55837, 227877, 227879, 293417, 227882, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 129603, 301636, 318020, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 277106, 121458, 170618, 170619, 309885, 309888, 277122, 227975, 285320, 277128, 301706, 334476, 326285, 318094, 318092, 277136, 277139, 227992, 285340, 318108, 227998, 318110, 137889, 383658, 285357, 318128, 277170, 342707, 154292, 277173, 293555, 318132, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 137946, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 285453, 228113, 285459, 277273, 293659, 326430, 228128, 293666, 285474, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277314, 277317, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 277368, 236408, 15224, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 293849, 293861, 228327, 228328, 228330, 318442, 228332, 277486, 326638, 318450, 293876, 293877, 285686, 302073, 285690, 244731, 121850, 302075, 293882, 293887, 277504, 277507, 277511, 277519, 293908, 277526, 293917, 293939, 318516, 277561, 277564, 7232, 310336, 293956, 277573, 228422, 310344, 277577, 293960, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 285792, 277601, 203872, 310374, 203879, 277608, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 285821, 302205, 285824, 392326, 285831, 253064, 302218, 285835, 294026, 384148, 162964, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 285862, 277671, 302248, 64682, 277678, 228526, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 228617, 138505, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 277807, 285999, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 294211, 302403, 384328, 277832, 277836, 294221, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 310659, 294276, 351619, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 130486, 310710, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 64966, 245191, 163272, 302534, 310727, 277959, 292968, 302541, 277963, 302543, 277966, 310737, 277971, 286169, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 286188, 310764, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 286203, 40443, 228864, 40448, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 286240, 146977, 187939, 294435, 40484, 40486, 294439, 286248, 278057, 294440, 294443, 40488, 294445, 286246, 40491, 310831, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 228944, 400976, 212560, 40533, 147032, 40537, 278109, 40541, 40544, 40548, 40550, 286312, 286313, 40552, 40554, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 278150, 310925, 286354, 278163, 302740, 122517, 278168, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 278227, 229076, 286420, 319187, 286425, 319194, 278235, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 171774, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 278320, 319280, 319290, 229192, 302925, 188247, 237409, 294776, 360317, 294785, 327554, 40840, 40851, 294803, 188312, 294811, 319390, 294817, 40865, 319394, 294821, 180142, 294831, 188340, 40886, 319419, 294844, 294847, 309354, 393177, 294876, 294879, 294883, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
5f4e14f346f3d01e0f127a752c1b4832da287a17
03ac6e2a1e7c6b94bf3ab3fb68e53db6183a5eff
/CoreGraphicsSample/AppDelegate.swift
23b8ee7cc28f97991fb08def7887767a644db847
[]
no_license
tpcreative070/CoreGraphicsSample
e39910772f52bd884e2cce9f62456ca13cffc674
ea010ab9254119289afb975f246417ef97bf77c8
refs/heads/main
2023-06-25T13:23:05.870281
2021-07-28T09:55:35
2021-07-28T09:55:35
390,291,874
0
0
null
null
null
null
UTF-8
Swift
false
false
1,356
swift
// // AppDelegate.swift // CoreGraphicsSample // // Created by phong070 on 28/07/2021. // import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
[ 393222, 393224, 393230, 393250, 344102, 393261, 393266, 213048, 385081, 376889, 393275, 376905, 327756, 254030, 368727, 368735, 180320, 376931, 368752, 417924, 262283, 377012, 164028, 327871, 180416, 377036, 180431, 377046, 418007, 418010, 377060, 327914, 205036, 393456, 393460, 418043, 336123, 385280, 262404, 180490, 164106, 368911, 262416, 262422, 377117, 262436, 336180, 262454, 393538, 262472, 344403, 213332, 65880, 262496, 418144, 262499, 213352, 246123, 262507, 262510, 213372, 385419, 393612, 262550, 262552, 385440, 385443, 262566, 385451, 262573, 393647, 385458, 262586, 344511, 262592, 360916, 369118, 328177, 328179, 328182, 328189, 328192, 164361, 410128, 393747, 254490, 188958, 385570, 33316, 377383, 197159, 352821, 197177, 418363, 188987, 369223, 385609, 385616, 352864, 369253, 262760, 352874, 352887, 254587, 377472, 148105, 377484, 352918, 98968, 344744, 361129, 336555, 385713, 434867, 164534, 336567, 328378, 164538, 328386, 352968, 344776, 352971, 418507, 352973, 385742, 385748, 361179, 189153, 369381, 361195, 418553, 336643, 344835, 344841, 361230, 336659, 418580, 418585, 434970, 369435, 418589, 262942, 418593, 336675, 328484, 418598, 418605, 336696, 361273, 328515, 336708, 328519, 361288, 336711, 328522, 336714, 426841, 254812, 361309, 197468, 361315, 361322, 328573, 377729, 369542, 361360, 222128, 345035, 386003, 345043, 386011, 386018, 386022, 435187, 328714, 361489, 386069, 386073, 336921, 336925, 345118, 377887, 345133, 345138, 386101, 361536, 197707, 189520, 345169, 156761, 361567, 148578, 345199, 386167, 361593, 410745, 214149, 345222, 386186, 337047, 345246, 214175, 337071, 337075, 345267, 386258, 328924, 66782, 222437, 386285, 328941, 386291, 345376, 353570, 345379, 410917, 345382, 337205, 345399, 378169, 369978, 337222, 337229, 337234, 263508, 402791, 345448, 271730, 378227, 271745, 181638, 353673, 181643, 181654, 230809, 361886, 181673, 181681, 337329, 181684, 361917, 181696, 337349, 337365, 271839, 329191, 361960, 329194, 116210, 337398, 337415, 329226, 419339, 419343, 419349, 419355, 370205, 419359, 394786, 419362, 370213, 419368, 419376, 206395, 214593, 419400, 419402, 353867, 419406, 419410, 394853, 345701, 222830, 370297, 353919, 403075, 345736, 198280, 403091, 345749, 419483, 345757, 345762, 419491, 345765, 419497, 419501, 370350, 419506, 419509, 419512, 337592, 419517, 337599, 419527, 419530, 419535, 272081, 419542, 394966, 419544, 181977, 345818, 419547, 419550, 419559, 337642, 419563, 337645, 370415, 337659, 141051, 337668, 362247, 395021, 362255, 116509, 345887, 378663, 345905, 354106, 354111, 247617, 354117, 370503, 329544, 370509, 354130, 247637, 337750, 370519, 313180, 354142, 354150, 354156, 345967, 345970, 345974, 403320, 354172, 247691, 337808, 247700, 329623, 436126, 436132, 337833, 362413, 337844, 346057, 247759, 346063, 329697, 354277, 190439, 247789, 354313, 346139, 436289, 378954, 395339, 338004, 100453, 329832, 329855, 329867, 329885, 411805, 346272, 362660, 100524, 387249, 379066, 387260, 256191, 395466, 346316, 411861, 411864, 411868, 411873, 379107, 411876, 387301, 346343, 338152, 387306, 387312, 346355, 436473, 379134, 411903, 411916, 379152, 395538, 387349, 338199, 387352, 182558, 395566, 248111, 362822, 436555, 190796, 379233, 354673, 420236, 379278, 272786, 354727, 338352, 330189, 338381, 338386, 256472, 338403, 338409, 248308, 199164, 330252, 199186, 330267, 354855, 10828, 199249, 346721, 174695, 248425, 191084, 191092, 346742, 354974, 150183, 174774, 248504, 174777, 223934, 355024, 273108, 355028, 264918, 183005, 256734, 436962, 338660, 338664, 264941, 363251, 207619, 264964, 338700, 256786, 199452, 363293, 396066, 346916, 396069, 215853, 355122, 355131, 355140, 355143, 338763, 355150, 330580, 355166, 265055, 265058, 355175, 387944, 355179, 330610, 330642, 355218, 412599, 207808, 379848, 396245, 248792, 248798, 347105, 257008, 183282, 265207, 330748, 265214, 330760, 330768, 248862, 396328, 347176, 158761, 199728, 396336, 330800, 396339, 339001, 388154, 388161, 347205, 248904, 330826, 248914, 412764, 257120, 265320, 248951, 420984, 330889, 347287, 248985, 339097, 44197, 380070, 339112, 249014, 126144, 330958, 330965, 265432, 265436, 388319, 388347, 175375, 159005, 175396, 208166, 273708, 347437, 372015, 347441, 372018, 199988, 44342, 175415, 396600, 437566, 175423, 437570, 437575, 437583, 331088, 437587, 331093, 396633, 175450, 437595, 175457, 208227, 175460, 175463, 265580, 437620, 175477, 249208, 175483, 175486, 249214, 175489, 249218, 249227, 175513, 175516, 396705, 175522, 355748, 380332, 396722, 208311, 372163, 216517, 380360, 216522, 339404, 372176, 208337, 339412, 413141, 339417, 339420, 249308, 339424, 339428, 339434, 249328, 69113, 372228, 208398, 380432, 175635, 265778, 265795, 396872, 265805, 224853, 224857, 257633, 224870, 372327, 257646, 372337, 224884, 224887, 224890, 224894, 224897, 372353, 216707, 126596, 421508, 224904, 224909, 11918, 159374, 224913, 126610, 339601, 224916, 224919, 126616, 224922, 208538, 224926, 224929, 224932, 224936, 257704, 224942, 257712, 224947, 257716, 257720, 224953, 257724, 224959, 257732, 224965, 224969, 339662, 224975, 257747, 224981, 224986, 257761, 224993, 257764, 224999, 339695, 225012, 257787, 225020, 339710, 257790, 225025, 257794, 339721, 257801, 257804, 225038, 257807, 225043, 372499, 167700, 225048, 257819, 225053, 225058, 257833, 225066, 257836, 413484, 225070, 225073, 372532, 257845, 225079, 397112, 225082, 397115, 225087, 225092, 225096, 323402, 257868, 225103, 257871, 397139, 225108, 225112, 257883, 257886, 225119, 257890, 339814, 225127, 274280, 257896, 257901, 225137, 339826, 257908, 225141, 257912, 225148, 257916, 257920, 225155, 339844, 225165, 397200, 225170, 380822, 225175, 225180, 118691, 184244, 372664, 372702, 372706, 356335, 380918, 372738, 405533, 430129, 266294, 266297, 421960, 356439, 421990, 266350, 356466, 266362, 381068, 225423, 250002, 250004, 225429, 356506, 225437, 135327, 225441, 438433, 225444, 438436, 225447, 438440, 225450, 258222, 225455, 225458, 225461, 225466, 389307, 225470, 381120, 372929, 430274, 225475, 389320, 225484, 225487, 225490, 225493, 266453, 225496, 225499, 225502, 225505, 356578, 225510, 217318, 225514, 225518, 372976, 381176, 389380, 61722, 356637, 356640, 356643, 356646, 266536, 356649, 356655, 332080, 340275, 356660, 397622, 332090, 225597, 332097, 201028, 348488, 332106, 332117, 348502, 250199, 250202, 332125, 250210, 332152, 389502, 250238, 332161, 356740, 332172, 373145, 340379, 373148, 389550, 324030, 266687, 160234, 127471, 340472, 381436, 324094, 266754, 324099, 324102, 324111, 340500, 324117, 324131, 332324, 381481, 356907, 324139, 324142, 356916, 324149, 324155, 348733, 324164, 348743, 381512, 324170, 324173, 324176, 389723, 332380, 373343, 381545, 340627, 373398, 184982, 258721, 332453, 332459, 389805, 332463, 381617, 332471, 332483, 332486, 373449, 332493, 357069, 357073, 332511, 332520, 340718, 332533, 348924, 389892, 373510, 389926, 348978, 152370, 340789, 348982, 398139, 127814, 357201, 357206, 389978, 430939, 357211, 357214, 201579, 201582, 349040, 340849, 430965, 381813, 324472, 398201, 340858, 324475, 430972, 340861, 324478, 119674, 324481, 373634, 398211, 324484, 324487, 381833, 324492, 324495, 324498, 430995, 324501, 324510, 422816, 324513, 398245, 201637, 324524, 340909, 324533, 324538, 324541, 398279, 340939, 340941, 209873, 340957, 431072, 398306, 340963, 209895, 357351, 201711, 349172, 349180, 439294, 357410, 250914, 185380, 357418, 209979, 209995, 341071, 349267, 250967, 210010, 341091, 210025, 210030, 210036, 349308, 349311, 160895, 152703, 210052, 349319, 210055, 218247, 210067, 251044, 185511, 210107, 332997, 210127, 333009, 210131, 333014, 210143, 218354, 218360, 251128, 275712, 275715, 275721, 349456, 349459, 333078, 251160, 349484, 349491, 251189, 415033, 251210, 357708, 210260, 365911, 259421, 365921, 333154, 333162, 234866, 390516, 333175, 357755, 251271, 374160, 112020, 349590, 357792, 259515, 415166, 415185, 366034, 366038, 415191, 415193, 415196, 415199, 423392, 333284, 415207, 366056, 366061, 415216, 210420, 415224, 423423, 415257, 415263, 366117, 415270, 144939, 415278, 415281, 415285, 210487, 415290, 415293, 349761, 415300, 333386, 366172, 423528, 423532, 210544, 415353, 333439, 415361, 267909, 153227, 333498, 210631, 333511, 259788, 358099, 333534, 366307, 366311, 431851, 366318, 210672, 366321, 366325, 210695, 268041, 210698, 366348, 210706, 399128, 333594, 210719, 358191, 366387, 210739, 399159, 358200, 325440, 366401, 341829, 325446, 46920, 341834, 341838, 341843, 415573, 341851, 350045, 399199, 259938, 399206, 268143, 358255, 399215, 358259, 333689, 243579, 325504, 333698, 333708, 333724, 382890, 350146, 358371, 350189, 350193, 350202, 333818, 350206, 350213, 268298, 350224, 350231, 333850, 350237, 350240, 350244, 350248, 178218, 350251, 350256, 350259, 350271, 243781, 350285, 374864, 342111, 342133, 374902, 432271, 333997, 334011, 260289, 260298, 350416, 350422, 211160, 350425, 334045, 350445, 375026, 358644, 350458, 350461, 350464, 325891, 350467, 350475, 375053, 268559, 350480, 432405, 350486, 325914, 350490, 325917, 350493, 325919, 350498, 194852, 350504, 358700, 391468, 350509, 358704, 358713, 358716, 383306, 334161, 383321, 383330, 383333, 391530, 383341, 334203, 268668, 194941, 391563, 366990, 416157, 342430, 268701, 375208, 326058, 375216, 334262, 334275, 326084, 358856, 334304, 334311, 375277, 334321, 350723, 391690, 186897, 342545, 334358, 342550, 342554, 334363, 358941, 350761, 252461, 334384, 383536, 358961, 334394, 252482, 219718, 334407, 334420, 350822, 375400, 334465, 334468, 326290, 342679, 342683, 260766, 342710, 244409, 260797, 260801, 350917, 154317, 391894, 154328, 416473, 64230, 113388, 342766, 375535, 203506, 342776, 391937, 391948, 375568, 326416, 375571, 375574, 162591, 326441, 383793, 326451, 326454, 326460, 260924, 375612, 244540, 326467, 244551, 326473, 326477, 326485, 416597, 326490, 342874, 326502, 375656, 433000, 326507, 326510, 211825, 211831, 351097, 392060, 359295, 351104, 342915, 400259, 236430, 342930, 252822, 392091, 400285, 252836, 359334, 211884, 400306, 351168, 359361, 326598, 359366, 359382, 359388, 383967, 343015, 359407, 261108, 244726, 261111, 383997, 261129, 359451, 261147, 211998, 261153, 261159, 359470, 359476, 343131, 384098, 384101, 384107, 367723, 187502, 343154, 384114, 212094, 351364, 384135, 384139, 384143, 351381, 384160, 384168, 367794, 384181, 367800, 384191, 351423, 384198, 326855, 244937, 253130, 343244, 146642, 359649, 343270, 351466, 351479, 384249, 343306, 261389, 359694, 384269, 253200, 261393, 384275, 245020, 245029, 171302, 351534, 376110, 245040, 384314, 425276, 384323, 212291, 343365, 212303, 367965, 343393, 343398, 367980, 425328, 343409, 253303, 154999, 343417, 327034, 245127, 384397, 245136, 245142, 245145, 343450, 245148, 245151, 245154, 245157, 245162, 327084, 359865, 384443, 146876, 327107, 384453, 327110, 327115, 327117, 359886, 359890, 343507, 368092, 343534, 343539, 368119, 368122, 409091, 359947, 359955, 359983, 343630, 179802, 155239, 327275, 245357, 138864, 155254, 155273, 368288, 245409, 425638, 425649, 155322, 425662, 155327, 155351, 155354, 212699, 155363, 245475, 155371, 245483, 409335, 155393, 155403, 155422, 360223, 155438, 155442, 155447, 417595, 155461, 360261, 376663, 155482, 261981, 425822, 155487, 376671, 155490, 155491, 327531, 261996, 376685, 261999, 262002, 327539, 262005, 147317, 425845, 262008, 262011, 155516, 155521, 155525, 360326, 155531, 262027, 262030, 262033, 262036, 262039, 262042, 155549, 262045, 262048, 262051, 327589, 155559, 155562, 155565, 393150, 393169, 384977, 155611, 155619, 253923, 155621, 253926, 327654, 204784, 393203, 360438, 253943, 393206, 393212, 155646 ]
1d456921f5cd53d3be8d702d7d22f57f2562292a
f2518303e1c24baf7f5db0af57a7a827658443ce
/Rebuild/Models/Student/StudentStore.swift
52c26eb5e19d15b49888cad037712fa5cc3e98bb
[]
no_license
menashehertz/Rebuild
e16a73e66ef624af64c8649354efdabfa3f95be2
0dcab2687827dd6c608b142b2a08039faee6e73b
refs/heads/master
2020-09-15T08:51:47.054089
2019-11-22T13:04:15
2019-11-22T13:04:15
223,401,492
0
0
null
null
null
null
UTF-8
Swift
false
false
834
swift
// // StudentStore.swift // Students-Profiles-ByDay // // Created by Steven Hertz on 11/20/19. // Copyright © 2019 DevelopItSolutions. All rights reserved. // import Foundation class StudentStore { var student: Student init() { if let jsonData = UserDefaults.standard.data(forKey: "student") { let jsonDecoder = JSONDecoder() self.student = try! jsonDecoder.decode(Student.self, from: jsonData) } else { self.student = Student(username: "DovidStein", firstName: "Dovid", lastName: "Stein") } } func saveTheStudent() { let jsonEncoder = JSONEncoder() let jsonData = try! jsonEncoder.encode(self.student) UserDefaults.standard.set(jsonData, forKey: "student") UserDefaults.standard.synchronize() } }
[ -1 ]
1690e42ddc123ccbbb4de6e36b20d17661fb895e
da7785b81415597355c877be721c5f398618d52f
/FieldBehaviorExamples/UIDynamicsSample/Controller/FieldBehaviorViewController.swift
ab8ea2d82a6e0be5040f7b601053e423ddbccbed
[]
no_license
AcademyIFCE/UIDynamics
9e13d5c6aaf75a57ffd6a7f2377a6f64124528e7
9b342dc279557303bc921cf3615d1e057fe12228
refs/heads/master
2022-12-09T13:24:21.471806
2020-09-09T17:57:34
2020-09-09T17:57:34
294,186,191
4
0
null
null
null
null
UTF-8
Swift
false
false
8,712
swift
// // FieldBehaviorViewController.swift // UIDynamicsSample // // Created by Gabriela Bezerra on 08/09/20. // Copyright © 2020 Gabriela Bezerra. All rights reserved. // import UIKit class FieldBehaviorViewController: UIViewController { private let fieldView: FieldBehaviorView = FieldBehaviorView() private let model: FieldBehaviorModel = FieldBehaviorModel() lazy var animator: UIDynamicAnimator = { let animator = UIDynamicAnimator(referenceView: view) animator.setValue(true, forKey: "debugEnabled") return animator }() private var collisionBehavior: UICollisionBehavior! private var pushBehavior: UIPushBehavior! private var snapBehavior: UISnapBehavior! private var customDynamicItemBehavior: UIDynamicItemBehavior! private var dragFieldBehavior: UIFieldBehavior! private var springFieldBehavior: UIFieldBehavior! private var noiseFieldBehavior: UIFieldBehavior! private var turbulenceField: UIFieldBehavior! private var linearGravityField: UIFieldBehavior! private var radialGravityField: UIFieldBehavior! private var velocityField: UIFieldBehavior! private var magneticField: UIFieldBehavior! private var electricField: UIFieldBehavior! private var vortexField: UIFieldBehavior! override func loadView() { super.loadView() self.view = fieldView } override func viewDidLoad() { super.viewDidLoad() fieldView.balls.enumerated().forEach { index, ball in ball.text = "\(model.users[index].owner)\nR$ \(model.users[index].amount)" let pan = UIPanGestureRecognizer(target: self, action: #selector(FieldBehaviorViewController.pan)) ball.addGestureRecognizer(pan) } } override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) addDynamics() } //MARK: - Pan Gesture Recognizer Action @objc func pan(_ panGesture: UIPanGestureRecognizer) { switch panGesture.state { case .began: animator.removeAllBehaviors() case .changed: panGesture.view!.center = panGesture.location(in: view) case .ended: addDynamics() default: break } } func addDynamics() { addCollisionBehavior() //MARK: - Drag Field // fieldView.titleLabel.text = "Drag Field" // // addPushBehavior(dx: 0, dy: 1) // // DispatchQueue.main.asyncAfter(deadline: .now() + 2) { // self.addDragFieldBehavior(dx: 0, dy: 1) // // for ball in self.fieldView.balls { // self.dragFieldBehavior.addItem(ball) // } // } //MARK: - Radial Gravity Field // fieldView.titleLabel.text = "Radial Gravity Field" // addPushBehavior(dx: 0, dy: 1) // // self.addGravityFieldBehavior() // // for ball in self.fieldView.balls { // radialGravityField.addItem(ball) // } //MARK: - Noise Field // fieldView.titleLabel.text = "Noise Field" // // self.addNoiseFieldBehavior() // // for ball in self.fieldView.balls { // self.noiseFieldBehavior.addItem(ball) // } //MARK: - Turbulence Field // fieldView.titleLabel.text = "Turbulence Field" // // addPushBehavior(dx: 0, dy: 1) // self.addTurbulenceFieldBehavior() // // for ball in self.fieldView.balls { // self.turbulenceField.addItem(ball) // } //MARK: - Vortex Field // fieldView.titleLabel.text = "Vortex Field" // // addPushBehavior(dx: 0, dy: 1) // // self.addVortexField() // // for ball in self.fieldView.balls { // self.vortexField.addItem(ball) // } //MARK: - Nubank Field fieldView.titleLabel.text = "Nubank Field" addSpringFieldBehavior(dx: 0, dy: 0) addElectricFieldBehavior() addMagneticFieldBehavior() for (index, ball) in fieldView.balls.enumerated() { springFieldBehavior.addItem(ball) electricField.addItem(ball) magneticField.addItem(ball) self.addCustomDynamicItemBehavior(ball, charge: index % 2 == 0 ? -1 : 1) } } } //MARK: - UIFieldBehaviors extension FieldBehaviorViewController { func addMagneticFieldBehavior() { magneticField = UIFieldBehavior.magneticField() magneticField.strength = -5 magneticField.position = view.center animator.addBehavior(magneticField) } func addElectricFieldBehavior() { electricField = UIFieldBehavior.electricField() electricField.strength = -5 electricField.position = view.center animator.addBehavior(electricField) } func addSpringFieldBehavior(dx: CGFloat, dy: CGFloat) { springFieldBehavior = UIFieldBehavior.springField() springFieldBehavior.position = self.view.center springFieldBehavior.region = UIRegion(size: self.view.bounds.size) springFieldBehavior.direction = CGVector(dx: dx, dy: dy) springFieldBehavior.strength = 100 springFieldBehavior.falloff = 0 animator.addBehavior(springFieldBehavior) } func addVortexField() { vortexField = UIFieldBehavior.vortexField() vortexField.region = UIRegion(radius: 200) vortexField.position = self.view.center vortexField.strength = 5 animator.addBehavior(vortexField) } func addTurbulenceFieldBehavior() { turbulenceField = UIFieldBehavior.turbulenceField(smoothness: 0.1, animationSpeed: 0.6) turbulenceField.strength = 10 turbulenceField.position = self.view.center turbulenceField.region = UIRegion(radius: 500) animator.addBehavior(turbulenceField) } func addNoiseFieldBehavior() { noiseFieldBehavior = UIFieldBehavior.noiseField(smoothness: 0.95, animationSpeed: 0.6) noiseFieldBehavior.strength = 1 noiseFieldBehavior.position = self.view.center noiseFieldBehavior.region = UIRegion(radius: 500) animator.addBehavior(noiseFieldBehavior) } func addGravityFieldBehavior() { radialGravityField = UIFieldBehavior.radialGravityField(position: self.view.center) radialGravityField.region = UIRegion(radius: 400) radialGravityField.strength = 10 radialGravityField.minimumRadius = 50 animator.addBehavior(radialGravityField) } func addDragFieldBehavior(dx: CGFloat, dy: CGFloat) { self.dragFieldBehavior = UIFieldBehavior.dragField() dragFieldBehavior.position = self.view.center dragFieldBehavior.region = UIRegion(size: self.view.bounds.size) dragFieldBehavior.direction = CGVector(dx: dx, dy: dy) animator.addBehavior(dragFieldBehavior) } } //MARK: - Other Dynamic Behaviors extension FieldBehaviorViewController { func addCustomDynamicItemBehavior(_ item: UIDynamicItem, charge: CGFloat) { customDynamicItemBehavior = UIDynamicItemBehavior() customDynamicItemBehavior.allowsRotation = false customDynamicItemBehavior.charge = charge customDynamicItemBehavior.elasticity = 0.2 customDynamicItemBehavior.friction = 10 customDynamicItemBehavior.resistance = 10 customDynamicItemBehavior.density = 0.5 customDynamicItemBehavior.addItem(item) self.animator.addBehavior(customDynamicItemBehavior) } func addSnapBehavior(_ item: UIDynamicItem,snapPoint: CGPoint) { snapBehavior = UISnapBehavior(item: item, snapTo: snapPoint) snapBehavior.damping = 0 animator.addBehavior(snapBehavior) } func addPushBehavior(dx: CGFloat, dy: CGFloat) { pushBehavior = UIPushBehavior(items: fieldView.balls, mode: .instantaneous) pushBehavior.pushDirection = .init(dx: dx, dy: dy) pushBehavior.magnitude = 1 pushBehavior.active = true self.animator.addBehavior(pushBehavior) } func addCollisionBehavior() { collisionBehavior = UICollisionBehavior(items: fieldView.balls) collisionBehavior.translatesReferenceBoundsIntoBoundary = true self.animator.addBehavior(collisionBehavior) } }
[ -1 ]
588f09608cc9e20826f54eacdb2aa2574e6592de
595a1144ae9de4287a5d958d8ab47648b150be73
/iOS/SwiftTV/Views/Movies/MovieRow.swift
9d1a14c1b56638ef70d04792231fd3fbec6d8f62
[ "MIT" ]
permissive
revblaze/SwiftTV
10e094b695766ad3910f8ae91e1cc1af53dbaddf
170b86ee01922f9f563ffa80cdcd49c9f329ec2c
refs/heads/main
2023-07-15T09:28:35.089010
2021-08-31T15:02:52
2021-08-31T15:02:52
331,063,130
0
0
null
null
null
null
UTF-8
Swift
false
false
1,092
swift
// // MovieRow.swift // SwiftTV // // Created by Justin Bush on 2021-01-19. // import SwiftUI struct MovieRow: View { var movie: Movie var body: some View { HStack { movie.poster .resizable() .aspectRatio(contentMode: .fit) .frame(width: 50, height: 50) VStack(alignment: .leading) { Text(movie.name) Text("\(movie.year) • \(movie.genre)") .font(.caption) .foregroundColor(.secondary) } Spacer() if movie.isFavorite { Image(systemName: "star.fill") .foregroundColor(.yellow) } } } } struct MovieRow_Previews: PreviewProvider { static var movies = ModelData().movies static var previews: some View { Group { MovieRow(movie: movies[0]) MovieRow(movie: movies[1]) } .previewLayout(.fixed(width: 300, height: 70)) } }
[ -1 ]
e028273644e193ce40dd515bab25de95ff9ab17d
c2a21a9a21bf1d38b570dcb85a6a6d3384cd1de8
/Checkup/POJOs/Test/Request.swift
ad145eebfcb18940de40ccf1b12f0ff70ffc9db1
[]
no_license
hassankhamis97/Checkup
c0f1b174fa32cc4fd5d6cf8a9e8d506c968fbab4
4c0cd505f7253f8be370383e2611613e9f3aaec5
refs/heads/master
2021-05-27T01:33:33.956363
2020-06-15T20:39:45
2020-06-15T20:39:45
254,201,229
0
1
null
null
null
null
UTF-8
Swift
false
false
336
swift
// // Request.swift // Checkup // // Created by Hassan Khamis on 5/17/20. // Copyright © 2020 Hassan Khamis. All rights reserved. // import Foundation struct Request : Codable { var id : Int64? var dateRequest: String? var status: String? var labName: String? var labPhoto: String? var isNotified: Bool? }
[ -1 ]
fa41c90d2f69692bdf7670ed716942c1ceef8cd7
c0ccb6f70a1018d047dcf4dd3f55b16f04f3b00c
/test/Migrator/swift_version_change.swift
d47a98838ae75857558c274223a6c473d7b2d2e0
[ "Apache-2.0", "Swift-exception" ]
permissive
Evil-Talk/swift
6a2c9438a7bae625e0e97ff6422730c3502f91ab
1dfe682eb663c43027bac4e2899d23dfa484cf52
refs/heads/master
2020-03-15T15:37:30.651592
2018-05-05T05:06:37
2018-05-05T05:06:37
132,216,289
1
1
Apache-2.0
2018-05-09T03:37:22
2018-05-05T04:59:24
C++
UTF-8
Swift
false
false
323
swift
// REQUIRES: OS=macosx // RUN: %empty-directory(%t) && %target-swift-frontend -typecheck -update-code -primary-file %s -emit-migrated-file-path %t/dummpy.result -swift-version 3 // RUN: %target-swift-frontend -typecheck -update-code -primary-file %s -emit-migrated-file-path %t/dummpy.result -swift-version 4 func foo() {}
[ 86471 ]
01efb9c2567d5d802c1f0a19e1a90f11bd23940d
6ae7f87528ca54322c736421af76d202c12ebb0a
/NotesCoreData/View/NoteTableViewCell.swift
3e0c01b43ee69543336875e43e24eeded464f1c0
[]
no_license
Istomin-1/NotesCoreData
6b937a72bdab691aa3e778449bab72fd098c8468
1c8bc11785c64fa5fe8a5a250ca3392bf95e3e27
refs/heads/main
2023-04-07T03:25:59.097254
2021-04-19T11:47:52
2021-04-19T11:47:52
353,402,519
1
0
null
null
null
null
UTF-8
Swift
false
false
430
swift
// // NoteTableViewCell.swift // NotesCoreData // // Created by Mikhail on 22.03.2021. // import UIKit class NoteTableViewCell: UITableViewCell { // MARK: - Outlets @IBOutlet var noteNameLabel: UILabel! @IBOutlet var noteDetailLabel: UILabel! @IBOutlet var noteImage: UIImageView! override func awakeFromNib() { super.awakeFromNib() noteImage.layer.cornerRadius = 5 } }
[ -1 ]
fda0de7e709a9057fc4b50cdf2b1b9c311abf8f5
c399f7b4e8d6c0a0c32be5a9ad793057a586edb7
/BabiFud/Model/Rating.swift
aed0b3691343747138cdb1d9bbc41dfa9603e301
[]
no_license
williammcintosh/Grub-Grid-ML
0f17badc291da9efad889b5da22487c029fc589e
64f95207ca641e0f96c0f912db947bb511c528c3
refs/heads/main
2023-07-09T07:26:10.032740
2021-08-11T01:37:36
2021-08-11T01:37:36
388,219,204
1
0
null
null
null
null
UTF-8
Swift
false
false
711
swift
import Foundation import UIKit import MapKit import CloudKit import CoreLocation class Rating { static let recordType = "Rating" private let id: CKRecord.ID let database: CKDatabase let user_id: Int64 let recipe_id: Int64 let freq: Int64 init?(record: CKRecord, database: CKDatabase) { id = record.recordID self.user_id = record["user_id"] as? Int64 ?? 0 self.database = database self.recipe_id = record["recipe_id"] as? Int64 ?? 0 self.freq = record["freq"] as? Int64 ?? 0 } } extension Rating: Hashable { static func == (lhs: Rating, rhs: Rating) -> Bool { return lhs.id == rhs.id } func hash(into hasher: inout Hasher) { hasher.combine(id) } }
[ -1 ]
3ee0e634af07106307218d1d8add6c3866f2a704
839703b9a26e2dacd5721b69f0df6e1360003d3a
/Client.playground/Contents.swift
8bcfb9a224166325bf561a330641f2f8f0c6f6af
[]
no_license
krypton-org/krypton-ios
74a3d9af030532cfb9fb000222efec61d97612f9
5b6509d196013ffff2b5225c2f32d78205695f73
refs/heads/master
2021-04-05T22:45:58.135005
2020-11-02T14:34:38
2020-11-02T14:34:38
248,609,603
0
0
null
null
null
null
UTF-8
Swift
false
false
775
swift
import Foundation let DEFAAULT_MIN_TIME_TO_LIVE = 30 * 1000 // 30 seconds struct KryptonClient { var endpoint: String var minTimeToLive: Int func saveRefreshTokenClb() -> String? {return ""} init(endpoint: String, minTimeToLive: Int) { self.endpoint = endpoint self.minTimeToLive = minTimeToLive } func reinitialize() { //_init() } var _state.expiryDate: Date() { get { expiryDate } } } class _kryptonState { var token: String var expiryDate: Date? var user: [String: Any]? init(token: String) { self.token = token self.expiryDate = self.expiryDate ?? Date() self.user = self.user ?? Dictionary() } }
[ -1 ]
1c57879b0842b65e9f7e50f55c9d40381dafc820
9d17e853df08c7e87d269f84ce6654b8f5c6c6db
/obeb/ViewController.swift
ef455d1cb052945f45db091ce70789db9f849251
[]
no_license
onselaydin/obeb
07735c64aef9aad95c52922ab591e2b251763c69
43b1606ef24d4ae5971e4c43108105ca41414853
refs/heads/master
2021-01-10T05:57:11.978587
2016-01-14T10:15:17
2016-01-14T10:15:17
49,637,771
0
0
null
null
null
null
UTF-8
Swift
false
false
502
swift
// // ViewController.swift // obeb // // Created by Onsel AYDIN on 14/01/16. // Copyright © 2016 Onsel AYDIN. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } }
[ 293888, 279046, 294411, 277527, 281118, 284192, 197664, 317473, 295460, 284197, 296487, 286249, 304174, 286775, 238653, 286786, 159812, 284236, 278606, 284239, 284240, 284242, 292435, 307288, 212573, 277602, 309347, 309349, 306791, 309351, 309353, 286314, 311913, 307311, 314996, 276087, 303242, 226447, 349332, 299165, 284317, 295586, 282275, 284328, 313007, 284336, 286390, 283839, 277696, 285377, 280772, 276167, 294600, 230604, 298189, 302286, 313550, 230608, 229585, 282320, 280797, 282338, 298211, 301284, 284391, 280810, 199402, 280813, 282357, 226038, 286456, 282368, 276736, 230147, 358147, 282377, 282393, 329499, 228127, 282403, 277796, 304933, 285495, 282426, 307516, 283453, 238920, 287055, 296272, 279380, 307029, 279386, 188253, 293742, 280947, 292730, 207738, 290175, 275842, 183173, 313222, 324491, 234380, 300432, 226705, 285087, 289187, 284580, 288165, 284586, 144811, 276396, 305582, 277935, 324528, 230323, 282548, 234423, 230328, 10179, 288205, 280015, 311761, 163289, 294877, 280031, 298989, 183278, 277487, 227315, 302580, 310773 ]
192ec18bbc7bc117397c006f6413786ee46c9216
f1e47a7b90a9066742c087b5bc386aeb3869728f
/SpeechApp/Sources/Utils/Extensions/KeyboardLayoutConstraint.swift
336ae5d8117ba4065f1d477e7b7d70e62321be9e
[]
no_license
lg-studio/SpeechApp-iOS
44ff0446a0914cff0a11b2cb8f686982f7c54c46
1e7837b3113e86c5712d5aadce3686dce8ac91fb
refs/heads/master
2021-01-10T08:43:15.770922
2016-01-20T14:17:15
2015-08-31T05:21:59
50,034,965
0
0
null
null
null
null
UTF-8
Swift
false
false
3,167
swift
// // KeyboardLayoutConstraint.swift // SpeechApp // // Created by Ionut Paraschiv on 27/07/15. // Copyright (c) 2015 3angleTECH. All rights reserved. // import UIKit public class KeyboardLayoutConstraint: NSLayoutConstraint { private var offset : CGFloat = 0 private var keyboardVisibleHeight : CGFloat = 0 override public func awakeFromNib() { super.awakeFromNib() offset = constant NSNotificationCenter.defaultCenter().addObserver(self, selector: "keyboardWillShowNotification:", name: UIKeyboardWillShowNotification, object: nil) NSNotificationCenter.defaultCenter().addObserver(self, selector: "keyboardWillHideNotification:", name: UIKeyboardWillHideNotification, object: nil) } deinit { NSNotificationCenter.defaultCenter().removeObserver(self) } // MARK: Notification func keyboardWillShowNotification(notification: NSNotification) { if let userInfo = notification.userInfo { if let frameValue = userInfo[UIKeyboardFrameEndUserInfoKey] as? NSValue { let frame = frameValue.CGRectValue() keyboardVisibleHeight = frame.size.height } self.updateConstant() switch (userInfo[UIKeyboardAnimationDurationUserInfoKey] as? NSNumber, userInfo[UIKeyboardAnimationCurveUserInfoKey] as? NSNumber) { case let (.Some(duration), .Some(curve)): let options = UIViewAnimationOptions(curve.unsignedLongValue) UIView.animateWithDuration( NSTimeInterval(duration.doubleValue), delay: 0, options: options, animations: { UIApplication.sharedApplication().keyWindow?.layoutIfNeeded() return }, completion: { finished in }) default: break } } } func keyboardWillHideNotification(notification: NSNotification) { keyboardVisibleHeight = 0 self.updateConstant() if let userInfo = notification.userInfo { switch (userInfo[UIKeyboardAnimationDurationUserInfoKey] as? NSNumber, userInfo[UIKeyboardAnimationCurveUserInfoKey] as? NSNumber) { case let (.Some(duration), .Some(curve)): let options = UIViewAnimationOptions(curve.unsignedLongValue) UIView.animateWithDuration( NSTimeInterval(duration.doubleValue), delay: 0, options: options, animations: { UIApplication.sharedApplication().keyWindow?.layoutIfNeeded() return }, completion: { finished in }) default: break } } } func updateConstant() { self.constant = offset + keyboardVisibleHeight } }
[ -1 ]
2806072edadcfe25f160fac1b20979ff5fffc0a6
952f4e85b6409f3a4030a185e145373c3927ba22
/AirQualityUITests/AirQualityUITests.swift
e8e086bfa2747a96a85a4f97d38f1b3ccd61f081
[]
no_license
divide-et-impera-ltd/air-quality-ios
e9dc6f5b1a8cbbc6c7a3133ea461c90ce9eb7191
1291e5f5bea8e9743b8569ba7fcd45276eea70bc
refs/heads/main
2023-02-25T18:15:52.784022
2021-02-01T19:30:14
2021-02-01T19:30:14
335,060,933
0
0
null
null
null
null
UTF-8
Swift
false
false
1,426
swift
// // AirQualityUITests.swift // AirQualityUITests // // Created by Razvan Rujoiu on 01.02.2021. // import XCTest class AirQualityUITests: XCTestCase { override func setUpWithError() throws { // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is usually best to stop immediately when a failure occurs. continueAfterFailure = false // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. } override func tearDownWithError() throws { // Put teardown code here. This method is called after the invocation of each test method in the class. } func testExample() throws { // UI tests must launch the application that they test. let app = XCUIApplication() app.launch() // Use recording to get started writing UI tests. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testLaunchPerformance() throws { if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { // This measures how long it takes to launch your application. measure(metrics: [XCTApplicationLaunchMetric()]) { XCUIApplication().launch() } } } }
[ 360463, 155665, 376853, 344106, 253996, 385078, 163894, 180279, 352314, 213051, 376892, 32829, 286787, 352324, 237638, 352327, 385095, 393291, 163916, 368717, 311373, 196687, 278607, 311377, 254039, 426074, 368732, 180317, 32871, 352359, 221292, 278637, 319599, 385135, 376945, 131190, 385147, 131199, 426124, 196758, 49308, 65698, 311459, 49317, 377008, 377010, 180409, 295099, 377025, 377033, 164043, 417996, 254157, 368849, 368850, 139478, 229591, 385240, 254171, 147679, 147680, 311520, 205034, 254189, 286957, 254193, 344312, 147716, 385291, 368908, 180494, 262419, 368915, 254228, 319764, 278805, 377116, 254250, 311596, 131374, 418095, 336177, 368949, 180534, 155968, 287040, 311622, 270663, 368969, 254285, 180559, 377168, 344402, 229716, 368982, 270703, 139641, 385407, 385409, 270733, 106893, 385423, 385433, 213402, 385437, 254373, 156069, 385448, 385449, 115116, 385463, 319931, 278974, 336319, 336323, 188870, 278988, 278992, 262619, 377309, 377310, 369121, 369124, 279014, 270823, 279017, 311787, 213486, 360945, 139766, 393719, 279030, 377337, 279033, 254459, 410108, 410109, 262657, 377346, 279042, 279053, 410126, 262673, 385554, 393745, 303635, 279060, 279061, 254487, 410138, 279066, 188957, 377374, 385569, 385578, 377388, 197166, 393775, 418352, 33339, 352831, 33344, 385603, 377419, 385612, 303693, 426575, 385620, 369236, 115287, 189016, 270938, 287327, 279143, 279150, 287345, 352885, 352886, 344697, 189054, 287359, 385669, 369285, 311944, 344714, 311950, 377487, 311953, 287379, 336531, 180886, 426646, 352921, 377499, 221853, 344737, 295591, 352938, 295598, 418479, 279215, 279218, 164532, 336565, 287418, 377531, 303802, 377534, 377536, 66243, 385737, 287434, 385745, 279249, 303826, 369365, 369366, 385751, 230105, 361178, 352989, 352990, 418529, 295649, 385763, 295653, 369383, 230120, 361194, 312046, 418550, 344829, 279293, 205566, 197377, 434956, 312076, 295698, 418579, 426772, 197398, 426777, 221980, 344864, 197412, 336678, 262952, 189229, 262957, 164655, 328495, 197424, 197428, 336693, 230198, 377656, 426809, 197433, 222017, 295745, 377669, 197451, 369488, 279379, 385878, 385880, 295769, 197467, 435038, 230238, 279393, 303973, 279398, 385895, 197479, 385901, 197489, 295799, 164730, 336765, 254851, 369541, 172936, 320394, 377754, 172971, 140203, 377778, 304050, 189362, 189365, 189373, 377789, 345030, 345034, 279499, 418774, 386007, 386009, 418781, 386016, 123880, 418793, 320495, 222193, 435185, 271351, 214009, 312313, 435195, 328701, 312317, 386049, 328705, 418819, 410629, 377863, 189448, 230411, 361487, 435216, 386068, 254997, 336928, 336930, 410665, 345137, 361522, 312372, 238646, 238650, 320571, 386108, 410687, 336962, 238663, 377927, 361547, 205911, 156763, 361570, 214116, 230500, 214119, 402538, 279659, 173168, 230514, 238706, 279666, 312435, 377974, 66684, 377986, 279686, 402568, 222344, 140426, 337037, 386191, 410772, 222364, 418975, 124073, 402618, 148674, 402632, 148687, 402641, 189651, 419028, 279766, 189656, 304353, 279780, 222441, 279789, 386288, 66802, 271607, 369912, 386296, 369913, 419066, 386300, 279803, 386304, 369929, 419097, 320795, 115997, 222496, 320802, 304422, 369964, 353581, 116014, 66863, 312628, 345397, 345398, 386363, 222523, 345418, 353611, 337226, 353612, 230730, 337228, 296269, 353617, 222542, 238928, 296274, 378201, 230757, 296304, 312688, 337280, 353672, 263561, 296328, 296330, 370066, 9618, 411028, 279955, 370072, 148899, 148900, 361928, 337359, 329168, 312785, 329170, 222674, 353751, 280025, 239069, 361958, 271850, 280042, 280043, 271853, 329198, 411119, 337391, 116209, 296434, 386551, 288252, 271880, 198155, 329231, 304655, 370200, 222754, 157219, 157220, 394793, 312879, 288305, 288319, 288322, 280131, 288328, 353875, 312937, 271980, 206447, 403057, 42616, 337533, 280193, 370307, 419462, 149127, 149128, 419464, 288391, 411275, 214667, 239251, 345753, 198304, 255651, 337590, 370359, 280252, 280253, 321217, 239305, 296649, 403149, 313042, 345813, 370390, 272087, 345817, 337638, 181992, 345832, 345835, 288492, 141037, 313082, 288508, 288515, 173828, 395018, 395019, 116491, 395026, 116502, 435993, 345882, 255781, 362281, 378666, 403248, 378673, 345910, 182070, 182071, 436029, 345918, 337734, 280396, 272207, 272208, 337746, 395092, 362326, 345942, 370526, 345950, 362336, 255844, 296807, 214894, 362351, 313200, 214896, 313204, 182145, 280451, 67464, 305032, 337816, 329627, 239515, 354210, 436130, 436135, 10153, 313257, 362411, 370604, 362418, 411587, 280517, 362442, 346066, 231382, 354268, 436189, 403421, 329696, 354273, 403425, 354279, 436199, 174058, 337899, 354283, 247787, 329707, 247786, 296942, 436209, 239610, 182277, 346117, 403463, 43016, 354312, 354311, 354310, 313356, 436235, 419857, 305173, 436248, 223269, 346153, 354346, 313388, 272432, 403507, 378933, 378934, 436283, 288835, 403524, 436293, 313415, 239689, 436304, 329812, 223317, 411738, 272477, 280676, 313446, 395373, 288878, 346237, 215165, 436372, 329884, 378186, 362658, 436388, 215204, 133313, 395458, 338118, 436429, 346319, 379102, 387299, 18661, 379110, 338151, 149743, 379120, 436466, 411892, 436471, 395511, 313595, 436480, 272644, 338187, 338188, 395536, 338196, 272661, 379157, 338217, 321839, 362809, 379193, 395591, 289109, 272730, 436570, 215395, 239973, 280938, 321901, 354671, 362864, 272755, 354678, 199030, 223611, 436609, 436613, 395653, 395660, 264591, 420241, 240020, 190870, 43416, 190872, 289185, 436644, 289195, 272815, 436659, 338359, 436677, 289229, 281038, 281039, 256476, 420326, 166403, 420374, 322077, 289328, 330291, 322119, 191065, 436831, 420461, 346739, 346741, 420473, 297600, 166533, 363155, 346771, 264855, 363161, 289435, 436897, 248494, 166581, 355006, 363212, 363228, 322269, 436957, 436960, 264929, 338658, 289511, 330473, 346859, 330476, 289517, 215790, 199415, 289534, 322302, 35584, 133889, 322312, 346889, 166677, 207639, 363295, 355117, 191285, 273209, 355129, 273211, 355136, 355138, 420680, 355147, 355148, 355153, 281426, 387927, 363353, 363354, 281434, 420702, 363361, 363362, 412516, 355173, 355174, 281444, 207724, 355182, 207728, 420722, 314240, 158594, 330627, 240517, 265094, 387977, 396171, 355216, 224146, 224149, 256918, 256919, 256920, 240543, 256934, 273336, 289720, 289723, 273341, 330688, 379845, 363462, 19398, 273353, 191445, 207839, 347104, 314343, 412653, 248815, 257007, 347122, 437245, 257023, 125953, 396292, 330759, 347150, 330766, 412692, 330789, 248871, 281647, 412725, 257093, 404550, 207954, 339031, 404582, 257126, 322664, 265323, 396395, 404589, 273523, 363643, 248960, 363658, 404622, 224400, 265366, 347286, 429209, 339101, 429216, 380069, 265381, 3243, 208044, 322733, 421050, 339131, 265410, 183492, 421081, 339167, 298209, 421102, 363769, 52473, 208123, 52476, 412926, 437504, 322826, 388369, 380178, 429332, 126229, 412963, 257323, 437550, 273713, 298290, 208179, 159033, 347451, 372039, 257353, 257354, 109899, 437585, 331091, 150868, 314708, 372064, 429410, 437602, 281958, 388458, 265579, 306541, 421240, 224637, 388488, 298378, 306580, 282008, 396697, 282013, 290206, 396709, 298406, 241067, 380331, 314797, 380335, 355761, 421302, 134586, 380348, 216510, 380350, 216511, 306630, 200136, 273865, 306634, 339403, 372172, 413138, 421338, 437726, 429540, 3557, 3559, 191980, 282097, 265720, 216575, 290304, 372226, 323083, 208397, 323088, 413202, 413206, 388630, 175640, 216610, 372261, 347693, 323120, 396850, 200245, 323126, 290359, 134715, 323132, 421437, 396865, 282182, 413255, 273992, 265800, 421452, 265809, 396885, 290391, 265816, 396889, 306777, 388699, 396896, 388712, 388713, 314997, 290425, 339579, 396927, 282248, 224907, 405140, 274071, 323226, 208547, 208548, 405157, 388775, 282279, 364202, 421556, 224951, 224952, 306875, 282302, 323262, 241366, 224985, 282330, 159462, 372458, 397040, 12017, 323315, 274170, 200444, 175874, 249606, 282379, 216844, 372497, 397076, 421657, 339746, 216868, 257831, 167720, 241447, 421680, 282418, 274234, 339782, 315209, 159563, 339799, 307038, 274276, 282471, 274288, 372592, 274296, 339840, 372625, 282517, 298912, 118693, 438186, 126896, 151492, 380874, 372699, 323554, 380910, 380922, 380923, 274432, 372736, 241695, 430120, 102441, 315433, 430127, 405552, 282671, 241717, 249912, 225347, 307269, 421958, 233548, 176209, 381013, 53334, 315477, 200795, 356446, 323678, 438374, 176231, 438378, 233578, 422000, 249976, 266361, 422020, 168069, 381061, 168070, 381071, 241809, 430231, 200856, 422044, 192670, 192671, 299166, 258213, 299176, 323761, 184498, 266427, 356550, 299208, 372943, 266447, 258263, 356575, 307431, 438512, 372979, 389364, 381173, 135416, 356603, 184574, 266504, 217352, 61720, 381210, 282908, 389406, 282912, 233761, 438575, 315698, 266547, 397620, 332084, 438583, 127292, 438592, 332100, 323914, 201037, 348499, 250196, 348501, 389465, 332128, 110955, 242027, 242028, 160111, 250227, 315768, 291193, 438653, 291200, 266628, 340356, 242059, 225684, 373141, 373144, 291225, 389534, 397732, 373196, 176602, 242138, 184799, 291297, 201195, 324098, 233987, 340489, 397841, 283154, 258584, 291359, 348709, 348710, 397872, 283185, 234037, 340539, 266812, 438850, 348741, 381515, 348748, 430681, 332379, 242274, 184938, 373357, 184942, 176751, 389744, 356983, 356984, 209529, 356990, 291455, 373377, 422529, 201348, 152196, 356998, 348807, 356999, 316044, 275102, 176805, 340645, 422567, 176810, 160441, 422591, 291529, 225996, 135888, 242385, 234216, 373485, 373486, 21239, 275193, 348921, 234233, 242428, 299777, 430853, 430860, 62222, 430880, 234276, 234290, 152372, 160569, 430909, 160576, 348999, 283466, 234330, 275294, 381791, 127840, 357219, 439145, 177002, 308075, 381811, 201590, 177018, 398205, 340865, 291713, 349066, 316299, 349068, 234382, 308111, 381840, 308113, 390034, 373653, 430999, 209820, 381856, 398244, 185252, 422825, 381872, 177074, 398268, 349122, 398275, 373705, 127945, 340960, 398305, 340967, 398313, 234476, 127990, 349176, 201721, 349179, 234499, 357380, 398370, 357413, 357420, 300087, 21567, 308288, 398405, 349254, 218187, 250955, 300109, 234578, 250965, 439391, 250982, 398444, 62574, 357487, 300147, 119925, 349304, 234626, 349315, 349317, 234635, 373902, 234655, 234662, 373937, 373939, 324790, 300215, 218301, 283841, 283846, 259275, 316628, 259285, 357594, 414956, 251124, 316661, 292092, 439550, 439563, 242955, 414989, 259346, 349458, 382243, 382257, 292145, 382264, 333115, 193853, 193858, 251212, 406862, 234830, 259408, 283990, 357720, 300378, 300379, 374110, 234864, 259449, 382329, 357758, 243073, 357763, 112019, 398740, 234902, 374189, 251314, 284086, 259513, 54719, 292291, 300490, 300526, 259569, 251379, 300539, 398844, 210429, 366081, 316951, 374297, 153115, 431646, 349727, 431662, 374327, 210489, 235069, 349764, 292424, 292426, 128589, 333389, 333394, 349780, 128600, 235096, 300643, 300645, 415334, 54895, 366198, 210558, 210559, 415360, 325246, 415369, 431754, 210569, 267916, 415376, 259741, 153252, 399014, 210601, 202413, 415419, 259780, 333508, 267978, 333522, 325345, 333543, 325357, 431861, 284410, 161539, 284425, 300812, 284430, 366358, 169751, 431901, 341791, 186148, 186149, 284460, 202541, 399148, 431918, 153392, 431935, 415555, 325444, 153416, 325449, 341837, 415566, 431955, 325460, 341846, 300893, 259937, 382820, 276326, 415592, 292713, 292719, 325491, 341878, 276343, 350072, 333687, 112510, 325508, 333700, 243590, 325514, 350091, 350092, 350102, 350108, 333727, 219046, 284584, 292783, 300983, 128955, 219102, 292835, 6116, 317416, 432114, 325620, 415740, 268286, 415744, 243720, 399372, 153618, 358418, 178215, 325675, 243763, 358455, 399433, 333902, 104534, 194667, 260206, 432241, 284789, 374913, 374914, 415883, 333968, 153752, 333990, 104633, 260285, 227517, 268479, 374984, 301270, 301271, 334049, 325857, 268515, 383208, 317676, 260337, 260338, 375040, 309504, 260355, 375052, 194832, 325904, 391448, 268570, 178459, 186660, 268581, 334121, 358698, 317738, 260396, 325930, 432435, 358707, 178485, 358710, 14654, 268609, 227655, 383309, 383327, 391521, 366948, 416101, 416103, 383338, 432503, 432511, 211327, 227721, 285074, 252309, 39323, 285083, 317851, 285089, 375211, 334259, 129461, 342454, 358844, 293309, 317889, 326083, 416201, 129484, 154061, 326093, 416206, 432608, 285152, 391654, 432616, 334315, 375281, 293368, 317949, 334345, 309770, 342537, 342549, 342560, 416288, 350758, 350759, 358951, 358952, 293420, 219694, 219695, 375345, 244279, 309831, 375369, 375373, 416334, 301647, 416340, 244311, 416353, 260705, 375396, 268901, 244345, 334473, 375438, 326288, 285348, 293552, 342705, 285362, 383668, 342714, 39616, 383708, 342757, 269036, 432883, 203511, 342775, 383740, 416509, 432894, 359166, 375552, 162559, 228099, 285443, 285450, 383755, 326413, 285467, 326428, 318247, 342827, 318251, 301883, 342846, 416577, 416591, 244569, 375644, 252766, 293729, 351078, 342888, 392057, 211835, 260995, 400262, 392071, 424842, 236427, 252812, 400271, 392080, 400282, 7070, 211871, 359332, 359333, 293801, 326571, 252848, 326580, 261045, 261046, 326586, 359365, 211913, 326602, 342990, 252878, 433104, 56270, 359380, 433112, 433116, 359391, 187372, 343020, 203758, 383980, 383994, 171009, 384004, 433166, 384015, 433173, 293911, 326684, 252959, 384031, 375848, 318515, 203829, 261191, 375902, 375903, 392288, 253028, 351343, 187505, 138354, 187508, 384120, 302202, 285819, 392317, 343166, 384127, 392320, 285823, 285833, 285834, 318602, 228492, 253074, 326803, 187539, 359574, 285850, 351389, 302239, 253098, 302251, 367791, 367792, 367798, 64699, 294075, 228541, 343230, 367809, 253124, 113863, 351445, 310496, 195809, 253168, 351475, 351489, 367897, 367898, 130342, 130344, 130347, 261426, 212282, 294210, 359747, 359748, 146760, 146763, 114022, 253288, 425327, 425331, 163190, 327030, 384379, 253316, 294278, 384391, 318860, 253339, 253340, 318876, 343457, 245160, 359860, 359861, 343480, 310714, 228796, 228804, 425417, 310731, 327122, 425434, 310747, 310758, 253431, 359931, 187900, 343552, 245249, 228868, 359949, 294413, 253456, 302613, 253462, 146976, 245290, 245291, 343606, 163385, 425534, 138817, 147011, 147020, 179800, 196184, 343646, 212574, 204386, 155238, 204394, 138862, 310896, 188021, 294517, 286351, 188049, 425624, 229021, 245413, 286387, 384693, 376502, 286392, 302778, 409277, 286400, 409289, 425682, 286419, 294621, 245471, 155360, 294629, 212721, 163575, 286457, 286463, 319232, 360194, 409355, 155408, 417556, 294699, 204600, 319289, 384826, 409404, 360253, 409416, 237397, 376661, 368471, 425820, 368486, 384871, 409446, 368489, 40809, 425832, 417648, 417658, 360315, 253828, 327556, 311183, 425875, 294806, 294808, 253851, 376733, 204702, 319393, 294820, 253868, 204722, 188349, 98240, 212947, 212953, 360416, 294887, 253930, 327666, 385011 ]
e502723c8f77906bb589cff45406955f7ed27eb1
1554c2938771913e90eb4355792aee8bc582c374
/Sets/Model/CardAttribute.swift
3f96f6e8b12a8792ad8041818aff56a6057be969
[]
no_license
nik6018/Sets
5af44e42372d3054c11baf44fff169fde79027e9
a7e0e79bf2a6ad37bcbbb70ee1d3c7450175b3c8
refs/heads/master
2020-03-25T15:51:40.330442
2018-08-20T17:39:34
2018-08-20T17:39:34
143,904,390
0
0
null
null
null
null
UTF-8
Swift
false
false
1,093
swift
// // CardAttribute.swift // Sets // // Created by Nikhil Muskur on 13/07/18. // Copyright © 2018 Nikhil Muskur. All rights reserved. // import Foundation struct CardAttributes { var color: CardColor var shape: CardShape var pattern: CardPattern var shapeCount: Int enum CardColor: String { case red = "red", green = "green", blue = "blue" static var all : [CardColor] = [CardColor.red, .green, .blue] } enum CardShape: String { case circle = "●", square = "■", triangle = "▲" static var all : [CardShape] = [CardShape.circle, .square, .triangle] } enum CardPattern: String { case filled = "filled", stripped = "stripped", outline = "outline" static var all : [CardPattern] = [CardPattern.filled, .stripped, .outline] } init(color: CardColor, shape: CardShape, pattern: CardPattern, shapeCount: Int) { self.color = color self.shape = shape self.pattern = pattern self.shapeCount = shapeCount } }
[ -1 ]
243495a1d43ba375686851050a4296cc7733df57
3a4730f5b55045d986fb9090a485fdfb4224cffa
/assignment2/assignment2/Database/DatabaseProtocol.swift
bb9b4ee391e987a23fe3053873e3c565eb73af3c
[]
no_license
allenwyj/IOT-group-assignment
0a29ed21cd7899951fa1e4d7931dd8e86a0288bc
dc0b1ef2568b882e64afbf75cf5fae00abd14170
refs/heads/master
2022-04-13T11:35:06.332802
2020-03-03T05:42:03
2020-03-03T05:42:03
244,550,316
1
0
null
null
null
null
UTF-8
Swift
false
false
823
swift
// // DatabaseProtocol.swift // assignment2 // // Created by Yujie Wu on 30/9/19. // Copyright © 2019 Yujie Wu. All rights reserved. // import Foundation enum DatabaseChange { case add case remove case update } enum ListenerType { case colorData case temperatureData case currentValue case all } protocol DatabaseListener: AnyObject { var listenerType: ListenerType {get set} func onColorChange(change: DatabaseChange, colorDataList: [ColorData]) func onTemperatureChange(change: DatabaseChange, temperatureDataList: [TemperatureData]) func onCurrentValuesChange(change: DatabaseChange, currentValueDataList: [CurrentValue]) } protocol DatabaseProtocol: AnyObject { func addListener(listener: DatabaseListener) func removeListener(listener: DatabaseListener) }
[ -1 ]
38020d82d43f61aa7510cbad4f93f6ef78c070c4
d65db8f4432a776ff4442572a724ee64c3d54858
/M2/ViewModel/Base/DifferentiableObservableListViewModel.swift
c32fae6d5d2f7c3f705ed84cd0f9839eff0c4b96
[]
no_license
vincefried/M2
d732a747e7e38a9367f0e645d57a2d594305d94a
17404b1a7731e6a5179a34eb607cee421bdf4dd0
refs/heads/master
2020-08-23T15:37:49.261667
2019-10-21T19:53:34
2020-02-09T16:56:58
216,652,733
1
1
null
null
null
null
UTF-8
Swift
false
false
1,327
swift
// // DifferentiableObservableViewModel.swift // M2 // // Created by Vincent Friedrich on 17.03.19. // Copyright © 2019 neoxapps. All rights reserved. // import Foundation import DifferenceKit /// A base class for a differentiable and observable version of the ListViewModel using DifferenceKit. class DifferentiableObservableListViewModel<DataModelType: Differentiable, ViewModelType: CellViewModel<DataModelType>>: NSObject { /// A list of ViewModelType. var data: [ViewModelType] = [] /// A differentiable and observable provider. var provider: DifferentiableObservable<DataModelType> init(provider: DifferentiableObservable<DataModelType>) { self.provider = provider } /// Binds a given observer to changes in the contained provider. /// /// - Parameters: /// - closure: The closure that should be invoked be the changes. /// - observer: The observer which is owner of the closure. func bind(closure: @escaping DifferentiableClosure<DataModelType>, observer: Observer) { provider.bind(closure: closure, observer: observer) } /// Unbinds an observer. /// /// - Parameter observer: The observer that should be unbound. func unbind(observer: Observer) { provider.unbind(observer: observer) } }
[ -1 ]
2d464552bc02fe4b2979682a35eb27e732674d90
bff7493f4aadda050b3c40a711bbec95a58ae943
/WatsonMobileUI/Models/Transcription.swift
6ae8832363e1db8b13af1b6ce95464c2c36714bc
[]
no_license
wangkedl/WatsonMobileUI
00f28db4acd9ab7001b64d2f771559d54d9d6888
eddea01cb57ae4940fa492e0bab830af85ba61c1
refs/heads/master
2021-01-16T23:13:56.662493
2016-07-12T08:49:39
2016-07-12T08:49:39
62,193,003
2
0
null
null
null
null
UTF-8
Swift
false
false
1,683
swift
/** * Copyright IBM Corporation 2016 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. **/ import Foundation /** A transcription alternative produced by Speech to Text. */ public struct Transcription: JSONDecodable { /// A transcript of the utterance. public let transcript: String /// The confidence score of the transcript, between 0 and 1. Available only for the best /// alternative and only in results marked as final. public let confidence: Double? /// Timestamps for each word of the transcript. public let timestamps: [WordTimestamp]? /// Confidence scores for each word of the transcript, between 0 and 1. Available only /// for the best alternative and only in results marked as final. public let wordConfidence: [WordConfidence]? /// Used internally to initialize a `Transcription` model from JSON. public init(json: JSON) throws { transcript = try json.string("transcript") confidence = try? json.double("confidence") timestamps = try? json.arrayOf("timestamps", type: WordTimestamp.self) wordConfidence = try? json.arrayOf("word_confidence", type: WordConfidence.self) } }
[ 229848 ]
7d9d2c26104530c7f93b66fe5c3d14db1d84d61d
b6175debaae3f3c6af756e51ca2af6fdd433f074
/PiwikDemo/piwik/PiwikManager.swift
2565a10c3776e2e1f68caf2364219f3a61192dc3
[]
no_license
optimovedevelopmobile/iOS_Piwik_POC
c04d22b340331513b5fe4d423a0c6c859a0e6db2
db5179ed6cb6701b5c17a4094c8ac91571c1fb6c
refs/heads/master
2020-12-30T13:08:51.783791
2017-05-15T14:55:31
2017-05-15T14:55:31
91,331,242
0
0
null
null
null
null
UTF-8
Swift
false
false
1,279
swift
import Foundation import PiwikTracker class PiwikManager { static let shared = PiwikManager() static let ServerUrlString = "http://104.197.238.220/" static let PiwikServerId = "1" fileprivate let tracker: PiwikTracker private init() { tracker = PiwikTracker.sharedInstance(withSiteID: PiwikManager.PiwikServerId, baseURL: URL(string: PiwikManager.ServerUrlString)!) tracker.userID = "[email protected]" } func reportViewReached(_ view: String, in viewController: String, force: Bool = false) { if force { forceDispatch() } tracker.sendView("\(viewController)/\(view)") } func respotSocialInteraction(_ interaction: String, on target: String, forNetwork network: String, force: Bool = false) { if force { forceDispatch() } tracker.sendSocialInteraction(interaction, target: target, forNetwork: network) } } //MARK: - Helper methods extension PiwikManager { fileprivate func forceDispatch() { tracker.dispatchInterval = 1 DispatchQueue.main.asyncAfter(deadline: .now() + 2.2) { [unowned self] in self.tracker.dispatchInterval = 120 } } }
[ -1 ]
dfb889694d7c0f1f72dc5b69f32c39ccc6488e7e
dc22e7555e63d356cd6f94bdd978a9138de0ddbe
/paper/ContentViewController.swift
5f1fb3083915cf700f1664b18a85eea54e095f47
[]
no_license
ivanandreev/fotostrana_task
264206e753d0ec2fc684f18423887c65c88e340c
f8ed12f3d02f20ffd02e0d654aeb6b61877bd2d4
refs/heads/master
2021-01-10T10:24:14.511201
2016-03-24T09:15:22
2016-03-24T09:15:22
54,626,079
0
0
null
null
null
null
UTF-8
Swift
false
false
3,992
swift
// // ContentViewController.swift // Paper // // Created by Иван Андреев on 21.12.15. // Copyright © 2015 IvanAndreev. All rights reserved. // import UIKit class ContentViewController: UIViewController { @IBOutlet weak var profileImage: UIImageView! { didSet { self.profileImage.userInteractionEnabled = true let recognizer = UITapGestureRecognizer(target: self, action: "imageTap:") self.profileImage.addGestureRecognizer(recognizer) } } @IBOutlet weak var usernameLabel: UILabel! @IBOutlet weak var createdtimeLabel: UILabel! { didSet { let formatter = NSDateFormatter() if NSDate().timeIntervalSinceDate(self.post!.createdTime!) >= 24*60*60 { formatter.dateStyle = NSDateFormatterStyle.ShortStyle } else { formatter.timeStyle = NSDateFormatterStyle.ShortStyle } self.createdtimeLabel.text = formatter.stringFromDate(self.post!.createdTime!) } } @IBOutlet weak var image: UIImageView! @IBOutlet weak var captionText: UILabel! @IBOutlet weak var likesCountLabel: UILabel! @IBOutlet weak var likeImage: UIImageView! { didSet { self.likeImage.userInteractionEnabled = true let recognizer = UITapGestureRecognizer(target: self, action: "likeHandler:") self.likeImage.addGestureRecognizer(recognizer) } } var liked: Bool? { didSet { if self.liked == true { self.likeImage?.image = UIImage(named: "liked_icon") } else { self.likeImage?.image = UIImage(named: "unliked_icon") } } } var post: Post? var pageIndex: Int! var accessToken: String? override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) } override func viewDidLoad() { super.viewDidLoad() setupUI() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } func setupUI() { self.usernameLabel.text = self.post!.username if let profileImgUrl = NSURL(string: self.post!.profileImage!) { dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { dispatch_async(dispatch_get_main_queue()) { self.profileImage.hnk_setImageFromURL(profileImgUrl) }} } if let imageUrl = NSURL(string: self.post!.image!) { dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { dispatch_async(dispatch_get_main_queue()) { self.image.hnk_setImageFromURL(imageUrl) }} } self.captionText.text = self.post!.text self.likesCountLabel.text = "\(self.post!.likesCount!) Likes" self.liked = self.post!.liked } // MARK: - Navigation func imageTap(gestureRecognizer: UITapGestureRecognizer) { self.performSegueWithIdentifier("profile", sender: self) } func likeHandler(gestureRecognizer: UITapGestureRecognizer) { if self.liked == true { InstagramAPI.sharedInstance.removeLikeMedia(accessToken!, mediaId: self.post!.mediaId!) } else { InstagramAPI.sharedInstance.setLikeMedia(accessToken!, mediaId: self.post!.mediaId!) } } override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if segue.identifier == "profile" { if let pvc = segue.destinationViewController as? ProfileViewController { pvc.userId = self.post!.userId pvc.username = self.post!.username pvc.profileImgUrl = self.post!.profileImage pvc.pvcIndex = self.pageIndex pvc.accessToken = self.accessToken } } } }
[ -1 ]
b263baf3c5ca2b42c5582fa29baf8125de08b4d4
c204f6923c430d1492ba7765fafd7788e961bc7c
/quizNight/quizNight/AppDelegate.swift
a10e74eaea1bd28f81aa26006b21480201e10bd6
[]
no_license
leandromendez/CursoIOSQuizNight
801abce832e104f891e21c49cbe5b2ee8d4b47a3
813fb5f07cac756d3d6de35f03e76e710a4d3b19
refs/heads/master
2021-04-28T03:06:37.570175
2018-02-19T23:11:37
2018-02-19T23:11:37
122,131,472
0
0
null
null
null
null
UTF-8
Swift
false
false
2,180
swift
// // AppDelegate.swift // quizNight // // Created by Leandro Mendes on 19/02/18. // Copyright © 2018 Leandro Mendes. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 294924, 229388, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 352284, 229405, 278556, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 311349, 286774, 286776, 319544, 286778, 204856, 229432, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 303241, 131209, 417930, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 286916, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 286962, 303347, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 278983, 319945, 278986, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 320007, 287238, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 213575, 172618, 303690, 33357, 303696, 279124, 172634, 262752, 254563, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189039, 172660, 287349, 189040, 189044, 287355, 287360, 295553, 172675, 295557, 311942, 303751, 287365, 352905, 311946, 279178, 287371, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 287390, 303773, 172705, 287394, 172707, 303780, 164509, 287398, 205479, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 172737, 279231, 287427, 312005, 312006, 107208, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 189169, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303981, 303985, 303987, 328563, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 304007, 213895, 304009, 304011, 304013, 295822, 279438, 189325, 189329, 295825, 304019, 189331, 213902, 58262, 304023, 304027, 279452, 234648, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 230334, 304063, 238528, 304065, 213954, 189378, 156612, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 295945, 230413, 295949, 197645, 320528, 140312, 295961, 238620, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 132165, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 279661, 205934, 164973, 312432, 279669, 337018, 189562, 279679, 304258, 279683, 222340, 66690, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 230592, 312518, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 320748, 279788, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 296253, 222525, 296255, 312639, 230718, 296259, 378181, 296262, 230727, 238919, 296264, 320840, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 148843, 410987, 230763, 230768, 296305, 312692, 230773, 304505, 304506, 181626, 279929, 181631, 148865, 312711, 312712, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 337335, 288185, 279991, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 370130, 288212, 222676, 148946, 288214, 239064, 329177, 288217, 280027, 288220, 288218, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 148990, 296450, 206336, 230916, 230919, 230923, 304651, 304653, 370187, 402969, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 157236, 288320, 288325, 124489, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 239202, 370279, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 263888, 313044, 280276, 321239, 280283, 313052, 18140, 288478, 313055, 419555, 321252, 313066, 288494, 280302, 313073, 321266, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 337732, 304968, 280393, 280402, 173907, 313171, 313176, 42842, 280419, 321381, 296809, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 305176, 321560, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 149599, 280671, 149601, 321634, 149603, 223327, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 321659, 288895, 321670, 215175, 288909, 141455, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 157940, 280819, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 305464, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 280919, 248153, 215387, 354653, 354656, 313700, 313705, 280937, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289218, 289221, 289227, 436684, 281047, 215526, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 330244, 281095, 223752, 150025, 338440, 240132, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 182929, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 256716, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 338823, 322440, 314249, 240519, 183184, 289687, 240535, 224151, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 420829, 281567, 289762, 322534, 297961, 183277, 281581, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 216376, 380226, 298306, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 298365, 290174, 224641, 281987, 298372, 314756, 281990, 224647, 298377, 314763, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 290305, 306694, 192008, 323084, 257550, 282127, 290321, 282130, 290325, 282133, 241175, 290328, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 28219, 282186, 224849, 282195, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282255, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 323260, 282300, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 298822, 315211, 307027, 315221, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 110450, 315251, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 241556, 298901, 44948, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 241581, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 307211, 282639, 290835, 282645, 241693, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 307287, 307290, 217179, 315482, 192605, 315483, 233567, 299105, 200801, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 315524, 307338, 233613, 241813, 307352, 299164, 241821, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 307374, 307376, 299185, 323763, 184503, 176311, 299191, 307386, 258235, 307388, 307385, 307390, 176316, 299200, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 299225, 233701, 307432, 282881, 282893, 323854, 291089, 282906, 291104, 233766, 295583, 307508, 315701, 332086, 307510, 307512, 307515, 307518, 282942, 282947, 323917, 110926, 282957, 233808, 323921, 315733, 323926, 233815, 276052, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 283033, 242075, 291226, 194654, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 283062, 291254, 127417, 291260, 283069, 127421, 127424, 299457, 127429, 127431, 127434, 315856, 176592, 127440, 315860, 176597, 127447, 283095, 299481, 127449, 176605, 242143, 127455, 127457, 291299, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 283142, 127494, 127497, 233994, 135689, 127500, 233998, 127506, 234003, 127509, 234006, 127511, 152087, 283161, 242202, 234010, 135707, 135710, 242206, 242208, 291361, 242220, 291378, 152118, 234038, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 135808, 291456, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 299740, 201444, 299750, 283368, 234219, 283372, 185074, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 299814, 234278, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 160572, 283452, 234302, 234307, 242499, 234309, 316233, 234313, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 242530, 349027, 234338, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 291714, 234370, 291716, 234373, 316294, 201603, 226182, 308105, 234375, 226185, 234379, 324490, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 324508, 234396, 291742, 226200, 234398, 234401, 291747, 291748, 234405, 291750, 234407, 324520, 324518, 324522, 234410, 291756, 291754, 226220, 324527, 291760, 234417, 201650, 324531, 234414, 234422, 226230, 324536, 275384, 234428, 291773, 242623, 324544, 234431, 234434, 324546, 324548, 234437, 226245, 234439, 226239, 234443, 291788, 234446, 275406, 193486, 234449, 316370, 193488, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 316416, 234496, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 316439, 234520, 234519, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 300085, 234549, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 160835, 234563, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 242777, 234585, 275545, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 226453, 234647, 275606, 275608, 234650, 308379, 324757, 300189, 324766, 119967, 234653, 324768, 283805, 234657, 242852, 300197, 234661, 283813, 234664, 177318, 275626, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 300229, 308420, 308422, 283844, 226500, 300234, 283850, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 161027, 300292, 300294, 275719, 234760, 177419, 300299, 242957, 300301, 283917, 177424, 349451, 275725, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 243003, 283963, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 316768, 292192, 218464, 292197, 316774, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 316811, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 144812, 284076, 144814, 227426, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 226802, 316917, 292343, 308727, 300537, 316933, 316947, 308757, 308762, 284191, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 292414, 284223, 284226, 284228, 292421, 226886, 284231, 128584, 243268, 284234, 366155, 317004, 276043, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 292433, 284247, 317015, 235097, 243290, 276053, 284249, 284251, 300638, 284253, 284255, 284258, 292452, 292454, 284263, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 325251, 276095, 276098, 284297, 317066, 284299, 317068, 284301, 276109, 284303, 284306, 276114, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 284329, 317098, 284331, 276137, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 276160, 284354, 358083, 284358, 276166, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 276187, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 292681, 153417, 358224, 276308, 284502, 317271, 178006, 276315, 292700, 317279, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 292729, 317306, 284540, 292734, 325512, 276365, 317332, 358292, 284564, 399252, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 284585, 276395, 292784, 358326, 161718, 358330, 276410, 276411, 276418, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276448, 276452, 292839, 276455, 350186, 292843, 276460, 276464, 178161, 227314, 276466, 325624, 350200, 276472, 317435, 276476, 276479, 276482, 350210, 276485, 317446, 178181, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 178224, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 276539, 276544, 243779, 325700, 284739, 292934, 243785, 276553, 350293, 350295, 309337, 194649, 227418, 350299, 350302, 227423, 350304, 178273, 309346, 194657, 194660, 350308, 309350, 309348, 292968, 309352, 309354, 301163, 350313, 350316, 227430, 301167, 276583, 350321, 276590, 284786, 276595, 350325, 252022, 227440, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 309455, 276689, 309462, 301272, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 243948, 309491, 227571, 309494, 243960, 276735, 227583, 227587, 276739, 276742, 227593, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 293232, 276848, 186744, 211324, 227709, 285061, 366983, 317833, 178572, 285070, 285077, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 129486, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 301562, 293370, 317951, 309764, 301575, 121352, 293387, 236043, 342541, 113167, 309779, 317971, 309781, 277011, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 23094, 277054, 219714, 129603, 301636, 318020, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 309871, 121458, 277106, 170619, 309885, 309888, 277122, 277128, 285320, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 318132, 342707, 154292, 277173, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 342749, 113378, 228069, 277223, 342760, 285417, 56043, 56045, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 301884, 310080, 293696, 277317, 277322, 293706, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 15224, 277368, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 276579, 293811, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 318442, 228330, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 285690, 244731, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 302105, 293917, 293939, 318516, 277561, 277564, 310336, 293956, 277573, 228422, 293960, 310344, 277577, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 203872, 277601, 285792, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 367737, 285817, 302205, 285821, 392326, 285831, 253064, 294026, 302218, 285835, 162964, 384148, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 302241, 285862, 277671, 302248, 64682, 277678, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 310486, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 204026, 228606, 64768, 310531, 285958, 138505, 228617, 318742, 277798, 130345, 113964, 285997, 384302, 285999, 113969, 318773, 318776, 286010, 417086, 286016, 302403, 294211, 384328, 294221, 146765, 294223, 326991, 179547, 146784, 302436, 294246, 327015, 310632, 327017, 351594, 351607, 310648, 310651, 310657, 351619, 294276, 310659, 327046, 253320, 310665, 318858, 310672, 351633, 310689, 130468, 228776, 277932, 310703, 310710, 130486, 310712, 310715, 302526, 228799, 302534, 310727, 245191, 64966, 163272, 302541, 302543, 310737, 228825, 163290, 310749, 310755, 187880, 310764, 286188, 310772, 40440, 212472, 40443, 286203, 310780, 40448, 228864, 286214, 228871, 302603, 65038, 302614, 302617, 286233, 302621, 286240, 146977, 187936, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 278057, 310831, 245288, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 327240, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 147032, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286312, 40554, 286313, 310892, 40557, 40560, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 179870, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 286420, 278227, 229076, 286425, 319194, 278235, 278238, 229086, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 319280, 278320, 319290, 229192, 302925, 188247, 280021, 188252, 237409, 294776, 360317, 294785, 327554, 360322, 40851, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 294831, 188340, 40886, 294844, 294847, 237508, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 278519, 237562 ]