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\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Sender</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang=\"en\">The 'CustomerTitle' element is invalid - The value 'Mr.g' is invalid according to its datatype 'Title' - The Pattern constraint failed.The 'CCNumber' element is invalid - The value '1' is invalid according to its datatype 'CreditCard' - The Pattern constraint failed.</soap:Text></soap:Reason><detail /></soap:Fault></soap:Body></soap:Envelope> |
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
def cors_set_access_control_headers | |
headers['Access-Control-Allow-Origin'] = '*' | |
headers['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS' | |
headers['Access-Control-Max-Age'] = "1728000" | |
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
work() { cd ~/Projects/$1; } | |
_work() { _files -W ~/Projects -/; } | |
compdef _work work |
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
Show hidden characters
"color_scheme": "Packages/Color Scheme - Default/railscasts.tmTheme", | |
"dictionary": "Packages/Language - English/en_US.dic", | |
"font_size": 15.0, | |
"ignored_packages": | |
[ | |
"Vintage", | |
"RubyMotion Autocomplete" | |
], | |
"spell_check": true, | |
"tab_size": 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
#! /bin/bash | |
# This script is meant to be run daily and will process all of the subscriptions | |
# and payments | |
RAILSENV=$1 | |
if [RAILSENV eq 'staging'] | |
then | |
cd /var/vhosts/take5feedback.tfgrails.com/current | |
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
#spec/support/geocoding.rb | |
# Disable geocoding when testing | |
module Geocoder | |
class StubbedResult | |
def types | |
["street_address"] | |
end | |
def geometry |
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
\# Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
en: | |
errors: | |
messages: | |
expired: "has expired, please request a new one" | |
not_found: "not found" | |
already_confirmed: "was already confirmed, please try signing in" | |
not_locked: "was not locked" | |
not_saved: |
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
# app/views/wallet/EmptyWalletView.rb | |
class EmptyWalletView < WalletLayout | |
FROWN_IMAGE = 'T5F-CouponsEmpty-Icon-SadFace.png' | |
FROWN_IMAGE_X_PADDING = 60 | |
FROWN_IMAGE_Y_PADDING = 30 | |
FROWN_IMAGE_WIDTH = 82 | |
FROWN_IMAGE_HEIGHT = 82 |
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 UIViewWithDelegate < UIView | |
attr_accessor :controllerDelegate | |
def initWithFrame(frame, andDelegate: delegate) | |
self.initWithFrame(frame) | |
self.controllerDelegate = delegate | |
self | |
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
attr_accessor :controllerDelegate | |
def initWithFrameAndDelegate(frame, delegate: delegate) | |
self.initWithFrame(frame) | |
@controllerDelegate = delegate | |
setupFrownImage | |
setupSorryLabel | |
setupButton | |
self | |
end |