This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from earsketch import * | |
from random import * | |
init() | |
setTempo(125) | |
# declare variables | |
kick = OS_KICK01 | |
snare = OS_SNARE01 | |
hit_hat = OS_OPENHAT03 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install ruby | |
require 'rubygems' | |
require 'mixpanel_client' | |
#How to get totals visitors: | |
config = {api_key: 'changeme', api_secret: 'changeme'} | |
client = Mixpanel::Client.new(config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//When the landing page loads you should add the code attached in mixpanel_production.js to the head of the page | |
//More info here: https://mixpanel.com/docs/integration-libraries/javascript | |
//When the first page of the contracting process loads it should exectute the following: | |
mixpanel.track('External CI Interaction', {provider: "Click Seguros", page: "Page 1"}); | |
//When the last page of the contracting process loads it should exectute the following: | |
mixpanel.track('External CI Interaction', {provider: "Click Seguros", page: "Page Results"}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Setup | |
//To start tracking with Javascript, paste the following code into the page you want to track | |
//inside the <head> and </head> tags. Make sure to change 'YOUR_TOKEN' to the project token from your Mixpanel dashboard. | |
//We load the library onto the page asynchronously, which keeps your website loading quickly even if placed in the <head> of the page. | |
(function(c,a){window.mixpanel=a;var b,d,h,e;b=c.createElement("script"); | |
b.type="text/javascript";b.async=!0;b.src=("https:"===c.location.protocol?"https:":"http:")+ | |
'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';d=c.getElementsByTagName("script")[0]; | |
d.parentNode.insertBefore(b,d);a._i=[];a.init=function(b,c,f){function d(a,b){ | |
var c=b.split(".");2==c.length&&(a=a[c[0]],b=c[1]);a[b]=function(){a.push([b].concat( |