Skip to content

Instantly share code, notes, and snippets.

View MatthewZaso's full-sized avatar

Matthew Zaso MatthewZaso

View GitHub Profile
@abir-taheer
abir-taheer / instagram-follower-following.js
Last active May 5, 2024 04:08
"This is our community, this is our family, these are our friends." https://www.youtube.com/watch?v=gk7iWgCk14U&t=425s
if (window.location.origin !== "https://www.instagram.com") {
window.alert(
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.",
);
window.location.href = "https://www.instagram.com";
console.clear();
}
const fetchOptions = {
credentials: "include",
@vibgy
vibgy / fcm-data-message-service-worker.js
Last active January 20, 2022 16:08
Angular Service and Service Worker Code to handle FCM data messages and to enable a click handler for notifications shown using showNotification
//
// serviceWorkerService.js
//
'use strict';
angular.module('myApp.serviceWorker', [])
.service('serviceWorkerService', ['$q', '$http', '$location', '$timeout',
function($q, $http, $location, $timeout) {
var noTokenError = new Error('No Instance ID token available');
var noPermissionError = new Error('Unable to get permission to notify');
@Vestride
Vestride / encoding-video.md
Last active April 24, 2024 09:59
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus