Skip to content

Instantly share code, notes, and snippets.

View KamahGit's full-sized avatar

Bruce Kamau Irungu KamahGit

  • Nairobi, Kenya
View GitHub Profile
@KamahGit
KamahGit / yt-audio.ps1
Created September 25, 2023 20:31
Download Youtube Video as MP3 in best format, not entire playlist using ytdlp
$link = Read-Host -Prompt "Enter Video Link"
yt-dlp -f 'ba' -x --audio-format mp3 --no-playlist $link -o '%(title)s.mp3'
@KamahGit
KamahGit / fizzbuzz.js
Last active October 26, 2019 12:53
Fizz Buzz - my first gist!
const fizzBuzzFunc = (n)=>{
for(let i=1; i<=n; i++){
let fizz, buzz, fizzBuzz;
fizz = (i%3===0);
buzz = (i%5===0);
fizzBuzz = (fizz && buzz);
fizzBuzz? console.log('FizzBuzz'): fizz? console.log('fizz'):buzz? console.log('Buzz'): console.log(i);
}};
fizzBuzzFunc(20);