Skip to content

Instantly share code, notes, and snippets.

View PythonCoderUnicorn's full-sized avatar
🐼

Zane (She/They) PythonCoderUnicorn

🐼
View GitHub Profile
@Loud-Cat
Loud-Cat / Wormhole.pde
Created December 19, 2023 19:05
"Wormhole" simulation in Processing
int FRAMES = 250;
void setup() {
size(500, 500, P3D);
ellipseMode(RADIUS);
}
void draw() {
background(50);
translate(width/2, height/2, 0);
@rpodcast
rpodcast / video_links.txt
Created August 20, 2022 18:14
rstudioconf(2022) video links
@tanho63
tanho63 / tenthousandpeople.R
Created January 2, 2022 03:26
Genuary 2022.01 - Ten Thousand People
library(ggplot2)
library(ragg)
library(systemfonts)
library(tantastic) # tanho63/tantastic
library(tidyverse)
# Weepeople font https://github.com/propublica/weepeople/
colours <- c("#5E4AE3","#44FFD1","#EFCA08","#FF3366")
crossing(
@tylermorganwall
tylermorganwall / submarine_cable_map.R
Last active July 6, 2024 21:07
Submarine Cable Map Dataviz
library(geojsonsf)
library(sf)
library(rayrender)
#Data source: https://github.com/telegeography/www.submarinecablemap.com
cables = geojson_sf("cable-geo.json")
cablescene = list()
counter = 1
for(i in 1:length(cables$geometry)) {
@matt-dray
matt-dray / squarenicode.R
Last active August 19, 2021 07:44
Print a little square of multicoloured unicode blocks using R, {purrr} and {multicolor}
# Print a square of multicoloured unicode blocks
# Matt Dray, Aug 2021
# Related posts on rostrum.blog:
# https://www.rostrum.blog/2021/06/26/emojiscape/
# https://www.rostrum.blog/2021/06/28/pixel-art/
# https://www.rostrum.blog/2021/08/10/dehex/
# Install if you haven't already
install.packages("purrr") # for function iteration
@djnavarro
djnavarro / .Rprofile
Created June 24, 2021 11:30
my .Rprofile settings
if(interactive()) {
cat("\014") # clear screen
cli::cli_text("")
cli::cli_text(R.version$version.string)
cli::cli_text("")
cli::cli_alert_success(
paste0(
@jjlumagbas
jjlumagbas / secret.py
Created November 17, 2016 01:27
Hide user input in Python
import getpass
age = getpass.getpass('Enter your age:')
print("Entered age is: " + age)
@mwaskom
mwaskom / seaborn_dark_background.ipynb
Created December 3, 2015 19:49
Use seaborn with a dark background, if you like that sort of thing.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LKS90
LKS90 / cheatsheet.md
Last active June 3, 2024 14:35
Cheatsheet for LaTex, using Markdown for markup. I use this with atom.io and markdown-preview-plus to write math stuff

Description

Cheatsheet for LaTex, using Markdown for markup. I use this with atom.io and 📦markdown-preview-plus to write math stuff. 📦keyboard-localization is necessary when using an international layout (like [swiss] german).

Further Reference and source: ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf

Example expressions / functions