Skip to content

Instantly share code, notes, and snippets.

View joelalejandro's full-sized avatar
🏳️‍🌈

Joel Alejandro Villarreal Bertoldi joelalejandro

🏳️‍🌈
View GitHub Profile
@joelalejandro
joelalejandro / replicable-without-fragments.js
Last active August 29, 2015 14:26
Ember Data model replication
/**
* @package ReplicableMixin
* @author Joel A. Villarreal Bertoldi
* @version 0.0.1
* @license MIT
*
* Allows replicating a model with relationships to the database.
*
* Usage:
*
@joelalejandro
joelalejandro / initializers_errorificador.js
Last active August 29, 2015 14:25
Ember Errorificador
import errorificador from '../utils/errorificador';
export function initialize(/* container, application */) {
var swalError = { swalError: errorificador };
Ember.Controller.reopen(swalError);
Ember.Route.reopen(swalError);
Ember.Component.reopen(swalError);
}
export default {
<?php
add_action( 'after_setup_theme', 'bootstrap_setup' );
if ( ! function_exists( 'bootstrap_setup' ) ):
function bootstrap_setup(){
add_action( 'init', 'register_menu' );
<?php
namespace Eurofrits\Theme\Controllers;
use Compage\Component\Controller;
class IndexController extends Controller {
public function __construct($theme) {
parent::__construct($theme, "Index");