__ master ______________________________________.___________________
\ / (pull request ^)
\__ develop ____________________________.__/_____________________
\ / (pull request ^)
\__ develop/obh/master _[._._._.]_/
This file contains 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
#!/opt/homebrew/Cellar/[email protected]/8.1.27/bin/php | |
<?php | |
require __DIR__ . '/drush.php'; |
This file contains 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
if (App::environment(['local', 'staging'])) { | |
Route::get('phpinfo', phpinfo()); | |
} |
This file contains 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 | |
/** | |
* shorthand laravel php syntax tips via) | |
* Laravel Business: https://www.youtube.com/post/UgzGftWbzdljAptGJOR4AaABCQ | |
* via Caleb Porzio: https://laravel-livewire.com/screencasts/s7-simple-table | |
*/ | |
// instead of if/else | |
if ( $status == 'processing' ) { | |
return 'blue'; |
This file contains 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 | |
// short syntax available in php 7.4 and up | |
Project::with('user') | |
// regular anonymous php function expression | |
->whereHas('user', function($query) { | |
$query->where('role', 'admin'); | |
}) | |
This file contains 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 | |
/** | |
* What is this: 'thisInterval()' as a closure-as-callable-php-variable | |
* | |
* Explainer: imagine having a job scheduler with a production accuracy requirement to the minute.. | |
* Now imagine desiring an easy way to loosen that accuracy constraint, for sake of easier tests.. | |
* With an approach like this, just put the accuracy setting into configuration, e.g. .env file. | |
*/ | |
// this $cfg could come from a per-environment .env file, for example |
This file contains 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
# added to ohmyzsh custom aliases; for laravel / artisan | |
getinsights() { | |
composer require nunomaduro/phpinsights --dev | |
php artisan vendor:publish --provider="NunoMaduro\PhpInsights\Application\Adapters\Laravel\InsightsServiceProvider" | |
php artisan insights | |
} |
I hereby claim:
- I am emjayess on github.
- I am mattso (https://keybase.io/mattso) on keybase.
- I have a public key ASAbqQc40ZibE2hPbrsmrGPfIiIxd1EfQL2zIHSr80PsEgo
To claim this, I am signing this object:
This file contains 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
macarooni:geekout emjayess$ pyspark | |
Python 2.7.5 (default, Mar 9 2014, 22:15:05) | |
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
Spark assembly has been built with Hive, including Datanucleus jars on classpath | |
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties | |
15/02/03 09:18:31 INFO SecurityManager: Changing view acls to: emjayess | |
15/02/03 09:18:31 INFO SecurityManager: Changing modify acls to: emjayess | |
15/02/03 09:18:31 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(emjayess); users with modify permissions: Set(emjayess) | |
15/02/03 09:18:32 INFO Slf4jLogger: Slf4jLogger started |
via Letters of Note
My Most Illustrious Lord,
Having now sufficiently seen and considered the achievements of all those who count themselves masters and artificers of instruments of war, and having noted that the invention and performance of the said instruments is in no way different from that in common usage, I shall endeavour, while intending no discredit to anyone else, to make myself understood to Your Excellency for the purpose of unfolding to you my secrets, and thereafter offering them at your complete disposal, and when the time is right bringing into effective operation all those things which are in part briefly listed below:
- I have plans for very light, strong and easily portable bridges with which to pursue and, on some occasions, flee the enemy, and others, sturdy and indestructible either by fire or in battle, easy and convenient to lift and place in position. Also means of burning and destroy
NewerOlder