Skip to content

Instantly share code, notes, and snippets.

@andychase
andychase / minecraft_poster.js
Created October 3, 2015 22:22
Minecraft Users Online Skype Bot
// Minecraft Server status poster
// License: MIT
// Andy Chase
// Note: You MUST disable CSP on your web client for this to work
// Configuration
// -----------------------------------------------
// Change this (capture from a /message request in the skype web client)
var regToken = "registrationToken=?";
@andychase
andychase / py_earth_data.ipynb
Last active November 13, 2015 23:25
import earthdata idea
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andychase
andychase / cs_476_data_script.r
Last active April 5, 2017 21:26
cs_476_data_script.r
library(readr)
data <- read_csv("data.csv",
col_types = cols(date = col_datetime(format = "%FT%T")))
# costs <- read_csv("Cloud Provider Costs - Sheet1.csv")
normz <- function(column) { ( column - mean(column) ) / sd(column) }
# data <- merge(data, costs)
data[,c("nginx")] <- normz(getElement(data,"nginx"))
data[,c("sha256sum")] <- normz(getElement(data,"sha256sum"))
import sys
import csv
from collections import Counter
def get_themes(themes, themes_db):
for theme in themes:
percent = themes_db[theme] / len(list(themes_db.elements()))
yield f"{int(percent*100)}%", f"{theme.capitalize()}"
@andychase
andychase / keybase.md
Created September 6, 2020 00:03
keybase.md

Keybase proof

I hereby claim:

  • I am andychase on github.
  • I am andychase (https://keybase.io/andychase) on keybase.
  • I have a public key ASA6l6Qy9NmgBQHlsWJGXO1GBgAChEkbsQVWx_x1P77Y7Ao

To claim this, I am signing this object: