Skip to content

Instantly share code, notes, and snippets.

View bradpurchase's full-sized avatar
💻
On the computer

Brad Purchase bradpurchase

💻
On the computer
View GitHub Profile
@bradpurchase
bradpurchase / _progress-circle.scss
Last active August 14, 2019 16:08
Progress Circle
.progress-circle-wrap {
float: left;
height: $padding * 4;
position: absolute;
left: 10%;
top: 10%;
width: $padding * 4;
@include border-radius(50%);
strong {
@bradpurchase
bradpurchase / gist:6803912
Last active December 24, 2015 13:19
Method to get around iOS 7 status bar overlapping in a side menu.
CGRect statusBarFrame = [[UIApplication sharedApplication] statusBarFrame];
[self.tableView setContentInset:UIEdgeInsetsMake(statusBarFrame.size.height, self.tableView.contentInset.left, self.tableView.contentInset.bottom, self.tableView.contentInset.right)];
@bradpurchase
bradpurchase / imessage_fix.sql
Last active December 12, 2015 02:58
Fix iMessage from crashing after trolling/being trolled with "File: / //".
sqlite3 /Library/Messages/chat.db "DELETE FROM message WHERE text LIKE '%File:///%';"