__ 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/php@8.1/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
/** | |
* AMD module loading patterns: 2 possible approaches | |
*/ | |
define(['dojo/query', 'dojo/on'], function(query, on){ | |
// my module code | |
}); | |
// oft-favored for maintaining modules per line of code | |
define(function(require) { |
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 has been truncated, but you can view the full file.
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
emjayess$ npm search express | |
npm info it worked if it ends with ok | |
npm verb cli [ 'node', '/usr/local/bin/npm', 'search', 'express' ] | |
npm info using npm@2.1.6 | |
npm info using node@v0.10.33 | |
npm verb node symlink /usr/local/bin/node | |
npm verb mapToRegistry name -/all | |
npm verb mapToRegistry uri https://registry.npmjs.org/-/all | |
npm info get /Users/emjayess/.npm/registry.npmjs.org/-/all/.cache.json | |
npm WARN Building the local index for the first time, please be patient |
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
// load a style | |
;(function(d) { | |
var lnk = d.createElement('link'), h = d.getElementsByTagName('head')[0]; | |
lnk.href = 'css.css'; | |
lnk.type = 'text/css'; | |
lnk.rel = 'stylesheet'; | |
h.appendChild(lnk); | |
}(document)); |
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
# Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208 | |
[mysql] | |
# CLIENT # | |
port = 3306 | |
socket = /usr/local/mysql/data/mysql.sock | |
[mysqld] |
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 |
NewerOlder