This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension NotificationsMyStreet { | |
func prepareVars(request:Request) throws -> DataFromClientSendNotifications { | |
struct ObjectReceived: NodeInitializable { | |
let title: String | |
let body: String | |
let unreadMessagesCount: Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewWillAppear(_ animated: Bool) { | |
let url = URL(string: "https://www.hrupin.com/wp-content/uploads/mp3/testsong_20_sec.mp3")! | |
self.playSound(url: url) | |
addPeriodicTimeObserver() | |
} | |
var player: AVAudioPlayer? | |
func playSound(url: URL) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import MediaPlayer | |
import AVFoundation | |
class FirstViewController: UIViewController, MPMediaPickerControllerDelegate { | |
@IBAction func loadMusic(_ sender: Any) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MediaTableViewCell.swift | |
// myStreet.com | |
// | |
// Created by Bogdan Barbulescu on 12/04/2018. | |
// Copyright © 2018 vividapartments. All rights reserved. | |
// | |
import UIKit | |
import SAMCache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AVFoundation | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
class AudioPlayer { | |
var topAudioFiles: [AVAudioFile] = [] | |
var engine:AVAudioEngine | |
var backgroundAudioNode: AVAudioPlayerNode | |
var backgroundAudioFile: AVAudioFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension ChatViewController { | |
struct NotificationInfoChat { | |
let title: String | |
let body: String | |
let chatUID: String | |
let unreadMessagesCount: Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// extensionNotificationsMyStreet.swift | |
// App | |
// | |
// Created by Bogdan Barbulescu on 10/08/2018. | |
// | |
import Foundation | |
import Vapor | |
import HTTP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"addressType" : "Residential", | |
"adminAreaCode" : "", | |
"adminAreaName" : "Barking and Dagenham", | |
"block" : "", | |
"buildingName" : "Bath House", | |
"buildingNumber" : "5", | |
"city" : "Barking", | |
"company" : "", | |
"countryIso2" : "GB", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. | |
Landlord userType will subscribed to: | |
a) (locality or city)-(building)-landlord | |
b) (locality or city)-(street)-landlord | |
c) (city or locality)-residents <only one of them> | |
d) (locality or city)-(building or street)-residents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myDataFrame = pd.read_csv('Loan_payments_data_2020_unclean.csv') | |
columnsDict = {"columnName": list(myDataFrame.columns)} | |
columnsDataFrame = pd.DataFrame(columnsDict) | |
replacedColumns = columnsDataFrame['columnName'].str.replace(r'(?<![^_]).', lambda x: x.group().upper()) | |
myDataFrame.columns = list(replacedColumns) | |
myDataFrame['Gender'] = myDataFrame['Gender'].str.replace('^\s*$', 'NaN') |
OlderNewer