This file contains hidden or 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
| // | |
| // NSApplication+DockIcon.m | |
| // Hyperspaces | |
| // | |
| // Created by Tony Arnold on 30/06/09. | |
| // Licensed under Creative Commons Attribution 2.5 - http://creativecommons.org/licenses/by/2.5/ | |
| #import <Cocoa/Cocoa.h> | |
| #import <Carbon/Carbon.h> |
This file contains hidden or 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 (CGSSetHotKeyWithExclusion != NULL) { | |
| hotkeyAdditionError = CGSSetHotKeyWithExclusion(_CGSDefaultConnection(), hotkey.identifierValue, USHRT_MAX, hotkey.keycodeValue, hotkey.modifiermaskWithoutFunctionKey); | |
| } |
This file contains hidden or 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
| Breakpoint 1, 0x90886e17 in objc_exception_throw () | |
| (gdb) bt | |
| #0 0x90886e17 in objc_exception_throw () | |
| #1 0x95a18dcb in +[NSException raise:format:arguments:] () | |
| #2 0x95a18e0a in +[NSException raise:format:] () | |
| #3 0x918a4fcf in _NSArrayRaiseBoundException () | |
| #4 0x91822788 in -[NSCFArray objectAtIndex:] () | |
| #5 0x92566819 in -[NSObjectParameterBinder _updateObject:observedController:observedKeyPath:context:] () | |
| #6 0x92566500 in -[NSObjectParameterBinder _observeValueForKeyPath:ofObject:context:] () | |
| #7 0x918a82de in NSKVONotify () |
This file contains hidden or 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
| @property CGImageRef backgroundCGImage; |
This file contains hidden or 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
| # Uncrustify 0.59 | |
| # | |
| # General options | |
| # | |
| # The type of line endings | |
| newlines = auto # auto/lf/crlf/cr | |
| # The original size of tabs in the input |
This file contains hidden or 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
| # | |
| # uncrustify config file for objective-c and objective-c++ | |
| # | |
| indent_with_tabs = 2 # 1=indent to level only, 2=indent with tabs | |
| output_tab_size = 2 # new tab size | |
| indent_columns = output_tab_size | |
| indent_label = output_tab_size # pos: absolute col, neg: relative column | |
| indent_align_assign = true | |
| indent_align_string = true |
This file contains hidden or 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
| def revenue_history_months_sql(months) | |
| if Order.connection.adapter_name == 'PostgreSQL' | |
| "select extract(year from orders.order_time) as year, | |
| extract(month from orders.order_time) as month, | |
| extract(month from age(date_trunc('month', orders.order_time))) as months_ago, | |
| sum(line_items.unit_price * quantity) | |
| - sum(coalesce(coupons.amount, 0)) | |
| - sum(line_items.unit_price * quantity * coalesce(percentage, 0) / 100) as revenue, | |
| max(orders.order_time) as last_time | |
This file contains hidden or 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
| def revenue_history_months | |
| limit = 12 | |
| @orders = Order.find(:all, :conditions => ["status = 'C' and lower(payment_type) != 'free' and order_time >= ?", limit.months.ago]) | |
| @orders_months = @orders.group_by { |m| m.order_time.beginning_of_month } | |
| values = [] | |
| @orders_months.each {| month, order | | |
| monthly_total = 0; |
This file contains hidden or 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
| /* Disable all scrolling for these web views. */ | |
| for (UIView *view in [self subviews]) { | |
| if ([view isKindOfClass:[UIScrollView class]]) { | |
| UIScrollView *scrollView = (UIScrollView *)view; | |
| scrollView.scrollEnabled = NO; | |
| } | |
| } |
This file contains hidden or 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
| [core] | |
| excludesfile = /Users/tonyarnold/.gitignore | |
| legacyheaders = false | |
| editor = decaf | |
| [color] | |
| ui = auto | |
| interactive = auto | |
| status = auto | |
| branch = auto | |
| diff = auto |