Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am markovuksanovic on github.
  • I am mvuksano (https://keybase.io/mvuksano) on keybase.
  • I have a public key ASDWflKd0cgPVQCGBW8Icyjco8DDlCScEeuzfe1_bZvEpAo

To claim this, I am signing this object:

@mvuksano
mvuksano / my-ga.html
Created May 5, 2017 01:47
Google Analytics custom element
<script>
document.registerElement('my-ga', {
prototype: {
__proto__: HTMLElement.prototype,
attributeChangedCallback: function() {
var key = this.getAttribute('key');
if(!key) return;
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@mvuksano
mvuksano / my-ga1.html
Created May 5, 2017 01:34
Google analytics custom element
<script>
document.registerElement('my-ga', {
prototype: {
__proto__: HTMLElement.prototype,
attributeChangedCallback: function() {
var key = this.getAttribute('key');
if(!key) return;
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
{
"10b8c2a2-f09d-4271-bca8-54aeb758ccaf" : {
"firstName": "Marko",
"lastName": "Vuksanovic"
},
"c9dc9614-784f-43fe-b1d9-333fcf0cdca5" : {
"firstName": "Amanda",
"lastName": "Woo"
},
"4a14469c-6d11-41d4-9a6a-cb52de57f92b" : {
@mvuksano
mvuksano / tls-dashboard-docker-compose.yml
Created July 29, 2016 01:30
Docker-compose for tls-dashbaord
version: '2'
services:
"tls-dashboard":
build: .
image: tls-dashboard
ports:
- "8080:8080"
volumes:
- /root/tls-dashboard/web_service

Keybase proof

I hereby claim:

  • I am markovuksanovic on github.
  • I am markovuksanovic (https://keybase.io/markovuksanovic) on keybase.
  • I have a public key whose fingerprint is 2029 C2EE B9D1 0C12 F8A3 58A1 5B42 C34D 6EBB 9440

To claim this, I am signing this object:

function updateData() {
svg.selectAll('rect')
.data(d3.entries(population_update))
.transition() // add this line
.attr('width', function(d, i) {
return d.value;
});
}
function updateData() {
svg.selectAll('rect')
.data(d3.entries(population_update))
.attr('width', function(d, i) {
return d.value;
});
}
var svg = d3.select('svg')
.attr('width', canvas_width);
svg.selectAll('rect')
.data(d3.entries(population))
.enter()
.append('rect')
.attr('y', function(d, i) {
return 40*i + 10;
})
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Day 4</title>
</head>
<body>
<button>Update</button>