Skip to content

Instantly share code, notes, and snippets.

😱
(∩◕-◕)⊃━☆゚.*・。゚

Louis Charette lcharette

😱
(∩◕-◕)⊃━☆゚.*・。゚
Block or report user

Report or block lcharette

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View FooController.php
// ...
$user = User::with('profileFields')->get();
return $this->ci->view->render($response, 'foo.html.twig', [
'user' => $user
]);
@lcharette
lcharette / 0-GravDeployment.md
Last active Mar 17, 2019
Grav Deployment on Push Using GitHub Webhook
View gist:a4bd8154b179075966beed9f22067399
/* 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 / UserFrosting.md
Last active Apr 19, 2019
Status page for UserFrosting repos and my Sprinkles repos.
View UserFrosting.md

UserFrosting

Branch Build Coverage Style
master [][UF-Travis] [][UF-Codecov] [![][style-master]][style]
[hotfix] [][UF-Travis] [][UF-Codecov] [![][style-hotfix]][style]
[develop] [][UF-Travis] [][UF-Codecov] [![][style-develop]][style]
View Fail dependencies
@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
View InstallUFLearn.md

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
@lcharette
lcharette / UF_Auth.md
Created Dec 22, 2016
UserFrosting V4 Auth system proposal
View UF_Auth.md

Tables

auth_options

  • id
  • slug
  • collection
  • name
  • description

auth_roles

  • id
View Blueprint_0021_MacOS
malou$ java -cp "bin/*" -Djava.library.path=native blueprint.Blueprint
Operating system detected: MacOS
Starting Blueprint v0021.. Good luck!
Current folder: /Users/malou/Downloads/Blueprint0021
Initializing database..
Cache is up to date.
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
@lcharette
lcharette / objectPush.js
Last active Aug 29, 2015
APE Event Push SSJS Example
View objectPush.js
Ape.registerCmd("objectPush", true, function(params, infos) {
//Make sure we have a channel defined
if (params.channel && params.channel != null) {
var chan = Ape.getChannelByName(params.channel);
if (!chan) return ["401", "UNKNOWN_CHANNEL"];
//Make data optional
if (!params.data) {
@lcharette
lcharette / Server_response.js
Created Apr 30, 2014
APE Socket communication
View Server_response.js
HTTP / 1.1 200 OK
Pragma: no - cache
Cache - Control: no - cache,
must - revalidate
Expires: Thu,
27 Dec 1986 07: 30: 00 GMT
Content - Type: application / x - ape - event - stream
[{
"time": "1398873326",
You can’t perform that action at this time.