Skip to content

Instantly share code, notes, and snippets.

@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');
}
@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 / 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: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:
|
<?php
$config['base_url'] = 'http://localhost/';
$(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();
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'></script>
<script type="text/javascript" src='funciones.js'></script>
<style type="text/css">
body{
background-image: url('fondo-web-shop-eminence-gaming-529831.jpg');
background-color: black;
/*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.match(lt)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(st.acceptData(e)){var o,a,s=st.expando,u="string"==typeof n,l=e.nodeType,c=l?st.cache:e,f=l?e[s]:e[s]&&s;if(f&&c[f]&&(i||c[f].data)||!u||r!==t)return f||(l?e[s]=f=K.pop()||st.guid++:f=s),c[f]||(c[f]={},l||(c[f].toJSON=st.noop)),("object"==typeof n||"function"==typeof n)&&(i?c[f]=st.extend(c[f],n):c[f].data=st.extend(c[f].data,n)),o=c[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[st.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[st.camelCase(n)])):a=o,a}}function o(e,t,n){if(st.acceptData(e)){var r,i,o,a=e.nodeType,u=a?st.cache:e,l=a?e[st.expando]:st.expando;if(u[l]){if(t&&(r=n?u[l]:u[l].data)){st.isArray(t)?t=t.concat(st.map(t,st.camelCase)):
<script type="text/javascript" charset="utf-8" async defer>
$(document).ready(function(){
$('#pais').change(function(){
function ocultador(pais){
var id='#pa_'+pais;
$('.div_pol_hidden').hide();
$(id).show();
}
var pais=$('#pais').val();
<script type="text/javascript" charset="utf-8" async defer>
$(document).ready(function(){
$('#pais').change(function(){
function ocultador(pais){
var id='#pa_'+pais;
$('.div_pol_hidden').hide();
$(id).show('blind');
/*modificacion del tipo de registro*/
var R_tipo;