hello
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
| Host github.com | |
| IdentityFile ~/.ssh/github.key |
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 | |
| // pass array of key/value pairs in #options array | |
| // object should set the value if its found | |
| $options = array( | |
| 'bar'=>'baz', | |
| 'qux'=>'fuzz', | |
| ); |
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 | |
| if () |
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 | |
| namespace Foo; | |
| class XMLToDrupalTest extends \PHPUnit_Framework_TestCase | |
| { | |
| public function provider() { | |
| return array( | |
| 'default.xml', |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE root-element [ | |
| <!ENTITY % w3centities PUBLIC | |
| "-//W3C//ENTITIES Combined Set//EN//XML" | |
| "http://www.w3.org/2003/entities/2007/w3centities.ent" | |
| > | |
| %w3centities; | |
| ]> | |
| <doc> | |
| <body>Copyright © 2008</body> |
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
| xmllint success: | |
| xmllint example.xml --loaddtd --noout | |
| xmllint example.xml --loaddtd --dropdtd |
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
| vendor |
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 | |
| // when no query parameters, don't show any results | |
| function my_module_search_api_query_alter($query) { | |
| // check if we are on the faceted search | |
| // @TODO don't hardcode path | |
| if (current_path() == 'search') { | |
| if (count(drupal_get_query_parameters()) === 0) { | |
| $query->range(0,0); | |
| $query->setOption('skip result count', TRUE); |
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 | |
| class Foo { | |
| public static function run() { | |
| print('Hello'); | |
| } | |
| public static function maybe() { | |
| static::run(); | |
| } | |