Skip to content

Instantly share code, notes, and snippets.

"<?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>
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
work() { cd ~/Projects/$1; }
_work() { _files -W ~/Projects -/; }
compdef _work work
"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,
#! /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
#spec/support/geocoding.rb
# Disable geocoding when testing
module Geocoder
class StubbedResult
def types
["street_address"]
end
def geometry
@dangalipo
dangalipo / devise.en.yml
Created February 12, 2013 02:27
devise.en.yml
\# 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:
# 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
class UIViewWithDelegate < UIView
attr_accessor :controllerDelegate
def initWithFrame(frame, andDelegate: delegate)
self.initWithFrame(frame)
self.controllerDelegate = delegate
self
end
@dangalipo
dangalipo / EmptyWalletView.rb
Created January 30, 2013 07:47
delegate method
attr_accessor :controllerDelegate
def initWithFrameAndDelegate(frame, delegate: delegate)
self.initWithFrame(frame)
@controllerDelegate = delegate
setupFrownImage
setupSorryLabel
setupButton
self
end