This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function validarCedula(cedula){ | |
var Cedula = cedula; | |
var Verificador = Cedula.substr(-1,1); | |
Cedula = Cedula.substr(0,10); | |
var suma = 0; | |
for (i=0;i<Cedula.length;i++){ | |
mod = ""; | |
if((i % 2) == 0){mod = 1} else {mod = 2} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$todo = file_get_contents("http://www.banreservas.com.do/Pages/ComercialDavidOrtiz.aspx"); | |
//echo "<textarea>".$todo."</textarea>"; | |
$inicio = strpos($todo, 'id="ctl00_m_g_a6605a42_9d12_436e_a07a_d862f308ba90_ctl00_cpUS"'); | |
//echo $inicio; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.layout') | |
@section('content') | |
@stop | |
@section('footerJS') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> | |
<h4 class="modal-title" id="myModalLabel">Widget Settings</h4> | |
</div> | |
<div class="modal-body"> | |
Widget settings form goes here | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Conexion{ | |
private static $objCon = null; | |
private static $instancia = null; | |
public static function obtenerInstancia(){ | |
if(self::$objCon == null){ | |
self::$instancia = new Conexion(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function __get($atributo){ | |
return $this->$atributo; | |
} | |
public function __set($atributo, $valor){ | |
$this->$atributo = $valor; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
type: "POST", | |
url: "/NewEmail", | |
data: { username: username } | |
}).done(function(data){ | |
if(data.success == false){ | |
var errores = ''; | |
for(datos in data.errors){ | |
errores += '<small >' + data.errors[datos] + '</small>'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$webservice = file_get_contents("http://graph.facebook.com/linc.do"); | |
$json = json_decode($webservice); | |
var_dump($json->likes); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install nano -y; yum update -y; yum upgrade -y; yum install tigervnc-server -y; yum groupinstall "Desktop" -y; yum install firefox -y; rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm; rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux; yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl -y; echo 'echo "nameserver 8.8.8.8" >> /etc/resolv.conf; ' >> /etc/rc.local; echo 'VNCSERVERS="1:root"' >> /etc/sysconfig/vncservers; echo 'VNCSERVERARGS[1]="-geometry 1000x700"' >> /etc/sysconfig/vncservers; vncpasswd; chkconfig vncserver on --level 345; reboot; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- BEGIN HTML--> | |
<form> | |
<div id="textBox" contenteditable="true" name="textBox"><?php echo $storyText; ?> | |
</div> | |
<textarea id="hiddeninput" name="hiddeninput"></textarea> | |
<input type="submit" id="save" name="save" value="Submit"/> | |
</form> | |
<!-- END HTML--> | |
<!-- BEGIN Javascript--> |