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
@ollietreend
ollietreend / acf-php-to-json.php
Last active Jan 17, 2020
Convert Advanced Custom Fields Pro configuration from PHP to JSON.
View acf-php-to-json.php
<?php
/**
* Plugin Name: Convert ACF PHP to JSON
* Description: Convert Advanced Custom Fields Pro configuration from PHP to JSON.
*/
namespace ConvertAcfPhpToJson;
/**
* Add submenu item under 'Custom Fields'
View vue-js-data-reactivity.js
import Vue from 'vue'
import {DataStore, Record} from 'js-data'
// define a base class that enables property-level vue reactivity.
export class VueReactiveRecord extends Record {
constructor (...args) {
// among other things, this will apply js-data schema if configured to do so; be sure to do `track: true`
super(...args)
@tameemsafi
tameemsafi / emails.php
Last active Jan 20, 2020
Send an email programmatically in wordpress with wp_mail using the woocommerce transaction emails template.
View emails.php
<?php
// Define a constant to use with html emails
define("HTML_EMAIL_HEADERS", array('Content-Type: text/html; charset=UTF-8'));
// @email - Email address of the reciever
// @subject - Subject of the email
// @heading - Heading to place inside of the woocommerce template
// @message - Body content (can be HTML)
function send_email_woocommerce_style($email, $subject, $heading, $message) {
@stursby
stursby / README.md
Last active Jan 20, 2020
Vue + Firebase + Auth Demo
View README.md

Vue + Firebase + Auth Demo

A simple App using Vue.js & Firebase with Auth.

See the DEMO.

You can’t perform that action at this time.