Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import sys
import os, shutil
import subprocess
import os.path
from datetime import datetime
######################## Functions #########################
//
// NSDate+InternetDateTime.h
// MWFeedParser
//
// Created by Michael Waterfall on 07/10/2010.
// Copyright 2010 Michael Waterfall. All rights reserved.
//
#import <Foundation/Foundation.h>
@azsromej
azsromej / gist:3092479
Created July 11, 2012 19:11
Debugging with repeated memory warnings
#warning REMOVE THIS BEFORE RELEASE
- (void)fireMemoryWarning:(NSTimer *)timer {
NSLog(@"<<<< posting simulated warning >>>>");
[[UIApplication sharedApplication] performSelector:@selector(_performMemoryWarning)];
}
#warning REMOVE THIS BEFORE RELEASE
-(void) debugWithRepeatedMemoryWarnings {
[NSTimer scheduledTimerWithTimeInterval:20 target:self
selector:@selector(fireMemoryWarning:)
@azsromej
azsromej / archives.html
Created March 7, 2012 18:19
Jekyll generator plugin to group posts by month for archives page
---
layout: default
title: Archives
---
<h1>{{ page.title }}</h1>
<div class="archives">
{% for month in page.months %}
<h2>{{ month | date:"%B" }} <small>{{ month | date:"%Y" }}</small></h2>
<ul>
{% for post in page.posts_by_month[month] %}