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
# ------------------------------------------------------------ | |
# Script: mark-rproj-user-ignored.ps1 | |
# Description: Recursively searches for .Rproj.user or .git folders in R | |
# projects under a given directory and marks them to | |
# be ignored by Dropbox using NTFS alternate data streams. | |
# | |
# Author: Mason Garrison | |
# Created: 2025-08-04 | |
# ------------------------------------------------------------ |
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
// ==UserScript== | |
// @name Wikipedia Classic Edit Summary Autofill | |
// @namespace user-custom | |
// @version 1.0 | |
// @description Auto-fills Cat-a-lot edit summary on category-related pages | |
// @match https://en.wikipedia.org/wiki/Category:* | |
// @match https://en.wikipedia.org/w/index.php?search=* | |
// @match https://en.wikipedia.org/w/index.php?title=Category: | |
// @downloadURL https://gist.githubusercontent.com/smasongarrison/cf44eb29a3c862ffccfbec1b97e9e114/raw/Classic_Edit_Summary_Autofill.js | |
// @updateURL https://gist.githubusercontent.com/smasongarrison/cf44eb29a3c862ffccfbec1b97e9e114/raw/Classic_Edit_Summary_Autofill.js |
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
--- | |
title: "R Notebook" | |
output: html_notebook | |
editor_options: | |
chunk_output_type: inline | |
--- | |
```{r} | |
install.packages(c("magick", "fs", "purrr", "dplyr")) |
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
// ==UserScript== | |
// @name Reqbot Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Autofill reqbot template on requests.php | |
// @author Slyyxp | |
// @match https://jpopsuki.eu/forums.php?action=new&forumid=28 | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=jpopsuki.eu | |
// @grant none | |
// ==/UserScript== |
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(mvtnorm) | |
### correlation for the bivariate normal distribution | |
rho <- 0.4 | |
### number of points for x and y at which to evaluate the density of the bivariate normal distribution | |
n <- 501 | |
sigma <- matrix(c(1,rho,rho,1), nrow=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
\documentclass{beamer} | |
\usetheme{Singapore} | |
\usepackage{tipa} | |
%% Make the r-code small | |
\ifdefined\knitrout | |
\renewenvironment{knitrout}{\begin{footnotesize}}{\end{footnotesize}} | |
\else | |
\fi |
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
## | |
## Example code for time-to-event analysis in R | |
## [email protected] | |
## Dec 28, 2012 | |
## | |
## joineR package: analyzing longitudinal data where the response | |
## from each person is a time-sequence of repeated measurements | |
## and we are interested in a possibly censored time-to-event outcome | |
## | |
## example: repeated ad viewings leading to a sale |
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
# | |
# Functions to make ggplot KM survivor curves made with survfit() in library(survival) | |
# | |
# code written by Ramon Saccilotto | |
# and included in his ggplot2 tutorial | |
# 2010-12-08 | |
# define custom function to create a survival data.frame | |
createSurvivalFrame <- function(f.survfit){ | |
# initialise frame variable |