Skip to content

Instantly share code, notes, and snippets.

View psineur's full-sized avatar
:shipit:
Ah-yeah, Shipping It

Psi Neur psineur

:shipit:
Ah-yeah, Shipping It
View GitHub Profile
@psineur
psineur / .vimrc
Last active October 21, 2015 22:35
~/.vimrc
set nocompatible
syntax enable
set background=dark
"Commented out overlength redness
"highlight OverLength ctermbg=red ctermfg=white guibg=#592929
"match OverLength /\%81v.\+/
"
@psineur
psineur / gist:3732186
Created September 16, 2012 12:13
Sublime Text 2 Project File for Unity
{
"folders":
[
{
"path": "../Scripts",
"file_exclude_patterns": ["*.meta"]
}
],
"settings":
@psineur
psineur / AWTextureEffects.h
Created February 20, 2012 15:25
BlurCombo
//
// AWTextureEffects.h
//
// Created by Manuel Martinez-Almeida Castañeda on 09/05/10.
// Copyright 2010 Abstraction Works. All rights reserved.
// http://www.abstractionworks.com
//
#import "CCMutableTexture2D.h"
@psineur
psineur / UIWebViewWithDebug.m
Created December 12, 2011 17:35
UIWebView with js Debugger.
/** @class UIWebViewWithDebug UIWebView with additional js error on DEBUG.
* Tested on iPad with 4.3.5 & 5.0
*/
@interface UIWebViewWithDebug : UIWebView {} @end
#ifdef DEBUG
@class WebView;
@class WebScriptCallFrame;
@class WebFrame;
@psineur
psineur / menuStatus.m
Created August 1, 2011 09:27
Disable all items in all CCMenu's children
-(void)MenuStatus:(BOOL)_enable Node:(id)_node
{
for (id result in ((CCNode *)_node).children) {
if ([result isKindOfClass:[CCMenu class]]) {
for (id result1 in ((CCMenu *)result).children) {
if ([result1 isKindOfClass:[CCMenuItem class]]) {
((CCMenuItem *)result1).isEnabled = _enable;
}
}
}
@psineur
psineur / DebugLog.h
Created April 24, 2011 17:33
DebugLog + TinyLog - better than NSLog
/*
* DebugLog.h
* DebugLog
*
* Created by Karl Kraft on 3/22/09.
* Copyright 2009 Karl Kraft. All rights reserved.
* http://www.karlkraft.com/index.php/2009/03/23/114/
*
*/
#import "Foundation/Foundation.h"
@psineur
psineur / xcf2sprites
Created March 24, 2011 23:27
xcfinfo modification that i used to create sprites/tiles plist files for iTraceur
/* A program that extracts metadata from an XCF file
*
* This file was written by Henning Makholm <henning@makholm.net>
* It is hereby in the public domain.
*
* In jurisdictions that do not recognise grants of copyright to the
* public domain: I, the author and (presumably, in those jurisdictions)
* copyright holder, hereby permit anyone to distribute and use this code,
* in source code or binary form, with or without modifications. This
* permission is world-wide and irrevocable.
@psineur
psineur / CCMenuItemSpriteIndependent.m
Created March 10, 2011 18:53
CCMenuItemSprite for CCSpriteBatchNode
// CCMenuItemSpriteIndependent is CCMenuItemSprite that doesn't add normal, selected
// and disabled images as children. Instead of that its just retain them.
// So you can place images anyhow you want.
//
// Note: content size will be set from normalImage_ on init in CCMenuItemSprite
// CCMenuItemSpriteIndependent changes only the way of holding images
@interface CCMenuItemSpriteIndependent : CCMenuItemSprite
@end
@implementation CCMenuItemSpriteIndependent