Skip to content

Instantly share code, notes, and snippets.

View neiesc's full-sized avatar
🎉
14 anos de github!!!

Edinei Cavalcanti neiesc

🎉
14 anos de github!!!
View GitHub Profile

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@neiesc
neiesc / 1_criar_tuplas.cs
Last active June 19, 2021 13:54
dotnet Hands-On: Como criar tuplas e usar desconstrutor, descartes e operadores nelas em C#
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}");
/**
* 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}
@neiesc
neiesc / FizzBuzz.py
Last active December 20, 2015 07:39
FizzBuzz
#!/usr/bin/env python
#-*- coding: utf-8 -*-
"""
FizzBuzz
"""
def fizzbuzz(num):
retorno = ''
if num <= 0 :
@neiesc
neiesc / README.rst
Last active September 25, 2015 05:08
Função quadrática (Quadratic function)
@neiesc
neiesc / Serpenteador.py
Created November 21, 2010 20:43
Problema: dada uma matriz NxN, preenchê-la com números naturais em forma de espiral.
#-*- 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