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
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 / 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 / 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);
View meta-viewport
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" >
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 comments.php
<div class="fb-comments"data-href="<?php the_permalink(); ?>" data-num-posts="2" mobile="false"></div>
You can’t perform that action at this time.