Skip to content

Instantly share code, notes, and snippets.

$(document).ready(function(){
$('.noalmuadilla').click(function (event)
{
event.preventDefault();
//here you can also do all sort of things
});
$('.boton_pagar').hide();
$('#calcular').click(function(){
if($('#Admin_ched').is(':checked')){
var admin_tipo=$('.tipos_adminis:checked').val();
<?php
$config['base_url'] = 'http://localhost/';
@wpot
wpot / gist:4752939
Last active December 12, 2015 09:39
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
@wpot
wpot / nodejs
Created December 22, 2012 06:02
algo hermoso un server con javascript y nodejs
var http = require("http");
var url = require("url");
function iniciar(route) {
function onRequest(request, response) {
var pathname = url.parse(request.url).pathname;
console.log("Peticion para " + pathname + " recibida.");
route(pathname);
@wpot
wpot / gist:4173865
Created November 30, 2012 05:11
buscador avanzado (ALGO NO TAN TENTENDIBLE PERO CORREGIBLE POR MI)
<?php
$coneccion=mysql_connect('localhost','root','');
$base_datos=mysql_select_db('pruebas alpha');
if(!$coneccion){
echo('error coneccion');
}
@wpot
wpot / buscador de trabajos prueba
Created November 27, 2012 06:31
pruebas de buscador
<?php
$coneccion=mysql_connect('localhost','root','');
$base_datos=mysql_select_db('pruebas alpha');
if(!$coneccion){
echo('error coneccion');
}