Skip to content

Instantly share code, notes, and snippets.

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 <nib@microsoft.com>

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

def headers
{
:'Authorization' => "Bearer tokenString"
}
end
def create_page(section_id)
html_part = <<-eos
<!DOCTYPE html>
<html>
def headers
{
:'Authorization' => "Bearer tokenString"
}
end
def create_page(section_id)
html_part = <<-eos
<!DOCTYPE html>
<html>
<html lang="en-US">
<head>
<title data-tag="to-do:completed">Notetags Examples</title>
<meta name="created" content="2014-10-17T00:00Z">
</head>
<body>
<h1 data-tag="important">Paragraphs with predefined Notetag</h1>
<p data-tag="to-do">Paragraph with Notetag to-do (data-tag="to-do")</p>
<p data-tag="important">Paragraph with Notetag important (data-tag="important")</p>
<p data-tag="question">Paragraph with Notetag question (data-tag="question")</p>
v3

Have fun.

Seriously. We’re bringing people together. It’s meant to be enjoyable. Experiment. Make mistakes. Own our actions. Reflect. Grow. Reflect. Grow. Reflect. Grow. Repeat.

Put others first.

We know that if we have others’ backs first, others will have ours when we need it, so we keep the perspective long term and practice generosity, always.

Do it together.

We achieve more, grow more from perspective, remain more humble, come up with more creative ideas, and have more fun together than we do alone.

@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