Skip to content

Instantly share code, notes, and snippets.

View nhunsaker's full-sized avatar

Nathan O'Brien nhunsaker

  • BuzzFeed & N8+US, Inc
  • Minneapolis, MN USA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nhunsaker on github.
  • I am nathanobrien (https://keybase.io/nathanobrien) on keybase.
  • I have a public key whose fingerprint is 1AF5 19B6 5317 B83B 0CB3 2C4C 2EBE 6C46 66F6 461E

To claim this, I am signing this object:

window.PH = {
remoteWindow: null,
onWindowOpen: new Event('PH.onWindowOpen'),
onWindowClose: new Event('window.PH.onWindowClose'),
watcherJob: null,
env: null,
props: function() {
return ['bfn', 'url', 'type', 'title', 'description'];
},
window.PH = {
remoteWindow: null,
onWindowOpen: new Event('PH.onWindowOpen'),
onWindowClose: new Event('window.PH.onWindowClose'),
watcherJob: null,
env: null,
props: function() {
return ['bfn', 'url', 'type', 'title', 'description'];
},
import tornado.httpclient
import json
import logging
from lib.rig import settings
from handlers.base import BaseHandler
class HomeHandler(BaseHandler):
import tornado.httpclient
import json
import logging
from lib.rig import settings
from handlers.base import BaseHandler
class HomeHandler(BaseHandler):
<h1>hello world</h1>
import { connect } from 'react-redux';
import RemoteView from './view';
import { HAS_READ_WRITE_PERMISSION } from '../../lib/permissions';
import { PH_AUTH_URL, IS_DEV_OR_STAGE } from '../../lib/env_vars';
import { Cookies } from 'react-cookie';
import {
receiveFacebookLogin,
receiveFacebookLogout,
receiveFacebookAccounts,
receiveFacebookPermissions,
import PropTypes from 'prop-types';
import React from 'react';
import FacebookLogin from '../../components/facebook_login';
import DraftDetail from '../drafts/detail';
import DraftList from '../drafts/list';
import Toast from '../../components/toast';
import Loader from '../../components/loader';
import PubHubLoader from '../../components/pubhub-loader';
import Icons from '../../components/icons';
import cn from 'classnames';
---
default:
...
navigation:
recipes:
loc: /
title: Recipes
submenu:
- key: halloween
category: occasions
@nhunsaker
nhunsaker / txt
Last active March 14, 2019 19:18
instagram_video_publish_now_curl
curl -X POST \
http://dev.buzzfeed.io:33005/pubhub/drafts \
-H 'Content-Type: application/json' \
-H 'Postman-Token: e4f660d9-bbd6-416f-9968-97fb4559527b' \
-H 'X-Auth-Token: {insert token}' \
-H 'X-Forwarded-Email: your.email@buzzfeed.com' \
-H 'X-Forwarded-User-Id: 1' \
-H 'X-Send-To-Platform: true' \
-H 'cache-control: no-cache' \
-d '{