Skip to content

Instantly share code, notes, and snippets.

Steven Romej azsromej

Block or report user

Report or block azsromej

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View organize-photos.py
#!/usr/bin/python
import sys
import os, shutil
import subprocess
import os.path
from datetime import datetime
######################## Functions #########################
View gist:5833245
//
// 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 Jul 11, 2012
Debugging with repeated memory warnings
View gist:3092479
#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 Mar 7, 2012
Jekyll generator plugin to group posts by month for archives page
View archives.html
---
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] %}
You can’t perform that action at this time.