Skip to content

Instantly share code, notes, and snippets.

View mfaccin's full-sized avatar
🐶
🐶

Mauricio Faccin mfaccin

🐶
🐶
View GitHub Profile
@jonathasgouv
jonathasgouv / yt-downloader.js
Last active May 5, 2024 15:10
Download array of youtube videos as MP3
const fs = require('fs');
const ytdl = require('ytdl-core');
const sanitize = require("sanitize-filename");
async function downloadVideos(urls) {
try {
for (const url of urls) {
const info = await ytdl.getInfo(url);
const title = info.videoDetails.title;
const filename = sanitize(`${title}.mp3`);
@leoheck
leoheck / cc2538-and-openocd.md
Last active January 13, 2023 15:47 — forked from hwhw/cc2538-and-openocd.md
Flashing CC13*2 using OpenOCD

Flashing CC13x2 with OpenOCD Using XDS110 and JTAG.

Install OpenOCD version 0.11.0 (or maybe higher)

You can also build it yourself.

Boards setup

If you are using Launchpads to experiment this setup, you are going to need to prepare them as it is being shown in this image.

jtag_chain2

@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active July 19, 2024 22:35
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@amroamroamro
amroamroamro / README.md
Last active December 25, 2023 20:41
Fourier series animation

MATLAB code to demonstrate [Fourier series][1] representation of periodic signals (as a sum of sinusoidal functions).

The animation shows an approximation of a square wave signal using the first 4-terms of its Fourier series. (Change the parameters near the top of the code to manipulate the animations and explore other variations).

![animation1][6] ![animation2][7]

This was inspired by the following similar animations:

  • [Fourier Series Animation using Circles][2]