Skip to content

Instantly share code, notes, and snippets.

@ksur
ksur / faker_zapis_danych_testowych.ipynb
Created October 30, 2023 14:19
faker_zapis_danych_testowych.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ksur
ksur / faker_generowanie_danych_testowych_przeglad_metod.ipynb
Created October 30, 2023 14:10
faker_generowanie_danych_testowych_przeglad_metod.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ksur
ksur / faker_polskie_numery_telefonow.ipynb
Created October 30, 2023 14:08
faker_polskie_numery_telefonow.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ksur
ksur / numpy-operacje-na-tablicach.ipynb
Created July 9, 2023 04:54
Numpy. Operacje na tablicach
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ksur
ksur / piwik-pro-api.ipynb
Last active April 30, 2023 13:04
Piwik PRO API.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ksur
ksur / ga4_data_api.rmd
Last active November 3, 2022 11:32
R Notebook. Pobranie danych GA4 poprzez Data Reporting API
---
title: "R Notebook"
output: html_notebook
---
Wczytanie biblioteki googleAnalyticsR
```{r}
library(googleAnalyticsR)
```
Autoryzacja dla wybranego konta z dostępem do Google Analytics 4 property
# Skrypt tworzy połączenie z API Universal Analytics
# Pobiera przykładowe dane i eksportuje je do pliku csv
# wczytaj bibliotekę GoogleAnalyticsR
library(googleAnalyticsR)
# autoryzacja, ustanowienie połączenia z kontem Google (wykorzystywanym do Google Analytics)
ga_auth(email="name.surname@someemail.com")
# pobranie listy kont wraz z danymi widoków
@ksur
ksur / pandas_column_change_names.ipynb
Created September 6, 2022 10:37
Pandas_column_change_names.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# wczytaj bibliotekę GoogleAnalyticsR
library(googleAnalyticsR)
# autoryzacja, ustanowienie połączenia z kontem Google (przypisanym do Google Analytics)
ga_auth(email="your_email@mail.com")
# zdefiniowanie numeru property
my_property_id <- 123456789
# pobranie danych z GA i przypisanie do zmiennej data
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>pyscript</title>
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
<py-env>