Skip to content

Instantly share code, notes, and snippets.

lexrus / LTLog.h
Last active February 21, 2016 19:56
My DDLog config
View LTLog.h
// LTLog.h
// Created by Lex on 6/29/14.
// Copyright (c) 2014 All rights reserved.
#import <Foundation/Foundation.h>
anotheruiguy /
Last active May 24, 2023 22:08
Custom Web Fonts and the Rails Asset Pipeline

Web fonts are pretty much all the rage. Using a CDN for font libraries, like TypeKit or Google Fonts, will be a great solution for many projects. For others, this is not an option. Especially when you are creating a custom icon library for your project.

Rails and the asset pipeline are great tools, but Rails has yet to get caught up in the custom web font craze.

As with all things Rails, there is more then one way to skin this cat. There is the recommended way, and then there are the other ways.

Here I will show how to update your Rails project so that you can use the asset pipeline appropriately and resource your files using the common Rails convention.

krzysztofzablocki / gist:4396302
Last active November 24, 2021 19:17
Set symbol breakpoint on objc_msgSend then setup this debug command to log all methods called in iOS Simulator. If you want to do device debugging change esp+4 register to r0, esp+8 to r1 Found long ago somewhere on stackoverflow.
View gist:4396302
expr -- (void)printf("[%s, %s]\n",(char *) object_getClassName(*(long*)($esp+4)), (char *) *(long *)($esp+8) )
adamgit / .gitignore
Last active September 15, 2023 07:02
.gitignore file for Xcode4 / OS X Source projects
View .gitignore
# .gitignore file for Xcode4 and Xcode5 Source projects
# Apple bugs, waiting for Apple to fix/respond:
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
# Version 2.6
# For latest version, see:
atomicbird / NSObject+setValuesForKeysWithJSONDictionary.h
Created January 11, 2012 02:35
NSObject category for handling JSON dictionaries. Described in detail at
View NSObject+setValuesForKeysWithJSONDictionary.h
// NSObject+setValuesForKeysWithJSONDictionary.h
// SafeSetDemo
// Created by Tom Harrington on 12/29/11.
// Copyright (c) 2011 Atomic Bird, LLC. All rights reserved.
#import <Foundation/Foundation.h>