This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ts from 'typescript' | |
import { readFile, stat, unlink, writeFile } from 'fs/promises' | |
import * as path from 'path' | |
import { faker } from '@faker-js/faker' | |
interface Column { | |
columnType: string | |
default?: any | |
fakeMethod?: string // Optional custom faker method | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(rvest) | |
library(tidyverse) | |
library(tidygraph) | |
library(ggraph) | |
wc_squads <- read_html("https://en.wikipedia.org/wiki/2018_FIFA_World_Cup_squads") %>% | |
html_table() | |
teams <- c("Egypt", "Russia", "Saudi Arabia", "Uruguay", | |
"Iran", "Morocco", "Portugal", "Spain", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(ggthemes) | |
ggplot(mtcars, aes(wt,mpg))+ | |
geom_point()+ | |
theme_tufte()+ | |
theme(axis.ticks = element_blank())+ | |
xlab("Car weight (lb/1000)")+ | |
ylab("Miles per gallon of fuel")+ | |
scale_x_continuous(breaks = round(as.vector(quantile(mtcars$wt)), digits = 1))+ |