This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from xml.etree import ElementTree as ETree | |
from glob import glob | |
PATH = './refsynopsisdiv/funcsynopsis/funcprototype/funcdef/function' | |
index = {} | |
for p in glob('systemd/man/*.xml'): | |
index[p] = [f.text for f in ETree.parse(p).findall(PATH)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
_tree() { | |
IFS=$'\x0a' | |
local dir len i d | |
dir=($(ls "$1" --group-directories-first 2>/dev/null)) | |
len=${#dir[@]} | |
for (( i = 0; i < len; i++ )); do | |
if (( i == len - 1 )); then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Uses the default rules | |
echo Output::parse($input); | |
echo Output::factory($input)->get(); | |
# Remove some rules | |
echo Output::factory($input)->remove_rules(array('em', 'strong'))->get(); |
NewerOlder