Skip to content

Instantly share code, notes, and snippets.

Mon 02:58AM Christer: tyl. Did you watch it?
Mon 03:00AM nickfox: tyl doesnt live here anymore.
Mon 03:01AM Christer: Ah, my IRC crashed for some reason.
Mon 03:02AM otiose: its an old one, so i didnt know if people would know it
Mon 03:05AM nickfox: Christer: tyl wasnt paying attention and he got run over by a steam roller. he is now 0.547 inches thick. needless to say, he did not survive the experience.
Mon 03:05AM nickfox: http://sidoxia.files.wordpress.com/2010/03/steam-roller.jpg
Mon 03:06AM Christer: Good thing his nick maybe representing his religion: "Thank You Lord" :)
Mon 03:06AM nickfox: i have cut him up into small squares and i'm selling souvenirs for $4.99 through paypal.
Mon 03:07AM Christer: Oh, i was wondering what the hell a TYL toothpick was on ebay. it all makes sense now.
- (void)ccTouchEnded:(UITouch *)touch withEvent:(UIEvent *)event {
CGPoint location = [self convertTouchToNodeSpace:touch];
CCParticleSystem* emitter = [CCParticleExplosion node];
emitter.position = ccp(location.x, location.y);
emitter.life = 3.0f;
emitter.duration = 2.7f;
emitter.lifeVar = 0.1f;
emitter.totalParticles = 200;
//
// AppDelegate.m
// Ch7
//
// Created by Kyle Roche on 9/5/11.
// Copyright Isidorey 2011. All rights reserved.
//
#import "cocos2d.h"
//
// WSMViewController.m
// CollectionViewTests
//
// Created by Nick Fox on 8/29/13.
// Copyright (c) 2013 Nick Fox. All rights reserved.
//
#import "WSMViewController.h"
#import <AssetsLibrary/AssetsLibrary.h>
+ (ALAssetsLibrary *)defaultAssetsLibrary
{
static dispatch_once_t pred = 0;
static ALAssetsLibrary *library = nil;
dispatch_once(&pred, ^ {
library = [[ALAssetsLibrary alloc] init];
});
return library;
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
if ([thumbnails count] > 0) {
UIImageView *cellImageView = (UIImageView *)[cell viewWithTag:100];
cellImageView.image = [thumbnails objectAtIndex:indexPath.row];
}
return cell;
+ (ALAssetsLibrary *)defaultAssetsLibrary {
static dispatch_once_t pred = 0;
static ALAssetsLibrary *library = nil;
dispatch_once(&pred, ^{
library = [[ALAssetsLibrary alloc] init];
});
return library;
}
void (^assetEnumerator)(ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *asset, NSUInteger index, BOOL *stop) {
if(asset) {
ALAssetRepresentation *representation = [asset defaultRepresentation];
NSLog(@"%@", [representation UTI]);
[thumbnails addObject:asset];
}
};
void (^assetGroupEnumerator)(ALAssetsGroup *, BOOL *) = ^(ALAssetsGroup *group, BOOL *stop) {
if(group != nil) {
Wed 08:04PM <NickServ> nickfox: info nickfox
Wed 08:04PM NickServ: Information on nickfox (account nickfox):
Wed 08:04PM NickServ: Registered : Apr 26 10:54:41 2012 (1 year, 4 weeks, 5 days, 16:09:22 ago)
Wed 08:04PM NickServ: Last addr : ~nick@host-2-102-70-152.as13285.net
Wed 08:04PM NickServ: Last seen : May 25 13:01:40 2012 (1 year, 0 weeks, 4 days, 14:02:23 ago)
Wed 08:04PM NickServ: Flags : HideMail
Wed 08:04PM NickServ: *** End of Info ***
//
// AGLKView.h
//
//
#import <UIKit/UIKit.h>
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>
@class EAGLContext;