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
# Avoid using brew to install fastlane | |
brew cask install fastlane | |
## Installation steps | |
1. brew install rbenv ruby-build | |
2. echo "" >> ~/.bash_profile | |
3. echo 'export PATH=${HOME}/homebrew/bin:${PATH}' >> ~/.bash_profile | |
4. echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile | |
5. rbenv install 2.6.5 | |
6. rbenv global 2.6.5 |
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
ext { | |
//Functional Components version | |
//[FUNCTIONAL_COMPONENT_VERSION] | |
//AUTOMATION PLEASE DO NOT REMOVE THIS!! | |
//[/FUNCTIONAL_COMPONENT_VERSION] | |
sdk_version = 29 | |
min_sdk_version = 18 | |
//Globile components |
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
repositories { jcenter() } | |
configurations { ktlint } | |
dependencies { ktlint "com.pinterest:ktlint:0.36.0" } | |
task ktlint(type: JavaExec, group: "verification") { | |
description = "Check Kotlin code style." | |
classpath = configurations.ktlint | |
main = "com.pinterest.ktlint.Main" | |
args "src/**/*.kt" | |
} | |
check.dependsOn ktlint |
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
/** | |
Cuando Alí-Babá consigue por fin entrar en la Cueva de los Cuarenta Ladrones allí encuentra candidad de objetos | |
muy valiosos. A pesar de su pobreza, Ali-Babá conoce muy bien el peso y valor de cada uno de los objetos en la cueva. | |
Debido a los peligros que tiene que afrontar en su camino de vuelta, solo puede llevar consigo aquellas riquezas que | |
quepan en su pequeña mochila, que soporta un peso máximo conocido. | |
a) Suponiendo que los objetos no se pueden fraccionar y que los los pesos son números naturales positivos, determinar | |
qué objetos debe elegir AlíBabá para maximizar el valor total de lo que puede llevarse en su mochila. Los valores son reales positivos. | |
b)Supongamos ahora que en la cueva hay una cantidad inagotable de riquezas de diferentes clases. | |
Cada riqueza de una clase es indivisible y tien cierto peso(natural positivo) y cierto valor(real positivo) conocidos. | |
Determinar qué cantidad de riquezas de cada clase debe coger Alí-Babá para maximizar el valor total de lo que pueda llevar |
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
/** | |
Se dispone de un conjunto finito M = {M1,M2,... Mn} de tipos de monedas, donde cada Mi es un número natural y se quiere pagar una cantidad C > 0, utlizando el menor número posible de monedas. | |
Teniendo en cuenta que un tipo de moneda se puede coger más de una vez. | |
*/ | |
import UIKit | |
let maxWithoutOverflow = Int.max-1000 | |
func calculateTime(block : (() -> Void)) { | |
let start = CFAbsoluteTimeGetCurrent() | |
block() | |
let diff = CFAbsoluteTimeGetCurrent() - start |
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
// | |
// ViewController2.swift | |
// Sandbox | |
// | |
// Created by Ricardo on 28/10/2019. | |
// Copyright © 2019 Ricardo. All rights reserved. | |
// | |
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
LDPI should be 36 x 36. | |
MDPI should be 48 x 48. | |
TVDPI should be 64 x 64. | |
HDPI should be 72 x 72. | |
XHDPI should be 96 x 96. |
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
http://argo.cdragota.lab.cloudioo.net/api_contents/get/wallpapers_categories?lang=es | |
http://argo.cdragota.lab.cloudioo.net/api_contents/get/wallpapers_categories?lang=es-ES |
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
Incident Identifier: E95A8AC0-7DC9AFFAB114 | |
CrashReporter Key: 5a89d4a66e85ff4138edca4650f0c5eae1ae43c7 | |
Hardware Model: iPhone9,4 | |
Process: apps_ios_aaa [2074] | |
Path: /private/var/containers/Bundle/Application/611CA5E-8566-2162A1722575/apps_ios_aaa.app/apps_ios_aaa | |
Identifier: es.myapp.aaaa | |
Version: 8 (1.0.0) | |
AppStoreTools: 10E1001 | |
Code Type: ARM-64 (Native) | |
Role: Non UI |
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
@app.route('/verify', methods=['POST']) | |
def verify(): | |
json_data = request.get_json() | |
receipt = json_data["receipt"] | |
env = json_data["env"] | |
bundle_id = json_data["bundle_id"] | |
if env == "production": | |
endpoint = "https://buy.itunes.apple.com/verifyReceipt" | |
else: |
NewerOlder