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 Bacon | |
attr_accessor :expired | |
def edible? | |
!expired | |
end | |
def expired! | |
self.expired = true | |
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
Feature: Signing in | |
In order to use the site | |
As a user | |
I want to be able to sign in | |
Scenario: Signing in via confirmation | |
Given there are the following users: | |
| email | password | confirm_user | | |
| user@ticketee.com | password | false | | |
And "user@ticketee.com" opens the email with subject "Confirmation instructions" |
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
<?xml version="1.0"?> | |
<project default="release"> | |
<target name="release"> | |
<echo> | |
Building release build | |
</echo> | |
<fb.exportReleaseBuild project="Amazing Project" /> | |
</target> | |
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
# This configuration file works with both the Compass command line tool and within Rails. | |
# Require any additional compass plugins here. | |
project_type = :rails | |
project_path = Compass::AppIntegration::Rails.root | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
environment = Compass::AppIntegration::Rails.env | |
if environment == 'production' | |
css_dir = "tmp/stylesheets" |
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
RAILS_APP=../../../my_rails_app/ |
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
Feature: Creating Users | |
In order to add new users to the system | |
As an admin | |
I want to be able to add them through the backend | |
Background: # features/creating_users.feature:6 | |
Given there are the following users: # features/step_definitions/user_steps.rb:1 | |
| email | password | admin | | |
| admin@ticketee.com | password | true | | |
And I am signed in as them # features/step_definitions/user_steps.rb:10 |
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
- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError | |
{ | |
todoItems = [NSPropertyListSerialization propertyListWithData:data options:NSPropertyListMutableContainers format:NULL error:outError]; | |
BOOL errorFound = todoItems == nil; | |
if (errorFound) | |
{ | |
NSMutableDictionary *userInfo = [NSMutableDictionary dictionary]; | |
[userInfo setValue:@"Custom Error Description" forKey:NSLocalizedDescriptionKey]; |
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
-(void)trimItemTitles | |
{ | |
for(NFRSSItem *rssItem in [self items]) | |
{ | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// CHOP CHOP: let's get what we need from the raw posttitle | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// we want 3 pieces of info: category, posttitle and possible "reply by" or "author" | |
// split the string up on " :: " - array length might be 2 or 3, depending on presence of " :: Reply by" |
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
module ApplicationHelper | |
def markdown(text, options = {} ) | |
options = [ | |
:hard_wrap => true, | |
:space_after_headers => true, | |
:filter_html => true, | |
:autolink => true, | |
:no_intraemphasis => true, | |
:fenced_code => true, |
OlderNewer