Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@josueochoa
josueochoa / main.js
Created January 31, 2016 16:35
main.js file
(function($){
$(document).ready(function()
{
// avia_header_size function initialization
avia_header_size();
});
<?php
/*
Template Name: Iframe
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
@josueochoa
josueochoa / grid.css
Created September 22, 2013 19:27
960 grid enfold
/*
* COMPILED WITH LESS
*/
/* Table of Contents
==================================================
#Base 960 Grid
#Tablet (Portrait)
#Mobile (Portrait)
#Mobile (Landscape)
#Clearing */
<?php
function the_content_ad($content){
if(is_single()){
$switch = 1;$cont_ad = 0;$parrafo = 0;
for($i=0;$i<strlen($content);$i++)
{
<?php
session_start();
header('Content-type: text/css');
include '../..//../wp-config.php';
$con=mysql_connect(DB_HOST,DB_USER,DB_PASSWORD);
mysql_select_db(DB_NAME,$con) or die("No se puede conectar a la basedatos");
$options = get_option('tursos_options');
@josueochoa
josueochoa / nokogiri.rb
Created September 13, 2013 17:31
Nokogiri Test
require 'rubygems'
require 'nokogiri'
require 'open-uri'
url = "http://web.tursos.com"
doc = Nokogiri::HTML(open(url))
doc.css("h1 a").each do |item|
puts item.text
end
@josueochoa
josueochoa / gist:6420413
Created September 3, 2013 06:45
GA Shortcode
function ga_func( $atts ) {
extract( shortcode_atts(
array("id" => "123"
), $atts )
);
return "<script type='text/javascript'>
var _gaq = _gaq || [];
@josueochoa
josueochoa / nivo.js
Created July 24, 2013 18:56
Nivo Slider 2.5.2
/*
* jQuery Nivo Slider v2.5.2
* http://nivo.dev7studios.com
*
* Copyright 2011, Gilbert Pellegrom
* Free to use and abuse under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* March 2010
*/
<?php
include('conexion.php');
$id = $_GET['id'];
mysql_query("DELETE FROM `users` WHERE `id` = '$id' ") ;
?>