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 / 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>
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
webinfinita / belongs-to-many.sublime-snippet
Created Mar 27, 2016 — forked from adamwathan/belongs-to-many.sublime-snippet
Eloquent Relationship snippets for Sublime Text
View belongs-to-many.sublime-snippet
public function ${1:relationship}()
return \$this->belongsToMany(${1/^(.+)$/(?1\u$1:)/g}::class, {$2:table});
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
webinfinita /
Created Mar 27, 2016 — forked from pascalbaljet/
Install Imagick 3.4.0 on PHP 7.0 server (Laravel Forge)
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
tar xvzf imagick-3.4.0.tgz
View comments.php
<div class="fb-comments"data-href="<?php the_permalink(); ?>" data-num-posts="2" mobile="false"></div>
View sublime configurations
"bold_folder_labels": true,
// "color_scheme": "Packages/User/SublimeLinter/Facebook (SL).tmTheme",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"font_face": "Fira Code",
View gist:65de8119a1cb7f542448
server {
listen 80;
root /home/forge/;
ssl_protocols TLSv1.2;
index index.html index.htm index.php;
charset utf-8;
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 / gist:e94fdad46b675c18c287
Created May 8, 2015
Nginex for Wordpress inside Laravel 5 installation
View gist:e94fdad46b675c18c287
location @wp {
rewrite ^/blog(.*) /blog/index.php?q=$1;
location ^~ /blog {
root /home/vagrant/Code/site;
index index.php index.html index.htm;
try_files $uri $uri/ @wp;
location ~ \.php$ {
webinfinita / helpers.js
Created Mar 17, 2015
Common helper functions
View helpers.js
$('*[data-confirm]').on('click', function(e) {
var conf = confirm($(this).data('confirm'));
if(! conf) e.preventDefault();
$('body').on('', '.modal', function () {
You can’t perform that action at this time.