Skip to content

Instantly share code, notes, and snippets.

View mko's full-sized avatar
🥃
Design. Code. Whiskey.

Michael Owens mko

🥃
Design. Code. Whiskey.
View GitHub Profile
@mko
mko / CivilDisobedience.md
Created February 3, 2017 23:02
Civil Disobedience, by Henry David Thoreau, 1849 (original source: http://xroads.virginia.edu/~hyper2/thoreau/civil.html)

Civil Disobedience

By Henry David Thoreau

1849

I heartily accept the motto, "That government is best which governs least"; and I should like to see it acted up to more rapidly and systematically. Carried out, it finally amounts to this, which also I believe- "That government is best which governs not at all"; and when men are prepared for it, that will be the kind of government which they will have. Government is at best but an expedient; but most governments are usually, and all governments are sometimes, inexpedient. The objections which have been brought against a standing army, and they are many and weighty, and deserve to prevail, may also at last be brought against a standing government. The standing army is only an arm of the standing government. The government itself, which is only the mode which the people have chosen to execute their will, is equally liable to be abused and perverted before the people can act through it. Witness the present Mexican war, the work of comparatively a few indi

@mko
mko / oath.txt
Created March 4, 2015 20:54
Hippocratic Oath
I swear by Apollo the physician, and Aesculapius the surgeon, likewise Hygeia and Panacea, and call all the gods and goddesses to witness, that I will observe and keep this underwritten oath, to the utmost of my power and judgment.
I will reverence my master who taught me the art. Equally with my parents, will I allow him things necessary for his support, and will consider his sons as brothers. I will teach them my art without reward or agreement; and I will impart all my acquirement, instructions, and whatever I know, to my master's children, as to my own; and likewise to all my pupils, who shall bind and tie themselves by a professional oath, but to none else.
With regard to healing the sick, I will devise and order for them the best diet, according to my judgment and means; and I will take care that they suffer no hurt or damage.
Nor shall any man's entreaty prevail upon me to administer poison to anyone; neither will I counsel any man to do so. Moreover, I will give no sort of medicine to any pregnant
@mko
mko / result_actual.json
Last active August 29, 2015 14:10
microformats2 person-tagging use case (as parsed by `php-mf2` as of 11/24/2014)
{
"items": [
{
"type": ["h-entry"],
"properties": {
"category": [
{
"type": ["h-card"],
"properties": {
"name": ["Person Bee"],
Verifying that +mko is my Bitcoin username. You can send me #bitcoin here: https://onename.io/mko
@mko
mko / h-as-note.html
Created July 15, 2014 19:02
h-entry as photo vs h-entry as note with photo
<article class="h-entry">
<figure class="e-content p-name">
<img src="/path/to/image" alt="Description of Image" class="u-photo">
<figcaption class="p-summary">Description of Image</figcaption>
</figure>
<p>Published by <a class="p-author h-card" href="https://domain.ext">Photographer</a>
on <time class="dt-published" datetime="2014-07-14 12:00:00">July 14<sup>th</sup>, 2014</time></p>
</article>

Keybase proof

I hereby claim:

  • I am mko on github.
  • I am mko (https://keybase.io/mko) on keybase.
  • I have a public key whose fingerprint is A2AA 7EAD 4A71 2532 45E2 3134 7825 B087 2749 05DC

To claim this, I am signing this object:

In file included from ../src/batch.cc:5:
../node_modules/nan/nan.h:318:13: error: no member named 'New' in 'v8::String'
return _NAN_ERROR(v8::Exception::Error, errmsg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:298:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
~~~~~~~~~~~~^
../node_modules/nan/nan.h:322:5: error: no member named 'ThrowException' in namespace 'v8'
_NAN_THROW_ERROR(v8::Exception::Error, errmsg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<div class="block"><img src="../../photos/12345678/90123456.jpg" /><div><div class="meta">Thursday, January 5, 2012 at 6:45pm PST</div><table class="meta"><tr><th>Upload IP Address</th><td>174.129.159.135</td></tr></table><div class="comment"><span class="user">Scott Breaux</span>Mike, what kind of filter are you using/or is it a setting? That&#039;s an amazing pic!<div class="meta">Monday, June 25, 2012 at 7:24pm PDT</div></div><div class="comment"><span class="user">Michael Owens</span>It&#039;s a combination of Camera+&#039;s &quot;Clarity&quot; filter with Instagram&#039;s &quot;Lux&quot; and I believe the &quot;Hefe&quot; filter. It might have been &quot;Sutro&quot;, though. Can&#039;t remember.<div class="meta">Monday, June 25, 2012 at 7:26pm PDT</div></div></div></div>

Fragmentation

This is a really long header that should have some sort of limit on the fragmentation conversion but does not appear to have one.

These all have their own linkable fragmentation IDs

Cool, huh?

Yep.

@mko
mko / gist:5035561
Created February 26, 2013 03:12
Terminal Command for opening Adobe Photoshop CS6 on a standard CS6 installation
/Applications/Adobe\ Photoshop\ CS6/Adobe\ Photoshop\ CS6.app/Contents/MacOS/Adobe\ Photoshop\ CS6