Skip to content

Instantly share code, notes, and snippets.

Ethan Vizitei evizitei

Block or report user

Report or block evizitei

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
@evizitei
evizitei / video_preprocess_toolkit.py
Last active Nov 1, 2018
Cut a video file into silent and noisy clips (2 output files), or into segments with one face and other (non-one-face) segments
View video_preprocess_toolkit.py
# requires https://github.com/Zulko/moviepy
# requires https://github.com/jiaaro/pydub
# requires https://github.com/ageitgey/face_recognition
from pydub import AudioSegment
from moviepy.editor import *
import face_recognition
import itertools
import numpy as np
View 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:

@evizitei
evizitei / salesflare_fixup.rb
Last active Jan 17, 2017
Fixup for salesflare
View salesflare_fixup.rb
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 / default_whenever.rb
Created Oct 29, 2010
Whenever Chef Recipe on EY AppCloud
View default_whenever.rb
#
# Cookbook Name:: whenever
# Recipe:: default
#
ey_cloud_report "whenever" do
message "starting whenever recipe"
end
# Set your application name here
View Person.cs
public class Person
{
// Field
public string name;
// Constructor that takes no arguments.
public Person()
{
name = "unknown";
}
View rename_worksheets.vba
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
View make_heights_equal.js
$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);
View car.rb
class Car
def initialize(instruments)
@instruments = instruments
end
def mileage
@_mileage ||= @instruments.select(:odometer).calculate_value
end
end
View use_savon.rb
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
View subject_footer.rb
You can’t perform that action at this time.