Skip to content

Instantly share code, notes, and snippets.

@rschuetzler
rschuetzler / Outlook2010GoogleCalendarSyncHack.ahk
Created August 24, 2012 22:59
Automatically click through the "Choose Profile" option with Google Calendar Sync and Outlook
while 1
{
IfWinExist Choose Profile
{
WinActivate
Send {Enter}
}
}
@rschuetzler
rschuetzler / evernoteadd.bat
Last active June 23, 2017 18:04
Batch script to allow adding notes to Evernote from Launchy
@ECHO OFF
rem Add item to Launchy Runner with:
rem Program: C:\path\to\evernoteadd.bat
rem Arguments: "$$" "$$"
rem The %~2 removes the opening and closing quotes in the argument
echo %~2 | "C:\Program Files (x86)\Evernote\Evernote\ENScript.exe" createNote /n "_INBOX" /i %1
@rschuetzler
rschuetzler / evernoteNoTitle.bat
Created June 29, 2013 18:04
Launcy script to add Evernote note without a title
@ECHO OFF
rem Add item to Launchy Runner with:
rem Program: C:\path\to\evernoteaddnotitle.bat
rem Arguments: "$$"
rem The %~2 removes the opening and closing quotes in the argument
echo %~1 | "C:\Program Files (x86)\Evernote\Evernote\ENScript.exe" createNote /n "_INBOX"
#!/usr/bin/python
# A Wake on LAN program that allows you to send magic packets over the Internet
import socket, struct
class Waker():
def makeMagicPacket(self, macAddress):
# Take the entered MAC address and format it to be sent via socket
splitMac = str.split(macAddress,':')
# Pack together the sections of the MAC address as binary hex
@rschuetzler
rschuetzler / gist:8869180
Created February 7, 2014 18:51
Get number of factors
library(nFactors)
ev <- eigen(cor(all.data[self.reports]))
ap <- parallel(subject = nrow(all.data), var = ncol(all.data[self.reports]),
rep = 100, cent = 0.05)
nS <- nScree(x = ev$values, aparallel = ap$eigen$qevpea)
plotnScree(nS)
\documentclass{article}
\title{This Is My First Document}
\author{Ryan Schuetzler}
\begin{document}
\maketitle
\section{Introduction (Header 1)}
@rschuetzler
rschuetzler / blog.bib
Created May 7, 2014 21:36
Example Bibliography
@article{ackoff_management_1961,
title = {Management Misinformation Systems},
volume = {14},
pages = {147-156},
number = {4},
journaltitle = {Management Science},
author = {Ackoff, R L},
date = {1961}
}
\documentclass{article}
\title{Now We're Citing}
\author{Ryan Schuetzler}
\usepackage[backend=bibtex,style=authoryear]{biblatex}
\addbibresource{library.bib}
\documentclass{article}
\title{Now We're Citing}
\author{Ryan Schuetzler}
\usepackage[backend=bibtex,style=authoryear]{biblatex}
\addbibresource{blog.bib}
\begin{document}
@rschuetzler
rschuetzler / figure.tex
Last active April 17, 2019 21:07
Basic code for creating a figure
\begin{figure}[ht]
\centering
\includegraphics{smiley.png}
\end{figure}