Skip to content

Instantly share code, notes, and snippets.

@muellerzr
muellerzr / SettingUpCondaUbuntuSubsystem.md
Last active September 23, 2021 14:48
Explicit directions for how I setup Ubuntu Subsystem with conda, pip, python, and had it mounted from the D directory

Installing and configuring conda, jupyter, etc on wsl2

  1. Install Ubuntu from the Windows Store
  2. Setup changing the default opening directory (based on this)
    1. Open Ubuntu
    2. sudo vim /etc/passwd
    3. Type "i" to enter the insert mode so we can make changes
    4. Find your account's line, should start with your username. Eg mine was muellerzr:x:1000, :home/muellerzr/:bin/bash
    5. We care about changing the /home part. Change it to /mnt/c to use the "C" drive, /mnt/d to use the "D" drive, and so forth
  3. Save our changes with :wq and enter
@akashpalrecha
akashpalrecha / an-inquiry-into-matplotlib-figures.ipynb
Last active December 27, 2024 14:38
An Inquiry into Matplotlib's Figures, Axes, subplots and the very amazing GridSpec!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aagarw30
aagarw30 / app.R
Created February 12, 2018 06:13
Demo - side by side input widgets in R Shiny
library(shiny)
ui <- fluidPage(
tags$div(sliderInput("slide1", "Slider1", min = 0, max=10, value=4), style="display:inline-block"),
tags$div(sliderInput("slide1=2", "Slider2", min = 0, max=10, value=4), style="display:inline-block"),
tags$div(sliderInput("slide3", "Slider3", min = 0, max=10, value=4), style="display:inline-block")
)
library("ggplot2") # Must use Dev version as of 03/18/16
library("gridExtra")
library("extrafont") # for font selection
library("dplyr") # for data preperation
library("cowplot") # for combining plots
# Prepare data for plotting
# data from Zubrow, E.B.W. (1974), Population, Contact,and Climate in the New Mexican Pueblos
# prepared as a long format to facilitate plotting
year <- c(1760, 1790, 1797, 1850, 1860, 1889, 1900, 1910, 1950)