Test for emacs-php/phpstan.el#10
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 declare(strict_types=1); | |
| global $succ; | |
| $succ = function ($n) { | |
| return function ($f) use ($n) { | |
| return function ($x) use ($n, $f) { | |
| // ^n. ^f. ^x. f (n f x) | |
| return $f($n($f)($x)); | |
| }; | |
| }; |
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 /** @license WTFPL | by USAMI Kenta */ | |
| $クソ関数 = function() { | |
| kuso(); | |
| var_dump('うんこ'); | |
| }; | |
| suppress_kuso(); | |
| $クソ関数(); |
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 my_compact(...$var_names) | |
| { | |
| $names = []; | |
| foreach ($var_names as $n) { | |
| if (is_string($n)) { | |
| $names[] = $n; | |
| } else { | |
| $names = array_merge($names, $n); |
This file has been truncated, but you can view the full file.
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 | |
| call_user_func(function(){ | |
| $a = 0; | |
| $b = 0; | |
| $c = 0; | |
| $d = 0; | |
| $bp = 0; | |
| $sp = 0; | |
| $pc = 0; | |
| $running = 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 call_user_func($f=function($n)use(&$f){if(!$n)return;$f($n-1);echo $n%3?($n%5?$n:'Buzz'):($n%5?'Fizz':'FizzBuzz'),PHP_EOL;}, count(call_user_func(function (){$f=fopen(__FILE__, 'r');return explode("\n", stream_get_contents($f));}))); | |
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
| The MIT License (MIT) | |
| Copyright (c) 2016 Ryan McDermott | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
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
| For all major modes: | |
| 100444 22.61% next-line C-n, <down> | |
| 78375 17.64% self-insert-command SPC..~, \200..¤, ¦..\377 | |
| 74603 16.79% previous-line C-p, <up> | |
| 13431 3.02% left-word <C-left> | |
| 11516 2.59% right-word <C-right> | |
| 9502 2.14% move-end-of-line C-e | |
| 9355 2.11% right-char <right> | |
| 8838 1.99% left-char <left> |
http://orgmode.org/manual/Emphasis-and-monospace.html#Emphasis-and-monospace
You can make words bold, italic, underlined, verbatim and code, and, if you must, strike-through. Text in the code and verbatim string is not processed for Org mode specific syntax, it is exported verbatim.
You can make words bold, italic, underlined,
verbatimandcode, and, if you must,strike-through. Text in the code and verbatim string is not processed for Org mode specific syntax, it is exported verbatim.