Skip to content

Instantly share code, notes, and snippets.

@elliotfiske
elliotfiske / Office365_GetInternetMessageHeaders.json
Created January 3, 2019 01:28
Import this as a Postman collection to test Office365 message-getting. Don't forget to put in your own Bearer token, or another form of authentication.
{
"info": {
"_postman_id": "084e1aa4-990f-47be-a872-8687ad49f7f8",
"name": "Office365",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Office365 StackOverflow thing",
"request": {
@elliotfiske
elliotfiske / MCPart+NSCoding.swift
Created March 22, 2017 05:35
Demonstrates serialization of monster body parts
//
// MCPart+NSCoding.swift
// MonsterMe
//
// Created by Elliot Fiske on 3/15/15.
// Copyright (c) 2015 Monster Create. All rights reserved.
//
// Implements NSCoding for MCParts - lets us convert an MCPart object to an NSData object and back again
import Foundation
@elliotfiske
elliotfiske / rect.js
Last active August 29, 2015 14:15
Rectangle Intersection Code Challenge
/**
* Rectangle class. Origin at (x, y), with specified width and height.
* bounceTime lets us animate bounciness on mouse down.
*/
function Rect(x, y, width, height) {
this.x = x;
this.y = y;
this.x2 = function() { return this.x + this.width };
this.y2 = function() { return this.y + this.height };
this.height = height;