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
| class Account < ActiveRecord::Base | |
| def self.search(name = nil) | |
| # search logic | |
| end | |
| end |
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
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
| self.viewController = [[JBViewController alloc] initWithNibName:@"JBViewController" bundle:nil]; | |
| self.window.rootViewController = self.viewController; | |
| // ADD THIS LINE: | |
| [self.window setTransform:CGAffineTransformMakeScale(0.81, 0.81)]; | |
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
| class ExcelDumper | |
| def initialize(array) | |
| @data = array | |
| end | |
| def to_xls(options = {}) | |
| output = %{<?xml version="1.0" encoding="UTF-8"?> | |
| <Workbook xmlns:x="urn:schemas-microsoft-com:office:excel" | |
| xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" | |
| xmlns:html="http://www.w3.org/TR/REC-html40" |
NewerOlder