Skip to content

Instantly share code, notes, and snippets.

@JosiahParry
JosiahParry / single-page-pkg-doc.R
Created April 14, 2024 16:13
Create a single page function reference using base R and quarto.
# Current limitation is that the images that are used are relative to the
# package lib.loc / help so what might be idea lis to extract the image
# and base64 encode them using {b64}
pkg_to_quarto_doc <- function(pkg, out_path = paste0(pkg, ".qmd"), ...) {
tmp <- tempfile()
base_doc <- tools::pkg2HTML(pkg, out = tmp, ...)
# read in html
og <- rvest::read_html(tmp)
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
using System.Collections.Generic;
using System.IO;
// Scene selection
@LotteMakesStuff
LotteMakesStuff / PlayerLoop.cs
Last active September 24, 2024 06:38
Player Loop Visualizer: Built to explore the new PlayerLoopSystem api in Unity 2018.1b2. This tool shows you all the PlayerLoop systems that unity uses to update a frame, and demos how to add your own and even remove systems from the player loop. For more info see the patreon post https://www.patreon.com/posts/unity-2018-1-16336053
// Put this in an editor folder
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.Experimental.LowLevel;
using UnityEngine.Profiling;
@leeper
leeper / WindowsThings
Last active November 18, 2019 14:47
Things I like installed on my Windows laptop
thing,chocolatey_name
Adobe Reader,adobereader
ccleaner,ccleaner
chocolatey,
Chrome,google-chrome-x64
ConEmu,conemu
curl,curl
cutepdf,cutepdf
Dropbox,dropbox
gettext,
@bertvv
bertvv / pandoc.Makefile
Last active November 24, 2022 08:55
Makefile for Markdown -> PDF using pandoc
# Generate PDFs from the Markdown source files
#
# In order to use this makefile, you need some tools:
# - GNU make
# - Pandoc
# - LuaLaTeX
# - DejaVu Sans fonts
# Directory containing source (Markdown) files
source := src