Skip to content

Instantly share code, notes, and snippets.

View evizitei's full-sized avatar

Ethan Vizitei evizitei

  • Instructure
  • Columbia, MO
View GitHub Profile
@evizitei
evizitei / use_savon.rb
Created November 15, 2012 19:38
savon usage
require 'savon'
client = Savon.client('https://dev.tch.com/richapp/Wsdl.action?wsdl=/axis2/services/CardManagementWS')
client.http.auth.ssl.verify_mode = :none
client.wsdl.soap_actions
class Car
def initialize(instruments)
@instruments = instruments
end
def mileage
@_mileage ||= @instruments.select(:odometer).calculate_value
end
end
$elements = $('div.tutorial-index');
heights = $elements.map(function(i, ele){ return $(ele).height(); });
max = 0
$.each(heights, function(i, height){ if(height > max) max = height;});
$elements.height(max);
Sub WorksheetLoop()
Dim I As Integer
Dim worksheetName As String
Dim sheet As Worksheet
I = 1
For Each sheet In ActiveWorkbook.Worksheets
worksheetName = "" & I & " - " & sheet.Name
sheet.Name = worksheetName
@evizitei
evizitei / Person.cs
Created October 14, 2013 19:16
C# to Ruby
public class Person
{
// Field
public string name;
// Constructor that takes no arguments.
public Person()
{
name = "unknown";
}
@evizitei
evizitei / default_whenever.rb
Created October 29, 2010 19:24
Whenever Chef Recipe on EY AppCloud
#
# Cookbook Name:: whenever
# Recipe:: default
#
ey_cloud_report "whenever" do
message "starting whenever recipe"
end
# Set your application name here
@evizitei
evizitei / salesflare_fixup.rb
Last active January 17, 2017 23:47
Fixup for salesflare
FRD = false
client = Salesflare::Api.new(ENV["SALESFLARE_KEY"])
output = {
too_many_accounts: [],
no_match: [],
too_many_projects: [],
sf_projects_not_1_to_1: [],
matched: []
}
@evizitei
evizitei / keybase.md
Created November 14, 2017 18:49
keybase.md

Keybase proof

I hereby claim:

  • I am evizitei on github.
  • I am evizitei (https://keybase.io/evizitei) on keybase.
  • I have a public key ASAmgUHoM3YVw5gyUrqeiEUwnMEsvQ8adq0Kw9FHN3nwfgo

To claim this, I am signing this object: