Skip to content

Instantly share code, notes, and snippets.

View oscard0m's full-sized avatar
Code, code and code 🤓 👨🏽‍💻 🤖

Oscar Dominguez oscard0m

Code, code and code 🤓 👨🏽‍💻 🤖
View GitHub Profile
oscard0m / Load DFP dynamically
Created March 23, 2018 12:18
HTML document to load DFP tags dynamically
<!DOCTYPE html>
<head lang="en">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<meta charset="UTF-8">
<script async="async" src=""></script>
oscard0m /
Last active June 12, 2020 08:45
Github CLI: Approve multiple PR's
while read pr; do
echo "Reviewing $pr"
gh pr review "$pr" --approve"
done <list-prs.txt
// you can write to stdout for debugging purposes, e.g.
// console.log('this is a debug message');
function isLeapYear(year) {
return year % 4 === 0
const months = [