Skip to content

Instantly share code, notes, and snippets.

View oscard0m's full-sized avatar
:octocat:
🤓 👨🏽‍💻 🤖

Oscar Dominguez oscard0m

:octocat:
🤓 👨🏽‍💻 🤖
View GitHub Profile
// 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 = [
'January',
'February',
'March',
@oscard0m
oscard0m / gh-review-multi-pr.sh
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
@oscard0m
oscard0m / Load DFP dynamically
Created March 23, 2018 12:18
HTML document to load DFP tags dynamically
<!DOCTYPE html>
<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">
<title>DFP</title>
</head>
<body>
<script async="async" src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<script>