Skip to content

Instantly share code, notes, and snippets.

View catob's full-sized avatar

Cato catob

View GitHub Profile
@catob
catob / tags.js
Last active July 28, 2016 12:34
Tracking examples
// Fires event when user clicks on the View Courses CTA
function courses_cta() {
analytics.track('CF_HP_ClickViewOurCourses', {
'CF_DestinationPage': '',
'CF_ContentSubType': '',
'CF_CTA': '',
'CF_Menu Choice': '',
'Category': 'Home Page Interaction',
'Description': 'User Clicks on "View our Courses CTA Button"',
'nonInteraction': false
@catob
catob / cat.rb
Last active August 29, 2015 14:27
class Pet
attr_reader :color, :breed
attr_accessor :name
def initialize(color, breed)
@color = color
@breed = breed
@hungry = true
end
def feed(food)
@catob
catob / app.js
Last active August 29, 2015 14:25
var hipsterCat = [
{ title: "First Project", img: "img/hipster-cat-3.jpg" },
{ title: "Second Project", img: "img/hipster-cat-3.jpg" },
{ title: "Third Project", img: "img/hipster-cat-3.jpg" },
{ title: "Fourth Project", img: "img/hipster-cat-3.jpg" }
];
$(document).ready(function(){