This file contains hidden or 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 | |
| $baseDir = $argv[1]; | |
| if (false === is_dir($argv[1])) { | |
| die ("$baseDir is not a directory"); | |
| } | |
| // get all files with an extension | |
| $allFiles = array_filter( | |
| array_map('pathinfo', glob("$baseDir/*")), |
This file contains hidden or 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
| extern crate rand; | |
| extern crate docopt; | |
| extern crate rustc_serialize; | |
| use rand::{OsRng, Rng}; | |
| use docopt::Docopt; | |
| static USAGE: &'static str = " | |
| Usage: rpgen [options] | |
| rpgen --help |
This file contains hidden or 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
| [ | |
| { | |
| "match": "You fight like a Dairy Farmer!", | |
| "description": "swordfighting for might pirates", | |
| "listener": "hear", | |
| "response": "How appropriate! You fight like a cow!" | |
| }, | |
| { | |
| "match": "This is the END for you, you gutter crawling cur!", | |
| "description": "swordfighting for might pirates", |
OlderNewer