Skip to content

Instantly share code, notes, and snippets.

View solars's full-sized avatar

Christoph Blank solars

View GitHub Profile
#!/usr/bin/env ruby
# encoding: utf-8
require "rubygems"
require "bundler"
Bundler.setup
require 'amqp'
EventMachine.run do
$('#chk_smsPhoneNumber').toggle(
function() {
$('#smsPhoneNumber').removeAttr('disabled');
},
function() {
$('#smsPhoneNumber').attr('disabled', 'disabled');
}
);
** [out :: ruby-dev.seekda.com] fatal: Could not parse object '22e2458b77519e8eb8463170c1a1fe4bab105f3e'.
** [out :: ruby-dev.seekda.com] Git error: command `git reset --hard 22e2458b77519e8eb8463170c1a1fe4bab105f3e` in directory /home/deployer/endeavour/shared/bundle/ruby/1.9.1/bundler/gems/compass-22e2458b7751 has failed.
** [out :: ruby-dev.seekda.com] If this error persists you could try removing the cache directory '/home/deployer/endeavour/shared/bundle/ruby/1.9.1/cache/bundler/git/compass-71785749c1e54e7e5936dbddfb919ddd014100e8'
Resolving deltas: 100% (12858/12858), done.g deltas: 100% (12858/12858)
** [out :: insemtives.seekda.com] fatal: Could not parse object '22e2458b77519e8eb8463170c1a1fe4bab105f3e'.
** [out :: insemtives.seekda.com] Git error: command `git reset --hard 22e2458b77519e8eb8463170c1a1fe4bab105f3e` in directory /home/deployer/endeavour/shared/bundle/ruby/1.9.1/bundler/gems/compass-22e2458b7751 has failed.
** [out :: insemtives.seekda.com] If this error persists you could try removing the cache directory '/home/deployer/endeavour/shared/bundle/ruby/1.9.1/cache/bundler/git/compass-71785749c1e54e7e5936dbddfb919ddd014100e8'
module WSDL
NS_WSDL = 'http://schemas.xmlsoap.org/wsdl/'
class Operation
include HappyMapper
register_namespace 'wsdl', NS_WSDL
namespace 'wsdl'
tag 'operation'
attribute :name, String, :tag => 'name'
has_many :inputs, Input, :tag => 'input'
has_many :outputs, Output, :tag => 'output'
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://xmlme.com/WebServices" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://xmlme.com/WebServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://xmlme.com/WebServices">
<s:element name="FindSportingGoods">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Search" type="s:string" />
</s:sequence>
</s:complexType>
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="WeatherService" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="WeatherService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="WeatherService">
<s:import namespace="http://www.w3.org/2001/XMLSchema" />
<s:element name="GetWeatherDataSet">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="cityName" type="s:string" />
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://xmlme.com/WebServices" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://xmlme.com/WebServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://xmlme.com/WebServices">
<s:element name="FindSportingGoods">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Search" type="s:string" />
</s:sequence>
<%= form_tag(add_category_service_path(@service), :method => 'post', :remote => true) do %>
<%= select_tag 'service-category', options_for_select(['test'] %>
<%= submit_tag "Submit", :id => 'submit' %>
<% end %>
# controller
def add_category
respond_to do |format|
format.js {
render :text => 'fu'
sqlite> select * from users;
9|guest-127.0.0.1@example.com|$2a$10$Uu9uOnBsNfGILk8Q5QFNe.3BRfT0l8meQXHaNae6OVa/CBGmOZcdG||||0|||||2011-08-29 14:32:58.577498|2011-08-29 14:32:58.577498|127.0.0.1
sqlite> SELECT "users".* FROM "users" WHERE "users"."ip" = '127.0.0.1' LIMIT 1;
sqlite>