Skip to content

Instantly share code, notes, and snippets.

Greg Tomei gvt

  • Pittsburgh, PA, USA
View GitHub Profile
View soap_request_2.xml
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://soap.vindicia.com/v3_9/AutoBill">
<soap:Header/>
<soap:Body>
<tns:changeBillingDayOfMonth xmlns:tns="http://soap.vindicia.com/v3_9/AutoBill">
<autobill>
<VID>8da41285dc7df60405895435420e600faa41fb0d</VID>
</autobill>
<dayOfMonth>31</dayOfMonth>
</tns:changeBillingDayOfMonth>
View soap_request_1.xml
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://soap.vindicia.com/v3_9/AutoBill">
<soap:Header/>
<soap:Body>
<tns:changeBillingDayOfMonth xmlns:tns="http://soap.vindicia.com/v3_9/AutoBill">
<dayOfMonth>31</dayOfMonth>
<autobill>
<VID>8da41285dc7df60405895435420e600faa41fb0d</VID>
</autobill>
</tns:changeBillingDayOfMonth>
View test.wsdl
<definitions name="AutoBill" targetNamespace="http://soap.vindicia.com/v3_9/AutoBill" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://soap.vindicia.com/v3_9/AutoBill" xmlns:vin="http://soap.vindicia.com/v3_9/Vindicia" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsdl="http://soap.vindicia.com/v3_9/AutoBill" >
<documentation>WSDL Specification for AutoBill</documentation>
<types>
<xsd:schema targetNamespace="http://soap.vindicia.com/v3_9/AutoBill">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:import namespace="http://soap.vindicia.com/v3_9/Vindicia" schemaLocation="Vindicia.xsd" />
<xsd:element name="changeBillingDayOfMonth">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="vin:Authentication" />
View node-soap-sequence-bug.js
var fs = require('fs');
var soap = require('soap');
soap.createClient('./test.wsdl', function(err, client) {
var args;
args = {dayOfMonth: 31, autobill: {VID: '8da41285dc7df60405895435420e600faa41fb0d'}};
client.changeBillingDayOfMonth(args, function(err, result) {
console.log(arguments);
});
args = {autobill: {VID: '8da41285dc7df60405895435420e600faa41fb0d'}, dayOfMonth: 31};
View api.js.coffee
class @Api
@request: (cities, cb) ->
requestQueue = []
for (i = 0; i++; i < cities.length)
city = cities[i]
requestQueue[i] = city: city, ended: false
$.get "/city", {name: city}, fnCB(city)
fnCB = (city) ->
@gvt
gvt / pig_laitn.js
Created Dec 18, 2013
pig latin translator
View pig_laitn.js
assert = require "assert"
pigLatin = (s) ->
words = s.split " "
words.map(doTranslate).join " "
doTranslate = (w) ->
latin = "ay"
remainingWord = w.substring(1)
firstChar = w[0]
@gvt
gvt / gist:6798494
Created Oct 2, 2013
Authlogic::Session::MagicColumns::InstanceMethods#update_info
View gist:6798494
def update_info
record.login_count = (record.login_count.blank? ? 1 : record.login_count + 1) if record.respond_to?(:login_count)
record.failed_login_count = 0 if record.respond_to?(:failed_login_count)
if record.respond_to?(:current_login_at)
record.last_login_at = record.current_login_at if record.respond_to?(:last_login_at)
record.current_login_at = klass.default_timezone == :utc ? Time.now.utc : Time.now
end
if record.respond_to?(:current_login_ip)
You can’t perform that action at this time.