Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
---
title: "Causal Impact"
output: causal_impact_notebook
---
```{r}
install.packages("devtools")
install.packages("curl")
install_github("skardhamar/rga")
install.packages("CausalImpact")
```
@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;}})();
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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();}})();
@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();}})();
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.