Skip to content

Instantly share code, notes, and snippets.

View ggwebdev's full-sized avatar
🎯
Focusing

Gabriel Neves ggwebdev

🎯
Focusing
  • Brasília - Brazil
View GitHub Profile
@ggwebdev
ggwebdev / IPNPaypalLaravel.php
Last active October 29, 2020 00:18
Simple listener INP Paypal using laravel 4.2
<?php
class IpnListnerController extends \BaseController {
private $sandbox = true;
private $notify_email = true;
private $receiver_email = '[email protected]';
protected function listener(){
@ggwebdev
ggwebdev / hiddenEmail.php
Created March 16, 2016 00:08
Overshadows e-mail
function hiddenEmail($email, $domain_ = false){
$seg = explode('@', $email);
$user = '';
$domain = '';
if (strlen($seg[0]) > 3) {
$sub_seg = str_split($seg[0]);
$user .= $sub_seg[0].$sub_seg[1];
for ($i=2; $i < count($sub_seg)-1; $i++) {
@ggwebdev
ggwebdev / randPass.php
Last active October 29, 2020 00:17
Make Rand Pass
function randPass($leng = 20, $uppercase = true, $number = true, $simbol = true)
{
$lower = 'abcdefghijklmnopqrstuvwxyz';
$upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
$numbers = '1234567890';
$simbols = '?@[#_>(!&]{$*=<%}+)-^~';
$password = '';
$characters = '';
$character .= $lower;
$(function () {
$('#summernote').summernote({
focus: true,
height: 250,
callbacks: {
onImageUpload: function(files) {
sendFile(files[0]);
}
}
$('body').on('submit', '#updateUser', function (e){
e.preventDefault(); e.stopPropagation();
var formData = new FormData(this), progressbar = $('.total-progress');
$.ajax({
url: $(this).attr('action'),
type: 'POST',
data: formData,
cache: false,
contentType: false,
processData: false,