Skip to content

Instantly share code, notes, and snippets.

@twhitt14
twhitt14 / annotated.js
Last active June 20, 2020 03:40 — forked from jed/LICENSE.txt
generate random UUIDs
function b(
a // placeholder
){
return a // if the placeholder was passed, return
? ( // a random number from 0 to 15
a ^ // unless b is 8,
Math.random() // in which case
* 16 // a random number from
>> a/4 // 8 to 11
).toString(16) // in hexadecimal
@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