Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title></title>
<meta charset="UTF-8">
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
var contador_preguntas=0
var contador_preguntas_esconder=0
@wpot
wpot / multiplicador huevon
Created February 26, 2014 05:59
multiplicador huevon
def multi(factor1, factor2):
print "============================================================="
print ""
print "=============== Recuerda acomodar los resultados ============"
print ""
print "los numero que ingresaste fueron "+str(factor1)+" y "+str(factor2)
print ""
str_factor2=str(factor2)
contador_factor2=len(str_factor2)
contador=1
@wpot
wpot / gist:5753089
Created June 10, 2013 22:43
sencillo scroll infinito(necesario jquery)
<script type="text/javascript" charset="utf-8" >
$(document).ready(function(){
var contador=10;
$(window).scroll(function(){
if ($(window).scrollTop() == $(document).height() - $(window).height()){
$.ajax({
type:'POST',
url:'http:/tucontrolador',
timeout:3000,
@wpot
wpot / gist:5737733
Created June 9, 2013 05:12
mira que chulo script de comprobacion de datos en javascript
$(document).ready(function(){
$('#form_reg_postulante').validate({
rules:{
nombre:{
required:true,
minlength:12
},
nacimiento:{
required:true,
},
<dict>
<key>name</key>
<string>Markdown: Linebreak</string>
<key>scope</key>
<string>text.html.markdown meta.dummy.line-break</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#A57706</string>
<key>foreground</key>
@wpot
wpot / gist:5105009
Last active December 14, 2015 14:59
<?php
$coneccion=mysql_connect('localhost','root','');
$db=mysql_select_db('job',$coneccion);
if(!$db){
echo('error al conectar');
}
else{
echo('coneccion completada');
}
<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;
<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();
/*! 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)):
<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;