The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
: By the power of this magic string: ex: set ft=markdown ;:<<'```shell' #
, this file is now both a markdown document and an executable shell script. chmod +x
it and try running it!
The above line does just what it says. More specifically, when placed within in the first 5 lines and preceded only by blank lines or #
-prefixed markdown headers:
```shell
block.(The line also has to start with a :
so that it's valid shell code.)
/** | |
* Override core Walker_Comment for mf2 & Bulma. | |
* | |
* @method __construct | |
*/ | |
class Independence_Walker_Comment extends Walker_Comment { | |
/** | |
* Start the element output. | |
* | |
* This opens the comment. Will check if the comment has children or is a stand-alone comment. |
<?php | |
/* | |
Default Template | |
* The Goal of this Template is to be a general all-purpose model that will be replaced by customization in other templates | |
*/ | |
$kind = get_post_kind_slug( get_the_ID() ); | |
$meta = new Kind_Meta( get_the_ID() ); | |
$author = Kind_View::get_hcard( $meta->get_author() ); | |
$cite = $meta->get_cite(); |
protocol TextContaining { | |
var isEmpty: Bool { get } | |
} | |
extension String: TextContaining { | |
} | |
extension Optional where Wrapped: TextContaining { | |
var isEmpty: Bool { | |
switch self { |
require 'digest/md5' | |
hash = {} | |
Dir.glob("**/*", File::FNM_DOTMATCH).each do |filename| | |
next if File.directory?(filename) | |
# puts 'Checking ' + filename | |
key = Digest::MD5.hexdigest(IO.read(filename)).to_sym | |
if hash.has_key? key |