Skip to content

Instantly share code, notes, and snippets.

View jhonnrodr's full-sized avatar
🏠
Working from home

Jhonn Rodriguez jhonnrodr

🏠
Working from home
  • Remote
View GitHub Profile
@jhonnrodr
jhonnrodr / minify-amp.php
Last active December 7, 2021 22:48
Minify AMP CSS in <style> with PHP/Laravel
In blade:
<style amp-custom>
{!! \App\Helpers\Minify::amp_custom() !!}
</style>
Create a file Minify.php
@jhonnrodr
jhonnrodr / box-shadow.html
Created June 7, 2021 21:14 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@jhonnrodr
jhonnrodr / share-urls.md
Created August 26, 2020 21:13 — forked from apisandipas/share-urls.md
Share url's for Facebook, Twitter, Pinterest and Linkedin with just get variables

Creating share buttons with just URL's

Twitter

http://twitter.com/share?text=<TITLE>&url=<URL>

E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com

Facebook

http://www.facebook.com/sharer.php?u=&amp;p[title]=

Requisitos:
En ubuntu 14.04 LTS:
APACHE
MYSQL
REDIS
NODEJS
//El proceso usualmente lo hacemos manual
// Pero Puede utilizar Forge para instalar el servidor de forma automatica y preparado ya para Laravel
https://forge.laravel.com/
@jhonnrodr
jhonnrodr / buscador.js
Last active November 17, 2015 09:33
Buscador
// HTML view
<input id="browser" name="" type="text" class="no-boarder " placeholder="Buscar Miembros" style="width:397px;">
<div id="memberSearch" class="popover fade bottom in" style="top: 35px; display: none;">
<div class="arrow"></div>
<div class="popover-content">
<div id="searches" style="width:300px">
</div>
</div>
</div>
@jhonnrodr
jhonnrodr / gplace.js
Created November 5, 2015 03:18
Buscar un lugar en google maps y te de sus datos (longitud, latitud, fotos, reviews, web.)
assignAutoCompl('lugar');
function assignAutoCompl(_id)
{
document.getElementById(_id).hidden = false;
var _autocomplete = new google.maps.places.Autocomplete(document.getElementById(_id));
_autocomplete.setTypes(['establishment']);
google.maps.event.addListener(_autocomplete, 'place_changed', function()
{
var place = _autocomplete.getPlace();
//var io = require('socket.io').listen(8001);
var app = require('express')();
var redis = require('redis');
var https = require('https');
var fs = require('fs');
var options = {
key: fs.readFileSync('ssl/linc.do.key'),
cert: fs.readFileSync('ssl/linc_do.crt')
};
vi etc/sysconfig/iptables
pegar:
-A INPUT -p tcp --dport 25 -j ACCEPT
-A INPUT -p tcp --dport 587 -j ACCEPT
-A INPUT -p tcp --dport 465 -j ACCEPT
luego: service iptables restart
@jhonnrodr
jhonnrodr / index.html
Created July 9, 2015 05:54
Flash Player MP4 PS3
<embed allowfullscreen="true" src="http://animeflv.net/archivos/player.swf" bgcolor="#000" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://animeflv.net/video/hyperion.php?key=ra7qrLOb0N3wt7PBzqrW2bDP0anTmarTkQ%253D%253D&provider=video&abouttext=AnimeFLV Player&controlbar=bottom&stretching=exactfit&screencolor=000&plugins=backstroke-1,timeslidertooltipplugin-1" height="463" width="773">