Skip to content

Instantly share code, notes, and snippets.

View DanAncona's full-sized avatar

Dan Ancona DanAncona

  • Simple Revolutions
  • San Francisco, CA
View GitHub Profile
Oct. 27, 2006: "[Obama] should run in '08. He will lose in '08. And the loss will put him irrevocably on a path to the presidency." For him to win in '08 would require a "miracle." -- Charles Krauthammer
Dec. 17, 2006: "Barack Obama is not going to beat Hillary Clinton in a single Democratic primary. I'll predict that right now." -- William Kristol
Dec. 22, 2006: "Obama's shot at the top will be short lived.... Hillary Inc. will grind up and spit out any Democratic challenger that gets in its way." -- Joe Scarborough
Mar. 19, 2007: "The right knows Obama is unelectable except perhaps against Attila the Hun." -- Mark Penn
Sep. 24, 2007: "Sen. Obama cannot possibly believe, and doesn't even act as if he believes, that he can be elected president of the United States next year." -- Christopher Hitchens
Dec. 24, 2007: "A Bound Man: Why We Are Excited About Obama and Why He Can't Win." -- title of book by Shelby Steele
Jan. 26, 2008: "The 'could we beat Obama?' conversation is purely academic. It's over. The Clint
@DanAncona
DanAncona / gist:a07d746b32e06649950bc95a69091bfe
Created January 10, 2019 19:07
Interview work request response boilerplate
To ______,
Thank you for the opportunity to interview with your team. I am excited to see the lineup set up for me to meet with.
Unfortunately, I will need to ask you to come up with a different project. I do not do work before hire on a potential employer's product or client's project. This is a firm policy I have upheld not only for myself, but in support of Designers, Writers, Developers, and Researchers less able to refuse to do Work on Spec.
Please let me know if you have any questions and I am happy to work with everyone to find a topic we can all work on from a blank slate together. Alternatively, having briefly reviewed the materials provided and the ask, I can draft a contract for what I'm estimating to be two full days of freelance research / analysis and reporting, plus one full day of presentation and discussion.
Again, please know that this is a unilateral policy I have for any and all potential employers, clients, etc. and that should I gain employment with _____ I will require that this is
Oakland Eats
$$$
Commis
Delage
Millienium
Camino
Penrose
Hopscotch
@DanAncona
DanAncona / gist:99a6f46a4935b29d2807
Last active September 29, 2015 17:40
bone broth
Fill a stockpot 2/3 way full with leftover chicken bones (or chicken backs and feet -- butchers and meat counters often have these items for sale for making broth, and these result in a more gelatinous broth), add one carrot, one celery stalk, one (unpeeled) onion cut in half (the peel has a lot of nutrients), and any of the following: a handful of parsley stems, 1 tsp black peppercorns, a few whole cloves, 1-3 bay leaves, one star anise floret, 1/4 tsp juniper berries. You can also throw in leek tops, fennel fronds and seeds, garlic, fresh ginger, lemongrass, and other aromatics depending on what flavor profile you want (just avoid anything in the cabbage family, which makes the broth taste funky).
Add water to cover bones by 2", bring to a simmer, skim the gray foam that rises to the top for the first 1/2 hour, then set the heat to a bare minimum and let it bubble gently for 12-24 hours. The longer the better. Add water when the level gets too low.
@DanAncona
DanAncona / meteor-wrapasync.md
Last active September 11, 2017 14:43
Meteor vs. the Twitter API via wrapAsync and Twit

Twit and other Node libraries don't always quite drop into Meteor's reactive architecture right out of the box. Luckily Meteor makes adapting them super-duper easy with wrapAsync. It was so easy that I naturally tried all the more difficult ways first! Since I didn't find a nice gist or StackOverflow example, please enjoy this one.

In the template -

{{#with pos}}
  {{#if ready}}
    {{> singlePosition data }}
@DanAncona
DanAncona / gist:86e214a07a610f8dec43
Last active February 18, 2016 19:21
meteor mongo collection schlepper
#!/bin/sh
# A script for dumping and restoring a remote meteor mongo db
# Based on a script by Daniele Brugnara
#
# usage:
# dump_restore_remote
#
MONGO_CMD=`meteor mongo --url 'http://why-dev.meteor.com/'`
@DanAncona
DanAncona / gist:8166656
Last active January 1, 2016 15:49
pizza algorithm
Here's the deal with the pizza: preheat oven to 500 deg and put the stone in.
Pull out TJ's whole wheat crust, flour it and roll it out, then brush with olive oil
and a solid dusting of cornmeal.
When the oven gets to temp, pull the stone out and flip the crust onto it,
oilve oil/cornmeal side down, and cook for about five minutes.
Pull it out, puncture the bubbles and then do more olive oil on top and then toppings:
this was olive oil, olive tapenade, fresh garlic, mushrooms, onions, fresh basil,
sliced mozzarella and a metric shitpile of anchovies.
Cook for another 10-15 minutes until the cheese is just so,
pull it out with your perfect pizza paddle and take a picture of it.