Skip to content

Instantly share code, notes, and snippets.

View camaleaun's full-sized avatar

Gilberto Tavares camaleaun

  • Yogh
  • Joinville SC, Brazil
  • 09:42 (UTC -03:00)
View GitHub Profile
@camaleaun
camaleaun / functions.php
Last active May 30, 2020 15:07 — forked from jamesdixon/custom-fonts.php
Wordpress Allow Custom Font Upload
<?php
/**
* Allow fonts upload
*
* @param array $mime_types Current allowed mime types.
* @return array $mime_types Modified mime types.
*/
function allow_upload_fonts_mimes_types( $mime_types ) {
$mime_types = array_merge(
@camaleaun
camaleaun / tab-trigger.js
Created September 13, 2018 14:58 — forked from wesbos/tab-trigger.js
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{
@camaleaun
camaleaun / wordpress-firebase.php
Created May 17, 2017 18:59 — forked from derekconjar/wordpress-firebase.php
An example of using Firebase and WordPress together. The idea is to use WP's custom post types and metaboxes to make content management easy, and sync with Firebase so that your websites have access to a real-time JSON feed of your custom data.
<?php
/**
* All custom functions should be defined in this class
* and tied to WP hooks/filters w/in the constructor method
*/
class Custom_Functions {
// Custom metaboxes and fields configuration