Skip to content

Instantly share code, notes, and snippets.

@jwinget
jwinget / game_of_life.R
Created February 26, 2023 02:04
Conway's game of life in R
start_game <- function(side_length) {
# Boards are always square
x <- rep(c(TRUE, FALSE), length.out = side_length^2)
# Generate random probability for cells to start alive or dead
p <- runif(min = 0, max = 1, n = side_length^2)
# Set up the board
board <- sample(x, size = side_length^2, replace = TRUE, prob = p)
[Incursus, Dual SAR]
Magnetic Field Stabilizer II
Nanofiber Internal Structure II
Small Armor Repairer II
Small Armor Repairer II
1MN Microwarpdrive II
J5b Phased Prototype Warp Scrambler I
Small Capacitor Booster II,Navy Cap Booster 50
@jwinget
jwinget / beamerthemeLankton.sty
Created January 2, 2014 21:43
Beamer theme Lankton, modified slightly
% adapted Philippe Dreuw and Thomas Deselaers
% further adapted from edits by James Malcolm
% finally, Shawn Lankton made some edits (www.shawnlankton.com)
\ProvidesPackage{beamerthemeLankton}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<presentation>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@jwinget
jwinget / poster.tex
Last active January 2, 2016 00:59
A basic beamerposter file
\documentclass[final]{beamer}
\mode<presentation>{\usetheme{Lankton}}
\usepackage{amsmath,amsfonts,amssymb,pxfonts,eulervm,xspace}
\usepackage[scaled]{helvet}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{siunitx}
\graphicspath{{./figures/}}
\usepackage[orientation=landscape,size=a0,scale=1.4,debug]{beamerposter}