See http://stackoverflow.com/a/14381327/130638 for explanation.
| ### Based on: https://gist.github.com/b0644f5ed1d94bd32805 | |
| ### This version strips unicode characters from the downloaded script | |
| ### to work around the currently limited unicode support of the editor | |
| ### module. | |
| # This script downloads and opens a Gist from a URL in the clipboard. | |
| # It's meant to be put in the editor's actions menu. | |
| # | |
| # It works with "raw" and "web" gist URLs, but not with gists that | |
| # contain multiple files or non-Python files. |
| # This code is public domain, share and enjoy. | |
| from Foundation import NSPropertyListSerialization | |
| from xattr import setxattr, getxattr | |
| kMDItemWhereFroms = "com.apple.metadata:kMDItemWhereFroms" | |
| def set(path, *data): | |
| """Set kMDItemWhereFroms on a file. Pass in an array of strings.""" | |
| plist, err = NSPropertyListSerialization.dataWithPropertyList_format_options_error_(data, 200, 0, None) | |
| if err or not plist: |
This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.
Give me feedback on Twitter (@nicoleslaw) or by email ([email protected]).
| // Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core? | |
| L.TileLayer.Common = L.TileLayer.extend({ | |
| initialize: function (options) { | |
| L.TileLayer.prototype.initialize.call(this, this.url, options); | |
| } | |
| }); | |
| (function () { | |
This is a post by Joel Spolsky. The original post is linked at the bottom.
This is such a common question here and elsewhere that I will attempt to write the world's most canonical answer to this question. Hopefully in the future when someone on answers.onstartups asks how to split up the ownership of their new company, you can simply point to this answer.
The most important principle: Fairness, and the perception of fairness, is much more valuable than owning a large stake. Almost everything that can go wrong in a startup will go wrong, and one of the biggest things that can go wrong is huge, angry, shouting matches between the founders as to who worked harder, who owns more, whose idea was it anyway, etc. That is why I would always rather split a new company 50-50 with a friend than insist on owning 60% because "it was my idea," or because "I was more experienced" or anything else. Why? Because if I split the company 60-40, the company is going to fail when we argue ourselves to death. And if you ju
| #!/opt/local/bin/python2.7 | |
| # encoding: utf-8 | |
| """ | |
| couchimport.py | |
| Created by Marian Steinbach on 2011-11-10. | |
| """ | |
| import sys | |
| import os | |
| import datetime |
| #!/usr/bin/env ruby -wKU | |
| # Adapted from Brett Terpstra’s original “Markdown to Evernote” service (http://brettterpstra.com/a-better-os-x-system-service-for-evernote-notes-with-multimarkdown/) | |
| # Martin Kopischke 2011 – License: Creative Commons Attribution Share-Alike (CC BY-SA) 3.0 Unported (http://creativecommons.org/licenses/by-sa/3.0/) | |
| # Changes: – create only one Evernote note per (Multi)Markdown input passed (instead of one per line) | |
| # – do not choke on shell escape characters (use Tempfile instead of shell pipe for osascript) | |
| # – default to MultiMarkdown 3 executable (instead of MMD 2 Perl script) | |
| # – make smart typography processing optional (set SMARTY to 'false' to bypass processing; | |
| # note smart typography cannot be disabled in MMD 3.0 and 3.0.1 | |
| # – handle both smart typography processing scripts (ie. SmartyPants.pl) |
| #!/usr/bin/env ruby | |
| # Usage: tp2md.rb filename.taskpaper > output.md | |
| # Updated 2025-03-19 | |
| # - Fix block quote indentation | |
| # - use GFM-style - [ ] markers | |
| # - convert @tags to #tags | |
| # - <self-link> bare urls | |
| # - Accept input piped on STDIN | |
| if $stdin.stat.size.positive? |