This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! ToggleQuickFix() | |
if len(filter(tabpagebuflist(tabpagenr('$')), 'getbufvar(v:val, "&buftype") == "quickfix"')) > 0 | |
ccl | |
else | |
copen | |
endif | |
endfunction | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
if [ -f ~/.inputrc ]; then | |
bind -f ~/.inputrc | |
fi | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shopt -s cdspell # turn on minor spelling correction for cd | |
export EDITOR=vim | |
export PATH=/usr/local/bin:$PATH | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface Foo : NSObject | |
@end | |
@interface Bar : NSObject | |
@end | |
@implementation Foo | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation MyClass | |
+ (NSMutableDictionary*)storage | |
{ | |
static NSMutableDictionary *theDict = nil; | |
if (theDict == nil) | |
theDict = [[NSMutableDictionary alloc] init]; | |
return theDict; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)loadView { | |
self.view = [[UIView alloc] initWithFrame:CGRectZero]; | |
self.view.backgroundColor = [UIColor greenColor]; | |
} |
OlderNewer