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 | |
mkdir -p test_images | |
for i in $(seq 1 500); do | |
# Generate a random noise background | |
convert -size 3000x2250 xc:gray \ | |
-evaluate Gaussian-noise 5 -blur 0x10 \ | |
test_images/bg_${i}.png |
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
==== | |
config\cache.php: | |
==== | |
'file-compressed' => [ | |
'driver' => 'file-compressed', | |
'path' => storage_path('framework/cache/data'), | |
'file_chmod' => 0774, | |
], | |
==== |
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
SELECT id, title | |
FROM table | |
ORDER BY | |
CASE | |
WHEN title regexp '^[a-zA-Z]+' THEN | |
1 | |
WHEN title regexp '^[0-9]+' THEN | |
2 | |
WHEN title regexp '^[^\w]+' THEN | |
3 |
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
The birch canoe slid on the smooth planks | |
Glue the sheet to the dark blue background | |
It's easy to tell the depth of a well | |
These days a chicken leg is a rare dish | |
Rice is often served in round bowls | |
The juice of lemons makes fine punch | |
The box was thrown beside the parked truck | |
The hogs were fed chopped corn and garbage | |
Four hours of steady work faced us | |
A large size in stockings is hard to sell |
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 | |
namespace App\Traits; | |
/** | |
* Fulltext search trait. Requires column to have a FULLTEXT index | |
* Customizable weighted relevance per column | |
* | |
* Add to model: | |
* |