This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func getStoreInformations() -> JSON { | |
let infos = Bundle.main.infoDictionary | |
let appID = infos!["CFBundleIdentifier"] as! String | |
let url = URL(string: "https://itunes.apple.com/lookup?bundleId="+appID)! | |
let data = try! Data(contentsOf: url) | |
let lookup = JSON(data: data) | |
return lookup | |
} |
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
curl -H "Content-type: application/json" -H "Authorization:key=API-KEY" -X POST -d '{"content_available" : true, "data": { "foo": "1","bar": "2"},"to" : TOKEN}' https://fcm.googleapis.com/fcm/send |
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
#!/bin/sh | |
# createModule.sh | |
# | |
# Created by Maxime on 08/02/2016. | |
mkdir $1 | |
cd $1 | |
mkdir Ressources | |
cd Ressources |
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
DispatchQueue.main.async { | |
} | |
################################################################################ | |
DispatchQueue.global().async { | |
} |
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
// | |
// UIImage+replaceImage.swift | |
// | |
// Created by mtournier on 26/10/16. | |
// NO Copyright ! | |
// | |
import Foundation | |
import UIKit |
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
fastlane_version "1.109.0" | |
default_platform :ios | |
desc "Build with target :" | |
lane :buildDeliver do |options| | |
# cocoapods | |
increment_build_number( | |
xcodeproj: "<%WORKSPACE%>.xcodeproj" |
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
// | |
// Array+Extension.swift | |
// | |
// | |
import Foundation | |
extension Array where Element: Equatable { | |
mutating func remove(object: Element) { |
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
// | |
// LocalizedStringExtension.swift | |
// | |
// Created by Maxime on 02/02/2016. | |
// NO Copyright | |
// | |
import Foundation | |
extension String { |
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
// | |
// UITableView+insertScroll.swift | |
// | |
// Created by mtournier on 13/09/17. | |
// NO Copyright !!! | |
// | |
import UIKit | |
extension UITableView { |