Skip to content

Instantly share code, notes, and snippets.

View philwebster's full-sized avatar

Phil Webster philwebster

  • Apple
  • San Francisco, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am philwebster on github.
  • I am philwebster (https://keybase.io/philwebster) on keybase.
  • I have a public key whose fingerprint is 2B4B B5B7 5C0F 0433 29AF D581 29AB 9F44 8CD6 5AD2

To claim this, I am signing this object:

@philwebster
philwebster / move.scpt
Created April 16, 2016 00:12
Applescript to move and resize windows so they are just on-screen. Need to grant assistive access to Script Editor in System Preferences to run.
tell application "Finder"
set _bounds to bounds of window of desktop
set _screenWidth to item 3 of _bounds
set _screenHeight to item 4 of _bounds
tell application "System Events"
repeat with theProcess in processes
if not background only of theProcess then
set theWindows to windows of theProcess
repeat with w in theWindows
@philwebster
philwebster / gist:4760831
Last active December 12, 2015 10:39
4 Set Venn Diagram template with region labels using TikZ
\documentclass[11pt, oneside]{article}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\definecolor{myRed}{RGB}{230,20,37}
\definecolor{myGreen}{RGB}{19,139,74}
\definecolor{myOrange}{RGB}{239,103,27}
\definecolor{myBlue}{RGB}{21,69,153}