Skip to content

Instantly share code, notes, and snippets.

View fortunefox's full-sized avatar
:shipit:

fortunefox fortunefox

:shipit:
  • 16:14 (UTC +01:00)
View GitHub Profile
@fortunefox
fortunefox / resize_and_crop.js
Created January 16, 2023 00:48
Code to automatically resize and crop a picture in your browser using canvas and javascript.
const input = document.querySelector('input[type="file"]');
input.addEventListener('change', handleImage);
function handleImage(event) {
const file = event.target.files[0];
const img = new Image();
# — Spotify Ad Block
127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 http://www.googleadservices.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 desktop.spotify.com
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 audio2.spotify.com
# —
{
"100":"Continue",
"101":"Switching Protocols",
"102":"Processing",
"200":"OK",
"201":"Created",
"202":"Accepted",
"203":"Non-Authoritative Information",
"204":"Continue",