Skip to content

Instantly share code, notes, and snippets.

- (BOOL) sourceImage:(UIImage*) sourceImage matchesImageNamed:(NSString*)imageName at:(CGPoint)at
{
UIImage* comparisonImage = [UIImage imageNamed:imageName];
CGImageRef comparisonImageRef = [comparisonImage CGImage];
NSUInteger comparisonImageWidth = CGImageGetWidth(comparisonImageRef);
NSUInteger comparisonImageHeight = CGImageGetHeight(comparisonImageRef);
// NSLog(@"%@ Width: %d Height: %d", imageName, comparisonImageWidth, comparisonImageHeight);
0 libsystem_c.dylib malloc
1 MusicLibrary MemNewPtr
2 MusicLibrary ReadITImageDB
3 MusicLibrary -[MLPhotoLibrary _loadImageLibrary]
4 MusicLibrary -[MLPhotoLibrary albums]
5 0x33f7c218
6 0x3400886a
7 0x33f7d9ec
8 0x33f7c0aa
9 0x33f7d89a
2011-06-08 08:31:42.560 WWFC[34038:207] ---------------
2011-06-08 08:31:42.561 WWFC[34038:207] ---F-----------
2011-06-08 08:31:42.562 WWFC[34038:207] (0) (1) Min Length: 4 Max Length: 15
2011-06-08 08:31:42.562 WWFC[34038:207] (1) (1) Min Length: 3 Max Length: 14
2011-06-08 08:31:42.562 WWFC[34038:207] (2) (1) Min Length: 2 Max Length: 13
2011-06-08 08:31:42.563 WWFC[34038:207] (3) (1) Min Length: 2 Max Length: 12
2011-06-08 08:31:42.563 WWFC[34038:207] -KHAF----------
2011-06-08 08:31:42.564 WWFC[34038:207] (0) (2) Min Length: 2 Max Length: 15
2011-06-08 08:31:42.564 WWFC[34038:207] (1) (2) Min Length: 2 Max Length: 14
2011-06-08 08:31:42.565 WWFC[34038:207] ---N---Z-------
#include <map>
#include <string>
using std::string;
using std::map;
using std::pair;
class CSpriteTrieNode
{
public:
#include <map>
#include <string>
using std::string;
using std::map;
using std::pair;
class CSpriteTrieNode
{
public:
2011-06-01 05:41:40.345 WWFC[1956:707] Building node tree
2011-06-01 05:41:49.697 WWFC[1956:707] Done building node tree
2011-06-01 05:41:49.700 WWFC[1956:707] Finding words
2011-06-01 05:41:49.704 WWFC[1956:707] Found word: jig Letters left: XXutXosh
2011-06-01 05:41:49.707 WWFC[1956:707] Found word: jigs Letters left: XXutXoXh
2011-06-01 05:41:49.710 WWFC[1956:707] Found word: jut Letters left: XiXXgosh
2011-06-01 05:41:49.713 WWFC[1956:707] Found word: juts Letters left: XiXXgoXh
2011-06-01 05:41:49.716 WWFC[1956:707] Found word: jug Letters left: XiXtXosh
2011-06-01 05:41:49.718 WWFC[1956:707] Found word: jugs Letters left: XiXtXoXh
2011-06-01 05:41:49.721 WWFC[1956:707] Found word: jus Letters left: XiXtgoXh
void CSpriteTrie::addWord(const char *string)
{
CSpriteTrieNode* pNode = &m_root;
for (unsigned int i = 0; i < strlen(string); i++) {
char current = string[i];
CSpriteTrieNode* pPreviousNode = pNode;
map<char, CSpriteTrieNode*>::iterator iter = pNode->m_nodeMap.find(current);
if (iter != pNode->m_nodeMap.end()) {
pNode = iter->second;
} else {
AppDelegate.m
- (IBAction) switchViews
{
if (self.window.rootViewController == self.viewController) {
self.window.rootViewController = self.settingsNavigationViewController;
} else {
self.window.rootViewController = self.viewController;
}
}
class Rack::Proxy
def initialize(app, &block)
self.class.send(:define_method, :uri_for, &block)
@app = app
end
def call(env)
req = Rack::Request.new(env)
method = req.request_method.downcase
method[0..0] = method[0..0].upcase
(cached_tags = {}).default = 0
@videos.each { |e| e.cached_tag_list.split(', ').each { |tag| cached_tags[tag] += 1 } if e.cached_tag_list }
cached_tags = cached_tags.sort_by{ |k, v| v }.reverse
@tags = cached_tags.collect { |k, v| {:name => k, :count => v}}