Skip to content

Instantly share code, notes, and snippets.

@peterkeen
peterkeen / gist:6017752
Last active December 19, 2015 21:08 — forked from idan/gist:3135754

Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.

Now look up. Further. Above the post title. See that grey text with the gist ID?

Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.

This is a SUPER major heading

If you peek at it with a web inspector, you'll see that it is a second-level heading. You can use first level headings, but they'll look just like the second level ones, and the gods of the HTML5 outlining algorithm will frown upon you.

@peterkeen
peterkeen / gist:1138235
Created August 10, 2011 20:55 — forked from ErinCall/gist:1138231
{}.update
>>> foo = { 'a': 1, 'b': 2 }
>>> foo.update({'b': 444444, 'c': 3});
>>> foo
{'a': 1, 'c': 3, 'b': 444444}
>>> dict(bar='baz', **foo)
{'a': 1, 'c': 3, 'b': 444444, 'bar': 'baz'}