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
[TestClass] | |
public class UnitTest1 { | |
[TestMethod] | |
public void TestCalcSoma() { | |
int x = 10; | |
int y = 20; | |
int result; | |
Calc calc = new Calc(); |
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
// A variável de entrada pode ser qualquer outra coisa, ou nada, é só trocar o item abaixo | |
// Função para montar o body do email | |
public string GetMailBody(List<T> resultToMail) { | |
var body = new StringBuilder(); | |
body.AppendLine("<html><head>"); | |
body.AppendLine(@"<style> | |
table, th, td { | |
border: 1px solid black; | |
border-collapse: collapse; | |
} |
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
Show hidden characters
[ | |
{ | |
"command": "select_all" | |
}, | |
{ | |
"command": "split_selection_into_lines" | |
}, | |
{ | |
"args": { | |
"extend": false, |
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
using System.Linq; | |
using System.Collections.Generic; | |
public static class Groups | |
{ | |
// "()" "{}" or "[]" | |
private static Dictionary<char, char> matches = new Dictionary<char, char> { | |
{ '(', ')' }, | |
{ '{', '}' }, | |
{ '[', ']' }, | |
}; |
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
# Search for token | |
pod trunk me --verbose | |
# or use this command instead | |
cat ~/.netrc | |
# will result: | |
# machine trunk.cocoapods.org | |
# login user@example.com | |
# password 0000000011111111 |
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
exec > /tmp/${PROJECT_NAME}_archive.log 2>&1 | |
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
if [ "true" == ${ALREADYINVOKED:-false} ] | |
then | |
echo "RECURSION: Detected, stopping" | |
else | |
export ALREADYINVOKED="true" |
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
// | |
// LocaleExtension.swift | |
// | |
// | |
// Created by Munir Wanis on 02/11/17. | |
// Copyright © 2017 Munir Xavier Wanis. 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
extension Sequence where Iterator.Element == String { | |
var reduced: String { | |
return self.reduce("", { $0 == "" ? $1 : $0 + "\n" + $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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
OlderNewer