Skip to content

Instantly share code, notes, and snippets.

var url = '';
function callback() {
console.log(this.responseText);
}
var xhr = new XMLHttpRequest();
xhr.addEventListener("load", callback);
xhr.open("GET", url);
xhr.send();
@twhitt14
twhitt14 / podforceupdate.sh
Created December 20, 2017 16:12 — forked from mbinna/podforceupdate.sh
Clear CocoaPods cache, re-download and re-install all pods
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update