Skip to content

Instantly share code, notes, and snippets.

@shady-abdelhamid
shady-abdelhamid / full-uninstall-cocoapods.sh
Created October 31, 2022 12:20
Remove Cocoapods from gem
#!/bin/bash
for i in $( gem list --local --no-version | grep cocoapods );
do
gem uninstall $i;
done
rm -rf ~/.cocoapods/
@gricard
gricard / webpack4upgrade.md
Last active February 29, 2024 20:23
Just some notes about my attempt to upgrade to webpack 4

If you enjoyed reading this, I'm intending to do more blogging like this over here: https://cdgd.tech

This is not a complaint about Webpack or v4 in any way. This is just a record of my process trying it out so I could provide feedback to the webpack team

Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it. All I need to do is npm i -D webpack@next, right?

+ [email protected]
@Kubo2
Kubo2 / onzoom.js
Last active January 26, 2021 12:44
Detect zoom event in JavaScript
// set zoom event
window.onzoom = function(e) {
// zoom event
}
// detect resize
(function() {
var oldresize = window.onresize;
window.onresize = function(e) {