Skip to content

Instantly share code, notes, and snippets.

🚀

Pascal Martineau lewebsimple

🚀
Block or report user

Report or block lewebsimple

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
@lewebsimple
lewebsimple / nuxtjs-nestjs.md
Last active Feb 14, 2020
NuxtJS / NestJS fullstack development
View nuxtjs-nestjs.md

This is my take on fullstack development using NuxtJS and NestJS.

Development steps

  • Lerna monorepo
  • TypeScript linting and formatting
  • Minimal NestJS server
  • Minimal NuxtJS client
  • Environment configuration
  • TypeGraphQL
  • TypeORM / MySQL
@lewebsimple
lewebsimple / acf-dynamic-role.php
Created Aug 10, 2017
ACF role-based conditions on user new / edit forms
View acf-dynamic-role.php
<?php
// Change default role dynamically on role selection change
add_action( 'acf/input/admin_head', 'acf_dynamic_default_role' );
function acf_dynamic_default_role() {
global $pagenow;
if ( $pagenow == 'user-new.php' ) {
?>
<script>
@lewebsimple
lewebsimple / dropdown-hover.js
Created Mar 20, 2017
[Bootstrap 4] Dropdown navbar menu on hover
View dropdown-hover.js
// Dropdown navbar menu on hover
$('.dropdown-menu', this).css('margin-top', 0);
$('.dropdown').hover(function () {
$('.dropdown-toggle', this).trigger('click').toggleClass("disabled");
});
You can’t perform that action at this time.