Skip to content

Instantly share code, notes, and snippets.

View inamiy's full-sized avatar

Yasuhiro Inami inamiy

View GitHub Profile
@inamiy
inamiy / LoremIpsum.h
Last active December 16, 2015 11:48 — forked from jkubicek/gist:1503941
#import <Foundation/Foundation.h>
static inline NSString* LoremIpsum(NSUInteger count)
{
NSString* str = @"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ";
while ([str length] < count) {
str = [str stringByAppendingString:str];
}
@inamiy
inamiy / LWHangDetector.h
Created November 9, 2012 06:40 — forked from evanlong/LWHangDetector.h
Simple Hang Detection
/**
Copyright (C) 2011 Evan Long
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:
@inamiy
inamiy / ARCHelper.h
Created June 13, 2012 15:09 — forked from nicklockwood/ARCHelper.h
ARC Helper
//
// ARC Helper
//
// Version 1.3.1
//
// Created by Nick Lockwood on 05/01/2012.
// Copyright 2012 Charcoal Design
//
// Distributed under the permissive zlib license
// Get the latest version from here: