Skip to content

Instantly share code, notes, and snippets.

function! ToggleQuickFix()
if len(filter(tabpagebuflist(tabpagenr('$')), 'getbufvar(v:val, "&buftype") == "quickfix"')) > 0
ccl
else
copen
endif
endfunction
scriptencoding utf-8
set nocp " we use vim, not vi
" use ~/.vim on Windows too.
if has("win32")
let &runtimepath = substitute(&runtimepath,'\(\~\|jason\|jforeman\)/vimfiles\>','\1/.vim','g')
endif
" adds .vim/bundle/* to runtimepath
silent! call pathogen#runtime_append_all_bundles()
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
if [ -f ~/.inputrc ]; then
bind -f ~/.inputrc
fi
shopt -s cdspell # turn on minor spelling correction for cd
export EDITOR=vim
export PATH=/usr/local/bin:$PATH
#include "svnversion.h"
<?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>CFBundleVersion</key>
<string>MYVERSION</string>
... other junk
</dict>
#import <Foundation/Foundation.h>
@interface Foo : NSObject
@end
@interface Bar : NSObject
@end
@implementation Foo
@end
@implementation MyViewController
- (void)viewDidLoad
{
[super viewDidLoad];
static const NSUInteger const width = 32;
static const NSUInteger const height = 32;
uint32_t pixels[width * height];
for (int p = 0; p < 1024; ++p)
@implementation MyClass
+ (NSMutableDictionary*)storage
{
static NSMutableDictionary *theDict = nil;
if (theDict == nil)
theDict = [[NSMutableDictionary alloc] init];
return theDict;
}
10/12/10 9:27:16 AM [0x0-0x194a949].com.yourcompany.Hello[67768] Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
10/12/10 9:27:16 AM [0x0-0x194a949].com.yourcompany.Hello[67768] Parameter name: meth
10/12/10 9:27:16 AM [0x0-0x194a949].com.yourcompany.Hello[67768] at System.Reflection.Emit.ILGenerator.Emit (OpCode opcode, System.Reflection.MethodInfo meth) [0x00000] in <filename unknown>:0
10/12/10 9:27:16 AM [0x0-0x194a949].com.yourcompany.Hello[67768] at MonoMac.ObjCRuntime.NativeMethodBuilder.CreateDelegate () [0x001a8] in /Users/jforeman/Source/mono/monomac/src/ObjCRuntime/NativeMethodBuilder.cs:110
10/12/10 9:27:16 AM [0x0-0x194a949].com.yourcompany.Hello[67768] at MonoMac.ObjCRuntime.NativeImplementationBuilder.get_Delegate () [0x0000b] in /Users/jforeman/Source/mono/monomac/src/ObjCRuntime/NativeImplementationBuilder.cs:56
10/12/10 9:27:16 AM [0x0-0x194a949].com.yourcompany.Hello[67768] at MonoMac.ObjCRuntime.Class.Register (System.Type type, System.String name) [0
- (void)loadView {
self.view = [[UIView alloc] initWithFrame:CGRectZero];
self.view.backgroundColor = [UIColor greenColor];
}