This file contains hidden or 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
| archive-mobile: | |
| <<: *maven-app-template | |
| stage: archive | |
| dependencies: | |
| - build-mobile | |
| cache: | |
| paths: | |
| - totalcross-cache | |
| - .m2/repository | |
| key: tc-download |
This file contains hidden or 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
| archive-mobile: | |
| <<: *maven-app-template | |
| stage: archive | |
| dependencies: | |
| - build-mobile | |
| cache: | |
| paths: | |
| - totalcross-cache | |
| - .m2/repository | |
| key: tc-download |
This file contains hidden or 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
| cd certs-ios | |
| shred -zu certs-ios.zip | |
| cd ios | |
| find . -type f -exec shred -zu {} \; | |
| rm -rf * |
This file contains hidden or 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
| public class Initializer { | |
| public void dependencyInjection(...) { | |
| ... | |
| DescontoNgc.getInstance().setDescontoDao(new DescontoDAOImpl()); | |
| ... | |
| } | |
| ... | |
| } |
This file contains hidden or 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
| @Configuration | |
| public class NucleoConfig { | |
| ... | |
| @Bean | |
| public DescontoNgc getDescontoNgc() { | |
| return DescontoNgc.getInstance(); | |
| } | |
| ... | |
| } |
This file contains hidden or 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
| package br.com.jeffque; | |
| import totalcross.sys.Vm; | |
| import totalcross.ui.Button; | |
| import totalcross.ui.MainWindow; | |
| import totalcross.ui.event.PressListener; | |
| import br.com.softsite.toolbox.indirection.IntIndirection; | |
| public class DoublePressListener extends MainWindow { |
This file contains hidden or 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
| require "uri" | |
| require "net/http" | |
| uri = URI.parse 'meu_endpoint' | |
| requisicao = NET::HTTP::GET.new uri | |
| requisicao['my_header'] = 'valor' | |
| # na documentação também fala do método .add_field | |
| # requisicao.add_field 'my_header', 'valor' | |
| # parece que o add_field ajuda quando o header é uma espécie de vetor |
This file contains hidden or 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
| def ret_marm | |
| obj = Object.new | |
| def obj.marm | |
| puts 'olha a marmota' | |
| end | |
| obj | |
| end | |
| x = ret_marm | |
| x.marm # imprime "olha a marmota" na saída padrão |
This file contains hidden or 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
| package br.com.softsite.relatorioservice.relatorio; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import net.sf.jasperreports.engine.JRException; | |
| import net.sf.jasperreports.engine.JasperCompileManager; | |
| import net.sf.jasperreports.engine.JasperReport; |
This file contains hidden or 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/vit0rr/jogo-da-adivinhacao | |
| //extern crate rand; | |
| //use rand::Rng; | |
| use std::cmp::Ordering; | |
| use std::io; | |
| fn read_guess() -> u32 { | |
| return loop { | |
| let mut guess = String::new(); |