Skip to content

Instantly share code, notes, and snippets.

Greg Tomei gvt

  • SF
Block or report user

Report or block gvt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View soap_request_2.xml
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="" xmlns:ns0="">
<tns:changeBillingDayOfMonth xmlns:tns="">
View soap_request_1.xml
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="" xmlns:ns0="">
<tns:changeBillingDayOfMonth xmlns:tns="">
View test.wsdl
<definitions name="AutoBill" targetNamespace="" xmlns="" xmlns:enc="" xmlns:soap="" xmlns:tns="" xmlns:vin="" xmlns:wsdl="" xmlns:xsd="" xmlns:xsdl="" >
<documentation>WSDL Specification for AutoBill</documentation>
<xsd:schema targetNamespace="">
<xsd:import namespace="" />
<xsd:import namespace="" schemaLocation="Vindicia.xsd" />
<xsd:element name="changeBillingDayOfMonth">
<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) {
args = {autobill: {VID: '8da41285dc7df60405895435420e600faa41fb0d'}, dayOfMonth: 31};
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 / pig_laitn.js
Created Dec 18, 2013
pig latin translator
View pig_laitn.js
assert = require "assert"
pigLatin = (s) ->
words = s.split " " " "
doTranslate = (w) ->
latin = "ay"
remainingWord = w.substring(1)
firstChar = w[0]
gvt / gist:6798494
Created Oct 2, 2013
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 ? :
if record.respond_to?(:current_login_ip)
You can’t perform that action at this time.