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 | |
# useful for development and testing, this gets the html payload from | |
# .eml files (e.g., as produced by Zend\Mail) and prints it to STDOUT | |
from email import parser; | |
import argparse; | |
args = argparse.ArgumentParser() | |
args.add_argument("filename", help="path to .eml file") |
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 | |
namespace App\Twig; | |
use Twig\Extension\AbstractExtension; | |
use Twig\TwigFilter; | |
class AppExtension extends AbstractExtension | |
{ | |
public function getFilters() : Array | |
{ |
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 | |
/** | |
* collect and record a "vote" for a simple survey with one question, three choices. | |
* | |
* I thought it would be so simple that it would be easy to do in one physical file without | |
* getting too monolithic. Not so. But... oh well. | |
*/ | |
/** |
OlderNewer