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
for a in tv/*/; do (cd "$a" && for f in *; do mv $f $(basename $(pwd)).${f##*.}; done); done |
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
class MyClass | |
include Scientist | |
def count | |
science('new_count') do |experiment| | |
experiment.context(user: user) | |
experiment.use { 1 } | |
# One Try | |
experiment.try { 2 } |
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
VALID_BOARD = [ | |
[1,2,3, 4,5,6, 7,8,9], | |
[4,5,6, 7,8,9, 1,2,3], | |
[7,8,9, 1,2,3, 4,5,6], | |
[2,3,4, 5,6,7, 8,9,1], | |
[5,6,7, 8,9,1, 2,3,4], | |
[8,9,1, 2,3,4, 5,6,7], | |
[3,4,5, 6,7,8, 9,1,2], |
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
var CommentController = { | |
current_users: [], | |
create: function(req, res) { | |
current_users.push('yada'); | |
} | |
} | |
module.exports = CommentController; |
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
events GET /events(.:format) events#index | |
api_v1_events GET /api/v1/events(.:format) Api::V1/events#index | |
GET /events(.:format) Api::V1/events#index |
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
api_version(:module => "Api::V1", :path => {:value => "api/v1"}, :default => true) do | |
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
api_v1_events GET /api/v1/events(.:format) Api::V1/events#index | |
events GET /events(.:format) Api::V1/events#index | |
GET /events(.:format) events#index |
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
Relationship fault for (<NSFetchedPropertyDescription: 0x89841a0>), name users, isOptional 1, isTransient 1, entity Place, renamingIdentifier users, validation predicates ( | |
), warnings ( | |
), versionHashModifier (null) | |
userInfo { | |
}, fetchRequest <NSFetchRequest: 0x8984470> (entity: Place; predicate: (ANY checkins.place == $FETCH_SOURCE); sortDescriptors: ((null)); type: NSManagedObjectResultType; ) on 0x89ad880 |
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
- (NSFetchedResultsController *)fetchedResultsController { | |
if (_fetchedResultsController != nil) | |
{ | |
return _fetchedResultsController; | |
} | |
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"ANY checkins.place = %@", self.place]; | |
return [User MR_fetchAllGroupedBy:nil withPredicate:predicate sortedBy:nil ascending:TRUE]; | |
} |
NewerOlder