Skip to content

Instantly share code, notes, and snippets.

@natzir
natzir / Sistrix-Export-Clusters.js
Created August 9, 2021 13:19
Bookmark to extract Sistrix keyword clusters
javascript:(function(){output="<html><head><title>Sistrix Clusters by @Natzir9</title></head><body><button onclick=\"tableToExcel('sistrixTable','Sistrix Clusters')\">Export Sistrix Clusters</button><table%20id=\"sistrixTable\"><tr><th>Keyword</th><th>Count</th><th>Volume</th></tr>";var myValue=document.getElementById('sidebar').getElementsByClassName('value number');for(var i=0;i<myValue.length;i+=3){output=output+"<tr><td>"+myValue[i].innerText+"</td><td>"+myValue[i+1].innerText+"</td><td>"+Math.round(myValue[i+2].innerText)+"</td></tr>";};output+="</table>";with(window.open()){document.write(output);document.body.appendChild(document.createElement('script')).src='https://bl.ocks.org/insin/raw/1031969/tableToExcel.js';document.close();}})();
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natzir
natzir / Google-Image-Entity-Extractor.js
Last active December 19, 2022 11:40
Google Images Entity Extractor
javascript:(function(){output="<html><head><title>Google Images Entity Extractor</title></head><body>";var imageEntity = document.getElementsByClassName(" PKhmud sc-it tzVsfd");for(var i = 0; i < imageEntity.length; i++){var entity = imageEntity[i].innerText;output+=entity+"<br />";};with(window.open()){document.write(output);document.close();}})();
@natzir
natzir / Semrush-Export-Clusters.js
Last active December 19, 2022 11:40
Export SEMRush Keyword Clusters
javascript:(function(){output="<html><head><title>Semrush Clusters Extractor</title></head><body><button onclick=\"tableToExcel('semrushTable', 'SEMRush Clusters')\">Export SEMRush Clusters</button><table%20id=\"semrushTable\"><tr><th>Keyword</th><th>Volume</th></tr>";var myCluster = document.getElementsByClassName('sm-groups-item-layout');for(var i = 1; i < myCluster.length; i++){var keyword = myCluster[i].innerText.replace(/,/g,'');output=output + "<tr><td>" + keyword.replace(/\s/g,'</td><td>') +"</tr></td>";};output+="</table>";with(window.open()){document.write(output);document.body.appendChild(document.createElement('script')).src='https://bl.ocks.org/insin/raw/1031969/tableToExcel.js';document.close();}})();
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natzir
natzir / Sistrix-This.js
Last active December 19, 2022 11:40
Sistrix This
javascript:(function(){var query,db,hostname,hostlength;hostlength = window.location.hostname.split(".").length;if (hostlength == 2){hostname=window.location.hostname.split(".")[0]+'.'+window.location.hostname.split(".")[1];}else if (hostlength == 3){hostname=window.location.hostname.split(".")[1]+'.'+window.location.hostname.split(".")[2];}else {hostname=window.location.hostname.split(".")[1]+'.'+window.location.hostname.split(".")[2]+'.'+window.location.hostname.split(".")[3];}query=prompt("Search keyword to see its ranking history for this domain (leave it empty to only see the domain visibility)", "");db=prompt("Sistrix data base (es, uk, us, de, it, fr, nl, pl, se, at, ch, br, tr)", "");if(query==null || query.length==0){location.href='https://'+db+'.sistrix.com/'+hostname;}else{location.href='https://'+db+'.sistrix.com/seo/ranking_history/domain/'+hostname+'/keyword/'+query;}})();
---
title: "Causal Impact"
output: causal_impact_notebook
---
```{r}
install.packages("devtools")
install.packages("curl")
install_github("skardhamar/rga")
install.packages("CausalImpact")
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.