- Fallout 4
- Batman: Arkham Knight
- Uncharted Collection
- Star Wars: Battlefront
- Tales of Zestiria
- [Extra Dualshock 4 Controller](http:/
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
StripfighterEmber.ApplicationController = Ember.Controller.extend | |
signOut: -> | |
StripfighterEmber.Auth.signOut() | |
StripfighterEmber.Auth.destroySession() |
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
unless self.column_names.include? "new_name" | |
alias_attribute :new_name, :old_name | |
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
class Combinations | |
attr_accessor :number_of_variables | |
def initialize(number_of_variables=2) | |
@number_of_variables = number_of_variables | |
end | |
def print_combinations | |
combinations.each do |row| | |
row.each_with_index do |v, i| |
valid BBCOde Document
Hello World # => rule text
[b]I'd like to teach the world to dance[/b] # => rule expression
Also Valid
[b]Hello World[/b] # rule expression
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 Post | |
has_one :avatar | |
end | |
class Avatar | |
belongs_to :post | |
has_one :image | |
delegate :image, :to => :post | |
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
wrapText = (elementID, openTag, closeTag) -> | |
textArea = $("##{elementID}") | |
len = textArea.val().length | |
start = textArea[0].selectionStart() | |
end = textArea[0].selectionEnd() | |
selectedText = textArea.val().substring(start, end) | |
replacement = "#{openTag}#{selectedText}#{closeTag}" | |
textArea.val(textArea.val().substring(0, start) + replacement + textArea.val().substring(end, len)) | |
#example click function |
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
cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
for (int y=0; y<[selectedMonsters count];y++) { | |
if [[selectedMonsters objectAtIndex:y] isKindOfTemplate:[monsters objectAtIndexPath:indexPath]] { | |
cell.detailLabel.text = [monster quantity]; | |
} | |
else { | |
cell.detailLabel.text = ""; | |
} | |
} | |
} |
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
NSError* error; | |
if(![managedObjectContext save:&error]) { | |
NSLog(@"Failed to save to data store: %@", [error localizedDescription]); | |
NSArray* detailedErrors = [[error userInfo] objectForKey:NSDetailedErrorsKey]; | |
if(detailedErrors != nil && [detailedErrors count] > 0) { | |
for(NSError* detailedError in detailedErrors) { | |
NSLog(@" DetailedError: %@", [detailedError userInfo]); | |
} | |
} | |
else { |
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
require 'webrat' | |
require 'webrat/core/matchers' | |
include Webrat::Methods | |
include Webrat::Matchers | |
Webrat.configure do |config| | |
config.mode = :mechanize | |
end | |
class MechanizeWorld < Webrat::MechanizeSession |