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
#!/bin/bash | |
# Built for Wayland | |
# Tested on Sway https://swaywm.org/ | |
# Depends on grim, slurp, wl-clipboard and jq | |
# Obtain username and token from nosey.app and use below, or hardcode them. | |
# Usage: ./take-screenshot.sh uploadUsername uploadToken | |
username=$1 |
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 | |
// Place inside boot() of your AppServiceProvider | |
Blade::directive('resolve', function($expression) | |
{ | |
$segments = explode(',', $expression); // FYI The original has a preg_replace to remove ()"' | |
$variable = trim($segments[0], '\'" '); | |
$service = trim($segments[1], '\'" '); | |
$params = trim($segments[2], '\'" '); |