Very lightweight way to get query params on your Alpine.js page. Good for storing data in the URL
import Spruce from '@ryangjchandler/spruce'
Spruce.store('settings', {})
export default Spruce
| Alpine.directive('typed', (el, { expression, modifiers }, { evaluateLater, effect, cleanup }) => { | |
| const getStrings = evaluateLater(expression); | |
| const modifierValue = (key, fallback) => { | |
| if (-1 === modifiers.indexOf(key)) { | |
| return fallback; | |
| } | |
| const value = modifiers[modifiers.indexOf(key) + 1]; | |
| #!/usr/bin/env bash | |
| set -e | |
| if [ ! -d src/amazon-s3-and-cloudfront ]; then | |
| echo 'This script must be run from the repository root.' | |
| exit 1 | |
| fi | |
| for PROG in composer find sed unzip |
| <?php | |
| defined('MVC_FRAMEWORK') or die; | |
| require dirname(dirname(__FILE__)).DS.'filters/stripe_config.php'; | |
| DeveloperController::macro('stripe_checkout', function() use ($stripe_config) | |
| { | |
| $config = $stripe_config; | |
| $client = new \GuzzleHttp\Client(); |
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.