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 urllib.request import Request, urlopen | |
import json | |
import sys | |
import getopt | |
import os | |
def getDataNative(env, loc, key, token, directory): | |
req = Request( | |
'https://cdn.contentstack.io/v3/content_types/mobile_translation_poc_/entries/blt9624c908f899c058?environment=%s&locale=%s' % ( | |
env, loc)) |
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
#Info.plist path | |
INFO_PLIST="${PROJECT_DIR}/MVCVMRC/Supporting Files/Info.plist" | |
#Set Appsee ApiKey for this scheme | |
/usr/libexec/PlistBuddy -c "set :com.appsee.ApiKey 9eb82a6569fa4f92993999a3f87446e5" "$INFO_PLIST" | |
# Run the script which will export the dSYM | |
${PODS_ROOT}/Appsee/Appsee.framework/build |
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
// | |
// Created by Rodolfo Antonici on 13/12/17. | |
// This software is provided by Rodolfo Antonici on an "AS IS" basis. | |
// | |
extension CABasicAnimation { | |
convenience init(keyPath: KeyPath) { | |
self.init(keyPath: keyPath.rawValue) | |
} | |
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
// | |
// MoyaProviderCodableExtension.swift | |
// | |
// | |
// Created by Rodolfo Antonici on 22/09/17. | |
// Copyright (c) 2017 Rodolfo Antonici (https://marcosantadev.com) | |
// | |
// 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 |
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
//Based on: https://github.com/nortthon/CPF-CNPJ-Swift | |
func generateCPF() -> String { | |
var cpf = [0,0,0,0,0,0,0,0,0,0,0] | |
var firstVerification = 0 | |
var secondVerification = 0 | |
for i in 0...8 { | |
cpf[i] = (Int)(arc4random_uniform(9)) |
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 | |
extension Array { | |
func insertionIndexOf(elem: Element, isOrderedBefore: (Element, Element) -> Bool) -> Int { | |
var lo = 0 | |
var hi = self.count - 1 | |
while lo <= hi { | |
let mid = (lo + hi)/2 | |
if isOrderedBefore(self[mid], elem) { | |
lo = mid + 1 |
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
// Created by Rodolfo Antonici on 12/12/18. | |
// 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. |
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
// | |
// InputAccessoryView.swift | |
// | |
// Created by Rodolfo Antonici on 23/08/16. | |
// Copyright © 2016 RAntonici. All rights reserved. | |
// | |
import UIKit | |
class InputAccessoryView: UIView { |
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
// | |
// DateFormatTransform.swift | |
// | |
// Created by Rodolfo Antonici on 29/11/16. | |
// No copyright, just use it as it's. | |
// ObjectMapper version 2.2 | |
// | |
// A simple class using the TransformType protocol of ObjectMapper to convert Date String into a NSDate object | |
import Foundation |
NewerOlder