1 X 2 X 3 X ... X 2018
My computer solves for the above product and finds its digit sum (sum of all its digits). It then repeats this process of calculating the digit sum until only one digit remains.
What digit is that?
# Radar Plots | |
# Example: consumption of pure alcohol by type of beverage | |
library(tibble) | |
# Download data ----------------------------------------------------------- | |
# Data by country and type of beverage | |
url <- "http://apps.who.int/gho/athena/data/data-text.csv?target=GHO/SA_0000001398&profile=text&filter=COUNTRY:*;REGION:EUR;ALCOHOLTYPE:*" | |
# Download and read files |
# Code to generate radar plot. | |
# Load required data and variables | |
source("alcohol_data_download.R") | |
source("data_cleaning.R") | |
# functions --------------------------------------------------------------- | |
library(ggplot2) |
# Whatsapp's data visualization | |
# by: Rodrigo Hernández Mota | |
# file name: dataviz_whatsapp.R | |
# V.1.0.0 | |
# General structure | |
# This file was structured as data exploration process | |
# was developing. For such reason, the main sections | |
# contained and the visualizations are divided in: | |
# - word frequency |
# Whatsapp's data visualization functions and data cleaning | |
# by: Rodrigo Hernández Mota | |
# file name: functions_whatsapp.R | |
# V.1.0.0 | |
library(tibble) | |
library(tidyr) | |
# palette_colors ---------------------------------------------------------- | |
# This function returns a vector of colours (character- HEX number) |
# INVERSE FUNCTION | |
# by: Rodrigo Hernández Mota | |
# created in: 29/04/2016 | |
# last modify: 02/05/2016 | |
source("generate_dataset.R") | |
library(ggplot2) | |
library(tibble) | |
library(tidyr) |
# Example of inverse function | |
# Generating x-axis, pdf and cdf numeric values. | |
# last modifyed: 29/04/2016 | |
library(ggplot2) | |
library(tibble) | |
library(tidyr) | |
%matplotlib inline | |
from scipy.integrate import odeint | |
import matplotlib.pyplot as plt | |
import numpy as np | |
# Print function | |
def print_results(soln, time): | |
show = 5 | |
def get_head_and_tail(vector): |
1 X 2 X 3 X ... X 2018
My computer solves for the above product and finds its digit sum (sum of all its digits). It then repeats this process of calculating the digit sum until only one digit remains.
What digit is that?
Instructions to create an ssh connection into the windows subsystem for linux.
version: "3" | |
services: | |
# KAFKA RELATED SERVICES | |
zookeeper: | |
image: confluentinc/cp-zookeeper:5.2.1 | |
hostname: zookeeper | |
container_name: zookeeper | |
ports: |