Skip to content

Instantly share code, notes, and snippets.

@astralbodies
astralbodies / insights.diff
Last active May 19, 2017 14:57
Stats overrides for snapshots
[2] $ diff InsightsTableViewController.m ~/src/WordPressCom-Stats-iOS/WordPressCom-Stats-iOS/UI/InsightsTableViewController.m -u ✘∞ ∞
--- InsightsTableViewController.m 2017-05-19 09:23:22.000000000 -0500
+++ /Users/aaron/src/WordPressCom-Stats-iOS/WordPressCom-Stats-iOS/UI/InsightsTableViewController.m 2016-12-14 11:16:23.000000000 -0600
@@ -1149,20 +1149,11 @@
{
if (summary) {
weakSelf.sectionData[@(StatsSectionInsightsTodaysStats)] = summary;
- summary.views = @"65";
- summary.visitors = @"58";
- summary.likes = @"12";
@astralbodies
astralbodies / CoreDataStack.swift
Last active November 29, 2022 14:13
Ray Wenderlich Core Data Stack & Iterative Migrator
/// Copyright (c) 2019 Razeware LLC
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction, including without limitation the rights
/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
/// copies of the Software, and to permit persons to whom the Software is
/// furnished to do so, subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in