touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/seankross/womp.git
git push -u origin master
This file contains hidden or 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
| model | mpg | cyl | disp | hp | drat | wt | qsec | vs | am | gear | carb | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mazda RX4 | 21 | 6 | 160 | 110 | 3.9 | 2.62 | 16.46 | 0 | 1 | 4 | 4 | |
| Mazda RX4 Wag | 21 | 6 | 160 | 110 | 3.9 | 2.875 | 17.02 | 0 | 1 | 4 | 4 | |
| Datsun 710 | 22.8 | 4 | 108 | 93 | 3.85 | 2.32 | 18.61 | 1 | 1 | 4 | 1 | |
| Hornet 4 Drive | 21.4 | 6 | 258 | 110 | 3.08 | 3.215 | 19.44 | 1 | 0 | 3 | 1 | |
| Hornet Sportabout | 18.7 | 8 | 360 | 175 | 3.15 | 3.44 | 17.02 | 0 | 0 | 3 | 2 | |
| Valiant | 18.1 | 6 | 225 | 105 | 2.76 | 3.46 | 20.22 | 1 | 0 | 3 | 1 | |
| Duster 360 | 14.3 | 8 | 360 | 245 | 3.21 | 3.57 | 15.84 | 0 | 0 | 3 | 4 | |
| Merc 240D | 24.4 | 4 | 146.7 | 62 | 3.69 | 3.19 | 20 | 1 | 0 | 4 | 2 | |
| Merc 230 | 22.8 | 4 | 140.8 | 95 | 3.92 | 3.15 | 22.9 | 1 | 0 | 4 | 2 |
This file contains hidden or 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(tidyverse) | |
| fruit_prices <- tibble( | |
| Month = c("Jan", "Feb", "Mar"), | |
| Apples = c(1.79, 1.82, 1.8), | |
| Pears = c(1.29, 1.34, 1.5), | |
| Oranges = c(.89, .92, .85) | |
| ) | |
| # A typical mutate, create a new column that is the sum of three columns |
This file contains hidden or 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
| Welcome to Miniforge3 24.11.3-2 | |
| In order to continue the installation process, please review the license | |
| agreement. | |
| Please, press ENTER to continue | |
| >>> | |
| Miniforge installer code uses BSD-3-Clause license as stated below. | |
| Binary packages that come with it have their own licensing terms | |
| and by installing miniforge you agree to the licensing terms of individual |
This file contains hidden or 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
| let x = [0, 50, 100]; // Initial x-coordinates for the squares | |
| let y = [50, 100, 150]; // y-coordinates for the squares | |
| function setup() { | |
| createCanvas(windowWidth, 200); // Create a canvas | |
| } | |
| function draw() { | |
| background(220); // Clear the canvas with a gray background |
This file contains hidden or 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
| #!/bin/bash | |
| # Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04 | |
| # Inspired from https://gist.github.com/faleev/3435377 | |
| # Remove any existing packages: | |
| sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
| # Get the dependencies (Ubuntu Server or headless users): | |
| sudo apt-get update |
This file contains hidden or 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
| function colors = pal_hue(n, s, v) | |
| % Generates a palette of n evenly spaced colors with default settings | |
| % similar to R's scales::pal_hue(). | |
| % s is the saturation (default 0.75), v is the value (brightness, default 0.95). | |
| % The hue component varies from 0 to 1. | |
| if nargin < 2 | |
| s = 0.75; % Default saturation | |
| end | |
| if nargin < 3 |
This file contains hidden or 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
| "%p%" <- function(left, right){ | |
| paste(left, right) | |
| } |
Make sure homebrew is all up to date.
Make sure you have venv working, I think it just comes with python3.
Start a brand new RStudio project and open it in RStudio.
In the terminal:
python -m venv .venv
This file contains hidden or 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
| # The Sieve of Eratosthenes | |
| # Given a number greater than zero this function will return a list of primes between 2 and the number given as argument. | |
| sieveOfEratosthenes <- function(num){ | |
| values <- rep(TRUE, num) | |
| values[1] <- FALSE | |
| prev.prime <- 2 | |
| for(i in prev.prime:sqrt(num)){ | |
| values[seq.int(2 * prev.prime, num, prev.prime)] <- FALSE | |
| prev.prime <- prev.prime + min(which(values[(prev.prime + 1) : num])) |
NewerOlder