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
// | |
// Atomic.swift | |
// Rewards | |
// | |
// Created by Leandro Nunes Fantinatto on 16/06/21. | |
// Copyright © 2021 Anheuser-Busch InBev. All rights reserved. | |
// | |
import Foundation |
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
// | |
// Decodable.swift | |
// | |
// Copyright © 2021 Leandro Nunes Fantinatto. All rights reserved. | |
// Ref: https://github.com/gonzalezreal/DefaultCodable | |
// Ref: https://github.com/JohnSundell/Codextended | |
// | |
import Foundation |
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
/// This enabled the struct to: | |
/// - Be auto-decodable via json. | |
/// - Assign a default value if the property is not present in json. | |
/// - Assign values via init constructor. | |
struct MyStruct: Codable, Equatable { | |
let propFoo: Bool | |
let propBar: Bool | |
// Set default values for missing properties |
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
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
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
// Copyright 2015-present 650 Industries. All rights reserved. | |
#import "EXAnalytics.h" | |
#import "EXAppState.h" | |
#import "EXAppViewController.h" | |
#import "EXBuildConstants.h" | |
#import "EXKernel.h" | |
#import "EXKernelAppLoader.h" | |
#import "EXKernelAppRecord.h" | |
#import "EXKernelLinkingManager.h" |
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 React, { Component } from 'react'; | |
import { | |
StyleSheet, | |
Text, | |
TouchableOpacity, | |
View, | |
} from 'react-native'; | |
import CodePush from "react-native-code-push"; | |
const VERSION = '1.3.60'; |
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
helpers::contains => http://tpcg.io/x8KR80 |
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
defmodule CalculadoraImpostoRenda do | |
@moduledoc """ | |
Fornece uma função `calcular/1` para calcular o valor de imposto a ser pago com base no salário informado | |
""" | |
@doc """ | |
Calcula o valor de imposto de renda que deve ser pago com base em um salário | |
## Parameters | |
- Salario: Valor do salário que deseja saber o valor do IRPF. |
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/bash -e | |
HOST=XXXXXX | |
USER=XXXXXX | |
PASSWORD=XXXXXX | |
DATABASE=databasename | |
DB_FILE=backupDB_$(date +"%Y%m%d_%H%M").sql | |
EXCLUDED_TABLES=( | |
table1 | |
table2 |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
NewerOlder