Skip to content

Instantly share code, notes, and snippets.

View Demeter's full-sized avatar

demeter Demeter

  • Phoenix Arizona
  • 19:00 (UTC -07:00)
View GitHub Profile
@Demeter
Demeter / gist:0e4afbebd84d3fe7062b6a6de5aa05fc
Created May 7, 2021 17:35 — forked from spudbean/gist:1558257
Look of disapproval and other emoticons
ಠ_ಠ
( ͡° ͜ʖ ͡°)
¯\_(ツ)_/¯
(╯°□°)╯︵ ┻━┻
http://www.fileformat.info/convert/text/upside-down.htm
WRTTN http://wrttn.me/30dbfd/
Unicode Emoticons

Keybase proof

I hereby claim:

  • I am demeter on github.
  • I am ellie (https://keybase.io/ellie) on keybase.
  • I have a public key whose fingerprint is F845 257D 4679 6465 3815 FFF6 9117 83FB 4845 E4DD

To claim this, I am signing this object:

doInstall <- TRUE # Change to FALSE if you don't want packages installed.
toInstall <- c("plyr", "ggplot2")
if(doInstall){install.packages(toInstall, repos = "http://cran.r-project.org")}
lapply(toInstall, library, character.only = TRUE)
ANES <- read.csv("http://www.oberlin.edu/faculty/cdesante/assets/downloads/ANES.csv")
head(ANES)
ANES$PID3 <- factor(ANES$pid7) # Convert to three-level Party ID:
levels(ANES$PID3) <- c("Dem", "Dem", "Dem", "Ind", "Rep", "Rep", "Rep")
@Demeter
Demeter / gist:4326867
Created December 18, 2012 10:16 — forked from ibjhb/gist:1667543
Updated version with extra unpleasantries
Dear soon-to-be-former user,
We've got some fantastic news! Well, it's great news for us anyway. You, on
the other hand, are fucked.
We've just been acquired by:
[ ] Facebook
[ ] Google
[ ] Twitter
@Demeter
Demeter / ben.py
Created January 10, 2012 08:37 — forked from fweez/ben.py
Benfords law bins for within directory file sizes
#!/usr/bin/env python
import os
import subprocess
# First, build up the results file. it'll have the form:
# 110 vidioc-g-dv-preset.xml
linecount_cmd = "rm results; for i in *; do find $i -execdir wc -c '{}' \; " + \
">> results; done;"
os.system(linecount_cmd)
@Demeter
Demeter / CommentBlacklistOne
Created September 18, 2011 04:58
Comment Blacklist
# PART ONE
# As of January 2010
# List compiled by Oscar. (oscar at notagrouch dot com)
# http://notagrouch.com/wp-content/uploads/2009/12/wordpress-blacklist-words.txt
# Latest list available at http://notagrouch.com/files/wordpress-blacklist-words
#
# Usage:
# Copy the list of words below into your WordPress installation.
# It is recommended to use this list for the "Comment Moderation" section only
# (go to //wp-admin/options-discussion.php while logged in as an admin)