Skip to content

Instantly share code, notes, and snippets.

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
}
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
#!/bin/sh
# createModule.sh
#
# Created by Maxime on 08/02/2016.
mkdir $1
cd $1
mkdir Ressources
cd Ressources
DispatchQueue.main.async {
}
################################################################################
DispatchQueue.global().async {
}
//
// UIImage+replaceImage.swift
//
// Created by mtournier on 26/10/16.
// NO Copyright !
//
import Foundation
import UIKit
fastlane_version "1.109.0"
default_platform :ios
desc "Build with target :"
lane :buildDeliver do |options|
# cocoapods
increment_build_number(
xcodeproj: "<%WORKSPACE%>.xcodeproj"
//
// Array+Extension.swift
//
//
import Foundation
extension Array where Element: Equatable {
mutating func remove(object: Element) {
//
// LocalizedStringExtension.swift
//
// Created by Maxime on 02/02/2016.
// NO Copyright
//
import Foundation
extension String {
@Th3nion
Th3nion / UITableView+insertScroll.swift
Last active October 6, 2017 12:48
UITableView extension wich allow to keep content view at the bottom of the cells.
//
// UITableView+insertScroll.swift
//
// Created by mtournier on 13/09/17.
// NO Copyright !!!
//
import UIKit
extension UITableView {