Skip to content

Instantly share code, notes, and snippets.

View lcharette's full-sized avatar
😱
(∩◕-◕)⊃━☆゚.*・。゚

Louis Charette lcharette

😱
(∩◕-◕)⊃━☆゚.*・。゚
View GitHub Profile
@lcharette
lcharette / README.md
Created April 27, 2024 01:32
UF5 DarkReader
@lcharette
lcharette / Readme.md
Created December 2, 2020 17:50
PHPUnit always output “No tests executed!” on MacOS Big Sur
@lcharette
lcharette / 1-CurrentStructure.md
Last active May 4, 2020 00:04
UserFrosting 5.0
@lcharette
lcharette / Project.php
Last active April 24, 2020 14:55
UserFrosting Sprunje with Relation Example
<?php
namespace UserFrosting\Sprinkle\Gaston\Database\Models;
use Illuminate\Database\Schema\Builder;
use Illuminate\Database\Eloquent\SoftDeletes;
use UserFrosting\Sprinkle\Account\Database\Models\User;
use UserFrosting\Sprinkle\Core\Database\Models\Model;
use UserFrosting\Sprinkle\UserProfile\Database\Models\Group;
// ...
$user = User::with('profileFields')->get();
return $this->ci->view->render($response, 'foo.html.twig', [
'user' => $user
]);
@lcharette
lcharette / 0-GravDeployment.md
Last active February 19, 2021 18:48
Grav Deployment on Push Using GitHub Webhook
@lcharette
lcharette / gist:a4bd8154b179075966beed9f22067399
Created February 25, 2019 02:09
UF #github-activity Post
/* exported Script */
String.prototype.capitalizeFirstLetter = function() {
return this.charAt(0).toUpperCase() + this.slice(1);
}
// Begin embedded images
const gh_cmit_svg = '<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="octicon octicon-git-commit" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M10.86 7c-.45-1.72-2-3-3.86-3-1.86 0-3.41 1.28-3.86 3H0v2h3.14c.45 1.72 2 3 3.86 3 1.86 0 3.41-1.28 3.86-3H14V7h-3.14zM7 10.2c-1.22 0-2.2-.98-2.2-2.2 0-1.22.98-2.2 2.2-2.2 1.22 0 2.2.98 2.2 2.2 0 1.22-.98 2.2-2.2 2.2z"></path></svg>';
const gh_pr_svg = '<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="octicon octicon-git-pull-request" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0L4 3l3 3V4h1c.27.02.48.11.69.31.21.2.3.42.31.69v6.28A1.993 1.993 0 0 0 10 15a1.993 1.993 0 0 0 1-3.72zm-1 2.92c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.
@lcharette
lcharette / 1-UserFrosting5_1.md
Last active April 26, 2024 00:14
Status page for UserFrosting repos and my Sprinkles repos.

UserFrosting 5.1

Branch Build Coverage Style PHPStan
[Skeleton] [![][Skeleton-Build-img]][Skeleton-Build] [![][Skeleton-Coverage-img]][Skeleton-Coverage] [![][Skeleton-Style-img]][Skeleton-Style]
[Framework] [![][Framework-Build-img]][Framework-Build] [![][Framework-Coverage-img]][Framework-Coverage] [![][Framework-Style-img]][Framework-Style] [![][Framework-PHPStan-img]][Framework-PHPStan]
[Core] [![][Core-Build-img]][Core-Build] [![][Core-Coverage-img]][Core-Coverage] [![][Core-Style-img]][Core-Style] [![][Core-PHPStan-img]][Core-PHPStan]
[Account] [![][Account-Build-img]][Account-Build] [![][Account-Coverage-img]][Account-Coverage] [![][Account-Style-img]][Account-Style] [![][Account-PHPStan-img]][Account-PHPStan]
[Admin] [![][Admin-Build-img]][Admin-Build] [![][Admin-Coverage-img]][Admin-Coverage] [![][Admin-Style-img]][Admin-Style] [![][Admin-PHPStan-img]][Admin-PHPStan]
[AdminLTE
@lcharette
lcharette / Fail dependencies
Created March 23, 2018 22:24
UF Assets issue
@userfrosting/userfrosting@4.1.0 /home/vagrant/test/userfrosting/build
├── bower@1.8.2
├─┬ del@2.2.2
│ ├─┬ globby@5.0.0
│ │ ├─┬ array-union@1.0.2
│ │ │ └── array-uniq@1.0.3 deduped
│ │ ├── arrify@1.0.1
│ │ ├── glob@7.1.2 deduped
│ │ ├── object-assign@4.1.1 deduped
│ │ ├── pify@2.3.0 deduped

Git clone Grav

git clone https://github.com/getgrav/grav.git UF_Learn

Git clone Learn into /user

cd UF_Learn
rm -r user
git clone https://github.com/userfrosting/learn.git user