Skip to content

Instantly share code, notes, and snippets.

View stevestreza's full-sized avatar

Steve Streza stevestreza

View GitHub Profile
#! /bin/bash
## add your configuration options here, these can't be overridden
# MO_DATAMODEL="Other Sources/MyModel.xcdatamodel"
# MO_OUTPUTDIR="Classes/ManagedObjects"
# MO_BASECLASS="MyManagedObject";
# MO_ENGINE="emogenerator"
# ------- Shouldn't need to go below here.
<div class="lockup-container selection genius swoosh music album" goto-page-href='/WebObjects/MZPersonalizer.woa/wa/sx?es=1&amp;mt=1' selection-key-param='genreId' rows="2">
<div class="title">
<h2>Genius Recommendations</h2>
<a class="see-all" href="http://my.itunes.apple.com/WebObjects/MZPersonalizer.woa/wa/seeAllRecommendations?mt=1">See All</a>
//
// NSArray+ConcurrencyAdditions.h
// ConcurrencyExtensions
//
// Created by Steve Streza on 9/13/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
/**********************************************************************************
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
(c) Copyright 1996 - 2002 Gary Henderson (gary.henderson@ntlworld.com),
Jerremy Koot (jkoot@snes9x.com)
(c) Copyright 2002 - 2004 Matthew Kendora
(c) Copyright 2002 - 2005 Peter Bortas (peter@bortas.org)
{
UIKeyboardAnimationCurveUserInfoKey = 0;
UIKeyboardAnimationDurationUserInfoKey = 0.300000011920929;
UIKeyboardBoundsUserInfoKey = NSRect: {{0, 0}, {320, 216}};
UIKeyboardCenterBeginUserInfoKey = NSPoint: {160, 588};
UIKeyboardCenterEndUserInfoKey = NSPoint: {160, 372};
}
- (void)keyboardWillHide:(NSNotification *)notification {
NSLog(@"%s %@", __PRETTY_FUNCTION__, notification);
double animationDuration = [[[notification userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] doubleValue];
UIViewAnimationCurve animationCurve = [[[notification userInfo] objectForKey:UIKeyboardAnimationCurveUserInfoKey] intValue];
// there's a handy category for doing this in UIGeometry.h
CGRect keyboardBounds = [(NSValue *)[[notification userInfo] objectForKey:UIKeyboardBoundsUserInfoKey] CGRectValue];
[UIView beginAnimations:@"hideKeyboardAnimation" context:nil];
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.stevestreza.minbif</string>
<key>ProgramArguments</key>
<array>
<string>/Volumes/Data/Programs/bin/minbif</string>
<string>/Volumes/Data/Programs/etc/minbif/minbif.conf</string>
/*
Copyright (c) 2008-2010
Lars-Dominik Braun <PromyLOPh@lavabit.com>
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:
@implementation NSNull (NullObjectPattern)
// if we don't recognize the selector, pretend we're actually nil, and no-op
-(void)forwardInvocation:(NSInvocation *)anInvocation{}
@end
javascript:var%20str=prompt(%22Enter%20your%20virtual%20keyboard%20password:%22);for(var%20idx%20in%20str)%7B%20handleKey(str%5Bidx%5D);%7D