Tired of typing composer selfupdate, composer install... ?
Good news, I just noticed you can omit most of the characters, it works as well.
You can cut down up to composer sel, composer ins...
Tired of typing composer selfupdate, composer install... ?
Good news, I just noticed you can omit most of the characters, it works as well.
You can cut down up to composer sel, composer ins...
| /* | |
| cleaner than hard-coding the desired font size | |
| refs: http://api.jquery.com/css/ | |
| some use case: | |
| all these websites that use *huge* font sizes, | |
| painful to read even on a 1920x1080 screen. | |
| */ | |
| $('.article-content').css('font-size', '-=2'); |
| ' taken from FreeFileSync - www.freefilesync.org | |
| set argIn = WScript.Arguments | |
| num = argIn.Count | |
| if num = 0 then | |
| WScript.Echo "Call a Windows batch file (*.cmd, *.bat) without showing the console window" & VbCrLf & VbCrLf &_ | |
| "Command line:" & VbCrLf & "WScript HideConsole.vbs MyBatchfile.cmd <command line arguments>" | |
| WScript.Quit 1 | |
| end if |
| @SETLOCAL | |
| @SET expr=%* | |
| @SET expr=%expr:"=\"% | |
| @IF ^%expr:~-1%==^; SET expr=%expr:~0,-1% | |
| @php -r "var_dump(%expr%);" | |
| ::A few examples: | |
| ::phpdump PHP_OS // "Everything should be made as simple as possible, but not simpler." | |
| ::phpdump ord("\n") // double quotation marks don't produce errors | |
| ::phpdump hexdec('ff'); // trailing semicolon should be omitted, yet it is supported for convenience |
| <?php | |
| require './vendor/autoload.php'; | |
| use Patchwork\Utf8; | |
| use Stringy\Stringy; | |
| class MyStringy extends Stringy { | |
| public function charsArray() { |
| <?php | |
| require './vendor/autoload.php'; | |
| use Stringy\Stringy; | |
| class MyStringy extends Stringy { | |
| // http://php.net/manual/en/language.oop5.visibility.php#language.oop5.visibility-other-objects |
| <?php | |
| require './vendor/autoload.php'; | |
| use Stringy\Stringy; | |
| class MyStringy extends Stringy { | |
| public $managedCharsArray; |
| <?php | |
| file_exists('./bootstrap/compiled.php') || exit('File compiled.php not found'); | |
| $content = file_get_contents('./bootstrap/compiled.php'); | |
| $root = realpath('.'); | |
| // foo\bar --> foo/bar |
| // https://github.com/bcit-ci/CodeIgniter/pull/1750 | |
| $nb = 1000; | |
| $str = str_repeat('<lorem ipsum here>' . "\n", 10); | |
| $t1 = microtime(true); | |
| for ($i = $nb; $i--; ) { | |
| preg_replace('/\s+/', ' ', $str); | |
| } | |
| $t2 = microtime(true); |