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
| #-*- coding: utf-8 -*- | |
| #Problema: dada uma matriz NxN, preenchê-la com números naturais em forma de espiral. | |
| #Ex: matriz 4 x 4 | |
| #01 02 03 04 | |
| #12 13 14 05 | |
| #11 16 15 06 | |
| #10 09 08 07 | |
| #Baseado versão pascal http://pastebin.com/YRHrMSGw |
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
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| """ | |
| FizzBuzz | |
| """ | |
| def fizzbuzz(num): | |
| retorno = '' | |
| if num <= 0 : |
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
| /** | |
| * Implementação do algorítimo SoundEx em Javascript. | |
| * @author João Batista Neto | |
| * | |
| * SoundEX é um algorítimo fonético para indexação de nomes pelo som segundo | |
| * sua pronúncia. O algorítimo foi desenvolvido por Robert C. Russell e | |
| * Margaret K. Odell e patenteado em 1918 e 1922. | |
| * {@link http://en.wikipedia.org/wiki/Soundex} | |
| * | |
| * @return {String} |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| (string, int) populacao = ("Rio Preto", 500_000); | |
| Console.WriteLine($"{populacao.Item1}: {populacao.Item2}"); |
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
| using Microsoft.EntityFrameworkCore; | |
| using System.Text.Json.Serialization; | |
| using Microsoft.AspNetCore.RateLimiting; | |
| using System.Threading.RateLimiting; | |
| using Microsoft.OpenApi.Models; | |
| using Microsoft.AspNetCore.Authentication.JwtBearer; | |
| namespace Infrastructure; | |
| public static class ConfigurationApp |
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
| use clap::Parser; | |
| use std::error::Error; | |
| #[derive(Debug, Parser)] | |
| struct Cli { | |
| #[structopt(short = 'n')] | |
| num: usize | |
| } | |
| fn main() -> Result<(), Box<dyn Error>> { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| I'm told that there are people claiming to "tokenize" my git repositories with my approval. | |
| I just want to clarify that that is not the case. I do not believe in monetizing my repositories. | |
| If you believe crypto-currencies are anything but a scam, I have a bridge to sell you. | |
| But I'm not selling source code. |
OlderNewer
