Skip to content

Instantly share code, notes, and snippets.

Jorge webinfinita

Block or report user

Report or block webinfinita

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
View comments.php
<div class="fb-comments"data-href="<?php the_permalink(); ?>" data-num-posts="2" mobile="false"></div>
webinfinita / bootstrap-breakpoints.sass
Last active Mar 23, 2019
Variables for responsive design in bootstrap with sass
View bootstrap-breakpoints.sass
@mixin breakpoint($point)
@if $point == lg
@media (min-width: 1200px)
@else if $point == md
@media (min-width: 992px) and (max-width: 1199px)
@else if $point == sm
View meta-viewport
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" >
webinfinita / setTitleSlug
Last active Aug 29, 2015
Create Slug of given title on save
View setTitleSlug
public function setTitleAttribute($title)
$this->attributes['title'] = $title;
$this->attributes['slug'] = Str::slug($title);
webinfinita / filters.php
Created Oct 29, 2014
Filters for API's
View filters.php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
header('Access-Control-Allow-Headers: Origin, Content-Type, Accept, Authorization, X-Request-With');
header('Access-Control-Allow-Credentials: true');
webinfinita / session-messages.blade
Last active Sep 16, 2015
Check and display session messages for Laravel 5 with AdminLTE styles
View session-messages.blade
<div class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<h4><i class="icon fa fa-check"></i> Excelente!</h4>
{{ session()->get('success_message') }}
<div class="alert alert-info alert-dismissable">
webinfinita / remove-modal-content
Last active Aug 29, 2015
Remove ajax modal content on close
View remove-modal-content
$('body').on('', '.modal', function () {
webinfinita / Mailer.php
Last active Aug 29, 2015
Abstract Mailer class for Laravel 5
View Mailer.php
<?php namespace App\Services\Mailers;
abstract class Mailer {
public function sendTo($user, $subject, $view, $data = [])
Mail::queue($view, $data, function($message) use ($user, $subject)
webinfinita / PresentableTrait.php
Last active Aug 29, 2015
View Presenters for Laravel 5
View PresentableTrait.php
<?php namespace App\Presenters;
trait PresentableTrait {
protected $presenterInstance;
public function present()
if (! $this->presenter)
webinfinita / modal-layout.blade.php
Last active Nov 9, 2019
Bootstrap modal blade partial view for Laravel
View modal-layout.blade.php
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Titulo</h4>
<div class="modal-body">
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
<button type="submit" class="btn btn-primary">Actualizar</button>
You can’t perform that action at this time.