- yt-dlp: https://github.com/yt-dlp/yt-dlp/wiki/Installation
- ffmpeg: https://www.gyan.dev/ffmpeg/builds/
Go to https://brew.sh/ for installation instruction Then install yt-dlp and ffmpeg with one line command:
function getProbability(numDucks = 4, numSimulations = 100000) { | |
let successCount = 0; | |
for (let i = 0; i < numSimulations; i++) { | |
// For each duck, generate a random angle in (0, 2 * Math.PI) then sort the array | |
const angles = Array.from({length: numDucks}, () => Math.random() * 2 * Math.PI) | |
.sort((a, b) => a - b); | |
// Take each angle as the start of a semicircle, | |
// check if all other angles fall within the semicircle of start. | |
// If there exists such a start angle for all other angles, |
Step 1: follow the instructions on this [starting guide](https://www.getzola.org/documentation/getting-started/overview/) | |
Step 2: add following piece of code in templates/blog-page.html (before the last line): | |
``` | |
{% if page.extra.math %} | |
<script> | |
MathJax = { | |
tex: { | |
inlineMath: [['$', '$'], ['\\(', '\\)']] | |
} |
Install homebrew - this will install command line tools for Xcode, then install yt-dlp and ffmpeg via brew | |
Install chrome browser | |
Install Arc browser | |
Install Office 365 | |
Install Warp terminal | |
Install Raycast launcher: https://www.raycast.com/ | |
Install OhMyZsh - copy paste and run the installation command in warp | |
Install BetterDisplay - need pay $15 | |
Install vscode - download zip and drag to app folder - sync settings, then config: | |
1. Open Visual Studio Code |
Go to https://brew.sh/ for installation instruction Then install yt-dlp and ffmpeg with one line command:
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
import urllib.request | |
from datetime import date, timedelta | |
start_date = date(2020, 1, 1) | |
end_date = date(2023, 6, 23) | |
delta = end_date - start_date | |
f = open("results.csv","w+") |
{"lastUpload":"2021-09-13T19:41:03.139Z","extensionVersion":"v3.4.3"} |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |