Skip to content

Instantly share code, notes, and snippets.

View fastcodecoq's full-sized avatar

Fastcode fastcodecoq

View GitHub Profile
Hello thanks for share u code, it's great, but i have a question where is the compatibility list?
@fastcodecoq
fastcodecoq / graph.php
Last active October 15, 2018 17:22
void graph() es una función Php para automatizar el proceso de inclusión de Open Graph en las páginas de nuestros sites
<?php
/*
void graph()
@params
String title
@fastcodecoq
fastcodecoq / extension.php
Last active December 22, 2015 04:29
Obtener la extensión de un archivo en Php
<?php
function get_extension ($file_name = "simple._práctico_.inc.txt"){
try{
if(!preg_match("/^([a-zA-Z0-9àèìòùáéíóúäëïöüÀÈÌÒÙÁÉÍÓÚÄËÏÖÜ\s\._-]+)$/i", $file_name))
return false;
@fastcodecoq
fastcodecoq / README.markdown
Last active December 22, 2015 04:39
Validate forms jQuery Plugin

FORMS.JS Por Gomosöft


@fastcodecoq
fastcodecoq / mail_.php
Last active December 22, 2015 04:39
Clase para gestionar un sistema de mails de forma simple y dinámica con soporte de plantillas
<?php
/*
class Mail is a simple code for sending customized emails easy
@ params
$sender_name = String name of sender mail
@fastcodecoq
fastcodecoq / require.js
Last active December 22, 2015 13:29
void require( src_file *, where) Función para insertar scripts js de formá rápida en nuestros proyectos
//Licencia GPL v3
function require( src_file , where){
if(! where )
var where = "";
switch(where){
@fastcodecoq
fastcodecoq / gridfs-stream.php
Last active December 22, 2015 16:49
Clase para crear streaming con Mongo y GridFS
/*
Copyrights @gomosoft 2013
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@fastcodecoq
fastcodecoq / id3.php
Created September 10, 2013 05:21
Función php para leer ID3
<?php
function readTags($file) {
$fp = fopen($file, "r");
$start = fread($fp, 3);
$size = filesize($file);
fseek($fp, $size-128);
$end = fread($fp, 128);
if (strpos($start, "ID3") === 0) {
@fastcodecoq
fastcodecoq / uploads.js
Last active December 22, 2015 23:19
$.ajax uploader
/*
USO
var opts = {
bar_text : "#progress", // elemento donde se colocará el porcentaje de carga
load_bar : "#upload_bar", // la barra de progreso (la que va aumentando) ______ ...
allowed_files_ext : new Array("mp3", "ogg"), //extensiones permitidas (siempre debes validar del lado servidor)
upload_url : "/upload", // archivo a donde se carga (uploads.php)
$("#captura_").off("submit").on( "submit" , function send(e){
if(running)
return false;
e.preventDefault();
e.stopPropagation();
$("#error").hide().text("");