Skip to content

Instantly share code, notes, and snippets.

@nickbarnwell
nickbarnwell / Hook.rb
Created April 30, 2012 19:48
Podio Hook Creation with Rails 3
class Hook < Podio::Hook
end
@nickbarnwell
nickbarnwell / podio_objs.py
Created May 28, 2012 22:28
Podio Commentable Explanation
class Commentable(object):
#anything that inherits from this can be commentable
@property
def comment_type(self):
return self.comment_type
@property
def comment_url(self)
return "/comment/%(comment_type)s/%(id)s" % vars
@nickbarnwell
nickbarnwell / pymode.py
Created July 19, 2012 05:22
Scrape the Vogue.co.uk CDN for Runway Shows
import requests, os
import multiprocessing
from PIL import Image
from StringIO import StringIO
from BeautifulSoup import BeautifulSoup
class VogueGallery(object):
def __init__(self, url):
self.base_url = 'HTTP://vogue.co.uk'
self.page = requests.get(url).content
@nickbarnwell
nickbarnwell / xmonad.hs
Created August 31, 2012 18:20
xmonad config
import XMonad
import XMonad.Config.Gnome
import XMonad.Util.EZConfig
import XMonad.Actions.CycleWS
import XMonad.Actions.GridSelect
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.UrgencyHook
import XMonad.Layout.NoBorders
import XMonad.Layout.ThreeColumns
import XMonad.Layout.Reflect
@nickbarnwell
nickbarnwell / intern_parser.py
Last active December 11, 2015 19:38
Python script for parsing the MSFT S13 Intern Start Date Document
import csv
import string
import sys
import re
RE_DATE = re.compile("([a-zA-Z]+) (\d+)$")
RE_INTERN = re.compile("(.+) \((.+)\)")
def parse_intern(line):
name, data = RE_INTERN.match(line).group(1,2)
# Based on the example properties given at http://logging.apache.org/log4j/1.2/manual.html
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=DEBUG,A1,file
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.file=org.apache.log4j.FileAppender
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
function! Viadict(word, thesaurus)
if !exists('g:viadict_window')
let g:viadict_window = bufnr('viadict_window', 1)
endif
if bufnr('%') != g:viadict_window
execute "below sb " . g:viadict_window
endif
(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(package-initialize)
(defvar my-packages '(clojure-mode
clojure-test-mode
paredit))

Don't want to read? Jump to the tl;dr.

Please Respond by Saturday (3/29)

TWS Project Structure

![Let’s get down to business][mulan-business].

TWS Platform Overview

title author
Working with Apiary
Nick Barnwell <[email protected]>

From its inception the [OneNote API][dondc] team has been committed to delivering developers a modern, first-class developer experience. Ardent admirers of [Stripe][stripe], [Twilio][twilio], and [Akamai's][akamai-apiary] intuitive APIs and documentation we were keen to provide a similar experience when we launched our [completely redesigned developer portal][dondc]. Thus began