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
FROM sonarqube | |
#:7.9.2-community | |
USER root | |
RUN apt-get update \ | |
&& apt-get install -y wget | |
USER sonarqube | |
# Download and install sonar plugins | |
RUN wget -P /opt/sonarqube/extensions/plugins/ https://github.com/Backelite/sonar-swift/releases/download/0.4.5/backelite-sonar-swift-plugin-0.4.5.jar |
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
adb shell screencap -p /sdcard/screen.png | |
adb pull /sdcard/screen.png | |
adb shell rm /sdcard/screen.png |
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
adb exec-out run-as com.package.appli cat databases/db_name > db.sqlite | |
start ./db.sqlite |
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) { |
NewerOlder