Skip to content

Instantly share code, notes, and snippets.

View mehigh's full-sized avatar

Mike Crantea mehigh

View GitHub Profile
<?php
/**
* WP_Theme_Template\Components\ACF_Options_Page_Template class
*
* @package WP_Theme_Template
*/
namespace WP_Theme_Template\Components;
/**
logo
@mehigh
mehigh / class-webpack-encore.php
Created August 5, 2020 14:15
WordPress Class Webpack Encore
<?php
/**
* Helper for the loading of script and style assets.
*
* Inspired from: https://phatkoala.uk/webpack-encore-for-wordpress
* Description: Manage your theme's assets.
*/
if ( ! defined( 'ABSPATH' ) ) {
echo 'ABS PATH IS NOT DEFINED';
@mehigh
mehigh / webpack.config.js
Created August 5, 2020 14:10
WordPress Webpack Config based on Encore
var Encore = require('@symfony/webpack-encore');
// Manually configure the runtime environment if not already configured yet by the "encore" command.
// It's useful when you use tools that rely on webpack.config.js file.
if (!Encore.isRuntimeEnvironmentConfigured()) {
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
}
Encore
// directory where compiled assets will be stored
@mehigh
mehigh / cloudSettings
Last active June 26, 2019 16:37
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-06-26T16:37:14.369Z","extensionVersion":"v3.2.9"}
@mehigh
mehigh / 0_reuse_code.js
Created October 16, 2016 17:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mehigh
mehigh / keybase.md
Created August 4, 2014 06:39
keybase.md

Keybase proof

I hereby claim:

  • I am mehigh on github.
  • I am mihai2u (https://keybase.io/mihai2u) on keybase.
  • I have a public key whose fingerprint is D491 A723 5F0D 5B39 6853 152E FF52 1EB8 8CEC 1334

To claim this, I am signing this object: