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 | |
| /** | |
| * Return `true` if any of the items evals to `true`, `false` otherwise | |
| * | |
| * @param Array $list The list to be evaluated | |
| * @return bool | |
| */ | |
| function all($list) | |
| { |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Lightslider</title> | |
| <link href="https://cdnjs.cloudflare.com/ajax/libs/lightslider/1.1.5/css/lightslider.min.css" rel="stylesheet" /> | |
| <style> | |
| .container { | |
| margin: 2rem auto; |
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
| const gulp = require('gulp'); | |
| const plumber = require('gulp-plumber'); | |
| const notify = require('gulp-notify'); | |
| const plumber_notifier = plumber({ | |
| errorHandler: notify.onError({ | |
| title: "Oops!", | |
| message: "<%= error.message %>", | |
| }), | |
| }); |
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
| // ---- | |
| // libsass (v3.3.2) | |
| // ---- | |
| $silent-classes: true; | |
| %card { | |
| content: ".card definitions"; | |
| } | |
| %card-header { |
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 | |
| /** | |
| * Usage: | |
| * ms(12345, 3) # returns "37035" | |
| * ms(999, 3) # returns "2997" | |
| * ms("1111", 24) # returns "26664" | |
| * | |
| * @param int|stirng $s A string containing a positive integer | |
| * @param int $m The multiplier | |
| * @return string The product of the multiplication (as a string) |
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 | |
| // unsecure execution | |
| $bug = '"() { :;} ; echo vulnerable" bash -c "echo "'; | |
| passthru("env X=$bug"); // outputs: "vulnerable" | |
| // secure execution using escapeshellarg | |
| $bug = escapeshellarg('"() { :;} ; echo vulnerable" bash -c "echo "'); | |
| passthru("env X=$bug"); // what it should (the dump of env) |
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 | |
| /** | |
| * @param string $dir The dir to be removed | |
| */ | |
| function deleteTempDir($dir) | |
| { | |
| return `rm -fr $dir`; | |
| } |
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 | |
| function everythingEntities($str, $pattern = '/./u') | |
| { | |
| return preg_replace_callback($pattern, function ($match) { | |
| list(, $ord) = unpack('N', mb_convert_encoding($match[0], 'UCS-4BE', 'UTF-8')); | |
| return sprintf('&#%s;', $ord); | |
| }, $str); | |
| } |
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"?> | |
| <aiml version="1.0"> | |
| <template> | |
| Começo do texto ”<srai>include</srai>” fim do texto. | |
| </template> | |
| </aiml> |