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
# coding: utf-8 | |
class CompanyUser < ActiveRecord::Base | |
attr_accessible :user_id, :company_id, :position | |
attr_accessible :user_id, :company_id, :position, :is_admin, as: :admin | |
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
# coding: utf-8 | |
class Concern < ActiveRecord::Base | |
belongs_to :publication | |
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
# coding: utf-8 | |
class Concern < ActiveRecord::Base | |
belongs_to :publication | |
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
System.out.print(new SmartArray(new String[] { "Hello", "World!", "Java" }) | |
.map(new SmartArray.Op<String, Integer>() { | |
public Integer op(String s) { | |
return s.length(); | |
} | |
}) | |
.max()); |
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
print [ "Hello", "World!", "Ruby" ].map{|e| e.length }.max |
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
// | |
// MemoryLeakTestTableViewController.m | |
// MemoryLeakTest | |
@interface MemoryLeakTestTableViewController : UITableViewController | |
{ | |
NSMutableArray *dataForCellArray1; | |
} | |
@property (retain, nonatomic) NSMutableArray *dataForCellArray2; | |
@property (retain, nonatomic) NSMutableArray *dataForCellArray3; |
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
# -*- coding: utf-8 -*- | |
import sys | |
import time | |
import datetime | |
class Observable(): | |
pass | |
class Tick(Observable): |